/* ─────────────────────────────────────────────────────────────
   Clara Solà Niubó — Shared stylesheet
   ───────────────────────────────────────────────────────────── */

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream:       #F8F6F1;
  --cream-dark:  #F0EDE5;
  --cream-mid:   #EAE6DC;
  --bg-light:    #ffffff;
  --bg-warm:     #f0e9e0;
  --sage:        #7A9476;
  --sage-deep:   #556B52;
  --sage-darker: #3A5036;
  --warm-black:  #2A2826;
  --mid:         #5A5753;
  --light:       #9B9690;
  --border:      #E3DED5;
  --white:       #FFFFFF;

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Inter', system-ui, sans-serif;

  --max-w:  1120px;
  --pad-x:  clamp(1.5rem, 5vw, 5rem);
  --nav-h:  68px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Nothing should ever widen the page sideways: on mobile that stretches
     the layout viewport and drags the fixed header (and its menu button)
     off to the right. `clip` keeps vertical scrolling untouched. */
  overflow-x: clip;
}

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--warm-black);
  font-size: 1rem;
  line-height: 1.75;
}

img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }
p + p { margin-top: 1rem; }
ul, ol { list-style: none; }

/* ── Focus styles ─────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── Layout helpers ───────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.55rem); }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage);
  display: block;
  margin-bottom: 0.25rem;
}

.lead {
  font-size: clamp(1.05rem, 1.8vw, 1.18rem);
  color: var(--mid);
  line-height: 1.8;
}

.divider {
  width: 44px;
  height: 1.5px;
  background: var(--sage);
  margin-bottom: 0.75rem;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  border: none;
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--sage-deep);
  color: var(--white);
}
.btn-primary:hover { background: #445B42; }

.btn-outline {
  background: transparent;
  color: var(--sage-deep);
  border: 1.5px solid var(--sage-deep);
}
.btn-outline:hover { background: var(--sage-deep); color: var(--white); }

.btn-light {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.55);
}
.btn-light:hover { background: rgba(255,255,255,0.28); }

/* ── Navigation ───────────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(248,246,241,0.93);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
#nav.scrolled { box-shadow: 0 2px 24px rgba(42,40,38,0.08); }

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo {
  font-family: var(--serif);
  flex-shrink: 0;
  line-height: 1.1;
  display: flex;
  flex-direction: column;
}
.nav-logo .logo-name {
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--warm-black);
  letter-spacing: -0.01em;
}
.nav-logo .logo-sub {
  font-family: var(--sans);
  font-size: 0.63rem;
  font-weight: 400;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--sage);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
}
.nav-links li { display: flex; align-items: center; }
.nav-links li + li::before {
  content: '';
  display: inline-block;
  width: 1px;
  height: 11px;
  background: var(--border);
  margin-inline: 0.9rem;
  flex-shrink: 0;
}
.nav-links a {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--mid);
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--warm-black); }
.nav-links a[aria-current="page"] {
  color: var(--warm-black);
  font-weight: 500;
  border-bottom: 1.5px solid var(--sage);
  padding-bottom: 1px;
}

.nav-cta { margin-left: 1.5rem; flex-shrink: 0; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--warm-black);
  transition: all 0.3s;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--cream);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.2rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--serif);
  font-size: 1.75rem;
  color: var(--warm-black);
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--sage-deep); }
.mobile-close {
  position: absolute;
  top: 1.2rem;
  right: var(--pad-x);
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--mid);
  line-height: 1;
}

@media (max-width: 1180px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
}

/* ── Section base ─────────────────────────────────────────── */
.section {
  padding: clamp(2rem, 4vw, 3rem) 0;
}

@media (max-width: 768px) {
  .section { padding: 2rem 0; }
}

.section-header {
  margin-bottom: clamp(1rem, 2.5vw, 1.75rem);
}
.section-header h2 { margin-bottom: 1rem; }
.section-header .lead { max-width: 58ch; }

