/* ============================================================
   VALENCE PARTNERS — main.css
   Nav, footer, shared components (cards, forms, hero, etc.)
   ============================================================ */

/* ── NAV ─────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background: rgba(15,31,61,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(196,151,58,0.18);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%;
  transition: background 0.3s var(--ease);
}
.nav-logo {
  font-family: var(--serif);
  font-size: 1.5rem; font-weight: 600;
  color: var(--white); letter-spacing: 0.04em;
}
.nav-logo span { color: var(--gold); }

.nav-menu { display: flex; align-items: center; gap: 2rem; }
.nav-links { display: flex; gap: 1.8rem; align-items: center; }
.nav-links a {
  font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: rgba(255,255,255,0.72);
  transition: color 0.2s var(--ease);
  position: relative; padding: 0.3rem 0;
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold-light); }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 1px; background: var(--gold);
}

.nav-right { display: flex; align-items: center; gap: 1.2rem; }

.nav-cta {
  background: var(--gold); color: var(--navy);
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  padding: 0.6rem 1.3rem;
  transition: background 0.2s var(--ease);
  white-space: nowrap;
}
.nav-cta:hover { background: var(--gold-light); }

/* Hamburger */
.nav-burger { display: none; flex-direction: column; gap: 5px; padding: 0.5rem; }
.nav-burger span {
  width: 24px; height: 2px; background: var(--white);
  transition: all 0.3s var(--ease);
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO (shared) ───────────────────────────────────── */
.hero {
  min-height: 88vh;
  background: var(--navy);
  display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
  padding: calc(var(--nav-h) + 4rem) 5% var(--space-xl);
}
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(196,151,58,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(196,151,58,0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at top right, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at top right, #000 20%, transparent 75%);
}
.hero-glow {
  position: absolute; top: -240px; right: -180px;
  width: 720px; height: 720px; pointer-events: none;
  background: radial-gradient(circle, rgba(196,151,58,0.13) 0%, transparent 68%);
}
/* Per-page hero background photos */
.hero-photo { position: absolute; inset: 0; pointer-events: none; background-size: cover; background-position: center; opacity: 1; z-index: 0; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.45) 55%, rgba(0,0,0,0.25) 100%); }
body[data-page="home"]        .hero-photo { background-image: url("../img/hero-home.png"); }
body[data-page="about"]       .hero-photo { background-image: url("../img/hero-about.png"); background-position: 75% 15%; }
body[data-page="approach"]    .hero-photo { background-image: url("../img/hero-approach.png"); }
body[data-page="for-clients"] .hero-photo { background-image: url("../img/hero-for-clients.png"); }
body[data-page="for-experts"] .hero-photo { background-image: url("../img/hero-experts.png"); background-position: center 30%; }
/* Hide gold grid + glow on pages that have a background photo */
body[data-page="home"] .hero-grid, body[data-page="home"] .hero-glow,
body[data-page="about"] .hero-grid, body[data-page="about"] .hero-glow,
body[data-page="approach"] .hero-grid, body[data-page="approach"] .hero-glow,
body[data-page="for-clients"] .hero-grid, body[data-page="for-clients"] .hero-glow,
body[data-page="for-experts"] .hero-grid, body[data-page="for-experts"] .hero-glow { display: none; }

.hero-content { position: relative; max-width: 780px; z-index: 1; }
.hero .eyebrow { color: var(--gold); }
.hero h1 { color: var(--white); margin-bottom: 1.6rem; }
.hero .lead { color: rgba(255,255,255,0.66); max-width: 600px; margin-bottom: 2.4rem; }

/* Compact hero for inner pages */
.hero.hero-sm { min-height: 56vh; }

/* ── STAT ROW ────────────────────────────────────────── */
.stat-row {
  position: relative;
  display: flex; flex-wrap: wrap;
  border-top: 1px solid rgba(196,151,58,0.2);
  margin-top: var(--space-lg); padding-top: var(--space-md);
}
.stat { flex: 1; min-width: 160px; padding-right: 1.5rem; }
.stat + .stat {
  border-left: 1px solid rgba(196,151,58,0.2);
  padding-left: 1.5rem;
}
.stat-num {
  font-family: var(--serif); font-size: 2.4rem; font-weight: 600;
  color: var(--gold); line-height: 1;
}
.stat-label {
  font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase;
  color: rgba(255,255,255,0.5); margin-top: 0.15rem; line-height: 1.4;
}

