/* ==========================================================================
   Atlas Audit & Advisory — styles.css
   Design system + components for a bilingual (TH/EN) static site.
   Palette: navy foundation · teal interactive accent · green punctuation.
   ========================================================================== */

:root {
  /* Brand colors (from logo) */
  --navy:       #14274E;   /* base dark surface, headings */
  --navy-900:   #0E1D3C;   /* hero deepen */
  --navy-700:   #1E3566;   /* lighter navy for borders on dark */
  --ink:        #22314F;   /* body text on white (~11:1) */
  --teal:       #0FA098;   /* interactive accent: links, icons, hover */
  --teal-deep:  #0A6E67;   /* button fill w/ white text (AA) */
  --teal-soft:  #E1F3F1;   /* light teal tint */
  --green:      #34B24A;   /* success / positive marks, gradient end */
  --green-deep: #1E7A2F;

  /* Neutrals */
  --bg:         #FFFFFF;
  --bg-alt:     #F5F7FA;   /* section alternation */
  --bg-tint:    #EEF2F7;
  --line:       #E2E8F0;   /* borders / dividers */
  --muted:      #5B6B85;   /* secondary text on white */
  --muted-lite: #8A98AE;

  --brand-gradient: linear-gradient(100deg, #14274E 0%, #0FA098 55%, #34B24A 100%);
  --brand-gradient-bright: linear-gradient(100deg, #2BD0C4 0%, #34B24A 100%);

  /* Sizing */
  --container: 1180px;
  --radius:    12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(20,39,78,.06), 0 1px 3px rgba(20,39,78,.05);
  --shadow-md: 0 8px 24px rgba(20,39,78,.08), 0 2px 6px rgba(20,39,78,.05);
  --shadow-lg: 0 24px 60px rgba(20,39,78,.14), 0 6px 16px rgba(20,39,78,.08);
  --header-h:  88px;

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ------------------------------ Reset / base ---------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: "IBM Plex Sans Thai", "IBM Plex Sans", system-ui, -apple-system,
               "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 1.0625rem;         /* 17px */
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
:lang(th) { line-height: 1.85; }  /* Thai needs looser leading */

img { max-width: 100%; display: block; height: auto; }
a { color: var(--teal-deep); text-decoration: none; }
a:hover { color: #0C837C; } /* darker teal — clears WCAG AA (4.5:1) on white */
button { font-family: inherit; }

h1, h2, h3, h4 {
  color: var(--navy);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
  text-wrap: balance;   /* even line lengths — stops a lone word orphaning */
}
:lang(th) h1, :lang(th) h2, :lang(th) h3 { line-height: 1.35; letter-spacing: 0; }
p { margin: 0 0 1rem; text-wrap: pretty; }   /* avoids one-word last lines */

/* Keep compound terms that the Thai segmenter over-splits on one line */
.nb { white-space: nowrap; }

/* Language visibility: only ever HIDE the inactive language so the visible
   element keeps its natural display type (inline stays inline, block block). */
.en { display: none; }
html[data-lang="en"] .en { display: revert; }
html[data-lang="en"] .th { display: none; }

/* Utility */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -70px; z-index: 100;
  background: var(--navy); color: #fff; padding: .6rem 1.1rem; border-radius: var(--radius-sm);
  font-weight: 600; transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; color: #fff; outline: 3px solid var(--teal); outline-offset: 2px; }
main:focus { outline: none; }
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section--alt { background: var(--bg-alt); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8rem; font-weight: 600; color: var(--teal-deep);
  text-transform: uppercase; letter-spacing: .12em; margin-bottom: .9rem;
}
:lang(th).eyebrow, :lang(th) .eyebrow { text-transform: none; letter-spacing: .02em; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--brand-gradient); border-radius: 2px; }

.section-head { max-width: 880px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.section-head p { color: var(--muted); font-size: 1.075rem; margin: 0; }

/* ------------------------------ Buttons --------------------------------- */
.btn {
  --_bg: var(--teal-deep);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .8rem 1.5rem; border-radius: 999px; border: 1.5px solid transparent;
  font-size: 1rem; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .2s var(--ease),
              background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.btn--primary { background: var(--_bg); color: #fff; box-shadow: 0 6px 18px rgba(10,110,103,.28); }
.btn--primary:hover { color: #fff; background: #085a54; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(10,110,103,.34); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { color: var(--navy); border-color: var(--teal); background: var(--teal-soft); transform: translateY(-2px); }
.btn--on-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn--on-dark:hover { color: #fff; border-color: #fff; background: rgba(255,255,255,.1); transform: translateY(-2px); }
.btn--sm { padding: .55rem 1.05rem; font-size: .92rem; }
.btn--block { width: 100%; }

.textlink { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; color: var(--teal-deep); }
.textlink svg, .textlink .arrow { transition: transform .2s var(--ease); }
.textlink:hover .arrow { transform: translateX(4px); }

/* ------------------------------ Header ---------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.9); backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); border-bottom-color: var(--line); background: rgba(255,255,255,.96); }
.nav {
  display: flex; align-items: center; gap: 1.5rem;
  height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; flex-shrink: 0; margin-right: auto; }
.brand img { height: 66px; width: auto; }
@media (max-width: 560px) { .brand img { height: 54px; } }

.nav-links { display: flex; align-items: center; gap: 1.65rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--navy); font-weight: 500; font-size: 1rem; position: relative; padding: .35rem 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--brand-gradient); border-radius: 2px; transition: width .22s var(--ease);
}
.nav-links a:hover { color: var(--teal-deep); }
.nav-links a:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: .9rem; flex-shrink: 0; }

.lang-toggle {
  display: inline-flex; align-items: center; border: 1px solid var(--line);
  border-radius: 999px; overflow: hidden; background: #fff;
}
.lang-toggle button {
  border: 0; background: transparent; color: var(--muted); cursor: pointer;
  padding: .38rem .7rem; font-size: .86rem; font-weight: 600; line-height: 1;
}
.lang-toggle button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.lang-toggle button:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; }

.nav-toggle {
  display: none; border: 1px solid var(--line); background: #fff; border-radius: 10px;
  width: 44px; height: 44px; cursor: pointer; align-items: center; justify-content: center; color: var(--navy);
}
.nav-toggle svg { width: 24px; height: 24px; }

/* Mobile menu overlay */
.mobile-menu { display: none; }

/* ------------------------------ Hero ------------------------------------ */
.hero {
  position: relative; overflow: hidden;
  background: var(--navy-900);
  color: #fff;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(4.5rem, 9vw, 7rem);
}
.hero::before { /* gradient glow, top-right */
  content: ""; position: absolute; top: -30%; right: -10%; width: 60%; height: 120%;
  background: radial-gradient(closest-side, rgba(15,160,152,.55), rgba(52,178,74,.18) 55%, transparent 75%);
  filter: blur(10px); opacity: .8; pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 2.5rem; align-items: center; }

.hero-eyebrow { color: #8ff3e6; }
.hero-eyebrow::before { background: var(--brand-gradient-bright); }
.hero h1 {
  color: #fff; font-size: clamp(2.15rem, 5.2vw, 3.4rem); line-height: 1.12; margin: 0 0 1.1rem;
  letter-spacing: -0.02em;
}
:lang(th) .hero h1 { line-height: 1.3; letter-spacing: 0; }
.hero h1 .grad {
  background: linear-gradient(100deg,#5FE3D3,#7BE38C);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { color: #cdd7e8; font-size: 1.12rem; max-width: 40ch; margin: 0 0 1.8rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 1.5rem; }
.hero-chips { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-bottom: 1.3rem; }
.hero-chips a { color: #d6def0; font-weight: 500; display: inline-flex; align-items: center; gap: .5rem; }
.hero-chips a:hover { color: #fff; }
.hero-chips svg { width: 18px; height: 18px; color: #5FE3D3; }
.hero-trust {
  display: inline-flex; align-items: center; gap: .6rem; font-size: .95rem; color: #aebbd3;
  padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.12);
}
.hero-trust svg { width: 20px; height: 20px; color: #7BE38C; flex-shrink: 0; }

/* Atlas Angle — signature gradient device */
.hero-art { position: relative; min-height: 340px; }
.atlas-angle {
  position: absolute; inset: 0; margin: auto;
  width: 300px; height: 300px;
  background: var(--brand-gradient); opacity: .9;
  clip-path: polygon(22% 0, 100% 0, 78% 100%, 0 100%);
  box-shadow: 0 30px 80px rgba(15,160,152,.35);
}
.atlas-angle::after {
  content: ""; position: absolute; inset: 0;
  background: var(--navy-900);
  clip-path: polygon(30% 12%, 88% 12%, 70% 88%, 12% 88%);
  opacity: .0;
}
.hero-art .angle-2 {
  position: absolute; inset: 0; margin: auto; width: 300px; height: 300px;
  border: 2px solid rgba(255,255,255,.18);
  clip-path: polygon(22% 0, 100% 0, 78% 100%, 0 100%);
  transform: translate(26px, 26px);
}
.hero-art .angle-label {
  position: absolute; inset: 0; display: grid; place-content: center; text-align: center; z-index: 3;
}
.hero-art .angle-label .big { font-size: 3.2rem; font-weight: 700; color: #fff; line-height: 1; }
.hero-art .angle-label .small { font-size: .85rem; color: rgba(255,255,255,.85); letter-spacing: .04em; margin-top: .4rem; }

/* ------------------------------ Trust bar ------------------------------- */
.trust-bar { background: #fff; border-bottom: 1px solid var(--line); }
.trust-bar .container {
  display: flex; flex-wrap: wrap; gap: .8rem 1.4rem; align-items: center; justify-content: center;
  padding-block: 1.1rem;
}
.trust-chip {
  display: inline-flex; align-items: center; gap: .55rem; font-size: .95rem; font-weight: 500; color: var(--navy);
}
.trust-chip svg { width: 20px; height: 20px; color: var(--teal); flex-shrink: 0; }
.trust-chip + .trust-chip { padding-left: 1.4rem; border-left: 1px solid var(--line); }
@media (max-width: 720px){ .trust-chip + .trust-chip { border-left: 0; padding-left: 0; } }

/* ------------------------------ Services -------------------------------- */
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.svc-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.9rem 1.8rem; position: relative; overflow: hidden;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.svc-card::before { /* gradient corner accent */
  content: ""; position: absolute; top: 0; right: 0; width: 68px; height: 68px;
  background: var(--brand-gradient); opacity: .12;
  clip-path: polygon(100% 0, 100% 100%, 0 0);
}
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.svc-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-content: center;
  background: var(--teal-soft); color: var(--teal-deep); margin-bottom: 1.1rem;
}
.svc-icon svg { width: 27px; height: 27px; }
.svc-card h3 { font-size: 1.3rem; margin-bottom: .35rem; }
.svc-card .svc-benefit { color: var(--muted); margin-bottom: 1rem; }

/* Native <details> accordion — works in every browser, no JS required */
.svc-acc { margin: 0; }
.svc-acc-toggle {
  display: inline-flex; align-items: center; gap: .4rem; cursor: pointer; width: fit-content;
  color: var(--teal-deep); font-weight: 600; font-size: .96rem; list-style: none;
}
.svc-acc-toggle::-webkit-details-marker { display: none; }
.svc-acc-toggle::marker { content: ""; }
.svc-acc-toggle:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
.svc-acc-toggle .chev { transition: transform .25s var(--ease); }
.svc-acc[open] .svc-acc-toggle .chev { transform: rotate(180deg); }
.svc-acc[open] .svc-acc-inner { animation: acc-reveal .3s var(--ease); }
@keyframes acc-reveal { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .svc-acc[open] .svc-acc-inner { animation: none; } }
.svc-list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .55rem; }
.svc-list li { display: flex; gap: .6rem; align-items: flex-start; font-size: 1rem; }
.svc-list svg { width: 20px; height: 20px; color: var(--green); flex-shrink: 0; margin-top: 3px; }
.svc-card .textlink { margin-top: 1.1rem; }

/* ------------------------------ Why / Pillars --------------------------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-bottom: clamp(2.5rem,5vw,3.5rem); }
.pillar { padding: 1.6rem 1.5rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.section--alt .pillar { background: #fff; }
.pillar .p-ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-content: center;
  background: var(--navy); color: #fff; margin-bottom: 1rem; }
.pillar .p-ico svg { width: 24px; height: 24px; }
.pillar h3 { font-size: 1.18rem; margin-bottom: .35rem; }
.pillar p { color: var(--muted); margin: 0; font-size: 1rem; }

/* Process timeline */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; counter-reset: step; }
.step { position: relative; padding-top: 2.6rem; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0; width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--teal-deep)); color: #fff; font-weight: 700; display: grid; place-content: center; font-size: 1.05rem;
}
.step::after {
  content: ""; position: absolute; top: 20px; left: 46px; right: -1.2rem; height: 2px;
  background: linear-gradient(90deg, var(--teal), transparent); opacity: .4;
}
.step:last-child::after { display: none; }
.step h3 { font-size: 1.08rem; margin-bottom: .25rem; }
.step p { color: var(--muted); font-size: .96rem; margin: 0; }

/* ------------------------------ Stats band ------------------------------ */
.stats {
  background: var(--navy); color: #fff; position: relative; overflow: hidden;
}
.stats::before {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background: radial-gradient(60% 120% at 85% 15%, rgba(15,160,152,.4), transparent 60%);
}
.stats .container { position: relative; z-index: 2; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1.5rem; text-align: center; }
.stat .num {
  font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 700; line-height: 1;
  background: linear-gradient(100deg,#5FE3D3,#7BE38C); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat .num .suffix { -webkit-text-fill-color: #7BE38C; }
.stat .label { color: #c3cee1; font-size: 1rem; margin-top: .6rem; }
@media (max-width: 720px){ .stats-grid { grid-template-columns: repeat(2,1fr); gap: 2rem 1rem; } }

/* ------------------------------ Team / Partner -------------------------- */
.partner { display: grid; grid-template-columns: 300px 1fr; gap: 2.5rem; align-items: center; }
.partner-photo {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 3/4;
  background: var(--brand-gradient); display: grid; place-content: center;
}
.partner-photo .avatar { font-size: 5rem; font-weight: 700; color: rgba(255,255,255,.92); }
.partner-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.partner h3 { font-size: 1.6rem; margin-bottom: .15rem; }
.partner .role { color: var(--teal-deep); font-weight: 600; margin-bottom: 1rem; }
.partner-creds { list-style: none; margin: 1.1rem 0; padding: 0; display: grid; gap: .55rem; }
.partner-creds li { display: flex; gap: .6rem; align-items: flex-start; color: var(--ink); }
.partner-creds svg { width: 20px; height: 20px; color: var(--teal); flex-shrink: 0; margin-top: 4px; }
.partner-contact { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.2rem; }

/* ------------------------------ Insights -------------------------------- */
.insights-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.4rem; }
.insights-more { margin-top: 2.2rem; text-align: center; }
.article {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.article:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.article .thumb { aspect-ratio: 16/9; background: var(--navy); position: relative; overflow: hidden; display: block; }
.article .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s var(--ease); }
.article:hover .thumb img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .article:hover .thumb img { transform: none; } }
.article .a-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.article .a-tag {
  align-self: flex-start; font-size: .78rem; font-weight: 600; color: var(--teal-deep);
  background: var(--teal-soft); padding: .2rem .6rem; border-radius: 6px; margin-bottom: .7rem;
}
.article h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.article h3 a { color: inherit; }
.article:hover h3 a { color: var(--teal-deep); }
.article .thumb { display: block; }
.article p { color: var(--muted); font-size: .98rem; margin: 0 0 1rem; }
.article .textlink { margin-top: auto; }

/* ------------------------------ Testimonials ---------------------------- */
.quotes { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.4rem; }
.quote {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem 1.6rem;
  position: relative;
}
.quote .mark { font-size: 3rem; line-height: 1; color: var(--teal); opacity: .3; font-weight: 700; margin-bottom: -.6rem; }
.quote p { color: var(--ink); font-style: normal; margin-bottom: 1.1rem; }
.quote .who { display: flex; align-items: center; gap: .8rem; }
.quote .who .av { width: 40px; height: 40px; border-radius: 50%; background: var(--brand-gradient); color: #fff;
  display: grid; place-content: center; font-weight: 700; }
.quote .who .n { display: block; font-weight: 600; color: var(--navy); line-height: 1.3; }
.quote .who .m { display: block; font-size: .88rem; color: var(--muted); line-height: 1.3; }

/* ------------------------------ CTA band -------------------------------- */
/* navy→teal-deep keeps white text ≥6:1 across the whole band (green end failed) */
.cta-band { background: linear-gradient(100deg, var(--navy) 0%, var(--teal-deep) 100%); position: relative; overflow: hidden; }
.cta-band .container { position: relative; z-index: 2; text-align: center; padding-block: clamp(3rem,6vw,4.5rem); }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem,3.4vw,2.3rem); }
.cta-band p { color: rgba(255,255,255,.9); max-width: 52ch; margin: 0 auto 1.6rem; font-size: 1.1rem; }
.cta-band .btn--primary { background: #fff; color: var(--navy); box-shadow: 0 8px 24px rgba(0,0,0,.16); }
.cta-band .btn--primary:hover { background: #f0f4f8; color: var(--navy); }
.cta-band .btn--on-dark { border-color: rgba(255,255,255,.6); }

/* ------------------------------ Contact --------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: start; }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; color: var(--navy); font-size: .96rem; margin-bottom: .4rem; }
.field label .req { color: var(--teal-deep); }
.field input, .field select, .field textarea {
  width: 100%; padding: .75rem .9rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 1rem; color: var(--ink); background: #fff; transition: border-color .18s, box-shadow .18s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15,160,152,.16);
}
.field .err { display: none; color: #b42318; font-size: .86rem; margin-top: .35rem; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #d92d20; }
.field.invalid .err { display: block; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
/* flex-start, not center: the note runs to ~3 lines, and a vertically centred
   lock floats away from the sentence it belongs to. */
.form-foot { display: flex; align-items: flex-start; gap: .6rem; margin-top: .5rem; font-size: .88rem; color: var(--muted); }
.form-foot svg { width: 18px; height: 18px; color: var(--teal); flex-shrink: 0; margin-top: .18rem; }
/* Underlined: the teal doesn't carry enough contrast against the muted text
   around it to mark the link by colour alone (WCAG 1.4.1). */
.form-foot a { color: var(--teal-deep); text-decoration: underline; text-underline-offset: 2px; }
.form-foot a:hover { color: #0C837C; }
.form-note { font-size: .9rem; color: var(--muted); margin-top: 1rem; }
.form-status { display: none; padding: .9rem 1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; font-weight: 500; }
.form-status.ok { display: block; background: #e7f6ec; color: #17663a; border: 1px solid #9fdcb4; }
.form-status.bad { display: block; background: #fdecea; color: #9a2820; border: 1px solid #f3b4ad; }

.contact-side .side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; margin-bottom: 1.2rem; }
.contact-actions { display: grid; gap: .7rem; }
.contact-action {
  display: flex; align-items: center; gap: .9rem; padding: .85rem 1rem; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); color: var(--navy); font-weight: 500; transition: border-color .18s, background .18s, transform .18s;
}
.contact-action:hover { border-color: var(--teal); background: var(--teal-soft); color: var(--navy); transform: translateX(2px); }
.contact-action .ic { width: 42px; height: 42px; border-radius: 10px; background: var(--teal-soft); color: var(--teal-deep);
  display: grid; place-content: center; flex-shrink: 0; }
.contact-action .ic svg { width: 22px; height: 22px; }
.contact-action .ic.line { background: #e5f7e9; color: #06c755; }
.contact-action .txt small { display: block; color: var(--muted); font-size: .82rem; font-weight: 400; }
.contact-action .txt strong { font-weight: 600; }

.nap { display: flex; gap: .8rem; align-items: flex-start; color: var(--ink); }
.nap svg { width: 22px; height: 22px; color: var(--teal); flex-shrink: 0; margin-top: 3px; }
/* Map: shows a prompt first, swaps in the real Google map on click */
.map-box { margin-top: 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; height: 220px; }
.map-box iframe { display: block; width: 100%; height: 100%; border: 0; }
.map-load {
  width: 100%; height: 100%; border: 0; cursor: pointer; display: grid; place-content: center; gap: .25rem; text-align: center;
  background:
    linear-gradient(0deg, rgba(20,39,78,.03), rgba(20,39,78,.03)),
    repeating-linear-gradient(45deg, #eef2f7 0 12px, #e6ecf3 12px 24px);
  transition: background-color .2s var(--ease);
}
.map-load:hover { background-color: var(--teal-soft); }
.map-load:focus-visible { outline: 3px solid var(--teal); outline-offset: -3px; }
.map-load .map-pin { display: grid; place-content: center; width: 44px; height: 44px; margin: 0 auto .3rem;
  border-radius: 50%; background: #fff; color: var(--teal-deep); box-shadow: var(--shadow-sm); }
.map-load .map-pin svg { width: 22px; height: 22px; }
.map-load strong { color: var(--navy); font-size: 1rem; }
.map-load small { color: var(--muted); font-size: .82rem; }
.map-external { display: inline-flex; align-items: center; gap: .45rem; margin-top: .8rem; font-size: .92rem; font-weight: 500; }
.map-external svg { flex-shrink: 0; }

/* ------------------------------ Article page ---------------------------- */
.article-hero { background: var(--navy-900); color: #fff; padding: clamp(2.5rem,5vw,4rem) 0 clamp(2.5rem,5vw,3.5rem); position: relative; overflow: hidden; }
.article-hero::before {
  content: ""; position: absolute; top: -40%; right: -12%; width: 55%; height: 130%;
  background: radial-gradient(closest-side, rgba(15,160,152,.45), transparent 72%); pointer-events: none;
}
.article-hero .container { position: relative; z-index: 2; max-width: 820px; }
.article-hero h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.7rem); margin: .6rem 0 .9rem; }
.article-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; color: #aebbd3; font-size: .92rem; align-items: center; }
.article-meta .dot { color: #5a6b8a; }
.back-link { display: inline-flex; align-items: center; gap: .4rem; color: #8ff3e6; font-weight: 600; font-size: .95rem; }
.back-link:hover { color: #fff; }

.prose { max-width: 760px; margin-inline: auto; font-size: 1.09rem; }
.prose > * + * { margin-top: 1.15rem; }
.prose h2 { font-size: clamp(1.35rem, 2.6vw, 1.7rem); margin-top: 2.6rem; padding-top: .2rem; }
.prose h3 { font-size: 1.2rem; margin-top: 2rem; }
.prose p { color: var(--ink); }
.prose a { color: var(--teal-deep); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: #0C837C; }
.prose ul { padding-left: 1.3rem; display: grid; gap: .55rem; }
.prose li { color: var(--ink); }
.prose strong { color: var(--navy); font-weight: 600; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.6rem 0; }

/* article tables scroll on narrow screens instead of breaking the layout */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.6rem 0; border: 1px solid var(--line); border-radius: var(--radius); }
.prose table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: .98rem; }
.prose th, .prose td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose thead th { background: var(--bg-alt); color: var(--navy); font-weight: 600; white-space: nowrap; }
.prose tbody tr:last-child td { border-bottom: 0; }

/* markdown "- [ ]" checklist rendered as brand checkboxes */
.checklist { list-style: none; padding: 0; display: grid; gap: .7rem; background: var(--bg-alt);
  border-radius: var(--radius); padding: 1.4rem 1.5rem; }
.checklist li { display: flex; gap: .7rem; align-items: flex-start; }
.checklist li::before {
  content: ""; flex: 0 0 20px; width: 20px; height: 20px; margin-top: 3px; border-radius: 5px;
  border: 2px solid var(--green); background:
    no-repeat center/12px 12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334B24A' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
}

/* end-of-article CTA */
.article-cta { background: var(--navy); color: #fff; border-radius: var(--radius-lg); padding: 2rem 2rem 2.2rem; margin-top: 2.8rem; }
.article-cta h3 { color: #fff; margin-bottom: .6rem; font-size: 1.3rem; }
.article-cta p { color: #c3cee1; margin-bottom: 1.3rem; }
.article-cta .cta-links { display: flex; flex-wrap: wrap; gap: .7rem 1.4rem; align-items: center; }
.article-cta .cta-links a:not(.btn) { color: #8ff3e6; font-weight: 500; display: inline-flex; align-items: center; gap: .4rem; }
.article-cta .cta-links a:not(.btn):hover { color: #fff; }

.article-foot-nav { max-width: 760px; margin: 3rem auto 0; padding-top: 1.6rem; border-top: 1px solid var(--line); }

@media (max-width: 560px) {
  .prose { font-size: 1.04rem; }
  .article-cta { padding: 1.5rem 1.3rem 1.7rem; }
}

/* ------------------------------ Footer ---------------------------------- */
.site-footer { background: var(--navy-900); color: #c3cee1; padding-top: clamp(3rem,6vw,4.5rem); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1.4fr; gap: 2.5rem; padding-bottom: 2.5rem; }
.footer-logo { height: 58px; width: auto; margin-bottom: 1.1rem; }
.footer-brand .wordmark { display: inline-block; margin-bottom: 1rem; }
.wordmark .w-main { font-size: 1.7rem; font-weight: 700; letter-spacing: -.01em; line-height: 1;
  background: linear-gradient(100deg,#8ff3e6,#7BE38C); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wordmark .w-sub { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .18em; color: #8697b5; text-transform: uppercase; margin-top: .3rem; }
.footer-brand p { color: #94a3bd; max-width: 34ch; font-size: .98rem; }
.footer-col h2 { color: #fff; font-size: 1rem; font-weight: 500; margin-bottom: 1rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.footer-col a { color: #c3cee1; }
.footer-col a:hover { color: #fff; }
.footer-contact li { display: flex; gap: .6rem; align-items: flex-start; color: #c3cee1; margin-bottom: .7rem; }
.footer-contact svg { width: 18px; height: 18px; color: var(--teal); flex-shrink: 0; margin-top: 4px; }
.footer-contact a { color: #c3cee1; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-block: 1.5rem;
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
  font-size: .88rem; color: #8697b5;
}
.footer-bottom a { color: #8697b5; }
.footer-bottom a:hover { color: #fff; }
.footer-bottom .fb-links { display: flex; gap: 1.3rem; flex-wrap: wrap; }

/* ------------------------------ Mobile action bar ----------------------- */
.mobile-bar { display: none; }

/* ------------------------------ Scroll reveal --------------------------- */
/* Gated behind .js (added in <head>) so content stays visible if JS never runs */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .06s; } .reveal.d2 { transition-delay: .12s; }
.reveal.d3 { transition-delay: .18s; } .reveal.d4 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn, .svc-card, .article, .contact-action { transition: none !important; }
}

/* ------------------------------ Responsive ------------------------------ */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .svc-grid, .insights-grid, .quotes { grid-template-columns: repeat(2,1fr); }
  .pillars { grid-template-columns: 1fr; }
  .process { grid-template-columns: repeat(2,1fr); gap: 1.6rem; }
  .step::after { display: none; }
  .partner { grid-template-columns: 1fr; gap: 1.6rem; }
  .partner-photo { max-width: 260px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav-links, .nav-actions .desktop-only { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-menu {
    position: fixed; inset: 0; z-index: 70; background: var(--navy-900); color: #fff;
    display: flex; flex-direction: column; padding: 1.2rem 1.5rem;
    transform: translateY(-100%); transition: transform .3s var(--ease), visibility 0s .3s; visibility: hidden;
  }
  .mobile-menu.open { transform: none; visibility: visible; transition: transform .3s var(--ease), visibility 0s 0s; }
  .mobile-menu .mm-head { display: flex; align-items: center; justify-content: space-between; height: 52px; }
  .mobile-menu .mm-head .wordmark .w-main { font-size: 1.4rem; }
  .mm-logo { height: 42px; width: auto; }
  .mobile-menu .mm-close { background: none; border: 0; color: #fff; cursor: pointer; width: 44px; height: 44px; }
  .mobile-menu nav { display: grid; gap: .3rem; margin-top: 2rem; }
  .mobile-menu nav a { color: #fff; font-size: 1.3rem; font-weight: 500; padding: .7rem 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .mobile-menu .mm-lang { margin-top: 2rem; }
  .mobile-menu .mm-cta { margin-top: auto; }
  body.menu-open { overflow: hidden; }

  .mobile-bar {
    display: grid; grid-template-columns: repeat(3,1fr); position: fixed; bottom: 0; left: 0; right: 0; z-index: 55;
    background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(20,39,78,.08);
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  .mobile-bar a {
    display: flex; flex-direction: column; align-items: center; gap: .2rem; padding: .6rem 0; color: var(--navy);
    font-size: .78rem; font-weight: 600;
  }
  .mobile-bar a svg { width: 22px; height: 22px; color: var(--teal-deep); }
  .mobile-bar a.q { background: var(--teal-deep); color: #fff; }
  .mobile-bar a.q svg { color: #fff; }
  .mobile-bar a.line svg { color: #06c755; }
  body { padding-bottom: 60px; }
}
@media (max-width: 560px) {
  .svc-grid, .insights-grid, .quotes, .stats-grid, .process, .footer-top { grid-template-columns: 1fr; }
  .stats-grid { gap: 2rem; }
  .hero-cta .btn { width: 100%; }
  .section-head p { font-size: 1rem; }
}
