/* ============================================
   OptimAIze — Design System
   Warm boutique consultancy · part of Lex Machina
   Supports light & dark themes via [data-theme]
   ============================================ */

:root,
[data-theme="dark"] {
  --bg: #1c1815;
  --bg-elev: #262019;
  --bg-card: rgba(255, 255, 255, 0.035);
  --bg-card-solid: #29231d;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f2e9dd;
  --text-muted: #ad9f90;
  --accent: #e2814a;
  --accent-ink: #2c1c10;
  --accent-2: #a3b97f;
  --accent-soft: rgba(226, 129, 74, 0.16);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --paper-line: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] {
  --bg: #f7f1e6;
  --bg-elev: #efe6d6;
  --bg-card: #fffcf6;
  --bg-card-solid: #fffcf6;
  --border: rgba(44, 31, 20, 0.10);
  --border-strong: rgba(44, 31, 20, 0.22);
  --text: #2c2117;
  --text-muted: #7a6c5d;
  --accent: #bf5630;
  --accent-ink: #fff7ee;
  --accent-2: #6f7d4a;
  --accent-soft: rgba(191, 86, 48, 0.10);
  --shadow: 0 10px 30px rgba(82, 58, 33, 0.10);
  --paper-line: rgba(44, 31, 20, 0.045);
}

:root {
  --radius: 14px;
  --max-w: 1120px;
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background 0.25s ease, color 0.25s ease;
}

/* Subtle paper texture instead of AI-glow gradients */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    repeating-linear-gradient(180deg, var(--paper-line) 0px, var(--paper-line) 1px, transparent 1px, transparent 64px),
    repeating-linear-gradient(90deg, var(--paper-line) 0px, var(--paper-line) 1px, transparent 1px, transparent 64px);
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}

main, header, footer { position: relative; z-index: 1; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
  gap: 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}

/* Image wordmark — two files swapped by theme:
   logo-dark.svg (cream glyphs) on the dark theme,
   logo-light.svg (ink glyphs) on the light theme. */
.logo-img { height: 26px; width: auto; display: block; }
.logo-img-light { display: none; }
[data-theme="light"] .logo-img-dark { display: none; }
[data-theme="light"] .logo-img-light { display: block; }

/* Footer wordmark */
.footer-brand .logo-img { height: 30px; }

/* Reusable inline wordmark (e.g. inside headings): rest inherits the
   surrounding text colour, only the "AI" span is accent-coloured. */