/* ── CARDS ───────────────────────────────────────────── */
.card-grid { display: grid; gap: 1.5rem; margin-top: var(--space-lg); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 2.2rem 2rem;
  transition: all 0.3s var(--ease);
  position: relative; overflow: hidden;
}
.card:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: 0 12px 40px rgba(15,31,61,0.10); }
.card-icon {
  width: 38px; height: 38px; margin-bottom: 1.3rem; color: var(--gold);
}
.card-icon svg { width: 100%; height: 100%; stroke: var(--gold); fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.3rem; font-weight: 600; margin-bottom: 0.7rem; }
.card p { font-size: 0.9rem; color: var(--text-light); line-height: 1.65; }
.card .link-arrow { margin-top: 1.2rem; }

/* Dark card variant */
.card.card-navy {
  background: var(--navy); border-color: rgba(196,151,58,0.25);
}
.card.card-navy h3 { color: var(--white); }
.card.card-navy p { color: rgba(255,255,255,0.6); }

/* ── POSITIONING STRIP (3-col compare) ───────────────── */
.compare { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: var(--space-lg); background: var(--line); border: 1px solid var(--line); }
.compare-col { background: var(--white); padding: 2rem 1.8rem; }
.compare-col.valence { background: var(--navy); }
.compare-col h4 {
  font-family: var(--sans); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-light); margin-bottom: 1rem;
}
.compare-col.valence h4 { color: var(--gold-light); }
.compare-col p { font-size: 0.92rem; line-height: 1.6; color: var(--text); }
.compare-col.valence p { color: var(--white); font-weight: 500; }

/* ── FRAMEWORK / STAGES (vertical timeline) ──────────── */
.timeline { margin-top: var(--space-lg); }
.tl-step { display: flex; gap: 2rem; }
.tl-marker { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; width: 54px; }
.tl-num {
  width: 54px; height: 54px; flex-shrink: 0;
  border: 1.5px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 1.2rem; font-weight: 600;
  color: var(--gold); background: var(--white); z-index: 1;
}
.bg-navy .tl-num, .bg-cream .tl-num { background: inherit; }
.tl-line { width: 1px; flex: 1; min-height: 30px; background: rgba(196,151,58,0.25); margin: 4px 0; }
.tl-body { padding-bottom: 3rem; flex: 1; }
.tl-step:last-child .tl-body { padding-bottom: 0; }
.tl-label { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin: 0.7rem 0 0.4rem; }
.tl-body h3 { font-size: 1.4rem; font-weight: 600; margin-bottom: 0.7rem; }
/* Single-line process steps: vertically centre the heading against the 54px number box */
.tl-body > h3:only-child { min-height: 54px; display: flex; align-items: center; margin-bottom: 0; font-size: 1.2rem; }
.tl-body p { font-size: 0.92rem; color: var(--text-light); line-height: 1.75; max-width: 640px; }
.tl-deliverable {
  display: inline-block; margin-top: 1rem;
  font-size: 0.8rem; font-style: italic; color: var(--navy);
  border-left: 2px solid var(--gold); padding-left: 0.8rem;
}
.bg-navy .tl-body p { color: rgba(255,255,255,0.6); }
.bg-navy .tl-deliverable { color: var(--gold-light); }

/* ── TWO-COLUMN SPLIT ────────────────────────────────── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); align-items: center; }
.split.align-start { align-items: start; }

/* ── VALENCE ATOM (About / The Name) ────────────────── */
.valence-atom { display: block; width: 200px; max-width: 60%; height: auto; margin-top: var(--space-md); opacity: 0.85; animation: atomSpin 40s linear infinite; }
.valence-atom circle[fill="var(--gold-text)"] { animation: atomPulse 4s ease-in-out infinite; }
@keyframes atomSpin { to { transform: rotate(360deg); } }
@keyframes atomPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
@media (prefers-reduced-motion: reduce) { .valence-atom, .valence-atom circle { animation: none; } }

/* ── FEATURE LIST ────────────────────────────────────── */
.feature-list li {
  display: flex; gap: 1rem; padding: 1.2rem 0;
  border-bottom: 1px solid var(--line); align-items: flex-start;
}
.feature-list li:last-child { border-bottom: none; }
.feature-mark { color: var(--gold); flex-shrink: 0; font-size: 1rem; line-height: 1.7; }
.feature-list strong { display: block; font-size: 0.95rem; color: var(--navy); margin-bottom: 0.25rem; }
.feature-list span { font-size: 0.88rem; color: var(--text-light); }
.bg-navy .feature-list li { border-color: rgba(255,255,255,0.1); }
.bg-navy .feature-list strong { color: var(--white); }
.bg-navy .feature-list span { color: rgba(255,255,255,0.6); }

