/* === BASE === */
* { margin: 0; padding: 0; box-sizing: border-box; }
::selection { background: #c4a77d; color: white; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Libre Baskerville', Georgia, serif;
  background-color: #faf8f5;
  color: #2d2a26;
  overflow-x: hidden;
}

/* === ANIMATIONS === */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(2deg); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}
.animate-in { animation: fadeInUp 0.8s ease-out forwards; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* === NAVIGATION === */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 24px;
  background-color: rgba(250,248,245,0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(139,90,43,0.1);
}
.nav-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-logo {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.05rem;
  color: #2d2a26;
  text-decoration: none;
  font-style: italic;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: #5a554d;
  text-decoration: none;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: #8b5a2b; }
.nav-cta {
  padding: 10px 24px;
  background-color: #8b5a2b;
  color: white !important;
  border-radius: 100px;
  font-weight: 500 !important;
}
.nav-cta:hover { background-color: #7a4f26 !important; }

/* === BUTTONS === */
.btn-primary {
  display: inline-block;
  padding: 18px 48px;
  background-color: #8b5a2b;
  color: white;
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 500;
  border-radius: 100px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(139,90,43,0.3);
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(139,90,43,0.4);
}
.btn-secondary {
  display: inline-block;
  padding: 18px 48px;
  background-color: #c4a77d;
  color: #2d2a26;
  border: none;
  border-radius: 100px;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 8px;
  text-decoration: none;
}
.btn-secondary:hover {
  background-color: #d4b78d;
  transform: translateY(-2px);
}
.btn-outline {
  display: inline-block;
  padding: 14px 36px;
  border: 2px solid #8b5a2b;
  color: #8b5a2b;
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  border-radius: 100px;
  transition: all 0.3s ease;
}
.btn-outline:hover {
  background-color: #8b5a2b;
  color: white;
}
.btn-outline--light {
  border-color: rgba(250,248,245,0.5);
  color: #faf8f5;
}
.btn-outline--light:hover {
  background-color: rgba(250,248,245,0.15);
  color: #faf8f5;
}

/* === PAGE HEADER (sub-pages) === */
.page-header {
  padding: 160px 24px 80px;
  background: linear-gradient(180deg, #faf8f5 0%, #f5ebe0 100%);
  text-align: center;
}
.page-header-tag {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #8b5a2b;
  margin-bottom: 20px;
}
.page-header h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 24px;
}
.page-header h1 span { color: #8b5a2b; font-style: italic; }
.page-header p {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.15rem;
  line-height: 1.8;
  color: #5a554d;
  max-width: 600px;
  margin: 0 auto;
}

/* === SHARED SECTION ELEMENTS === */
.section-tag {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #8b5a2b;
  margin-bottom: 16px;
  display: block;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 400;
  margin-bottom: 32px;
  line-height: 1.3;
}
.section-title span { color: #8b5a2b; font-style: italic; }
.section-description {
  font-size: 1.1rem;
  line-height: 1.9;
  color: #5a554d;
  font-family: 'DM Sans', sans-serif;
}

/* === HERO (index only) === */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 100px 24px 40px;
  position: relative;
  background: linear-gradient(180deg, #faf8f5 0%, #f5ebe0 100%);
}
.hero-blob-1 {
  position: absolute;
  top: 10%; right: 10%;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196,167,125,0.2) 0%, transparent 70%);
  animation: float 8s ease-in-out infinite;
}
.hero-blob-2 {
  position: absolute;
  bottom: 15%; left: 5%;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139,90,43,0.1) 0%, transparent 70%);
  animation: float 6s ease-in-out infinite;
  animation-delay: -2s;
}
.hero-content {
  max-width: 800px;
  text-align: center;
  position: relative;
  z-index: 1;
}
.hero-tagline {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #8b5a2b;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 32px;
  color: #2d2a26;
}
.hero h1 span { color: #8b5a2b; font-style: italic; }
.hero-description {
  font-size: 1.25rem;
  line-height: 1.8;
  color: #5a554d;
  max-width: 600px;
  margin: 0 auto 48px;
  font-family: 'DM Sans', sans-serif;
}
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  animation: pulse 2s ease-in-out infinite;
}
.scroll-indicator svg rect { stroke: #8b5a2b; }
.scroll-indicator svg circle { fill: #8b5a2b; }

/* === PAIN POINTS === */
.pain-points {
  padding: 120px 24px;
  background-color: #2d2a26;
  color: #faf8f5;
}
.pain-points-container { max-width: 900px; margin: 0 auto; }
.pain-points h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 400;
  margin-bottom: 60px;
  text-align: center;
  font-style: italic;
}
.pain-points-list { display: grid; gap: 24px; }
.pain-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 32px;
  background-color: rgba(250,248,245,0.05);
  border-radius: 12px;
  border-left: 3px solid #c4a77d;
  transition: all 0.3s ease;
}
.pain-item:hover {
  background-color: rgba(250,248,245,0.08);
  transform: translateX(8px);
}
.pain-item-icon { color: #c4a77d; font-size: 20px; line-height: 1.7; flex-shrink: 0; }
.pain-item p {
  font-size: 1.05rem;
  line-height: 1.7;
  font-family: 'DM Sans', sans-serif;
  margin: 0;
}
.pain-points-footer {
  text-align: center;
  margin-top: 60px;
  font-size: 1.4rem;
  font-style: italic;
  color: #c4a77d;
}

/* === DOLOR DE LLENGUA (index) === */
.dolor-section {
  padding: 120px 24px;
  background-color: #faf8f5;
}
.dolor-container { max-width: 700px; margin: 0 auto; }

/* === SOLUTION (index) === */
.solution {
  padding: 120px 24px;
  background-color: #f5ebe0;
}
.solution-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.solution h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 400;
  margin-bottom: 40px;
  line-height: 1.3;
}
.solution h2 span { color: #8b5a2b; font-style: italic; }
.solution-description {
  font-size: 1.15rem;
  line-height: 1.9;
  color: #5a554d;
  font-family: 'DM Sans', sans-serif;
  margin-bottom: 16px;
}

/* === FEATURE CARDS === */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 48px;
  align-items: flex-start;
}
.feature-card {
  width: calc(50% - 8px);
  background-color: white;
  border-radius: 16px;
  padding: 28px 28px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  transition: box-shadow 0.3s ease;
  text-align: left;
}
.feature-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}
.feature-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
}
.feature-card-title { flex: 1; }
.feature-arrow {
  font-size: 11px;
  color: #c4a77d;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.feature-card:hover .feature-arrow { transform: rotate(180deg); }
.feature-card-detail {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.25s ease;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.92rem;
  line-height: 1.7;
  color: #5a554d;
}
.feature-card:hover .feature-card-detail {
  max-height: 200px;
  opacity: 1;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #f0ebe3;
}
.feature-icon { font-size: 28px; flex-shrink: 0; }
.feature-card h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 2px;
  color: #2d2a26;
}
.feature-card p {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  color: #8b8680;
  margin: 0;
}

