/* ==========================================================================
   APFRA — main.css · Design system per blueprint §3 (navy / gold / bone)
   Hand-authored, no framework, no build step.
   ========================================================================== */

:root{
  --navy:        #0D1B3E;
  --navy-mid:    #162754;
  --navy-deep:   #08122B;
  --gold:        #C8922A;
  --gold-light:  #F3C75B;
  --gold-pale:   #FDF3E0;
  --gold-ink:    #7A5410;
  --white:       #FFFFFF;
  --off-white:   #F8F6F2;
  --slate:       #4A5878;
  --text-dark:   #1A1A2E;
  --text-mid:    #3D4C6B;
  --line:        #E4E0D8;
  --accent-teal:     #14505C;
  --accent-green:    #2A6E4E;
  --accent-burgundy: #7A1D2E;
  --accent-purple:   #4A2D7A;
  --shadow-sm: 0 1px 3px rgba(13,27,62,.08);
  --shadow-md: 0 6px 24px rgba(13,27,62,.10);
  --shadow-lg: 0 18px 48px rgba(13,27,62,.14);
  --radius:    4px;
  --radius-lg: 8px;
  --maxw:      1200px;
  --gutter:    clamp(20px, 5vw, 64px);
  --ff-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --ff-body:    "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ff-mono:    "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

/* ---- Reset-ish ---- */
*,*::before,*::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth; }
body{
  margin:0; font-family:var(--ff-body); font-size:16px; line-height:1.7;
  color:var(--text-dark); background:var(--off-white);
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; height:auto; display:block; }
a{ color:var(--navy-mid); text-decoration:none; }
a:hover{ text-decoration:underline; }
h1,h2,h3,h4{ margin:0 0 .5em; line-height:1.2; }
p{ margin:0 0 1em; }
ul{ margin:0 0 1em; padding-left:1.2em; }

@media (prefers-reduced-motion: reduce){
  *{ animation:none!important; transition:none!important; scroll-behavior:auto!important; }
}

/* ---- Typography scale ---- */
.display,h1.display{ font-family:var(--ff-display); font-weight:700; font-size:clamp(2.2rem,5vw,3.6rem); letter-spacing:-.01em; }
.h1{ font-family:var(--ff-display); font-weight:700; font-size:clamp(2.2rem,5vw,3.6rem); letter-spacing:-.01em; }
h2,.h2{ font-family:var(--ff-display); font-weight:600; font-size:clamp(1.7rem,3.2vw,2.4rem); letter-spacing:-.005em; }
h3,.h3{ font-family:var(--ff-body); font-weight:700; font-size:1.15rem; }
.eyebrow{ font-family:var(--ff-mono); font-weight:500; font-size:.72rem; text-transform:uppercase; letter-spacing:.14em; color:var(--gold-ink); margin:0 0 .5rem; }
.eyebrow.on-navy{ color:var(--gold-light); }
.small{ font-size:.85rem; line-height:1.6; }
.mono{ font-family:var(--ff-mono); letter-spacing:.04em; font-size:.82rem; }
.lead{ font-size:1.12rem; color:var(--text-mid); }