/* ── QUOTE / DIFFERENTIATOR ──────────────────────────── */
.quote {
  border-left: 3px solid var(--gold);
  padding: 1.2rem 1.8rem; margin-top: var(--space-md);
  background: rgba(196,151,58,0.06);
}
.quote p { font-size: 1.05rem; font-style: italic; color: var(--navy); line-height: 1.6; }

/* ── DATA TABLE (mandate types) ──────────────────────── */
.vtable { width: 100%; border-collapse: collapse; margin-top: var(--space-md); font-size: 0.9rem; }
.vtable th, .vtable td { text-align: left; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); }
.vtable th { font-family: var(--sans); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }
.vtable td { color: var(--text-light); vertical-align: top; }
.vtable td:first-child { color: var(--navy); font-weight: 600; }

/* ── PILLS ───────────────────────────────────────────── */
.pill-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: var(--space-md); }
.pill {
  font-size: 0.85rem; font-weight: 500; color: var(--navy);
  background: var(--white); border: 1px solid var(--line);
  padding: 0.6rem 1.3rem; transition: all 0.2s var(--ease);
}
.pill:hover { border-color: var(--gold); color: var(--gold); }

/* ── FORMS ───────────────────────────────────────────── */
.form-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(196,151,58,0.2); padding: 2.5rem; }
.bg-white .form-card, .bg-cream .form-card { background: var(--white); border-color: var(--line); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.1rem; }
.form-group label {
  display: block; font-size: 0.72rem; letter-spacing: 0.08em;
  text-transform: uppercase; font-weight: 500; margin-bottom: 0.5rem;
  color: rgba(255,255,255,0.55);
}
.bg-white .form-group label, .bg-cream .form-group label { color: var(--text-light); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 0.8rem 1rem; font-family: var(--sans); font-size: 0.9rem;
  background-color: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.14);
  color: var(--white); outline: none; transition: border-color 0.2s var(--ease);
  -webkit-appearance: none; appearance: none; border-radius: 0;
}
.bg-white .form-group input, .bg-white .form-group select, .bg-white .form-group textarea,
.bg-cream .form-group input, .bg-cream .form-group select, .bg-cream .form-group textarea {
  background-color: var(--cream); border-color: var(--line); color: var(--text);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--gold); }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-group select option { background: var(--navy); color: var(--white); }