/* === BENEFITS === */
.benefits {
  padding: 120px 24px;
  background-color: #faf8f5;
}
.benefits-container { max-width: 900px; margin: 0 auto; }
.benefits h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 400;
  margin-bottom: 60px;
  text-align: center;
}
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
}
.benefit-item {
  padding-left: 24px;
  border-left: 2px solid #c4a77d;
}
.benefit-item h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #8b5a2b;
}
.benefit-item p {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #5a554d;
  margin: 0;
}

/* === QUOTE === */
.quote-section {
  padding: 100px 24px;
  background-color: #8b5a2b;
  color: white;
  position: relative;
  overflow: hidden;
}
.quote-blob {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
}
.quote-container {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.quote-mark { font-size: 80px; opacity: 0.3; line-height: 1; margin-bottom: -20px; }
.quote-text {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  line-height: 1.8;
  font-style: italic;
}

/* === QUI SOC (index) === */
.quisoc-section {
  padding: 120px 24px;
  background-color: #f5ebe0;
}
.quisoc-container {
  max-width: 700px;
  margin: 0 auto;
}

/* === FAQ === */
.faq { padding: 120px 24px; background-color: #faf8f5; }
.faq-container { max-width: 700px; margin: 0 auto; }
.faq h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 400;
  margin-bottom: 60px;
  text-align: center;
}
.faq-list { display: flex; flex-direction: column; gap: 16px; }
.faq-item {
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.faq-question {
  width: 100%;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: none;
  background-color: transparent;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: #2d2a26;
  text-align: left;
  gap: 16px;
}
.faq-question span {
  font-size: 24px;
  color: #8b5a2b;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.faq-question.active span { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-answer.active { max-height: 300px; }
.faq-answer p {
  padding: 0 24px 24px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #5a554d;
  margin: 0;
}

/* === CTA FORM === */
.cta { padding: 120px 24px; background-color: #2d2a26; color: #faf8f5; }
.cta-container { max-width: 600px; margin: 0 auto; text-align: center; }
.cta h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 400;
  margin-bottom: 24px;
  line-height: 1.3;
}
.cta h2 span { color: #c4a77d; font-style: italic; }
.cta-description {
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(250,248,245,0.8);
  font-family: 'DM Sans', sans-serif;
  margin-bottom: 24px;
}
.cta-promo {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #c4a77d;
  font-family: 'DM Sans', sans-serif;
  margin-bottom: 40px;
  padding: 20px 24px;
  background-color: rgba(196,167,125,0.15);
  border-radius: 12px;
  border: 1px solid rgba(196,167,125,0.3);
}
.form-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 400px;
  margin: 0 auto;
}
.form-input {
  padding: 18px 24px;
  border-radius: 100px;
  border: 2px solid rgba(250,248,245,0.2);
  background-color: transparent;
  color: #faf8f5;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  outline: none;
  transition: border-color 0.3s ease;
}
.form-input::placeholder { color: rgba(250,248,245,0.5); }
.form-input:focus { border-color: #c4a77d; }
.form-privacy {
  font-size: 0.85rem;
  color: rgba(250,248,245,0.5);
  font-family: 'DM Sans', sans-serif;
  margin-top: 24px;
}
.success-message {
  padding: 60px 40px;
  background-color: rgba(196,167,125,0.1);
  border-radius: 24px;
  border: 2px solid #c4a77d;
  display: none;
}
.success-message.active { display: block; }
.success-icon { font-size: 60px; margin-bottom: 24px; }
.success-message h3 { font-size: 1.8rem; font-weight: 400; margin-bottom: 16px; }
.success-message p {
  font-size: 1.05rem;
  line-height: 1.8;
  font-family: 'DM Sans', sans-serif;
  color: rgba(250,248,245,0.9);
}

/* === CTA BANNER (sub-pages) === */
.cta-banner {
  padding: 80px 24px;
  background-color: #2d2a26;
  text-align: center;
}
.cta-banner-container { max-width: 500px; margin: 0 auto; }
.cta-banner h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  color: #faf8f5;
  margin-bottom: 16px;
}
.cta-banner p {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.05rem;
  color: rgba(250,248,245,0.7);
  margin-bottom: 32px;
}

/* === CONTENT SECTIONS (sobre-nosaltres) === */
.content-section { padding: 100px 24px; background-color: #faf8f5; }
.content-section--warm { background-color: #f5ebe0; }
.content-section--dark { background-color: #2d2a26; }
.content-container { max-width: 700px; margin: 0 auto; }
.content-body { display: flex; flex-direction: column; gap: 24px; margin-top: 8px; }
.content-body p {
  font-size: 1.1rem;
  line-height: 1.9;
  color: #5a554d;
  font-family: 'DM Sans', sans-serif;
}
.content-body--light p { color: rgba(250,248,245,0.85); }

/* === FORMAT SECTION (funcionament) === */
.format-section { padding: 100px 24px; background-color: #f5ebe0; }
.format-container { max-width: 800px; margin: 0 auto; }
.format-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 48px;
}
.format-card {
  background-color: white;
  border-radius: 16px;
  padding: 28px 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  text-align: center;
}
.format-card-icon { font-size: 28px; margin-bottom: 10px; }
.format-card h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #2d2a26;
  margin-bottom: 6px;
}
.format-card p {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #8b8680;
  margin: 0;
}
.format-notes {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.format-note {
  display: flex;
  gap: 16px;
  padding: 18px 24px;
  background-color: white;
  border-radius: 12px;
  border-left: 3px solid #c4a77d;
  align-items: flex-start;
}
.format-note-icon { font-size: 18px; flex-shrink: 0; padding-top: 2px; }
.format-note p {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #5a554d;
  margin: 0;
}

/* === CIRCLES / PROGRAM (funcionament) === */
.circles-section { padding: 100px 24px; background-color: #faf8f5; }
.circles-container { max-width: 900px; margin: 0 auto; }
.circles-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 48px;
}
.circle-card {
  cursor: pointer;
  width: calc(50% - 8px);
  background-color: white;
  border-radius: 16px;
  padding: 28px 32px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}
.circle-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}
.circle-card.open {
  width: 100%;
  transform: none;
}
.circle-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.circle-card-meta {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex: 1;
}
.circle-num {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: rgba(0,0,0,0.1);
  min-width: 28px;
  line-height: 1.2;
}
.circle-card h3 {
  font-size: 1rem;
  font-weight: 400;
  font-style: italic;
  color: #2d2a26;
  line-height: 1.4;
  margin-top: 8px;
}
.circle-arrow {
  font-size: 11px;
  color: #c4a77d;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  padding-top: 4px;
}
.circle-card.open .circle-arrow { transform: rotate(180deg); }
.circle-card-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.circle-card.open .circle-card-body { max-height: 400px; }
.circle-card-body-inner {
  padding-top: 18px;
  margin-top: 18px;
  border-top: 1px solid #f0ebe3;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #5a554d;
}
.circle-tag {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 100px;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.tag-emocions { background-color: #f5ebe0; color: #8b5a2b; }
.tag-temps { background-color: #e8eef2; color: #4a6572; }
.tag-espai { background-color: #e8f0e8; color: #4a6b4a; }

/* === FOOTER === */
footer {
  padding: 40px 24px;
  background-color: #1a1816;
  text-align: center;
}
footer p {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: rgba(250,248,245,0.5);
}
footer p + p { margin-top: 8px; }
footer a {
  color: rgba(250,248,245,0.6);
  text-decoration: none;
  transition: color 0.2s ease;
}
footer a:hover { color: #c4a77d; }

/* === RESPONSIVE === */
@media (max-width: 600px) {
  .nav-links { gap: 12px; }
  .nav-links a:not(.nav-cta) { font-size: 0.85rem; }
  .nav-cta { padding: 8px 16px; font-size: 0.85rem !important; }
  .circle-item { padding: 28px 24px; }
  .circle-number { font-size: 80px; }
  .pain-item { padding: 20px; }
}