.wordmark { color: var(--text); font-style: normal; }
.wordmark > span { color: var(--accent); font-style: italic; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin-left: auto;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active { color: var(--text); }

/* Fix: nav button must keep its own text color, not inherit the muted link color */
.nav-links a.btn {
  color: var(--accent-ink);
}
.nav-links a.btn:hover { color: var(--accent-ink); }
.nav-links a.btn-ghost { color: var(--text); }

.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.6rem; cursor: pointer; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ---------- Language switcher ---------- */
#langSwitcher { display: inline-flex; align-items: center; }

.lang-select {
  appearance: none;
  -webkit-appearance: none;
  background-color: var(--bg-card);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23ad9f90' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--text);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  height: 38px;
  padding: 0 30px 0 14px;
  transition: border-color 0.2s;
}

.lang-select:hover { border-color: var(--accent); }
.lang-select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.lang-select.busy { opacity: 0.55; cursor: wait; }
.lang-select option { color: #1c1815; background: #fff; }

/* ---------- Single-page (infinite scroll) ---------- */
/* Offset anchored sections so the sticky header doesn't cover headings */
main section { scroll-margin-top: 76px; }

/* Always-visible primary CTA in the nav */
.nav-cta { flex-shrink: 0; white-space: nowrap; }

/* Active section highlight in the nav */
.nav-links a.nav-link { position: relative; }
.nav-links a.nav-link.active { color: var(--text); }
.nav-links a.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

/* Labelled divider between major sections */
.section-break { padding: 40px 0; }
.section-break .container { display: flex; align-items: center; gap: 18px; }
.section-break .container::before,
.section-break .container::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.section-break span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Reveal-on-scroll — only active when JS adds .reveal-enabled, so
   the site degrades gracefully (all content visible) without JS. */
.reveal-enabled .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}
.reveal-enabled .reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal-enabled .reveal { opacity: 1 !important; transform: none !important; transition: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s, border-color 0.2s;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: var(--font);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: var(--shadow);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(226, 129, 74, 0.28); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn-ghost:hover { background: var(--bg-card); border-color: var(--accent); }

/* ---------- Hero ---------- */
.hero { padding: 112px 0 92px; text-align: center; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.badge strong { color: var(--accent); font-weight: 600; }

h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4.1rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin-bottom: 22px;
}

.grad-text {
  color: var(--accent);
  font-style: italic;
}

/* In the hero, keep the accent phrase together so the headline breaks
   cleanly between the two thoughts instead of mid-phrase. */
.hero h1 .grad-text { display: inline-block; }

.accent-mono {
  font-family: var(--font-mono);
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.hero p.lead {
  font-size: 1.18rem;
  color: var(--text-muted);
  max-width: 660px;
  margin: 0 auto 38px;
}

.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Sections ---------- */
/* Content sections all carry the `.container` class, whose horizontal
   padding was overriding the base `section` vertical padding and left
   the spacing uneven. Set ONE uniform vertical rhythm here. The hero
   keeps its larger spacing; the CTA-band section keeps its inline
   padding-top:0; the testimonials section uses inline padding-bottom:0
   so its marquee sits directly under the heading. */
section { padding: 72px 0; }
section.container { padding-top: 72px; padding-bottom: 72px; }
section.hero { padding-top: 112px; padding-bottom: 92px; }
section.page-hero { padding-top: 80px; padding-bottom: 30px; }
@media (max-width: 900px) {
  section.container { padding-top: 56px; padding-bottom: 56px; }
  section.hero { padding-top: 80px; padding-bottom: 64px; }
}
@media (max-width: 620px) {
  section.container { padding-top: 46px; padding-bottom: 46px; }
  section.hero { padding-top: 64px; padding-bottom: 52px; }
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.section-label::before {
  content: "— ";
}

/* Variant without the leading dash (used on centered band labels) */
.section-label.no-dash::before { content: none; }

/* Section headers are centered so every section lines up with the
   hero and the card grids beneath it, instead of hugging the left
   edge with empty space on the right. */
section.container:not(.legal-content) > .section-label,
section.container:not(.legal-content) > h2,
section.container:not(.legal-content) > .section-intro {
  text-align: center;
}
section.container:not(.legal-content) > .section-intro { margin-left: auto; margin-right: auto; }

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.18;
  margin-bottom: 18px;
}

.section-intro { color: var(--text-muted); max-width: 640px; margin-bottom: 56px; font-size: 1.05rem; }

/* Consistent breathing room between a heading and the cards beneath it */
h2 + .grid-3, h2 + .grid-2 { margin-top: 44px; }

/* ---------- Cards & grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow); }

.card h3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 0.95rem; }

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 18px;
  border: 1px solid var(--border);
}

.icon-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}

.icon-chip svg {
  width: 22px;
  height: 22px;
}

.card ul { list-style: none; margin-top: 14px; }
.card ul li {
  color: var(--text-muted);
  font-size: 0.92rem;
  padding: 5px 0 5px 22px;
  position: relative;
}
.card ul li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ---------- Testimonials ---------- */
.testimonial {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-placeholder-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 16px;
}

.testimonial blockquote {
  font-family: var(--font-display);
  font-size: 1.08rem;
  color: var(--text-muted);
  margin-bottom: 22px;
  font-style: italic;
}

.testimonial .who { display: flex; align-items: center; gap: 12px; }

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--accent);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.who .name { font-weight: 600; font-size: 0.93rem; }
.who .role { color: var(--text-muted); font-size: 0.82rem; }

.stars { color: #eab308; letter-spacing: 2px; margin-bottom: 14px; font-size: 0.95rem; opacity: 1; }

/* ---------- Testimonials carousel (auto-scroll + drag / swipe) ----------
   The track is a native horizontal scroll container, so touch-swipe and
   trackpad scrolling work out of the box. js/nav.js adds slow auto-scroll
   (paused on hover/interaction) and click-drag for the mouse. */
.marquee {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 6px 0 18px;
  margin: 4px 0 8px;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;          /* Firefox: hide scrollbar */
  -ms-overflow-style: none;
  /* fade the left/right edges */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}
.marquee::-webkit-scrollbar { display: none; }   /* Chrome/Safari: hide scrollbar */
.marquee.dragging { cursor: grabbing; }

.marquee-track {
  display: flex;
  width: max-content;
  padding: 6px 0;
}

/* uniform card width + margin; text isn't selectable so a mouse drag
   moves the carousel instead of highlighting a quote */
.marquee .testimonial {
  width: 340px;
  flex: 0 0 340px;
  margin-right: 22px;
  min-height: 232px;
  user-select: none;
  -webkit-user-select: none;
}

@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
}

/* ---------- Pricing ---------- */
.price-card { position: relative; display: flex; flex-direction: column; }

.price-card.featured {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.tag-popular {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 999px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.price {
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 600;
  margin: 14px 0 4px;
}

.price .per { font-size: 0.9rem; font-weight: 500; color: var(--text-muted); font-family: var(--font); }
.price-note { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-muted); margin-bottom: 18px; text-transform: uppercase; letter-spacing: 0.06em; }
.price-card .btn { margin-top: auto; text-align: center; }
.price-card ul { margin-bottom: 26px; }

/* ---------- Blog ---------- */
.post-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; overflow: hidden; padding: 0; }

.post-thumb {
  height: 96px;
  background: var(--bg-elev);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  position: relative;
}

.post-thumb::after {
  content: "";
  position: absolute;
  left: 24px;
  bottom: 18px;
  width: 28px;
  height: 2px;
  background: var(--accent);
}

.post-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.post-meta { font-family: var(--font-mono); font-size: 0.74rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 10px; }
.post-body h3 { font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 8px; }
.read-more { color: var(--accent); font-size: 0.88rem; font-weight: 600; margin-top: 14px; display: inline-block; }

/* Per-card "Read article" button (pinned to the bottom of the card) */
.post-btn { margin-top: auto; align-self: flex-start; padding: 9px 18px; font-size: 0.85rem; }
.post-card .post-body p { margin-bottom: 4px; }

/* CTA below the blog preview that leads to the full blog page */
.blog-section-cta { text-align: center; margin-top: 48px; margin-bottom: 28px; }

/* ---------- Newsletter ---------- */
.newsletter-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 40px;
  text-align: center;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 460px;
  margin: 26px auto 0;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 18px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: var(--bg-elev);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
}

.newsletter-form input:focus { outline: 2px solid var(--accent); border-color: transparent; }

/* ---------- About ---------- */
.bio-grid { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: start; }

.logo-placeholder {
  aspect-ratio: 2.4 / 1;
  border-radius: var(--radius);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-align: center;
  padding: 20px;
}

.bio-photo {
  aspect-ratio: 1;
  border-radius: var(--radius);
  /* Fixed warm-paper panel so the high-contrast B&W portraits stay
     legible in both light and dark themes. */
  background: #ece3d1;
  border: 1px solid var(--border-strong);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.bio-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.bio-text p { color: var(--text-muted); margin-bottom: 16px; }
.bio-text h3 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 4px; }
.bio-text .role-line { font-family: var(--font-mono); color: var(--accent-2); font-weight: 500; font-size: 0.84rem; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 20px; }

/* ---------- Booking ---------- */
.booking-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 700px;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 56px 40px;
  text-align: center;
}