.bg-white .form-group select option { background: var(--white); color: var(--text); }
.radio-row { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.radio, .form-group .radio, label.radio { display: inline-flex; align-items: center; gap: 0.5rem; cursor: pointer; line-height: 1; margin-bottom: 0; text-transform: none; letter-spacing: normal; font-weight: 400; }
/* Reset the global form-input styling so radios render as native controls */
.radio input[type="radio"], .radio input[type="checkbox"] {
  width: 16px; height: 16px; flex-shrink: 0;
  padding: 0; margin: 0; border: 0; background: none;
  -webkit-appearance: auto; appearance: auto;
  accent-color: var(--gold);
}
.radio span { font-size: 0.78rem; color: rgba(255,255,255,0.6); }
.bg-white .radio span, .bg-cream .radio span { color: var(--text-light); }
.form-note { font-size: 0.78rem; color: var(--text-light); margin-top: 0.4rem; }
.form-error { font-size: 0.75rem; color: #E07B6B; margin-top: 0.35rem; display: none; }
.form-group.has-error .form-error { display: block; }
.form-group.has-error input, .form-group.has-error select, .form-group.has-error textarea { border-color: #E07B6B; }
.form-success {
  display: none; padding: 1rem 1.2rem; margin-top: 1rem;
  background: rgba(196,151,58,0.12); border: 1px solid var(--gold);
  color: var(--gold-light); font-size: 0.9rem;
}

/* ── ALT CONTACT CHANNELS ────────────────────────────── */
.channels { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }
.channel {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.85rem; font-weight: 500; color: var(--navy);
  background: var(--white); border: 1px solid var(--line);
  padding: 0.7rem 1.2rem; transition: all 0.2s var(--ease);
}
.channel:hover { border-color: var(--gold); }
.channel.whatsapp:hover { border-color: #25D366; color: #128C42; }

/* ── INSIGHT CARDS ───────────────────────────────────── */
.insight-card { display: flex; flex-direction: column; }
.insight-meta { font-size: 0.74rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.6rem; }
.insight-card h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.25; margin-bottom: 0.6rem; }
.insight-card p { font-size: 0.88rem; color: var(--text-light); flex: 1; }
.insight-card .link-arrow { margin-top: 1rem; }

/* ── FOOTER ──────────────────────────────────────────── */
.footer { background: var(--navy-deep); padding: var(--space-lg) 5% var(--space-md); border-top: 1px solid rgba(196,151,58,0.15); }
.footer-grid { max-width: var(--container); margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer-brand .footer-logo { font-family: var(--serif); font-size: 1.4rem; color: var(--white); }
.footer-brand .footer-logo span { color: var(--gold); }
.footer-tagline { font-size: 0.85rem; color: rgba(255,255,255,0.4); margin-top: 0.5rem; line-height: 1.6; max-width: 240px; }
.footer-social { margin-top: 1.2rem; }
.footer-social a { color: rgba(255,255,255,0.5); transition: color 0.2s; }
.footer-social a:hover { color: var(--gold-light); }
.footer-col h5 { font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; font-weight: 600; }
.footer-col a { display: block; font-size: 0.85rem; color: rgba(255,255,255,0.55); padding: 0.3rem 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--gold-light); }
.footer-legal { max-width: var(--container); margin: var(--space-md) auto 0; padding-top: var(--space-md); border-top: 1px solid rgba(255,255,255,0.08); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-legal a, .footer-legal span { font-size: 0.78rem; color: rgba(255,255,255,0.35); }
.footer-legal a:hover { color: var(--gold-light); }
.footer-legal-links { display: flex; gap: 1.5rem; }

/* ── WHATSAPP FLOAT ──────────────────────────────────── */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 900;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(0,0,0,0.25); transition: transform 0.2s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ── FINAL CTA STRIP ─────────────────────────────────── */
.cta-strip { text-align: center; }
.cta-strip h2 { margin-bottom: 1rem; }
.cta-strip .btn-group { justify-content: center; margin-top: var(--space-md); }

/* ── SELECT CUSTOM ARROW (fix missing indicator) ─────── */
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23C4973A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.6rem;
  cursor: pointer;
}

/* ── ENHANCED FORM CARD ──────────────────────────────── */
.form-card {
  position: relative;
  border-top: 3px solid var(--gold);
  box-shadow: 0 18px 60px rgba(15,31,61,0.08);
}
.form-head { margin-bottom: 1.8rem; }
.form-head h3 {
  font-size: 1.5rem; font-weight: 600; color: var(--navy);
  margin-bottom: 0.3rem;
}
.form-head p { font-size: 0.88rem; color: var(--text-light); }
.form-badge {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--gold);
  background: rgba(196,151,58,0.10); border: 1px solid var(--border);
  padding: 0.35rem 0.8rem; margin-bottom: 1.2rem;
}
.form-badge::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold); flex-shrink: 0;
}
.form-card .btn-primary { margin-top: 0.4rem; }

/* Slightly taller, calmer inputs for the primary client form */
.form-card.form-lg input,
.form-card.form-lg select,
.form-card.form-lg textarea { padding: 0.95rem 1.1rem; font-size: 0.92rem; }
.form-card.form-lg .form-group label { margin-bottom: 0.6rem; }

/* Field with helper icon spacing */
.form-group.optional label span { color: var(--text-light); }

/* ── STAT ROW ON LIGHT BG ────────────────────────────── */
.stat-row.light { border-top-color: var(--line); }
.stat-row.light .stat + .stat { border-left-color: var(--line); }
.stat-row.light .stat-num { color: var(--gold); }
.stat-row.light .stat-label { color: var(--text-light); }

/* ============================================================
   MARKETING POLISH — emphasis, hierarchy, rhythm
   ============================================================ */

/* Eyebrow: leading gold rule so each label reads as a marker */
.eyebrow { display: inline-flex; align-items: center; gap: 0.7rem; }
.eyebrow::before {
  content: ''; width: 26px; height: 1px; background: var(--gold);
  display: inline-block; flex-shrink: 0;
}

/* Headlines: balanced wrapping + confident tracking */
h1, h2, h3, .display, .h2, .h3 { text-wrap: balance; }
.hero h1 { letter-spacing: -0.015em; }