/* ── Home hero ────────────────────────────────────────────── */
/* Hero uses .container for alignment — matches all inner section content edges */
#hero {
  min-height: 100svh;
  padding-top: var(--nav-h);
  background: var(--bg-light);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: calc(100svh - var(--nav-h));
}

.hero-content {
  padding: clamp(1.5rem, 4vh, 3rem) 0;
}

.hero-content h1 {
  margin-bottom: 1.2rem;
  max-width: 16ch;
}

.hero-subhead {
  font-size: clamp(1rem, 1.8vw, 1.12rem);
  color: var(--mid);
  line-height: 1.7;
  max-width: 46ch;
  margin-bottom: 1.6rem;
}
.hero-subhead strong { color: var(--warm-black); font-weight: 500; }

.hero-intro {
  font-size: 0.97rem;
  color: var(--mid);
  line-height: 1.85;
  max-width: 46ch;
  margin-bottom: 2.2rem;
}
.hero-intro p + p { margin-top: 0.85rem; }

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.hero-trust {
  margin-top: 2.5rem;
  display: flex;
  gap: 1.8rem;
  flex-wrap: wrap;
}
.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--light);
}
.hero-trust-item::before {
  content: '';
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--sage);
  flex-shrink: 0;
}

.hero-image {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 3vw, 2.5rem);
  overflow: hidden;
}
.hero-image img {
  width: 100%;
  max-width: 420px;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
}

@media (max-width: 880px) {
  #hero {
    min-height: auto;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-image {
    height: auto;
    min-height: auto;
    max-width: 260px;
    width: 100%;
    margin: 0 auto;
    padding: 1rem;
    order: -1;
  }
  .hero-content {
    padding: 1.5rem 0 2.5rem;
  }
}

/* ── Inner page hero ──────────────────────────────────────── */
.page-hero {
  padding-top: calc(var(--nav-h) + clamp(1.5rem, 4vw, 3rem));
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--bg-light);
}

.page-hero-inner {
  max-width: 760px;
}

.page-hero h1 {
  margin-bottom: 1.2rem;
}

.page-hero .lead {
  max-width: 56ch;
}

.page-hero .lead strong { color: var(--warm-black); font-weight: 500; }

/* ── Home sections ────────────────────────────────────────── */

/* Why English */
#why-english {
  background: var(--cream-dark);
}
.why-english-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
.why-english-text p {
  font-size: 1rem;
  color: var(--mid);
  line-height: 1.85;
}
.why-english-text p + p { margin-top: 1rem; }

.pull-quote {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  font-weight: 300;
  font-style: italic;
  color: var(--warm-black);
  line-height: 1.4;
  padding-left: 2rem;
  border-left: 2px solid var(--sage);
}

@media (max-width: 780px) {
  .why-english-inner { grid-template-columns: 1fr; }
}

/* Looking for therapy */
#looking-for {
  background: var(--bg-warm);
}
.looking-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-bottom: 2rem;
}
.looking-item {
  background: var(--bg-light);
  padding: 1.7rem 2rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: background 0.2s;
}
.looking-item:hover { background: var(--white); }
.looking-check {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--sage);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.2rem;
}
.looking-check svg { width: 9px; fill: none; }
.looking-item p {
  font-size: 0.94rem;
  color: var(--mid);
  line-height: 1.65;
}
.looking-note {
  font-size: 0.9rem;
  color: var(--light);
  font-style: italic;
  margin-top: 1rem;
}

/* Reasons / areas */
#reasons {
  background: var(--bg-light);
}
.reasons-inner {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: start;
}
.reasons-text p {
  font-size: 0.97rem;
  color: var(--mid);
  line-height: 1.85;
}
.reasons-text p + p { margin-top: 1rem; }

.reasons-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 1.5rem;
  list-style: none;
  padding: 0;
  margin-top: 0.75rem;
}
.reasons-list li {
  background: var(--bg-warm);
  border-left: 3px solid #b08d72;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  font-size: 0.95rem;
  color: var(--mid);
  line-height: 1.5;
  transition: background 0.2s;
}
.reasons-list li:hover { background: var(--cream-mid); }

