/* ===========================================================
   CELOBERT · Teràpia i Meditació — home redesign
   Design system
   =========================================================== */

:root {
  /* Base — warm cream / off-white */
  --cream:    #FBF6E9;
  --cream-2:  #FFFDF7;   /* cards, lighter surface */
  --cream-3:  #F4EBD6;   /* alternate section band */
  --cream-4:  #EFE3C9;   /* deeper warm band */

  /* Ink */
  --ink:      #2A2118;   /* primary text */
  --ink-soft: #5E5343;   /* secondary text */
  --ink-mute: #8C8170;   /* tertiary / captions */
  --line:     #E3D7BD;   /* hairlines on cream */

  /* Warm — gold / light */
  --gold-bright: #FFDE59;
  --gold:        #E4AC4C;
  --gold-2:      #F2C97D;
  --gold-deep:   #AE730C;
  --brown:       #634226;

  /* Cool — sky / blue */
  --sky-1: #C2F0F1;
  --sky-2: #8ED5FF;
  --sky-3: #7DBEE4;
  --blue:  #3F8CF6;
  --blue-deep: #1563CD;

  /* Violet — accent only */
  --violet:      #8C52FF;
  --violet-deep: #5E17EB;
  --violet-soft: #A7B4F1;

  /* Type */
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans:  "Hanken Grotesk", system-ui, -apple-system, sans-serif;

  /* Rhythm */
  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --section-y: clamp(48px, 6vw, 96px);
  --radius: 22px;
  --radius-lg: 34px;

  --shadow-sm: 0 2px 10px rgba(99, 66, 38, 0.06);
  --shadow:    0 18px 50px -24px rgba(99, 66, 38, 0.28);
  --shadow-lg: 0 40px 90px -40px rgba(99, 66, 38, 0.36);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 110px; overflow-x: hidden; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: min(var(--maxw), 100vw); margin-inline: auto; padding-inline: var(--gutter); }