/* Lead paragraphs: a touch darker + wider measure for authority */
.lead { color: #4A5568; }
.bg-navy .lead { color: rgba(255,255,255,0.62); }
.hero .lead { position: relative; }

/* Highlight key phrases — subtle gold wash behind words */
.hl {
  box-shadow: inset 0 -0.42em rgba(196,151,58,0.28);
  padding: 0 0.05em; font-weight: 500;
}
.bg-navy .hl { color: var(--gold-light); box-shadow: none; font-style: italic; }

/* Section heads: more breathing room, clearer entry */
.section-head { position: relative; }
.section-head .h2 { margin-top: 0.3rem; }

/* Stat numbers: larger, more dramatic */
.stat-num { font-size: 2.7rem; letter-spacing: -0.01em; }

/* Buttons: subtle lift + shadow on hover for tactile feel */
.btn { position: relative; }
.btn-primary { box-shadow: 0 4px 18px rgba(196,151,58,0.18); }
.btn-primary:hover { box-shadow: 0 8px 26px rgba(196,151,58,0.28); transform: translateY(-1px); }
.btn-outline:hover { transform: translateY(-1px); }

/* Cards: crisper hover elevation */
.card { border-radius: 2px; }

/* Compare / Valence column: make the winning column assert itself */
.compare-col.valence { position: relative; }
.compare-col.valence::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gold);
}

/* Pills: more presence */
.pill { border-radius: 2px; font-weight: 500; }
.pill:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(15,31,61,0.08); }

/* Quote: larger, more editorial */
.quote p { font-size: 1.1rem; }

/* Timeline number: filled accent on hover for progress feel */
.tl-step:hover .tl-num { background: var(--gold); color: var(--navy); border-color: var(--gold); transition: all 0.25s var(--ease); }

/* ============================================================
   ACCESSIBILITY — component contrast + target sizes
   ============================================================ */

/* Gold text on light components → darker accessible gold */
.link-arrow { color: var(--gold-text); }
.bg-navy .link-arrow { color: var(--gold-light); }
.insight-meta { color: var(--gold-text); }
.tl-label { color: var(--gold-text); }
.bg-navy .tl-label { color: var(--gold-light); }
.stat-row.light .stat-num { color: var(--gold-text); }
.form-badge { color: var(--gold-text); }
.section-tag { color: var(--gold-text); }
.geo-lang { color: var(--gold-text) !important; }

/* Target size — interactive elements ≥ 24×24px (SC 2.5.8) */
.footer-col a, .footer-legal a { min-height: 24px; display: flex; align-items: center; }
.footer-social a { display: inline-flex; min-width: 28px; min-height: 28px; align-items: center; }
.nav-links a { min-height: 28px; display: inline-flex; align-items: center; }
.link-arrow { min-height: 24px; }

/* Error text uses an icon marker, not colour alone (SC 1.4.1) */
.form-error::before { content: '⚠ '; }

/* ── ARTICLE PAGES ───────────────────────────────────── */
.article-wrap { max-width: 720px; margin: 0 auto; }
.article-body p { font-size: 1rem; line-height: 1.8; margin-bottom: 1.2rem; }
.article-body h2 {
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--navy);
  margin: 2.4rem 0 0.9rem;
}
.pull-quote {
  border-left: 3px solid var(--gold);
  padding: 0.4rem 0 0.4rem 1.4rem;
  margin: 2.2rem 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.5;
  color: var(--navy);
}
.article-back { display: inline-block; margin-bottom: 1.5rem; font-size: 0.85rem; }

/* ── PERSPECTIVES (expandable) ───────────────────────── */
.persp-details { margin-top: 0.8rem; }
.persp-details summary {
  cursor: pointer;
  color: var(--gold-text);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  min-height: 24px;
  list-style: none;
}
.persp-details summary::-webkit-details-marker { display: none; }
.persp-details summary::after { content: ' +'; }
.persp-details[open] summary::after { content: ' −'; }
.persp-details p { margin-top: 0.9rem; font-size: 0.92rem; line-height: 1.7; }

/* ── LEGAL PAGE BODY ─────────────────────────────────── */
.legal-body h2 { margin: 2.4rem 0 0.8rem; }
.legal-body h2:first-of-type { margin-top: 1.5rem; }
.legal-body p { color: var(--text-light); margin-bottom: 0.8rem; line-height: 1.8; }
.legal-body ul { margin: 0 0 1rem 1.2rem; }
.legal-body li { color: var(--text-light); line-height: 1.8; list-style: none; position: relative; padding-left: 1.2rem; }
.legal-body li::before { content: '→'; position: absolute; left: 0; color: var(--gold); }
.legal-body a { color: var(--gold); font-weight: 500; }
.legal-body a:hover { text-decoration: underline; }

/* ============ PROSE BLOCK (long-form market context) ============ */
.prose-block h3 {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--navy);
  margin-bottom: 0.6rem;
}
.prose-block p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: rgba(15, 31, 61, 0.78);
}
.bg-cream .prose-block h3 { color: var(--navy); }

/* ============================================================
   CONVERSION LAYER — portraits, motion, engagement
   ============================================================ */