.cta-band p { color: var(--text-muted); max-width: 560px; margin: 0 auto 30px; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 36px;
  margin-top: 40px;
}

.footer-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }

.footer-brand { max-width: 320px; }
.footer-brand p { color: var(--text-muted); font-size: 0.88rem; margin-top: 4px; }

.footer-links { display: flex; gap: 56px; }
.footer-links h4 { font-family: var(--font-mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); margin-bottom: 14px; }
.footer-links ul { list-style: none; }
.footer-links a { color: var(--text); text-decoration: none; font-size: 0.92rem; display: block; padding: 4px 0; opacity: 0.85; }
.footer-links a:hover { opacity: 1; color: var(--accent); }

.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.84rem;
}

.footer-bottom a { color: var(--accent); text-decoration: none; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 80px 0 30px; text-align: center; }
.page-hero p { color: var(--text-muted); max-width: 620px; margin: 0 auto; font-size: 1.08rem; }

/* ---------- Legal / policy pages ---------- */
.legal-content { max-width: 760px; }
.legal-content h2 { font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; margin: 36px 0 10px; }
.legal-content h3 { font-family: var(--font-display); font-size: 1.18rem; font-weight: 600; margin: 26px 0 8px; }
.legal-content p { color: var(--text-muted); margin-bottom: 14px; }
.legal-content ul { list-style: none; margin: 0 0 16px; }
.legal-content ul li { color: var(--text-muted); position: relative; padding: 4px 0 4px 22px; }
.legal-content ul li::before { content: "—"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.legal-content a { color: var(--accent); text-decoration: none; }
.legal-content a:hover { text-decoration: underline; }
.legal-content table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: 0.92rem; }
.legal-content th, .legal-content td { text-align: left; padding: 10px 12px; border: 1px solid var(--border); color: var(--text-muted); vertical-align: top; }
.legal-content th { font-family: var(--font-mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text); background: var(--bg-card); }
.legal-updated { font-family: var(--font-mono); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 28px; }