@media (max-width: 640px) {
  .reasons-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .reasons-inner { grid-template-columns: 1fr; }
}

/* How I work */
#how-i-work {
  background: var(--sage-deeper, #3A5036);
  color: var(--white);
}
#how-i-work .eyebrow { color: rgba(255,255,255,0.45); }
#how-i-work h2 { color: var(--white); }
#how-i-work .lead { color: rgba(255,255,255,0.7); }
#how-i-work .divider { background: rgba(255,255,255,0.25); }

#how-i-work p {
  font-size: 0.97rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.85;
  max-width: 68ch;
}
#how-i-work p + p { margin-top: 1rem; }

.how-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  border-bottom: 1px solid rgba(255,255,255,0.3);
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}
.how-link:hover { color: var(--white); border-color: rgba(255,255,255,0.7); }

/* Testimonials */
#testimonials {
  background: var(--bg-warm);
}

.testimonials-intro {
  font-size: 0.9rem;
  color: var(--light);
  font-style: italic;
  max-width: 60ch;
  margin-top: 0.5rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 1rem;
}

@media (max-width: 640px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

.testimonial-card {
  background: var(--bg-light);
  border-left: 3px solid #b08d72;
  padding: 1.5rem 1.75rem;
  border-radius: 4px;
}

.testimonial-initial {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b08d72;
  margin-bottom: 0.75rem;
}

.testimonial-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--mid);
  margin: 0 0 0.75em;
}

.testimonial-card p:last-child {
  margin-bottom: 0;
}

/* Celobert trust */
#celobert-trust {
  background: var(--bg-light);
}
.celobert-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
.celobert-text p {
  font-size: 1rem;
  color: var(--mid);
  line-height: 1.85;
}
.celobert-text p + p { margin-top: 1rem; }
.celobert-text strong { color: var(--warm-black); font-weight: 500; }

.celobert-photos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}
.celobert-photos img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 2px;
  display: block;
}
.location-photo--featured {
  grid-column: span 2;
  aspect-ratio: unset;
  max-height: 420px;
}
@media (max-width: 600px) {
  .celobert-photos {
    grid-template-columns: 1fr;
  }
  .location-photo--featured {
    grid-column: span 1;
  }
}

.info-box {
  background: var(--bg-warm);
  border: 1px solid var(--border);
  padding: 2rem 2.2rem;
}
.info-box-title {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--warm-black);
  margin-bottom: 1.5rem;
}
.info-row {
  display: flex;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}
.info-row:last-child { border-bottom: none; }
.info-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
  min-width: 100px;
  flex-shrink: 0;
}
.info-value {
  font-size: 0.93rem;
  color: var(--mid);
  line-height: 1.5;
}

@media (max-width: 780px) {
  .celobert-inner { grid-template-columns: 1fr; }
}

/* ── About page ───────────────────────────────────────────── */
.about-layout {
  display: grid;
  grid-template-columns: 5fr 3.5fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

/* Photo on the left, so two consecutive sections don't stack their photos
   on the same side. DOM order stays text-first for screen readers and mobile. */
.about-layout--media-left {
  grid-template-columns: 3.5fr 5fr;
}
.about-layout--media-left .about-sidebar { order: -1; }

.about-body p {
  font-size: 1.01rem;
  color: var(--mid);
  line-height: 1.85;
}
.about-body p + p { margin-top: 1.1rem; }

.training-list {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.training-list li {
  font-size: 0.92rem;
  color: var(--mid);
  padding-left: 1.2rem;
  position: relative;
  line-height: 1.55;
}
.training-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--sage);
  font-family: var(--serif);
}
.training-list li strong { color: var(--warm-black); font-weight: 500; }

.about-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}