/* ── Founder portraits: gold-framed, editorial ── */
.founder-portrait {
  width: 148px; height: 148px; object-fit: cover; object-position: top;
  float: right; margin: 0 0 1.2rem 1.6rem;
  border: 1px solid var(--gold);
  padding: 6px; background: rgba(196,151,58,0.08);
  filter: saturate(0.85);
  transition: filter 0.4s var(--ease), transform 0.4s var(--ease);
}
.card:hover .founder-portrait { filter: saturate(1.05); transform: scale(1.02); }

/* ── Scroll progress bar (gold, top of viewport) ── */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--gold);
  z-index: 1100; pointer-events: none;
  transition: width 0.08s linear;
}

/* Hero headline em: gold-light on navy */
.hero h1 em { color: var(--gold-light); }

/* ── Staggered reveal for grid children (JS sets --stagger-i) ── */
.card-grid > [data-reveal],
.card-grid > .card { transition-delay: calc(var(--stagger-i, 0) * 90ms); }

/* ── Cards: gold corner accent grows on hover ── */
.card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 0; height: 3px; background: var(--gold);
  transition: width 0.35s var(--ease);
}
.card:hover::before { width: 100%; }

/* ── Stat count-up: tabular numerals so digits do not jitter ── */
.stat-num { font-variant-numeric: tabular-nums; }

/* ── Sticky mobile CTA bar ── */
.mobile-cta-bar {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 950;
  background: rgba(10,21,40,0.97);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(196,151,58,0.3);
  padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
  gap: 0.7rem;
}
.mobile-cta-bar .btn { flex: 1; text-align: center; font-size: 0.8rem; padding: 0.75rem 0.5rem; }
@media (max-width: 760px) {
  .mobile-cta-bar { display: flex; }
  .wa-float { bottom: 84px; }
  .footer { padding-bottom: 6rem; }
  .founder-portrait { float: none; display: block; margin: 0 auto 1.4rem; }
}

/* ── Nav CTA: gentle pulse to draw the eye (stops after ~3 cycles) ── */
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(196,151,58,0.45); }
  60%      { box-shadow: 0 0 0 9px rgba(196,151,58,0); }
}
.nav-cta { animation: ctaPulse 2.4s var(--ease) 1.5s 3; }

/* ── Reduced motion: kill all decorative animation ── */
@media (prefers-reduced-motion: reduce) {
  .hero-glow, .hero h1 em, .nav-cta { animation: none; }
  .scroll-progress { transition: none; }
  .card-grid > [data-reveal], .card-grid > .card { transition-delay: 0ms; }
}

/* ============================================================
   TOGGLES & ACCORDIONS (About restructure) — beige, homogeneous
   ============================================================ */

/* Duo toggle row: Our Approach + Get in touch */
.toggle-duo {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem;
  margin-top: var(--space-md);
  align-items: start;
}
.toggle-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
}
.toggle-panel > summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.3rem 1.6rem;
  font-family: var(--serif); font-size: 1.3rem; color: var(--navy);
  transition: background 0.2s var(--ease);
}
.toggle-panel > summary::-webkit-details-marker { display: none; }
.toggle-panel > summary:hover { background: var(--cream); }
.toggle-body { padding: 0 1.6rem 1.6rem; }
.toggle-body p { font-size: 0.95rem; line-height: 1.7; color: var(--text-light); }

.toggle-link { display: block; text-decoration: none; color: inherit; transition: transform 0.2s var(--ease); }
.toggle-link:hover { transform: translateY(-2px); background: var(--cream); }
.toggle-link-inner { padding: 1.3rem 1.6rem; display: flex; align-items: center; justify-content: space-between; font-family: var(--serif); font-size: 1.3rem; color: var(--navy); }

.founder-bios { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: var(--space-md); }
.founder-bio-block { padding: 1.5rem; background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--gold); }
.founder-bio-block h3 { font-size: 1.4rem; color: var(--navy); margin-bottom: 0.6rem; }
.founder-bio-block h3 span { font-family: var(--sans); font-size: 0.85rem; color: var(--text-light); font-weight: 400; display: block; margin-top: 0.2rem; }
.founder-bio-block p { margin-bottom: 0.8rem; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }
@media (max-width: 780px) { .founder-bios { grid-template-columns: 1fr; } }

.hero-sm .hero-content { max-width: 780px; margin-left: 0; margin-right: auto; padding-left: var(--space-md); padding-right: var(--space-md); text-align: left; }
@media (max-width: 900px) { .hero-sm .hero-content { margin-left: auto; margin-right: auto; } }
.hero:not(.hero-sm) .hero-content { max-width: 780px; margin-left: 0; margin-right: auto; padding-left: var(--space-md); }
@media (max-width: 900px) { .hero:not(.hero-sm) .hero-content { margin-right: auto; margin-left: auto; } }