.eyebrow {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head h2 {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  margin-top: 18px;
}
.section-head p { color: var(--ink-soft); font-size: 1.12rem; margin-top: 18px; max-width: 60ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.92em 1.6em;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, background .3s, color .3s;
  line-height: 1;
}
.btn svg { width: 1.1em; height: 1.1em; }
.btn-primary {
  background: var(--gold);
  color: #3a2a10;
  box-shadow: 0 12px 26px -12px rgba(174,115,12,.55);
}
.btn-primary:hover { background: var(--gold-bright); transform: translateY(-3px); box-shadow: 0 18px 34px -12px rgba(174,115,12,.6); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover { border-color: var(--brown); transform: translateY(-3px); }
.btn-blue { background: var(--blue-deep); color: #fff; box-shadow: 0 12px 26px -12px rgba(21,99,205,.5); }
.btn-blue:hover { background: var(--blue); transform: translateY(-3px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 14px var(--gutter);
  transition: background .4s, box-shadow .4s, padding .4s;
}
.site-header.scrolled {
  background: rgba(251,246,233,.86);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 8px 30px -24px rgba(99,66,38,.4);
  padding-top: 10px; padding-bottom: 10px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 140px; width: auto; transition: height .35s ease, opacity .4s ease; }
.scrolled .brand img { height: 40px; }
.page-home .site-header:not(.scrolled) .brand { opacity: 0; pointer-events: none; }
.page-home .site-header.scrolled .brand { opacity: 1; }
.brand .brand-sub {
  font-family: var(--sans); font-size: .62rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase; color: var(--ink-mute);
}

.nav { display: flex; align-items: center; gap: 4px; }
/* Només els enllaços de primer nivell: els del desplegable tenen estil propi */
.nav > a,
.nav > .nav-item > a {
  font-weight: 600; font-size: .95rem; padding: 8px 14px; border-radius: 999px;
  color: var(--ink); position: relative; transition: color .25s, background .25s;
}
.nav > a::after,
.nav > .nav-item > a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: var(--gold); border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform .3s ease;
}
.nav > a:hover,
.nav > .nav-item > a:hover { color: var(--gold-deep); }
.nav > a:hover::after,
.nav > .nav-item > a:hover::after { transform: scaleX(1); }

/* ---------- Desplegable de «Què oferim» ---------- */
.nav-item { position: relative; display: flex; align-items: center; }
.nav-item > a { padding-right: 4px; }
.sub-toggle {
  display: grid; place-items: center; width: 26px; height: 26px;
  border: 0; background: none; color: var(--ink); cursor: pointer; padding: 0;
  border-radius: 50%; transition: color .25s;
}
.sub-toggle svg { width: 14px; height: 14px; transition: transform .3s ease; }
.nav-item:hover .sub-toggle,
.nav-item:focus-within .sub-toggle,
.nav-item.open .sub-toggle { color: var(--gold-deep); }
.nav-item:hover .sub-toggle svg,
.nav-item:focus-within .sub-toggle svg,
.nav-item.open .sub-toggle svg { transform: rotate(180deg); }

.subnav {
  position: absolute; top: 100%; left: 0; z-index: 80;
  width: max-content; max-width: min(620px, calc(100vw - 2 * var(--gutter)));
  /* El padding superior fa de pont: sense ell, el ratolí perd el hover en
     baixar de l'ítem al panell i el desplegable es tanca a mitges. */
  padding: 16px 22px 20px;
  background: rgba(255,253,247,.985); backdrop-filter: blur(14px);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: 0 22px 60px -30px rgba(99,66,38,.6);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.nav-item:hover .subnav,
.nav-item:focus-within .subnav,
.nav-item.open .subnav { opacity: 1; visibility: visible; transform: none; }

.subnav-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 34px; }
.subnav-h {
  display: block; font-family: var(--sans); font-size: .68rem; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink-mute);
  margin-bottom: 6px;
}
.subnav-group ul { list-style: none; margin: 0; padding: 0; }
.subnav-group a {
  display: block; padding: 5px 0; font-size: .95rem; font-weight: 600;
  color: var(--ink); transition: color .2s, transform .2s;
}
.subnav-group a:hover { color: var(--gold-deep); transform: translateX(3px); }
.subnav-all {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 16px;
  padding-top: 14px; border-top: 1px solid var(--line);
  font-size: .9rem; font-weight: 700; color: var(--blue-deep); width: 100%;
}
.subnav-all svg { width: 15px; height: 15px; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid var(--line); color: var(--ink); background: transparent;
  transition: transform .3s, background .3s, color .3s, border-color .3s; cursor: pointer;
}
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn:hover { transform: translateY(-2px); }
.icon-btn.ig:hover { background: var(--violet); border-color: var(--violet); color:#fff; }
.icon-btn.wa:hover { background: #25D366; border-color:#25D366; color:#fff; }

.menu-toggle { display: none; }
.mobile-nav { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(100px, 12vw, 160px); padding-bottom: clamp(50px, 7vw, 100px); overflow: clip; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 70px); align-items: start;
}
.hero-right { display: flex; flex-direction: column; gap: 20px; }
.hero-copy { position: relative; z-index: 2; }
.hero h1 {
  font-size: clamp(2.4rem, 4.0vw, 4.2rem);
  line-height: 1.06;
  margin: 16px 0 0;
}
.hero h1 .light { color: var(--gold-deep); font-style: italic; }
.hero h1 .sky { color: var(--blue-deep); }
.hero-sub { font-size: clamp(1.08rem, 1.6vw, 1.32rem); color: var(--ink-soft); margin-top: 26px; max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

/* Hero newsletter */
.hero-nl {
  margin-top: 0;
  padding: 18px 20px;
  background: rgba(255,255,255,.55);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(6px);
  max-width: 420px;
}
.nl-label { font-size: .88rem; color: var(--ink-soft); margin-bottom: 12px; }
.nl-form { display: flex; flex-direction: column; gap: 8px; }
.nl-input {
  width: 100%;
  font-family: var(--sans); font-size: .93rem;
  padding: 0.6em 1em;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--cream-2); color: var(--ink);
  outline: none;
  transition: border-color .2s;
}
.nl-input:focus { border-color: var(--blue); }
.nl-input::placeholder { color: var(--ink-mute); }
.nl-btn {
  font-family: var(--sans); font-size: .9rem; font-weight: 700;
  padding: 0.6em 1.2em;
  border: none; border-radius: 999px;
  background: var(--ink); color: var(--cream);
  cursor: pointer; white-space: nowrap;
  transition: background .2s;
}
.nl-btn:hover { background: var(--blue-deep); }
.nl-btn:disabled { opacity: .6; cursor: default; }
.nl-check {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: .78rem; color: var(--ink-soft); cursor: pointer; line-height: 1.4;
}
.nl-check input[type="checkbox"] { flex-shrink: 0; margin-top: 2px; width: 14px; height: 14px; cursor: pointer; accent-color: var(--blue); }
.nl-check a { color: var(--ink); text-decoration: underline; }
.newsletter .nl-check { color: rgba(255,255,255,.8); }
.newsletter .nl-check a { color: #fff; }
.nl-ok { font-size: .88rem; font-weight: 700; color: var(--blue-deep); margin: 0; }
.nl-err { font-size: .82rem; color: #c0392b; margin: 6px 0 0; }
.form-err { font-size: .9rem; color: #c0392b; margin: 12px 0 0; }

/* Butlletí compacte (peu, barra lateral, 404) — només el correu */
.nl-h { font-family: var(--serif); font-size: 1.15rem; color: var(--ink); margin-bottom: 6px; }
.nl-t { color: var(--ink-soft); font-size: .95rem; margin-bottom: 12px; }
.nl-row { display: flex; gap: 8px; }
.nl-row .nl-input { flex: 1 1 auto; min-width: 0; }
.nl-row .nl-btn { flex: 0 0 auto; }
.nl-legal { font-size: .76rem; color: var(--ink-mute); line-height: 1.5; margin: 10px 0 0; }
.nl-legal a { color: inherit; text-decoration: underline; }
@media (max-width: 480px) { .nl-row { flex-direction: column; } }

/* Butlletí en línia (final de fitxa de novetat) */
.nl-inline {
  background: var(--cream-3); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px,3vw,36px);
  display: grid; grid-template-columns: 1fr minmax(280px, 380px);
  column-gap: clamp(20px,3vw,40px); row-gap: 8px; align-items: center;
}
.nl-inline .nl-h { grid-column: 1; align-self: end; font-family: var(--serif); font-size: clamp(1.3rem,2vw,1.7rem); margin-bottom: 0; }
.nl-inline .nl-t { grid-column: 1; align-self: start; margin: 0; max-width: 46ch; }
.nl-inline .nl-short { grid-column: 2; grid-row: 1 / span 2; }
.nl-inline .nl-ok,
.nl-inline .nl-err { grid-column: 2; }
@media (max-width: 760px) {
  .nl-inline { grid-template-columns: 1fr; }
  .nl-inline .nl-h,
  .nl-inline .nl-t,
  .nl-inline .nl-short,
  .nl-inline .nl-ok,
  .nl-inline .nl-err { grid-column: 1; grid-row: auto; }
}

/* Hero art — the "glass filling" blob */
.hero-art {
  display: flex; align-items: center; justify-content: center;
  width: 100%; max-width: 420px;
}
.hero-logo-img {
  width: 100%; height: auto; display: block;
  filter: drop-shadow(0 12px 40px rgba(99,66,38,.14));
}

/* ---------- Decoració subtil de fons (seccions portada) ---------- */
.s-deco { position: relative; }
.deco-blob {
  position: absolute; border-radius: 50%; pointer-events: none;
  filter: blur(55px); z-index: 0;
}
.s-deco > .wrap { position: relative; z-index: 1; }
.deco-blob--gold  { width: 560px; height: 560px; background: var(--gold-bright); opacity: .28; right: -80px;  top: 50%; transform: translateY(-50%); }
.deco-blob--sky   { width: 480px; height: 480px; background: var(--sky-2);       opacity: .32; left: -80px;  top: 50%; transform: translateY(-50%); }
.deco-blob--violet{ width: 520px; height: 520px; background: var(--violet-soft);  opacity: .22; right: -60px; top: 50%; transform: translateY(-50%); }

/* ---------- Wave dividers ---------- */
.wave { display:block; width:100%; height: clamp(48px, 6vw, 90px); }
.wave path { transition: none; }

/* ---------- Section: benefits ---------- */
.band-cream2 { background: var(--cream-2); }
.band-cream3 { background: var(--cream-3); }
.band-sky { background: linear-gradient(180deg, #EAF7FA, #DDF0F7); }

.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 36px); }
.benefit {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 38px 34px; box-shadow: var(--shadow-sm);
  transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s;
}
.benefit:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.benefit .num {
  font-family: var(--serif); font-size: 1.5rem; font-style: italic; color: var(--gold-deep);
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: var(--cream-3); margin-bottom: 22px;
}
.benefit:nth-child(2) .num { background: #E5F4F8; color: var(--blue-deep); }
.benefit:nth-child(3) .num { background: #ECEAFB; color: var(--violet-deep); }
.benefit h3 { font-size: 1.45rem; margin-bottom: 12px; }
.benefit p { color: var(--ink-soft); font-size: 1.02rem; }

.intro-lead {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: end;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.intro-lead .lead-text { font-family: var(--serif); font-size: clamp(1.15rem, 1.7vw, 1.5rem); line-height: 1.5; color: var(--ink); }
.intro-lead p.small { color: var(--ink-soft); }

/* ---------- Novetats ---------- */
.events { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.event {
  background: var(--cream-2); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s;
}
.event:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
.event .ph { aspect-ratio: 4/3; }
.event-body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.event .date {
  font-size: .78rem; font-weight: 700; letter-spacing: .04em; color: var(--gold-deep);
  text-transform: uppercase; display: inline-flex; align-items:center; gap: 8px;
}
.event h3 { font-size: 1.2rem; line-height: 1.18; }
.event p { font-size: .96rem; color: var(--ink-soft); }
.event .more { margin-top: auto; font-weight: 700; color: var(--blue-deep); font-size: .92rem; display:inline-flex; gap:6px; align-items:center; }
.event:hover .more { gap: 11px; }
.more svg { transition: transform .3s; }

/* image placeholder */
.ph {
  position: relative; background:
    repeating-linear-gradient(135deg, rgba(99,66,38,.05) 0 10px, rgba(99,66,38,0) 10px 20px),
    linear-gradient(135deg, var(--cream-4), var(--cream-3));
  display: grid; place-items: center; color: var(--ink-mute);
}
.ph::after {
  content: attr(data-label);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: .72rem; letter-spacing: .04em; text-transform: lowercase;
  padding: 5px 11px; border: 1px dashed var(--ink-mute); border-radius: 999px;
  background: rgba(255,253,247,.6); color: var(--ink-mute);
}
.ph.sky { background:
    repeating-linear-gradient(135deg, rgba(21,99,205,.06) 0 10px, rgba(0,0,0,0) 10px 20px),
    linear-gradient(135deg, var(--sky-1), #E7F6F9); }

/* ---------- Què oferim ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service {
  /* Els temes (.t-*) sobreescriuen aquestes variables per acolorir la targeta */
  --svc-bg: var(--cream-2); --svc-chip: var(--cream-3); --svc-strong: var(--gold-deep);
  --svc-border: var(--line);
  --svc-chip-hover: var(--gold-bright); --svc-ink-hover: var(--brown); --svc-border-hover: var(--gold-2);
  background: var(--svc-bg); border: 1px solid var(--svc-border); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow-sm);
  transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s, border-color .4s;
  display: flex; flex-direction: column; gap: 14px;
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--svc-border-hover); }
.service .ic {
  width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center;
  background: var(--svc-chip); color: var(--svc-strong); transition: background .4s, color .4s;
}
.service:hover .ic { background: var(--svc-chip-hover); color: var(--svc-ink-hover); }
.service .ic svg { width: 30px; height: 30px; stroke-width: 1.7; }
.service h3 { font-size: 1.22rem; }
.service p { font-size: .96rem; color: var(--ink-soft); }
.service.cool { --svc-chip: #E5F4F8; --svc-strong: var(--blue-deep); --svc-chip-hover: var(--sky-2); --svc-ink-hover: var(--blue-deep); }

/* Temes per família de servei */
.service.t-terapia       { --svc-bg: #FCEEC7; --svc-border: #E4C36F; --svc-chip: #F2D583; --svc-strong: #8A5A07;          --svc-chip-hover: var(--gold-bright); --svc-ink-hover: var(--brown); --svc-border-hover: var(--gold); }
.service.t-grups         { --svc-bg: #DCF0F8; --svc-border: #93CBE3; --svc-chip: #B7E1F1; --svc-strong: var(--blue-deep); --svc-chip-hover: var(--sky-2);       --svc-ink-hover: #0F4C9E;      --svc-border-hover: #56A8D6; }
.service.t-formacio      { --svc-bg: #E2F1D5; --svc-border: #9CC57E; --svc-chip: #C3E2A6; --svc-strong: #2F6B31;          --svc-chip-hover: #A7DB7C;            --svc-ink-hover: #24521F;      --svc-border-hover: #6FA84E; }
.service.t-transpersonal { --svc-bg: #EAE3F9; --svc-border: #B49DEA; --svc-chip: #D4C4F3; --svc-strong: var(--violet-deep); --svc-chip-hover: #C1ABF2;          --svc-ink-hover: #4712B4;      --svc-border-hover: #8C63E0; }
.service.t-tallers       { --svc-bg: #F9E2D2; --svc-border: #DFA07E; --svc-chip: #F1C6A6; --svc-strong: #A34A31;          --svc-chip-hover: #EFAF83;            --svc-ink-hover: #7C331E;      --svc-border-hover: #C97553; }
.service .tag { font-size: .7rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color: var(--ink-mute); }

/* ---------- Qui som ---------- */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 2.4vw, 30px); }
.member { text-align: center; scroll-margin-top: 110px; }
.member .avatar {
  width: 100%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; margin-bottom: 18px;
  border: 4px solid var(--cream-2); box-shadow: var(--shadow); position: relative;
  transition: transform .4s; cursor: pointer;
}
.member:hover .avatar { transform: translateY(-5px) scale(1.01); }
.member h3 { font-size: 1.18rem; }
.member .role { color: var(--gold-deep); font-weight: 700; font-size: .82rem; letter-spacing:.02em; margin-top: 6px; }
.member .bio { color: var(--ink-soft); font-size: .92rem; margin-top: 12px;
  max-height: 0; overflow: hidden; opacity: 0; transition: max-height .5s ease, opacity .4s, margin-top .4s; }
.member.open .bio { max-height: 480px; opacity: 1; margin-top: 14px; }
.member .toggle {
  margin-top: 12px; background: none; border: none; cursor: pointer; font-family: var(--sans);
  font-weight: 700; font-size: .85rem; color: var(--blue-deep); display: inline-flex; gap: 6px; align-items:center;
}
.member .toggle svg { width: 14px; height: 14px; transition: transform .35s; }
.member.open .toggle svg { transform: rotate(180deg); }

/* ---------- L'espai + reviews ---------- */
.gallery {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 180px; gap: 16px;
}
.gallery .ph { border-radius: var(--radius); }
.gallery .g1 { grid-column: span 2; grid-row: span 2; }
.gallery .g4 { grid-column: span 2; }

.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: clamp(40px,5vw,64px); }
.review {
  background: var(--cream-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 30px 28px; box-shadow: var(--shadow-sm); position: relative;
}
.review .stars { color: var(--gold); letter-spacing: 3px; font-size: 1.05rem; }
.review p { font-family: var(--serif); font-size: 1.12rem; line-height: 1.42; color: var(--ink); margin: 14px 0 18px; font-style: italic; }
.review .who { font-weight: 700; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); }
.review .who-source { font-weight: 500; }
.reviews-source { text-align: center; margin-top: clamp(22px, 3vw, 34px); }
.reviews-source a { font-weight: 600; font-size: .95rem; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gold); }
.reviews-source a:hover { color: var(--gold-deep); }

/* ---------- Contacte ---------- */
.contact-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(34px, 5vw, 70px); align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 26px; }
.info-item { display: flex; gap: 16px; }
.info-item .ic { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items:center; background: var(--cream-3); color: var(--gold-deep); }
.info-item .ic svg { width: 22px; height: 22px; }
.info-item h4 { font-family: var(--sans); font-size: .78rem; font-weight: 800; letter-spacing:.12em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 6px; }
.info-item p, .info-item a { font-size: 1.04rem; color: var(--ink); line-height: 1.5; }
.info-item a:hover { color: var(--gold-deep); }
.map { margin-top: 8px; border-radius: var(--radius); overflow:hidden; height: 220px; border:1px solid var(--line); }

.form { background: var(--cream-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(26px, 3vw, 40px); box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: .82rem; letter-spacing:.06em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%; font-family: var(--sans); font-size: 1rem; color: var(--ink);
  background: var(--cream); border: 1.5px solid var(--line); border-radius: 14px; padding: 13px 15px;
  transition: border-color .25s, box-shadow .25s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(228,172,76,.18); }

/* Telèfon: prefix del país + número. El prefix no s'estira, el número sí. */
.tel-group { display: flex; gap: 10px; }
.tel-group .tel-prefix {
  /* Prou ample perquè hi càpiga «+34 · Espanya» sense tallar-se; els noms
     més llargs de la llista s'escurcen amb punts suspensius. */
  /* `0 0`: el select no s'encongeix. Amb `1` l'amplada natural de l'input
     (20 caràcters) el xafava i el nom del país quedava tallat. */
  flex: 0 0 auto; width: 52%; max-width: 210px; text-overflow: ellipsis;
  /* Amb `appearance: none` la fletxa la posem nosaltres, perquè el select no
     desentoni dels inputs. */
  appearance: none; padding-right: 38px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b5c48' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; background-size: 16px;
}
.tel-group .tel-prefix:hover { border-color: var(--gold-2); }
.tel-group .tel-num { flex: 1 1 0; min-width: 0; }
@media (max-width: 420px) {
  .tel-group { flex-direction: column; }
  .tel-group .tel-prefix { width: 100%; max-width: none; }
}

/* Error d'un camp concret, sota el camp (≠ .form-err, que és de tot el
   formulari i va al peu). */
/* Missatge d'enviament correcte. Substitueix el formulari, així que porta
   la mateixa caixa que ell perquè la columna no es buidi de cop. */
.form-ok {
  background: var(--cream-2); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(32px, 3.6vw, 48px); box-shadow: var(--shadow); text-align: center;
}
.form-ok:focus { outline: none; }
.form-ok .ok-mark {
  display: grid; place-items: center; width: 66px; height: 66px; margin: 0 auto 22px;
  border-radius: 50%; background: var(--gold-bright); color: var(--brown);
  box-shadow: 0 0 0 10px rgba(255,222,89,.22);
}
.form-ok .ok-mark svg { width: 32px; height: 32px; }
.form-ok h2 {
  font-family: var(--serif); font-weight: 500; color: var(--ink);
  font-size: clamp(1.5rem, 2.6vw, 1.95rem); line-height: 1.25; margin: 0;
}
.form-ok p { color: var(--ink-soft); font-size: 1.05rem; line-height: 1.65; margin: 14px 0 0; }
.form-ok .ok-urgent {
  font-size: .96rem; color: var(--ink-mute);
  margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line);
}
.form-ok .ok-urgent a { color: var(--blue-deep); font-weight: 700; }

.field-err { font-size: .88rem; color: #c0392b; margin: 8px 0 0; }
.field input.is-err, .field select.is-err { border-color: #c0392b; }
.field input.is-err:focus, .field select.is-err:focus { box-shadow: 0 0 0 4px rgba(192,57,43,.15); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--ink-soft); margin-bottom: 22px; }
.check input { margin-top: 3px; accent-color: var(--gold-deep); }

.newsletter {
  margin-top: clamp(40px,5vw,60px); background: linear-gradient(120deg, var(--blue-deep), var(--blue));
  border-radius: var(--radius-lg); padding: clamp(30px,4vw,52px); color: #fff;
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start;
}
.newsletter h3 { color: #fff; font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.newsletter p { color: rgba(255,255,255,.85); margin-top: 8px; }
.news-form { display: flex; flex-direction: column; gap: 10px; }
.news-form input {
  width: 100%; border: none; border-radius: 999px;
  padding: 12px 20px; font-size: 1rem; font-family: var(--sans);
  background: rgba(255,255,255,.15); color: #fff;
}
.news-form input::placeholder { color: rgba(255,255,255,.6); }
.news-form input:focus { outline: 3px solid var(--gold-bright); background: rgba(255,255,255,.22); }
.nl-btn-gold { background: var(--gold-bright); color: #3a2a10; }
.nl-btn-gold:hover { background: var(--gold-2); }
.newsletter .nl-ok { color: var(--ink); font-family: var(--serif); font-size: 1.05rem; font-weight: 400; margin-top: 10px; }
.newsletter .nl-err { color: #ffd9d2; font-size: .9rem; margin-top: 8px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #E9E0CF; padding: clamp(56px,7vw,90px) 0 36px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.12); }
.site-footer img { height: 90px; width:auto; margin-bottom: 18px; }
.site-footer p { color: rgba(233,224,207,.7); font-size: .98rem; max-width: 34ch; }
.footer-col h4 { font-family: var(--sans); font-size: .76rem; font-weight: 800; letter-spacing:.16em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 18px; }
.footer-col a { display: block; color: rgba(233,224,207,.82); padding: 6px 0; font-size: .98rem; transition: color .25s, padding-left .25s; }
.footer-col a:hover { color: var(--gold-bright); padding-left: 5px; }
.footer-social { display:flex; gap: 12px; margin-top: 6px; }
.footer-social a { width: 42px; height: 42px; border-radius: 50%; border:1.5px solid rgba(255,255,255,.2); display:grid; place-items:center; color:#E9E0CF; transition: all .3s; }
.footer-social a:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); transform: translateY(-3px); }
.footer-social svg { width: 19px; height: 19px; }
/* Butlletí al peu — variant fosca de .nl-mini */
.footer-nl .nl-t { color: rgba(233,224,207,.7); font-size: .96rem; max-width: none; margin-bottom: 14px; }
.footer-nl .nl-input { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #E9E0CF; }
.footer-nl .nl-input::placeholder { color: rgba(233,224,207,.45); }
.footer-nl .nl-input:focus { border-color: var(--gold); background: rgba(255,255,255,.14); }
.footer-nl .nl-btn { background: var(--gold); color: #3a2a10; }
.footer-nl .nl-btn:hover { background: var(--gold-bright); }
.footer-nl .nl-legal { color: rgba(233,224,207,.5); max-width: none; }
.footer-nl .nl-legal a { display: inline; padding: 0; color: rgba(233,224,207,.7); }
.footer-nl .nl-legal a:hover { padding-left: 0; }
.footer-nl .nl-ok { color: var(--gold-bright); }
.footer-nl .nl-err { color: #ffb3a7; }

.footer-bottom { padding-top: 28px; display:flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; font-size: .86rem; color: rgba(233,224,207,.55); }
.footer-bottom a { color: rgba(233,224,207,.7); }
.footer-bottom a:hover { color: var(--gold-bright); }

/* ---------- Reveal animation (progressive enhancement) ---------- */
.reveal { transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); }
html.js .reveal { opacity: 0; transform: translateY(28px); }
html.js .reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}

/* ===========================================================
   Responsive
   =========================================================== */
@media (max-width: 1080px) {
  .events { grid-template-columns: repeat(2, 1fr); }
  .team { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 920px) {
  .nav { display: none; }
  .header-actions .desktop-only { display: none; }
  .menu-toggle { display: grid; }
  .brand img { height: 72px; }
  .scrolled .brand img { height: 36px; }
  .hero { padding-top: clamp(120px, 22vw, 160px); overflow: hidden; }
  .hero-grid { grid-template-columns: 1fr; row-gap: 30px; }
  /* Al mòbil el logo va primer de tot. `display: contents` dissol .hero-right
     perquè el logo i la newsletter siguin caselles de .hero-grid i es puguin
     ordenar respecte al text. */
  .hero-right { display: contents; }
  .hero-art { order: -1; max-width: 440px; margin-inline: auto; width: 100%; }
  .hero-copy { order: 0; }
  /* El logo, que aquí queda just a sobre, ja diu «Teràpia i meditació»:
     l'eyebrow del hero repetiria el mateix text dues línies més avall. */
  .hero-copy .eyebrow { display: none; }
  .hero-nl { order: 1; }
  .benefits { grid-template-columns: 1fr; }
  .intro-lead { grid-template-columns: 1fr; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .newsletter { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 17px; }
  .hero h1 { font-size: 2rem; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { text-align: center; justify-content: center; }
  .events { grid-template-columns: 1fr; }
  .team { grid-template-columns: repeat(2, 1fr); }
  .services { grid-template-columns: 1fr; }
  .reviews { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; }
  .gallery .g1 { grid-column: span 2; }
  .gallery .g4 { grid-column: span 2; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; }
}

/* ---------- Mobile nav drawer ---------- */
.mobile-nav {
  position: fixed; inset: 0; z-index: 70; background: rgba(251,246,233,.98);
  backdrop-filter: blur(8px); flex-direction: column; padding: 90px var(--gutter) 40px;
  transform: translateX(100%); transition: transform .4s cubic-bezier(.2,.8,.2,1);
  /* Sense això el que no hi cap queda inabastable: ja passava amb el menú
     plegat en pantalles de 560 px d'alt, i el submenú ho agreuja. */
  overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  padding-top: 22px;
}
.mobile-nav.open { display: flex; transform: none; }
/* Només els enllaços de navegació, que són fills directes: si el selector
   agafa també els d'.m-actions, el botó «Contacta'ns» hereta el cos 1.8rem i
   el padding horitzontal 0, i el text li desborda la píndola. */
.mobile-nav > a,
.mobile-nav > .m-item > a { font-family: var(--serif); font-size: 1.8rem; padding: 14px 0; }
.mobile-nav > a,
.mobile-nav > .m-item { border-bottom: 1px solid var(--line); }
.mobile-nav > .m-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mobile-nav > .m-item > a { flex: 1; }
.m-sub-toggle {
  flex: none; display: grid; place-items: center; width: 42px; height: 42px;
  border: 1.5px solid var(--line); border-radius: 50%; background: none;
  color: var(--ink); cursor: pointer; padding: 0;
}
/* Apunta a la dreta: el submenú no es desplega avall, obre un altre panell. */
.m-sub-toggle svg { width: 18px; height: 18px; transform: rotate(-90deg); }

/* Segon panell del calaix: substitueix la llista en comptes d'allargar-la. */
.mobile-nav.sub-open > a,
.mobile-nav.sub-open > .m-item,
.mobile-nav.sub-open > .m-actions { display: none; }
.m-panel { display: flex; flex-direction: column; animation: m-panel-in .28s ease both; }
/* `display: flex` guanyaria a l'estil d'agent d'usuari de [hidden]. */
.m-panel[hidden] { display: none; }
@keyframes m-panel-in { from { opacity: 0; transform: translateX(18px); } }
/* La creu de tancar i el botó de tornar comparteixen fila: el panell hi guanya
   els 64 px que necessita per cabre sencer en una pantalla de mòbil. */
.mobile-nav.sub-open .close { margin-bottom: -46px; }
.m-back {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px;
  margin-bottom: 18px; padding: 7px 15px 7px 11px; border: 1.5px solid var(--line);
  border-radius: 999px; background: none; cursor: pointer;
  font-family: var(--sans); font-size: .85rem; font-weight: 700; color: var(--ink-soft);
}
.m-back svg { width: 15px; height: 15px; transform: rotate(90deg); }
.m-panel-h {
  font-family: var(--sans); font-size: .68rem; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink-mute);
  padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.m-panel ul { list-style: none; margin: 0; padding: 0; }
.m-panel li + li { border-top: 1px solid var(--line); }
.m-panel ul a {
  display: block; font-family: var(--serif); font-size: 1.18rem;
  padding: 10px 0; color: var(--ink);
}
.m-panel-all {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 22px;
  font-family: var(--sans); font-size: .95rem; font-weight: 700; color: var(--blue-deep);
}
.m-panel-all svg { width: 16px; height: 16px; }
/* Pantalles baixes: amb el cos gran, els sis ítems i el botó ja no hi cabien
   i calia fer scroll només per arribar a «Contacta'ns». */
@media (max-height: 640px) {
  .mobile-nav > a,
  .mobile-nav > .m-item > a { font-size: 1.5rem; padding: 11px 0; }
}
/* El panell de serveis és més llarg que el menú: comença a comprimir-se abans,
   perquè els dotze serveis càpiguen sencers sense haver de fer scroll. */
@media (max-height: 740px) {
  .m-back { margin-bottom: 12px; }
  .m-panel ul a { font-size: 1.05rem; padding: 7px 0; }
  .m-panel-all { margin-top: 14px; }
}
/* Enganxosa i dins del flux, no absoluta: amb el calaix fent scroll,
   absoluta se n'aniria amunt i et quedaries sense manera de tancar-lo.
   `fixed` tampoc no serveix, perquè el backdrop-filter del calaix li fa
   de bloc contenidor. */
.mobile-nav .close { position: sticky; top: 0; z-index: 2; align-self: flex-end; flex: none; margin-bottom: 18px; width: 46px; height:46px; border-radius:50%; border:1.5px solid var(--line); background: rgba(251,246,233,.98); display:grid; place-items:center; cursor:pointer; }
.mobile-nav .m-actions { display:flex; gap: 12px; margin-top: 28px; }

/* ── Avís de galetes (vanilla-cookieconsent) ─────────────────────
   Només el vestit: colors i tipografia del web sobre l'esquema de
   variables de la llibreria (assets/css/cookieconsent.css). */
#cc-main {
  --cc-font-family: var(--sans);
  --cc-bg: var(--cream-2);
  --cc-primary-color: var(--ink);
  --cc-secondary-color: var(--ink-soft);
  --cc-modal-border-radius: var(--radius);
  --cc-btn-border-radius: 999px;
  --cc-btn-primary-bg: var(--ink);
  --cc-btn-primary-border-color: var(--ink);
  --cc-btn-primary-color: var(--cream);
  --cc-btn-primary-hover-bg: var(--brown);
  --cc-btn-primary-hover-border-color: var(--brown);
  --cc-btn-secondary-bg: transparent;
  --cc-btn-secondary-border-color: var(--line);
  --cc-btn-secondary-color: var(--ink);
  --cc-btn-secondary-hover-bg: var(--cream);
  --cc-btn-secondary-hover-border-color: var(--gold);
  --cc-link-color: var(--gold-deep);
  --cc-toggle-on-bg: var(--gold);
  --cc-cookie-category-block-bg: var(--cream);
  --cc-cookie-category-block-border: var(--line);
  --cc-footer-bg: var(--cream);
  --cc-footer-border-color: var(--line);
}