.portrait-wrap {
  border-radius: 2px;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: linear-gradient(145deg, #C8D4C6, #9EB09B);
}
.portrait-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.sidebar-callout {
  margin-top: 1.5rem;
  padding: 1.2rem 1.5rem;
  border-left: 2px solid var(--sage);
  background: var(--bg-light);
}
.sidebar-callout p {
  font-size: 0.88rem;
  color: var(--mid);
  line-height: 1.65;
}
.sidebar-callout strong { color: var(--warm-black); font-weight: 500; }

#about-background { background: var(--bg-warm); }
#about-training   { background: var(--bg-light); }
#about-stance     { background: var(--bg-warm); }
#about-english    { background: var(--bg-light); }
#about-celobert   { background: var(--bg-warm); }

@media (max-width: 840px) {
  .about-layout {
    grid-template-columns: 1fr;
  }
  .about-sidebar {
    position: static;
    max-width: 360px;
  }
  .about-layout--media-left .about-sidebar { order: 0; }
}

/* Photo at the top of the single-column workbook pages */
.page-figure {
  border-radius: 2px;
  overflow: hidden;
  aspect-ratio: 3/2;
  margin-bottom: 2.4rem;
}
.page-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Therapy page ─────────────────────────────────────────── */
.prose-section { background: var(--bg-warm); }
.prose-section.alt { background: var(--bg-light); }

.prose-block {
  max-width: 720px;
}
.prose-block p {
  font-size: 1rem;
  color: var(--mid);
  line-height: 1.85;
}
.prose-block p + p { margin-top: 1rem; }
.prose-block strong { color: var(--warm-black); font-weight: 500; }

.benefit-list {
  margin-top: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.benefit-list li {
  font-size: 0.95rem;
  color: var(--mid);
  padding-left: 1.4rem;
  position: relative;
  line-height: 1.6;
}
.benefit-list li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--sage);
  font-family: var(--serif);
}

.theme-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.4rem;
}
.tag {
  padding: 0.45rem 1rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.83rem;
  color: var(--mid);
  background: var(--white);
  transition: border-color 0.2s, color 0.2s;
}
.tag:hover {
  border-color: var(--sage);
  color: var(--sage-deep);
}

.first-session-box {
  background: var(--cream-dark);
  border: 1px solid var(--border);
  padding: 2rem 2.4rem;
  max-width: 640px;
  margin-top: 2rem;
}
.first-session-box p {
  font-size: 0.97rem;
  color: var(--mid);
  line-height: 1.8;
}
.first-session-box .duration {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--warm-black);
  margin-bottom: 0.75rem;
}

/* ── Practical page ───────────────────────────────────────── */
.practical-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
}

.practical-cell {
  background: var(--bg-light);
  padding: 2rem;
}

.practical-cell .cell-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.4rem;
}

.practical-cell .cell-value {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--warm-black);
  line-height: 1.35;
}

.practical-cell .cell-note {
  font-size: 0.83rem;
  color: var(--light);
  margin-top: 0.35rem;
  line-height: 1.55;
}

.simple-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.simple-list li {
  font-size: 0.97rem;
  color: var(--mid);
  padding-left: 1.2rem;
  position: relative;
  line-height: 1.6;
}
.simple-list li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--sage);
  font-family: var(--serif);
}

/* FAQ (Practical page) */
.faq-wrap {
  max-width: 700px;
}
.faq-item {
  border-top: 1px solid var(--border);
}
.faq-item:last-child { border-bottom: 1px solid var(--border); }

.faq-q {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.3rem 0;
  font-family: var(--serif);
  font-size: 1.12rem;
  color: var(--warm-black);
  line-height: 1.4;
}

.faq-icon {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
  color: var(--sage);
  font-size: 1rem;
  line-height: 1;
}
.faq-item.open .faq-icon {
  background: var(--sage);
  border-color: var(--sage);
  color: var(--white);
  transform: rotate(45deg);
}

.faq-a {
  display: none;
  padding: 0 0 1.3rem;
  font-size: 0.93rem;
  color: var(--mid);
  line-height: 1.8;
  max-width: 64ch;
}
.faq-item.open .faq-a { display: block; }

/* ── Contact form section ─────────────────────────────────── */
#contact {
  background: var(--bg-warm);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.contact-info p {
  font-size: 0.97rem;
  color: var(--mid);
  line-height: 1.8;
}
.contact-info p + p { margin-top: 0.9rem; }