/* ---- Layout ---- */
.container{ width:100%; max-width:var(--maxw); margin-inline:auto; padding-inline:var(--gutter); }
.section{ padding-block:clamp(56px,8vw,112px); }
.section--tight{ padding-block:clamp(40px,5vw,72px); }
.section--white{ background:var(--white); }
.section--bone{ background:var(--off-white); }
.section--navy{ background:var(--navy); color:var(--white); }
.section--gold-pale{ background:var(--gold-pale); }
.section--navy h2,.section--navy h3{ color:var(--white); }
.grid{ display:grid; gap:clamp(20px,3vw,32px); }
.cols-2{ grid-template-columns:repeat(2,1fr); }
.cols-3{ grid-template-columns:repeat(3,1fr); }
.cols-4{ grid-template-columns:repeat(4,1fr); }
@media (max-width:1024px){ .cols-4{ grid-template-columns:repeat(2,1fr); } .cols-3{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:768px){ .cols-2,.cols-3,.cols-4{ grid-template-columns:1fr; } }

/* Gold hairline rule under eyebrows / section heads */
.rule{ width:56px; height:2px; background:var(--gold); border:0; margin:0 0 1.4rem; }
.rule.center{ margin-inline:auto; }
.section-head{ margin-bottom:clamp(28px,4vw,48px); }
.section-head.center{ text-align:center; }

/* Divider stripe navy→gold→navy */
.stripe{ height:6px; background:linear-gradient(90deg,var(--navy),var(--gold),var(--navy)); }

/* ---- Buttons ---- */
.btn{ display:inline-flex; align-items:center; gap:.5rem; font-family:var(--ff-body); font-weight:600; font-size:.95rem; padding:.8rem 1.5rem; border-radius:var(--radius); border:2px solid transparent; cursor:pointer; transition:180ms ease; text-decoration:none; }
.btn:hover{ text-decoration:none; }
.btn-primary{ background:var(--gold); color:var(--navy); border-color:var(--gold); }
.btn-primary:hover{ background:var(--gold-light); border-color:var(--gold-light); }
.btn-secondary{ background:transparent; color:var(--navy); border-color:var(--navy); }
.btn-secondary:hover{ background:var(--navy); color:var(--white); }
.btn-ghost-light{ background:transparent; color:var(--white); border-color:rgba(255,255,255,.5); }
.btn-ghost-light:hover{ background:rgba(255,255,255,.1); border-color:var(--white); }
.btn-block{ width:100%; justify-content:center; }

/* ---- Cards ---- */
.card{ background:var(--white); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow-sm); padding:clamp(20px,3vw,28px); transition:180ms ease; }
.card:hover{ box-shadow:var(--shadow-md); transform:translateY(-2px); }
.card .icon{ color:var(--gold-ink); margin-bottom:.75rem; }
.card h3{ color:var(--navy); }
.card ul{ padding-left:1.1em; }
.card ul li{ margin-bottom:.3em; color:var(--text-mid); }
.card-link{ display:inline-block; margin-top:.5rem; font-weight:600; color:var(--gold-ink); font-size:.9rem; }

/* Numbered service/step card big background number */
.numbered{ position:relative; overflow:hidden; }
.numbered .bignum{ position:absolute; top:-.2em; right:.1em; font-family:var(--ff-mono); font-size:5rem; font-weight:500; color:var(--gold); opacity:.12; line-height:1; pointer-events:none; }

/* ---- Trust bar ---- */
.trust-bar{ display:grid; grid-template-columns:repeat(4,1fr); gap:1px; background:var(--line); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; }
.trust-tile{ background:var(--white); padding:1.25rem 1rem; text-align:center; }
.trust-tile .code{ font-family:var(--ff-display); font-weight:700; font-size:1.6rem; color:var(--gold-ink); }
.trust-tile .label{ font-size:.78rem; color:var(--text-mid); margin-top:.25rem; }
@media (max-width:768px){ .trust-bar{ grid-template-columns:repeat(2,1fr); } }

/* ---- Chips ---- */
.chips{ display:flex; flex-wrap:wrap; gap:.5rem; list-style:none; padding:0; margin:0; }
.chip{ display:inline-block; padding:.4rem .85rem; border:1px solid var(--line); border-radius:100px; font-size:.85rem; background:var(--white); color:var(--text-mid); }
.section--navy .chip{ background:rgba(255,255,255,.06); border-color:rgba(255,255,255,.2); color:var(--white); }