/* ---------- Responsive ---------- */

/* Tablet & below */
@media (max-width: 900px) {
  section { padding: 76px 0; }
  .hero { padding: 80px 0 64px; }
  .section-intro { margin-bottom: 44px; }
  .section-break { padding: 30px 0; }

  /* 3-up grids fold to two columns; 2-up grids stack */
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }

  .bio-grid { grid-template-columns: 1fr; gap: 28px; }
  .bio-photo { max-width: 280px; }

  .cta-band { padding: 44px 26px; }
  .newsletter-box { padding: 40px 24px; }

  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px;
    gap: 16px;
    align-items: flex-start;
    top: 58px;
  }
  .nav-links.open { display: flex; }
  /* active underline looks odd in the stacked mobile menu */
  .nav-links a.nav-link.active::after { display: none; }

  .newsletter-form { flex-direction: column; }

  /* Keep the Book a Call CTA visible on mobile (out of the hamburger) */
  .nav-inner { gap: 10px; }
  .nav-actions { gap: 8px; }
  .logo-img { height: 26px; }
  .nav-cta { padding: 9px 15px; font-size: 0.85rem; }

  /* Footer: let the link groups breathe and wrap */
  .footer-grid { gap: 36px; }
  .footer-links { gap: 28px 48px; flex-wrap: wrap; }
}

/* Phone */
@media (max-width: 620px) {
  section { padding: 62px 0; }
  .hero { padding: 64px 0 50px; }
  .container { padding: 0 18px; }

  .grid-3 { grid-template-columns: 1fr; }

  .hero p.lead { font-size: 1.06rem; }
  .section-intro { font-size: 1rem; margin-bottom: 38px; }

  /* Narrower testimonial cards so they don't exceed the viewport.
     The marquee loop stays seamless because every card is uniform. */
  .marquee .testimonial { width: 80vw; flex-basis: 80vw; max-width: 320px; margin-right: 16px; }

  .cta-band { padding: 38px 22px; }
  .cta-band h2 { font-size: 1.5rem; }
  .newsletter-box { padding: 34px 20px; }

  /* Footer stacks fully */
  .footer-grid { flex-direction: column; gap: 30px; }
  .footer-brand { max-width: none; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* Small phone */
@media (max-width: 420px) {
  .logo-img { height: 23px; }
  .nav-cta { padding: 8px 12px; font-size: 0.8rem; }
  .nav-actions { gap: 6px; }
  .lang-select { padding: 0 26px 0 10px; height: 36px; font-size: 0.72rem; }
  h1 { font-size: 2.15rem; }
}