.contact-details {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.detail-row .detail-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.2rem;
}
.detail-row .detail-value {
  font-size: 0.92rem;
  color: var(--warm-black);
  line-height: 1.5;
}

.form-wrap {
  background: var(--white);
  padding: clamp(1.8rem, 4vw, 2.6rem);
  border: 1px solid var(--border);
}

.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-bottom: 0.45rem;
}
.form-group .optional {
  font-weight: 300;
  text-transform: none;
  letter-spacing: 0;
  color: var(--light);
  font-size: 0.72rem;
}
.form-hint {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--mid);
  margin: -0.15rem 0 0.55rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  background: var(--cream);
  font-family: var(--sans);
  font-size: 0.93rem;
  color: var(--warm-black);
  border-radius: 2px;
  transition: border-color 0.2s, background 0.2s;
  outline: none;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--sage);
  background: var(--white);
}
.form-group textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.65;
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7'%3E%3Cpath d='M1 1l4.5 4.5L10 1' stroke='%239B9690' stroke-width='1.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

/* Phone field: country calling code dropdown + national number */
.phone-row {
  display: flex;
  gap: 0.5rem;
}
.phone-row select {
  flex: 0 0 6.6rem;
  width: 6.6rem;
  padding-right: 2rem;
  background-position: right 0.8rem center;
  text-overflow: ellipsis;
}
.phone-row input {
  flex: 1 1 auto;
  min-width: 0;
}

.form-check {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}
.form-check input[type="checkbox"] {
  width: 18px; height: 18px;
  flex-shrink: 0;
  margin-top: 0.15rem;
  accent-color: var(--sage-deep);
  cursor: pointer;
}
.form-check label {
  font-size: 0.86rem;
  color: var(--mid);
  line-height: 1.6;
  cursor: pointer;
}

.form-note {
  font-size: 0.8rem;
  color: var(--light);
  line-height: 1.6;
  margin-bottom: 1.4rem;
  padding: 0.9rem 1rem;
  background: var(--cream);
  border-left: 2px solid var(--border);
}

.form-submit {
  width: 100%;
  justify-content: center;
  font-size: 0.9rem;
  padding: 1rem 2rem;
}

/* Form success state */
.form-success {
  display: none;
  text-align: center;
  padding: 3rem 1.5rem;
}
.form-success.visible { display: block; }
.success-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1.5px solid var(--sage);
  background: rgba(122,148,118,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}
.form-success h3 {
  font-size: 1.55rem;
  margin-bottom: 0.75rem;
  color: var(--warm-black);
}
.form-success p {
  font-size: 0.93rem;
  color: var(--mid);
  line-height: 1.7;
  max-width: 40ch;
  margin-inline: auto;
}

@media (max-width: 780px) {
  .contact-layout { grid-template-columns: 1fr; }
}

/* ── Closing / final CTA ──────────────────────────────────── */
.closing-section {
  background: var(--cream);
  padding: clamp(2rem, 4vw, 3rem) 0;
  border-top: 1px solid var(--border);
}
.closing-inner {
  max-width: 640px;
}
.closing-inner h2 { margin-bottom: 1.2rem; }
.closing-inner p {
  font-size: 1rem;
  color: var(--mid);
  line-height: 1.85;
}
.closing-inner p + p { margin-top: 1rem; }
.closing-inner strong { color: var(--warm-black); font-weight: 500; }
.closing-actions {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* CTA banner */
.cta-banner {
  background: linear-gradient(150deg, var(--sage-darker) 0%, var(--sage-deep) 55%, var(--sage) 100%);
  color: var(--white);
  text-align: center;
  padding: clamp(2.5rem, 5vw, 4.5rem) var(--pad-x);
}
.cta-banner h2 {
  color: var(--white);
  font-size: clamp(1.9rem, 4.5vw, 3.2rem);
  max-width: 22ch;
  margin-inline: auto;
  margin-bottom: 1rem;
}
.cta-banner h2 em { font-style: italic; color: rgba(255,255,255,0.65); }
.cta-banner .lead {
  color: rgba(255,255,255,0.7);
  max-width: 50ch;
  margin-inline: auto;
  margin-bottom: 2.2rem;
}
.cta-banner-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-note {
  margin-top: 1.8rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.38);
}