/* +/− icon */
.toggle-icon { position: relative; width: 16px; height: 16px; flex-shrink: 0; }
.toggle-icon::before, .toggle-icon::after {
  content: ''; position: absolute; background: var(--gold);
  transition: transform 0.25s var(--ease);
}
.toggle-icon::before { top: 7px; left: 0; width: 16px; height: 2px; }
.toggle-icon::after  { left: 7px; top: 0; width: 2px; height: 16px; }
details[open] > summary .toggle-icon::after { transform: scaleY(0); }

/* Mini numbered steps (approach summary) */
.mini-steps { margin: 1rem 0 0 0; counter-reset: ms; list-style: none; }
.mini-steps li {
  position: relative; padding: 0.55rem 0 0.55rem 2.2rem;
  font-size: 0.9rem; line-height: 1.6; color: var(--text-light);
  border-bottom: 1px solid var(--line);
}
.mini-steps li:last-child { border-bottom: none; }
.mini-steps li::before {
  counter-increment: ms; content: counter(ms);
  position: absolute; left: 0; top: 0.5rem;
  width: 1.5rem; height: 1.5rem; border: 1.5px solid var(--gold);
  color: var(--gold-text); font-family: var(--serif); font-size: 0.8rem;
  display: flex; align-items: center; justify-content: center;
}
.mini-steps strong { color: var(--navy); }

/* Founder accordion — beige, name clickable */
.founder {
  background: var(--cream);
  border: 1px solid var(--line);
  margin-bottom: 1.1rem;
  transition: border-color 0.25s var(--ease);
}
.founder[open] { border-color: var(--gold); }
.founder > summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 1.2rem;
  padding: 1.2rem 1.5rem;
}
.founder > summary::-webkit-details-marker { display: none; }
.founder-portrait-sm {
  width: 64px; height: 64px; flex-shrink: 0;
  object-fit: cover; object-position: top;
  border: 1px solid var(--gold); padding: 3px; background: rgba(196,151,58,0.08);
}
.founder-id { flex: 1; display: flex; flex-direction: column; gap: 0.2rem; }
.founder-name {
  font-family: var(--serif); font-size: 1.4rem; color: var(--navy);
  line-height: 1.1;
}
.founder[open] .founder-name { color: var(--gold-text); }
.founder-role {
  font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--gold-text); font-weight: 600;
}
.founder-body { padding: 0 1.5rem 1.5rem; }
.founder-body p { font-size: 0.94rem; line-height: 1.7; color: var(--text-light); }
.founder-focus { margin-top: 1rem; font-size: 0.8rem; color: var(--gold-text) !important; }
.founder-linkedin { margin-top: 1rem; }

@media (max-width: 680px) {
  .toggle-duo { grid-template-columns: 1fr; }
  .founder > summary { gap: 0.9rem; padding: 1rem; }
  .founder-portrait-sm { width: 52px; height: 52px; }
  .founder-name { font-size: 1.2rem; }
}

/* ============================================================
   TIMELINE FIX + BOOKING TOGGLE (client feedback batch)
   ============================================================ */
/* Remove the dangling connector after the last stage */
.tl-step:last-child .tl-line,
.tl-line.last { display: none; }
/* Align the first line of each step's text with its number box */
.tl-body { padding-top: 0.15rem; }
.tl-label { margin-top: 0; }

/* Booking toggle: the <summary> is the button; hide the marker */
.booking-toggle { margin-top: 0.9rem; }
.booking-toggle > summary {
  list-style: none; display: inline-flex; align-items: center;
  cursor: pointer; width: auto;
}
.booking-toggle > summary::-webkit-details-marker { display: none; }
.booking-toggle > summary::marker { content: ''; }

/* ── Details/summary keyboard-focus indicator ── */
details > summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* ── Submit button loading state ── */
.btn.is-loading { opacity: 0.7; cursor: wait; pointer-events: none; }
.btn.is-loading::after {
  content: ''; display: inline-block;
  width: 12px; height: 12px; margin-left: 0.6rem;
  border: 2px solid currentColor; border-right-color: transparent;
  border-radius: 50%; vertical-align: -2px;
  animation: btnSpin 0.7s linear infinite;
}
@keyframes btnSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .btn.is-loading::after { animation: none; }
}

/* ── Narrow mobile: stack button groups ── */
@media (max-width: 540px) {
  .btn-group { flex-direction: column; align-items: stretch; }
  .btn-group .btn { width: 100%; }
}