/* ---- Hero ---- */
.hero{ position:relative; background:linear-gradient(135deg,var(--navy) 0%,var(--navy-mid) 50%,var(--navy-deep) 100%); background-size:220% 220%; color:var(--white); overflow:hidden; animation:heroShift 20s ease-in-out infinite; }
.hero::after{ content:''; position:absolute; top:0; right:0; width:min(38vw,420px); aspect-ratio:1; background:var(--gold); opacity:.16; clip-path:polygon(100% 0,100% 100%,0 0); pointer-events:none; z-index:1; }
.hero .container{ position:relative; z-index:2; padding-block:clamp(72px,11vw,150px); }
@keyframes heroShift{ 0%{ background-position:0% 50%; } 50%{ background-position:100% 50%; } 100%{ background-position:0% 50%; } }

/* Animated hero background layer (home) */
.hero-anim{ position:absolute; inset:0; overflow:hidden; pointer-events:none; z-index:0; }
.hero-shape{ position:absolute; border-radius:50%; will-change:transform; }
/* gold dotted-grid orb */
.hero-shape.dots{ width:300px; height:300px; background-image:radial-gradient(var(--gold-light) 2px, transparent 2.5px); background-size:20px 20px; opacity:.18;
  -webkit-mask:radial-gradient(circle, #000 60%, transparent 62%); mask:radial-gradient(circle, #000 60%, transparent 62%); }
.hero-shape.dots.a{ top:-70px; left:-50px; animation:floatA 16s ease-in-out infinite; }
.hero-shape.dots.b{ bottom:-90px; right:8%; width:220px; height:220px; animation:floatB 19s ease-in-out infinite; }
/* striped ring */
.hero-shape.ring{ width:260px; height:260px; border-radius:50%; background:repeating-linear-gradient(45deg, rgba(243,199,91,.5) 0 3px, transparent 3px 11px);
  -webkit-mask:radial-gradient(circle, transparent 40%, #000 41%, #000 49%, transparent 50%); mask:radial-gradient(circle, transparent 40%, #000 41%, #000 49%, transparent 50%);
  opacity:.5; top:18%; right:16%; animation:floatB 22s ease-in-out infinite; }
/* soft brand-blue orb (from the FRA flyer palette) */
.hero-shape.orb{ width:340px; height:340px; background:radial-gradient(circle at 35% 35%, rgba(46,123,246,.55), rgba(46,123,246,0) 70%); opacity:.5; bottom:-120px; left:12%; animation:floatA 24s ease-in-out infinite; }
@keyframes floatA{ 0%,100%{ transform:translate3d(0,0,0); } 50%{ transform:translate3d(24px,-28px,0); } }
@keyframes floatB{ 0%,100%{ transform:translate3d(0,0,0); } 50%{ transform:translate3d(-22px,26px,0); } }
@media (prefers-reduced-motion: reduce){
  .hero{ animation:none; }
  .hero-shape{ animation:none!important; }
}
.hero h1{ color:var(--white); max-width:20ch; }
.hero .lead{ color:rgba(255,255,255,.82); max-width:60ch; }
.hero-cta{ display:flex; flex-wrap:wrap; gap:.85rem; margin-top:1.75rem; }
.hero-page .container{ padding-block:clamp(56px,8vw,96px); }

/* ---- Stat tiles ---- */
.stat-tile{ text-align:center; padding:1.5rem 1rem; }
.stat-tile .num{ font-family:var(--ff-display); font-weight:700; font-size:2.2rem; color:var(--gold-ink); }
.stat-tile .cap{ font-size:.85rem; color:var(--text-mid); }

/* ---- Step timeline ---- */
.timeline{ list-style:none; padding:0; margin:0; position:relative; }
.timeline li{ position:relative; padding:0 0 2rem 3.5rem; }
.timeline li::before{ content:attr(data-n); position:absolute; left:0; top:0; width:2.4rem; height:2.4rem; display:flex; align-items:center; justify-content:center; background:var(--navy); color:var(--gold-light); font-family:var(--ff-mono); font-size:.85rem; border-radius:50%; }
.timeline li::after{ content:''; position:absolute; left:1.2rem; top:2.4rem; bottom:0; width:2px; background:var(--gold); opacity:.35; }
.timeline li:last-child::after{ display:none; }
.timeline h3{ color:var(--navy); margin-bottom:.25rem; }

/* ---- Accordion ---- */
.accordion details{ border:1px solid var(--line); border-radius:var(--radius); margin-bottom:.75rem; background:var(--white); }
.accordion summary{ cursor:pointer; padding:1rem 1.25rem; font-weight:600; color:var(--navy); list-style:none; display:flex; justify-content:space-between; align-items:center; }
.accordion summary::-webkit-details-marker{ display:none; }
.accordion summary::after{ content:'+'; color:var(--gold-ink); font-size:1.3rem; }
.accordion details[open] summary::after{ content:'–'; }
.accordion .body{ padding:0 1.25rem 1.25rem; color:var(--text-mid); }

/* ---- CTA band ---- */
.cta-band{ background:var(--navy); color:var(--white); text-align:center; }
.cta-band h2{ color:var(--white); }
.cta-band .rule{ margin-inline:auto; }

/* ---- Callout ---- */
.callout{ background:var(--gold-pale); border-left:4px solid var(--gold); padding:1.25rem 1.5rem; border-radius:var(--radius); }
.callout.navy{ background:var(--navy-mid); border-color:var(--gold); color:#fff; }
.callout strong{ color:var(--gold-ink); }
.callout.navy strong{ color:var(--gold-light); }
.notice-strong{ background:var(--accent-green); color:#fff; padding:1rem 1.25rem; border-radius:var(--radius); font-weight:600; }

/* ---- Avatars (team) ---- */
.avatar{ width:64px; height:64px; border-radius:50%; background:var(--navy); color:var(--gold-light); display:flex; align-items:center; justify-content:center; font-family:var(--ff-display); font-weight:700; font-size:1.5rem; flex-shrink:0; }
.team-card{ display:flex; gap:1rem; align-items:center; }
.team-card .role{ font-size:.85rem; color:var(--text-mid); }

/* ---- Forms ---- */
.form-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:1rem 1.25rem; }
@media (max-width:768px){ .form-grid{ grid-template-columns:1fr; } }
.field{ display:flex; flex-direction:column; gap:.35rem; }
.field.col-span-2{ grid-column:1 / -1; }
.field label{ font-size:.85rem; font-weight:600; color:var(--navy); }
.field .req{ color:var(--accent-burgundy); }
.field input,.field select,.field textarea{ font-family:inherit; font-size:.95rem; padding:.7rem .8rem; border:1px solid var(--line); border-radius:var(--radius); background:var(--white); color:var(--text-dark); width:100%; }
.field input:focus,.field select:focus,.field textarea:focus{ outline:2px solid var(--gold); outline-offset:1px; border-color:var(--gold); }
.field textarea{ min-height:120px; resize:vertical; }
.field .err{ color:var(--accent-burgundy); font-size:.8rem; }
.field.has-error input,.field.has-error select,.field.has-error textarea{ border-color:var(--accent-burgundy); }
.field-inline{ display:flex; gap:.5rem; align-items:flex-start; }
.field-inline input{ width:auto; margin-top:.2rem; }
.hp{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }
fieldset{ border:1px solid var(--line); border-radius:var(--radius); padding:.75rem 1rem; }
fieldset legend{ font-size:.85rem; font-weight:600; color:var(--navy); padding:0 .4rem; }
.checks{ display:flex; flex-wrap:wrap; gap:.75rem; }
.checks label{ font-weight:400; font-size:.9rem; display:flex; gap:.35rem; align-items:center; }

/* ---- Flash / toast ---- */
.flash{ padding:1rem 1.25rem; border-radius:var(--radius); margin-bottom:1.25rem; }
.flash-success{ background:#eaf5ee; border:1px solid var(--accent-green); color:#1c4d34; }
.flash-error{ background:#fbeaed; border:1px solid var(--accent-burgundy); color:#5f1622; }

/* ---- Breadcrumb ---- */
.breadcrumb{ font-size:.82rem; color:var(--text-mid); padding:1rem 0; }
.breadcrumb a{ color:var(--gold-ink); }
.breadcrumb span{ margin:0 .4rem; opacity:.5; }

/* ---- Header / nav ---- */
.site-header{ position:sticky; top:0; z-index:50; background:var(--navy); color:#fff; box-shadow:var(--shadow-sm); }
.site-header .container{ display:flex; align-items:center; justify-content:space-between; gap:1rem; min-height:64px; }
.brand{ display:flex; align-items:center; gap:.6rem; color:#fff; font-family:var(--ff-display); font-weight:700; font-size:1.1rem; }
.brand:hover{ text-decoration:none; }
.brand .mark{ width:34px; height:34px; border:2px solid var(--gold); color:var(--gold-light); display:flex; align-items:center; justify-content:center; border-radius:4px; font-size:.9rem; }
.brand-logo{ width:44px; height:44px; border-radius:50%; background:#fff; padding:3px; object-fit:contain; box-shadow:0 1px 4px rgba(0,0,0,.25); flex-shrink:0; }
.brand small{ display:block; font-family:var(--ff-mono); font-size:.6rem; letter-spacing:.12em; color:var(--gold-light); font-weight:400; }
.main-nav{ display:flex; align-items:center; gap:.25rem; }
.main-nav a{ color:rgba(255,255,255,.9); padding:.5rem .7rem; font-size:.92rem; border-radius:var(--radius); }
.main-nav a:hover{ background:rgba(255,255,255,.08); color:#fff; text-decoration:none; }
.has-drop{ position:relative; }
.has-drop > button{ background:none; border:0; color:rgba(255,255,255,.9); font:inherit; font-size:.92rem; cursor:pointer; padding:.5rem .7rem; border-radius:var(--radius); }
.has-drop > button:hover{ background:rgba(255,255,255,.08); color:#fff; }
.dropdown{ position:absolute; top:100%; left:0; min-width:230px; background:#fff; border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow-md); padding:.4rem; display:none; }
.has-drop:hover .dropdown,.has-drop:focus-within .dropdown{ display:block; }
.dropdown a{ display:block; color:var(--text-dark); padding:.55rem .75rem; font-size:.9rem; }
.dropdown a:hover{ background:var(--gold-pale); color:var(--navy); }
.nav-cta{ display:flex; align-items:center; gap:.6rem; }
.lang-switch{ display:inline-flex; border:1px solid rgba(255,255,255,.35); border-radius:100px; overflow:hidden; font-size:.8rem; }
.lang-switch a{ padding:.3rem .7rem; color:rgba(255,255,255,.8); }
.lang-switch a.active{ background:var(--gold); color:var(--navy); font-weight:600; }
.lang-switch a:hover{ text-decoration:none; }
.nav-toggle{ display:none; background:none; border:0; color:#fff; cursor:pointer; padding:.4rem; }
@media (max-width:1024px){
  .main-nav,.nav-cta .btn,.lang-switch{ display:none; }
  .nav-toggle{ display:block; }
}

/* Mobile drawer */
.drawer{ position:fixed; inset:0; background:var(--navy); z-index:100; padding:1.5rem; overflow-y:auto; transform:translateX(100%); transition:transform 220ms ease; }
.drawer.open{ transform:translateX(0); }
.drawer a{ color:#fff; display:block; padding:.75rem 0; border-bottom:1px solid rgba(255,255,255,.1); font-size:1.05rem; }
.drawer .drawer-close{ background:none; border:0; color:#fff; font-size:1.5rem; float:right; cursor:pointer; }
.drawer details summary{ color:var(--gold-light); padding:.75rem 0; cursor:pointer; }

/* ---- Footer ---- */
.site-footer{ background:var(--navy-deep); color:rgba(255,255,255,.75); padding-block:clamp(40px,6vw,72px) 0; font-size:.9rem; }
.site-footer h4{ color:#fff; font-size:.8rem; text-transform:uppercase; letter-spacing:.1em; font-family:var(--ff-mono); }
.site-footer a{ color:rgba(255,255,255,.75); }
.site-footer a:hover{ color:var(--gold-light); }
.footer-grid{ display:grid; grid-template-columns:1.5fr 1fr 1fr 1fr; gap:2rem; padding-bottom:2.5rem; }
@media (max-width:768px){ .footer-grid{ grid-template-columns:1fr 1fr; } }
.footer-list{ list-style:none; padding:0; margin:0; }
.footer-list li{ margin-bottom:.5rem; }
.footer-bottom{ border-top:1px solid rgba(255,255,255,.12); padding:1.25rem 0; font-size:.8rem; display:flex; flex-wrap:wrap; justify-content:space-between; gap:.5rem; color:rgba(255,255,255,.55); }

/* ---- Utilities ---- */
.text-center{ text-align:center; }
.mt-0{ margin-top:0; } .mb-0{ margin-bottom:0; }
.muted{ color:var(--text-mid); }
.skip-link{ position:absolute; left:-9999px; top:0; background:var(--gold); color:var(--navy); padding:.6rem 1rem; z-index:200; }
.skip-link:focus{ left:0; }
:focus-visible{ outline:2px solid var(--gold); outline-offset:2px; }
.section--navy :focus-visible{ outline-color:var(--gold-light); }

/* Reveal on scroll — only hidden when JS is active (html.js), so content is
   always visible for no-JS users and crawlers. */
.js .reveal{ opacity:0; transform:translateY(16px); transition:opacity .4s ease, transform .4s ease; }
.js .reveal.in{ opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce){ .js .reveal{ opacity:1; transform:none; } }

/* ---- Floating WhatsApp button (bottom-left) ---- */
.wa-float{
  position:fixed; left:20px; bottom:20px; z-index:60;
  display:inline-flex; align-items:center; gap:.55rem;
  height:56px; padding:0 16px; border-radius:32px;
  background:#25D366; color:#fff; font-weight:600; font-size:.92rem;
  box-shadow:0 8px 24px rgba(0,0,0,.28); text-decoration:none;
  max-width:56px; overflow:hidden; transition:max-width .28s ease, background .18s ease;
}
.wa-float:hover,.wa-float:focus-visible{ background:#1ebe5b; text-decoration:none; max-width:280px; }
.wa-float .wa-ico{ width:32px; height:32px; flex:0 0 32px; display:block; }
.wa-float .wa-label{ white-space:nowrap; }
/* gentle attention pulse */
.wa-float::after{ content:''; position:absolute; inset:0; border-radius:32px; box-shadow:0 0 0 0 rgba(37,211,102,.5); animation:waPulse 2.6s ease-out infinite; pointer-events:none; }
@keyframes waPulse{ 0%{ box-shadow:0 0 0 0 rgba(37,211,102,.5);} 70%{ box-shadow:0 0 0 16px rgba(37,211,102,0);} 100%{ box-shadow:0 0 0 0 rgba(37,211,102,0);} }
@media (prefers-reduced-motion: reduce){ .wa-float{ transition:none; } .wa-float::after{ animation:none; } }
@media (max-width:600px){ .wa-float{ left:16px; bottom:16px; } .wa-float:hover,.wa-float:focus-visible{ max-width:56px; } }
/* keep footer content clear of the floating button */
.site-footer .footer-bottom{ padding-bottom:88px; }

/* Placeholder image blocks */
.ph-img{ background:linear-gradient(135deg,var(--navy),var(--navy-mid)); border:1px solid var(--line); border-radius:var(--radius); display:flex; align-items:center; justify-content:center; color:rgba(255,255,255,.4); font-family:var(--ff-mono); font-size:.7rem; letter-spacing:.1em; text-align:center; aspect-ratio:16/9; }
.ph-img.square{ aspect-ratio:1; }
.ph-img.wide{ aspect-ratio:21/9; }