/* ── Explore section (future secondary pages) ─────────────── */
.explore-section {
  background: var(--cream);
  padding: clamp(3rem, 6vw, 5rem) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.explore-inner {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}

.explore-header h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  margin-bottom: 1rem;
}

.explore-intro {
  font-size: 0.93rem;
  color: var(--mid);
  line-height: 1.75;
  max-width: 40ch;
}

.explore-links {
  padding-top: 0.25rem;
}
.explore-links li + li {
  border-top: 1px solid var(--border);
}
.explore-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  font-size: 0.88rem;
  color: var(--mid);
  transition: color 0.2s;
  gap: 1rem;
}
.explore-links a::after {
  content: '→';
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--sage);
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  flex-shrink: 0;
}
.explore-links a:hover {
  color: var(--sage-deep);
}
.explore-links a:hover::after {
  opacity: 1;
  transform: translateX(3px);
}

@media (max-width: 680px) {
  .explore-inner {
    grid-template-columns: 1fr;
  }
}

/* ── Writing: index and articles ──────────────────────────── */
.article-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.article-card {
  border: 1px solid var(--border);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.article-card:hover {
  border-color: var(--sage);
  box-shadow: 0 6px 28px rgba(42,40,38,0.07);
}

.article-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.article-card-media {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--cream-mid);
}
.article-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.article-card:hover .article-card-media img { transform: scale(1.03); }

.article-card-body {
  padding: clamp(1.4rem, 2.5vw, 1.9rem);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-card-date,
.article-meta {
  font-size: 0.73rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--light);
}

.article-card-body h2 {
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  margin: 0.6rem 0 0.75rem;
  color: var(--warm-black);
}

.article-card-body p {
  font-size: 0.94rem;
  color: var(--mid);
  line-height: 1.75;
}

.article-card-cta {
  margin-top: auto;
  padding-top: 1.2rem;
  font-size: 0.83rem;
  color: var(--sage-deep);
}
.article-card-cta::after {
  content: ' →';
  font-family: var(--serif);
}

/* Article page */
.article-hero .page-hero-inner { max-width: 720px; }
.article-hero h1 { font-size: clamp(2rem, 4vw, 3rem); }

.article-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.1rem;
}

.article-figure {
  max-width: 900px;
  margin: 0 auto clamp(1.5rem, 3vw, 2.5rem);
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--cream-mid);
}
.article-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-body p {
  font-size: 1.03rem;
  line-height: 1.9;
}
.article-body p + p { margin-top: 1.15rem; }
.article-body a {
  color: var(--sage-deep);
  border-bottom: 1px solid var(--sage);
  padding-bottom: 1px;
  transition: color 0.2s;
}
.article-body a:hover { color: var(--sage-darker); }
.article-body em { color: var(--warm-black); }

/* Pull quote — a highlighted line lifted from the paragraph beside it */
.article-body blockquote {
  margin: 2.2rem 0;
  padding-left: 1.6rem;
  border-left: 2px solid var(--sage);
}
.article-body blockquote p {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  line-height: 1.35;
  color: var(--warm-black);
  text-wrap: balance;
}

@media (min-width: 900px) {
  /* Let it sit slightly outside the text column, as in print */
  .article-body blockquote {
    margin-left: -1.6rem;
  }
}

.article-more { background: var(--bg-warm); }

/* ── Footer ───────────────────────────────────────────────── */
footer {
  background: var(--warm-black);
  padding: clamp(2.5rem, 5vw, 4rem) var(--pad-x);
}

.footer-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.footer-brand .brand-name {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 0.7rem;
}
.footer-brand p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.32);
  line-height: 1.7;
}

.footer-nav-title {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  margin-bottom: 1rem;
}
.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.footer-nav a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.38);
  transition: color 0.2s;
}
.footer-nav a:hover { color: rgba(255,255,255,0.72); }