/* ── Contact page: methods grid ── */
.contact-methods {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem;
  margin-top: 1.5rem;
}
.contact-method {
  padding: 1.6rem 1.8rem;
  border: 1px solid var(--line);
  background: var(--white);
}
.contact-method h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--navy);
  margin: 0 0 0.5rem;
}
.contact-method p { margin: 0 0 0.4rem; font-size: 1rem; }
.contact-method p a {
  color: var(--gold-text);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}
.contact-method p a:hover { border-bottom-color: var(--gold); }
.contact-note {
  display: block;
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.5;
}
@media (max-width: 680px) {
  .contact-methods { grid-template-columns: 1fr; gap: 1rem; }
  .contact-method { padding: 1.3rem 1.4rem; }
}

/* ============================================================
   CONTACT CHOOSER (client vs expert path)
   ============================================================ */
.chooser-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
}
.chooser-card {
  display: flex;
  flex-direction: column;
  padding: 1.8rem 1.8rem 1.6rem;
  background: var(--cream);
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.chooser-card:hover, .chooser-card:focus-visible {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -18px rgba(10,21,40,0.35);
  outline: none;
}
.chooser-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-text);
  font-weight: 600;
  margin-bottom: 0.6rem;
}
.chooser-card h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--navy);
  margin: 0 0 0.6rem;
  line-height: 1.2;
}
.chooser-card p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-light);
  margin-bottom: 1.2rem;
}
.chooser-cta {
  margin-top: auto;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-text);
  letter-spacing: 0.02em;
}
@media (max-width: 680px) {
  .chooser-grid { grid-template-columns: 1fr; gap: 1rem; }
  .chooser-card { padding: 1.4rem 1.4rem 1.2rem; }
}

/* ============================================================
   FOUNDER CARDS + MODAL (per founder meeting: Marc left, Alex right, modal on click)
   ============================================================ */
.founder-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
  margin-top: 1.5rem;
}
.founder-card {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.4rem 1.6rem;
  background: var(--cream);
  border: 1px solid var(--line);
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.founder-card:hover, .founder-card:focus-visible {
  border-color: var(--gold);
  transform: translateY(-2px);
  outline: none;
}
.founder-card .founder-cta {
  margin-left: auto;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-text);
  font-weight: 600;
  white-space: nowrap;
}
@media (max-width: 680px) {
  .founder-grid { grid-template-columns: 1fr; gap: 1rem; }
  .founder-card { padding: 1rem 1.2rem; gap: 0.9rem; }
  .founder-card .founder-cta { display: none; }
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 21, 40, 0.72);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9000;
  padding: 1.5rem;
  animation: modal-fade 0.2s var(--ease);
}
.modal-overlay[hidden] { display: none; }
@keyframes modal-fade { from { opacity: 0; } to { opacity: 1; } }
.modal-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--gold);
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.2rem 2.4rem 2rem;
  animation: modal-lift 0.25s var(--ease);
}
@keyframes modal-lift { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-close {
  position: absolute;
  top: 0.8rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: var(--text-light);
  cursor: pointer;
  padding: 0.2rem 0.6rem;
  transition: color 0.2s var(--ease);
}
.modal-close:hover { color: var(--gold-text); }
.modal-title { font-family: var(--serif); font-size: 2rem; color: var(--navy); margin: 0 0 0.3rem; }
.modal-role { font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-text); font-weight: 600; margin: 0 0 1.2rem; }
.modal-body p { font-size: 0.95rem; line-height: 1.7; color: var(--text-light); }
body.modal-open { overflow: hidden; }
@media (max-width: 680px) {
  .modal-card { padding: 1.6rem 1.4rem 1.4rem; }
  .modal-title { font-size: 1.6rem; }
}

/* Odoo iframe embeds — crop header image + trailing whitespace, no scrollbar */
.odoo-embed { overflow: hidden; margin: 0 auto; }
.odoo-embed iframe { width: 100%; border: 0; background: transparent; display: block; margin-top: -100px; }
.odoo-embed-experts { max-width: 800px; height: 1700px; }
.odoo-embed-experts iframe { height: 1850px; margin-top: -150px; }
.odoo-embed-clients { max-width: 800px; height: 1550px; }
.odoo-embed-clients iframe { height: 1700px; margin-top: -150px; }
@media (max-width: 800px) {
  .odoo-embed-experts { height: 1900px; }
  .odoo-embed-experts iframe { height: 2050px; }
  .odoo-embed-clients { height: 1750px; }
  .odoo-embed-clients iframe { height: 1900px; }
}