.footer-legal {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.28);
  line-height: 1.7;
}
.footer-legal a {
  color: rgba(255,255,255,0.38);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-legal a:hover { color: rgba(255,255,255,0.65); }

@media (max-width: 780px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}
@media (max-width: 480px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ── Utility ──────────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.text-sage { color: var(--sage-deep); }
.mt-2 { margin-top: 2rem; }
.bg-light { background-color: var(--bg-light) !important; }
.bg-warm  { background-color: var(--bg-warm)  !important; }

/* ── Cookie settings footer button ───────────────────────── */
.footer-cookie-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-cookie-btn:hover { color: var(--sage-deep); }

/* ─────────────────────────────────────────────────────────────
   Workbook opt-in ("How am I really doing here?")
   Calm, low-commitment band — the gentle alternative to booking.
   ───────────────────────────────────────────────────────────── */
.guide-optin {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #EEF1EC 0%, #E6ECE3 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(4.5rem, 8vw, 6.5rem);
}
.guide-skyline {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  color: var(--sage);
  opacity: 0.16;
  line-height: 0;
  pointer-events: none;
}
.guide-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.guide-copy .divider { margin-block: 0.9rem 1.4rem; }
.guide-copy h2 { margin-bottom: 1rem; max-width: 18ch; }
.guide-copy p {
  font-size: 1.02rem;
  color: var(--mid);
  line-height: 1.85;
  max-width: 46ch;
}

.guide-form-mount {
  background: var(--white);
  border: 1px solid var(--border);
  padding: clamp(1.6rem, 3.5vw, 2.4rem);
  border-radius: 2px;
}
.guide-name-row { display: grid; grid-template-columns: 1fr 1fr; column-gap: 0.9rem; }
@media (max-width: 520px) { .guide-name-row { grid-template-columns: 1fr; } }
.guide-form .form-group:last-of-type { margin-bottom: 1.1rem; }
.guide-turnstile:not(:empty) { margin-bottom: 1.1rem; }
.guide-submit {
  width: 100%;
  justify-content: center;
  font-size: 0.9rem;
  padding: 0.95rem 2rem;
}
.guide-form-message {
  font-size: 0.82rem;
  color: #b94040;
  line-height: 1.55;
  margin-bottom: 0.9rem;
}
.guide-note {
  font-size: 0.78rem;
  color: var(--light);
  line-height: 1.65;
  margin-top: 1rem;
}
.guide-note a {
  color: var(--sage-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}
/* Honeypot — visually hidden but reachable for bots */
.guide-hp {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.guide-success {
  text-align: center;
  padding: 2rem 1rem;
}
.guide-success h3 {
  font-size: 1.4rem;
  margin-bottom: 0.7rem;
  color: var(--warm-black);
}
.guide-success p {
  font-size: 0.9rem;
  color: var(--mid);
  line-height: 1.7;
  max-width: 38ch;
  margin-inline: auto;
}

@media (max-width: 780px) {
  .guide-inner { grid-template-columns: 1fr; }
  .guide-copy h2 { max-width: none; }
}

/* ── Footer guide (compact, sitewide secondary capture) ─────── */
.footer-guide {
  max-width: var(--max-w);
  margin: 0 auto clamp(2rem, 4vw, 3rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-guide-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}
.footer-guide-title {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: rgba(255,255,255,0.95);
  margin-bottom: 0.5rem;
}
.footer-guide-copy p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.7;
  max-width: 46ch;
}
.footer-guide-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.footer-guide-row input[type="email"] {
  flex: 1 1 200px;
  min-width: 0;
  padding: 0.7rem 0.95rem;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.05);
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.9rem;
  border-radius: 2px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.footer-guide-row input[type="email"]::placeholder { color: rgba(255,255,255,0.35); }
.footer-guide-row input[type="email"]:focus {
  border-color: var(--sage);
  background: rgba(255,255,255,0.08);
}
.footer-guide-row .guide-submit {
  width: auto;
  flex: 0 0 auto;
  padding: 0.7rem 1.4rem;
  font-size: 0.82rem;
}
.footer-guide-check {
  margin-top: 0.9rem;
  margin-bottom: 0;
}
.footer-guide-check label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.62);
}
.footer-guide-check a {
  color: rgba(255,255,255,0.8);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-guide .guide-turnstile:not(:empty) { margin-top: 0.9rem; }
.footer-guide .guide-form-message { margin-top: 0.7rem; margin-bottom: 0; color: #e59a9a; }
.footer-guide .guide-success { text-align: left; padding: 0; }
.footer-guide .guide-success h3 { color: rgba(255,255,255,0.8); font-size: 1.2rem; }
.footer-guide .guide-success p { color: rgba(255,255,255,0.45); margin-inline: 0; }
.footer-guide .success-icon { margin: 0 0 1rem; }

@media (max-width: 640px) {
  .footer-guide-inner { grid-template-columns: 1fr; gap: 1.25rem; }
}

/* ── Mobile conversion ────────────────────────────────────── */
/* Most ad clicks come from phones: get "Book a first session" onto the
   first screen, shorten the way down to the form and keep the CTA in reach. */

/* Home hero: smaller portrait, CTA straight after the subhead. */
@media (max-width: 880px) {
  .hero-image {
    max-width: 150px;
    padding: 0.5rem 0 0;
  }
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 1rem;
  }
  .hero-content h1 { margin-bottom: 0.9rem; }
  .hero-subhead { margin-bottom: 1.4rem; }
  .hero-intro { order: 1; margin: 2rem 0 0; }
  .hero-trust { order: 2; margin-top: 2rem; }
}

/* Testimonials: first three, trimmed, on phones (JS adds the classes). */
.testimonial-more,
.testimonials-all { display: none; }

@media (max-width: 640px) {
  .testimonials-grid.is-collapsible .testimonial-card:nth-child(n+4) { display: none; }
  .testimonial-card.is-clamped .testimonial-body {
    max-height: 10.2em;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent);
            mask-image: linear-gradient(to bottom, #000 60%, transparent);
  }
  .testimonial-more {
    display: inline-block;
    margin-top: 0.6rem;
    padding: 0.25rem 0;
    background: none;
    border: none;
    font: 500 0.85rem var(--sans);
    color: var(--sage-deep);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
  }
  .testimonial-more[hidden] { display: none; }
  .testimonials-all {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 1.25rem;
  }
}

/* Sticky CTA bar (markup in components/mobile-cta.njk). */
.mobile-cta { display: none; }

@media (max-width: 768px) {
  .mobile-cta {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 90; /* below the nav, menu and cookie banner */
    display: flex;
    gap: 0.75rem;
    align-items: center;
    padding: 0.75rem var(--pad-x) calc(0.75rem + env(safe-area-inset-bottom));
    background: rgba(248,246,241,0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--border);
    transform: translateY(100%);
    visibility: hidden;
    transition: transform 0.25s ease, visibility 0s linear 0.25s;
  }
  .mobile-cta.is-visible {
    transform: none;
    visibility: visible;
    transition: transform 0.25s ease;
  }
  .mobile-cta-book {
    flex: 1;
    justify-content: center;
  }
  .mobile-cta-wa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px; height: 48px;
    flex-shrink: 0;
    border: 1.5px solid var(--sage-deep);
    border-radius: 3px;
    color: var(--sage-deep);
  }
  /* Room for the bar so it never hides the end of the footer. */
  body:has(.mobile-cta) { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-cta, .mobile-cta.is-visible { transition: none; }
}

/* Preview deployments (dev.therapyinenglish.barcelona) */
.preview-banner { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: #b45309; color: #fff; font: 500 0.78rem/1.6 var(--sans, sans-serif); text-align: center; padding: 0.25rem 1rem; letter-spacing: 0.02em; }
.preview-banner code { font-family: inherit; font-weight: 700; }
:root:has(.preview-banner) { --nav-h: calc(68px + 1.75rem); }
.preview-banner ~ #nav { top: 1.75rem; height: 68px; }
