/* Lighthouse Compliance — brand tokens */
:root {
  --navy: #0B2545;
  --navy-2: #13315C;
  --amber: #F4A51C;
  --amber-dark: #C97F00;
  --bg: #F7F7F2;
  --surface: #FFFFFF;
  --text: #1B2430;
  --muted: #55606E;
  --border: #E2E4DC;
  --header-bg: var(--navy);
  --header-text: #FFFFFF;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(11, 37, 69, 0.08);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0A1626;
    --surface: #102238;
    --text: #E8ECF1;
    --muted: #A6B1BF;
    --border: #1E3550;
    --header-bg: #071121;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.6em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }

.container { width: min(1100px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 8px; top: -48px; z-index: 100;
  background: var(--amber); color: var(--navy); padding: 8px 12px; border-radius: 6px;
}
.skip-link:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

/* Buttons */
.btn {
  display: inline-block; padding: 0.75em 1.4em; border-radius: 999px;
  background: var(--amber); color: var(--navy); font-weight: 600; text-decoration: none;
  border: 2px solid var(--amber); transition: background 0.15s, color 0.15s;
}
.btn:hover { background: var(--amber-dark); border-color: var(--amber-dark); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }
.btn-small { padding: 0.45em 1.1em; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg); color: var(--header-text);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 1.15rem; }
.brand strong { color: var(--amber); font-weight: 700; }
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav a:not(.btn) { text-decoration: none; opacity: 0.9; }
.site-nav a:not(.btn):hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.nav-toggle { display: none; }
.header-inner { gap: 24px; }
.site-nav { margin-left: auto; }

/* Language switcher */
.lang-switch { display: flex; align-items: center; gap: 6px; font-size: 0.88rem; font-weight: 700; letter-spacing: 0.04em; }
.lang-switch a { text-decoration: none; opacity: 0.7; padding: 6px 2px; }
.lang-switch a:hover { opacity: 1; }
.lang-switch [aria-current] { color: var(--amber); }
.lang-switch .sep { opacity: 0.4; font-weight: 400; }

/* Language suggestion bar */
.lang-bar {
  background: var(--amber); color: var(--navy); font-size: 0.95rem;
  display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
  padding: 8px 48px 8px 16px; position: relative; text-align: center;
}
.lang-bar a { font-weight: 700; color: var(--navy); }
.lang-bar button {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--navy); padding: 4px 8px;
}

@media (max-width: 720px) {
  .nav-toggle {
    display: flex; flex-direction: column; gap: 5px; padding: 10px;
    background: none; border: 0; cursor: pointer;
  }
  .nav-toggle .bar { width: 24px; height: 2px; background: #fff; }
  .site-nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--header-bg); padding: 8px 16px 16px;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 0; }
  .site-nav .btn { text-align: center; margin-top: 8px; }
  .lang-switch { margin-left: auto; }
  .nav-toggle { order: 3; }
}

/* Hero */
.hero {
  color: #fff;
  background:
    radial-gradient(circle at 85% 20%, rgba(244, 165, 28, 0.28), transparent 45%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  padding: clamp(64px, 12vw, 140px) 0;
}
.hero-inner { max-width: 760px; margin-left: max(16px, (100% - 1100px) / 2); }
.eyebrow { color: var(--amber); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.85rem; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.lead { font-size: 1.2rem; color: rgba(255, 255, 255, 0.88); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Sections */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--border); }
.section-intro { color: var(--muted); margin-bottom: 32px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); border-top: 4px solid var(--amber);
}
.card p { color: var(--muted); margin: 0; }

.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.contact-list li {
  display: flex; gap: 16px; padding: 16px 20px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.contact-list span { font-weight: 600; min-width: 90px; }

.site-nav a[aria-current="page"] { opacity: 1; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--amber); }

/* Inner page hero */
.page-hero {
  color: #fff;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  padding: clamp(48px, 8vw, 88px) 0;
}
.page-hero h1 { font-size: clamp(1.9rem, 4.2vw, 2.8rem); max-width: 820px; }
.page-hero .lead { max-width: 760px; }
.breadcrumb { font-size: 0.9rem; margin-bottom: 16px; color: rgba(255, 255, 255, 0.75); }
.breadcrumb a { color: var(--amber); text-decoration: none; }

.mt { margin-top: 32px; }

/* Content */
.prose { max-width: 760px; }
.prose p, .prose li { color: var(--text); }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; font-size: 1.25rem; }
.prose > :first-child { margin-top: 0; }
.checklist { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: 8px; }
.checklist li { position: relative; padding-left: 28px; }
.checklist li::before {
  content: ""; position: absolute; left: 4px; top: 0.55em; width: 10px; height: 10px;
  border-radius: 50%; background: var(--amber);
}
.checklist.cols { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); column-gap: 32px; }

.card h3 { font-size: 1.2rem; }
.card .more { display: inline-block; margin-top: 14px; font-weight: 600; color: var(--amber-dark); text-decoration: none; }
.card .more:hover { text-decoration: underline; }
a.card { text-decoration: none; display: block; transition: transform 0.15s, box-shadow 0.15s; }
a.card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(11, 37, 69, 0.14); }
.card .tag { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--amber-dark); margin-bottom: 8px; display: block; }

.service-block { padding: 32px 0; border-top: 1px solid var(--border); }
.service-block:first-child { border-top: 0; padding-top: 0; }
.service-block h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); }
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px 40px; }
.service-grid h3 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-top: 0.4em; }

.note {
  background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--navy-2);
  border-radius: var(--radius); padding: 16px 20px; color: var(--muted); font-size: 0.97rem;
}
.note strong { color: var(--text); }

.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; padding: 0; list-style: none; }
.toc a {
  display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: 0.92rem;
  border: 1px solid var(--border); background: var(--surface); text-decoration: none;
}
.toc a:hover { border-color: var(--amber); }

.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 16px; }
.steps li {
  counter-increment: step; position: relative; padding: 20px 20px 20px 72px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.steps li::before {
  content: counter(step); position: absolute; left: 20px; top: 18px;
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy); color: var(--amber); font-weight: 700;
}
.steps.row { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.steps.row li { padding: 72px 20px 20px; }
.steps.row li::before { top: 20px; }
.steps h3 { margin-bottom: 0.3em; font-size: 1.15rem; }
.steps p { margin: 0; color: var(--muted); }

.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.pillar { padding: 20px 0; border-top: 3px solid var(--amber); }
.pillar h3 { font-size: 1.15rem; }
.pillar p { color: var(--muted); margin: 0; }

.data-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.data-table th, .data-table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--border); vertical-align: top; }
.data-table th { background: var(--navy); color: #fff; font-weight: 600; }
.data-table tr:last-child td { border-bottom: 0; }

/* Icons */
.icon {
  width: 24px; height: 24px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.icon-badge {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(244, 165, 28, 0.15); color: var(--amber-dark); margin-bottom: 14px;
}

/* Hero audience line */
.hero-for { margin-top: 28px; font-size: 0.95rem; color: rgba(255, 255, 255, 0.75); }
.chips { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 5px 12px; border-radius: 999px; font-size: 0.88rem;
  border: 1px solid rgba(255, 255, 255, 0.3); color: #fff;
}

/* Section header */
.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head .eyebrow { color: var(--amber-dark); margin-bottom: 6px; }
.section-head p { color: var(--muted); margin: 0; font-size: 1.1rem; }
.center { text-align: center; margin-inline: auto; }

/* Pain points */
.pains { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.cards.three { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.pain {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 22px; text-decoration: none; display: flex; flex-direction: column; gap: 10px;
  transition: border-color 0.15s, transform 0.15s;
}
a.pain:hover { border-color: var(--amber); transform: translateY(-2px); }
.pain q { font-size: 1.08rem; font-weight: 600; quotes: "\201C" "\201D"; }
.pain span { color: var(--muted); font-size: 0.95rem; }
.pain .go { color: var(--amber-dark); font-weight: 600; font-size: 0.92rem; margin-top: auto; }

/* Benefits */
.benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.benefit h3 { font-size: 1.12rem; margin-bottom: 0.3em; }
.benefit p { margin: 0; color: var(--muted); }

/* Service cards (home) */
.svc { display: flex; flex-direction: column; }
.svc .tagline { font-weight: 600; color: var(--text); margin-bottom: 8px; }
.svc p { margin-bottom: 0; }
.svc .get { margin-top: 14px; font-size: 0.93rem; color: var(--muted); }
.svc .get strong { color: var(--text); }
.svc .more { margin-top: auto; padding-top: 14px; }

/* Offer cards (service pages) */
.offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.offer {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.offer h3 { font-size: 1.2rem; margin-bottom: 0.4em; }
.offer > p { color: var(--muted); margin: 0 0 12px; }
.offer .get {
  margin: 0 0 12px; padding: 10px 14px; border-radius: 8px; font-size: 0.93rem;
  background: rgba(244, 165, 28, 0.1);
}
.offer details { margin-top: auto; border-top: 1px solid var(--border); padding-top: 10px; }
.offer summary {
  cursor: pointer; font-weight: 600; font-size: 0.93rem; color: var(--amber-dark);
  list-style: none; display: flex; align-items: center; gap: 6px;
}
.offer summary::-webkit-details-marker { display: none; }
.offer summary::before { content: "+"; font-size: 1.1rem; width: 14px; }
.offer details[open] summary::before { content: "\2212"; }
.offer details .checklist { margin: 12px 0 0; font-size: 0.95rem; }

/* Quick facts strip on service pages */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.fact { padding-left: 16px; border-left: 3px solid var(--amber); }
.fact h3 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); margin-bottom: 4px; }
.fact p { margin: 0; font-weight: 500; }

/* Compare (without / with) */
.compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.compare > div { border-radius: var(--radius); padding: 22px 24px; border: 1px solid var(--border); background: var(--surface); }
.compare .after { border-color: var(--amber); }
.compare h3 { font-size: 1.05rem; }
.compare ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; color: var(--muted); }

/* Industries */
.industries { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.industry {
  text-decoration: none; padding: 22px 20px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  transition: border-color 0.15s, transform 0.15s;
}
.industry:hover { border-color: var(--amber); transform: translateY(-2px); }
.industry h3 { font-size: 1.05rem; margin-bottom: 0.4em; }
.industry p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.industry .icon-badge { transition: transform 0.25s; }
.industry:hover .icon-badge, .card:hover .icon-badge { transform: rotate(-6deg) scale(1.06); }

/* Patterns: lighthouse beam, waves, dots */
.hero, .page-hero, .cta-band { position: relative; overflow: hidden; isolation: isolate; }
.hero::before, .page-hero::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: 88%; top: 12%; width: 2400px; height: 2400px; margin: -1200px 0 0 -1200px;
  background: conic-gradient(from -14deg, rgba(244, 165, 28, 0.2) 0deg, rgba(244, 165, 28, 0) 28deg, transparent 360deg);
  -webkit-mask-image: radial-gradient(circle at center, #000 0, transparent 50%);
  mask-image: radial-gradient(circle at center, #000 0, transparent 50%);
  transform: rotate(235deg);
  animation: beam-sweep 16s ease-in-out infinite alternate;
}
.page-hero::before { top: 0; opacity: 0.8; }
@keyframes beam-sweep {
  from { transform: rotate(205deg); }
  to { transform: rotate(265deg); }
}
.hero::after, .page-hero::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: 0; right: 0; bottom: 0; height: 160px; opacity: 0.12;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 160' preserveAspectRatio='none' fill='none' stroke='white' stroke-width='1.2'%3E%3Cpath d='M0 100 C240 60 480 140 720 100 S1200 60 1440 100'/%3E%3Cpath d='M0 120 C240 80 480 160 720 120 S1200 80 1440 120' opacity='.7'/%3E%3Cpath d='M0 140 C240 100 480 180 720 140 S1200 100 1440 140' opacity='.4'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1.6px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, #000 10%, transparent 75%);
}
.section-alt { position: relative; }

/* Hero entrance */
.hero-inner > *, .page-hero .container > * { animation: rise 0.7s ease-out both; }
.hero-inner > :nth-child(2), .page-hero .container > :nth-child(2) { animation-delay: 0.08s; }
.hero-inner > :nth-child(3), .page-hero .container > :nth-child(3) { animation-delay: 0.16s; }
.hero-inner > :nth-child(4), .page-hero .container > :nth-child(4) { animation-delay: 0.24s; }
.hero-inner > :nth-child(n+5), .page-hero .container > :nth-child(n+5) { animation-delay: 0.32s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* Scroll reveal (classes added by main.js only to elements below the fold) */
html .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease-out var(--d, 0s), transform 0.6s ease-out var(--d, 0s); }
html .reveal.in { opacity: 1; transform: none; }
.steps li.reveal.in::before { animation: pop 0.5s ease-out both; animation-delay: calc(var(--d, 0s) + 0.2s); }
@keyframes pop {
  0% { transform: scale(0.6); box-shadow: 0 0 0 0 rgba(244, 165, 28, 0.6); }
  60% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(244, 165, 28, 0); }
  100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html .reveal { opacity: 1; transform: none; }
}

/* CTA band */
.cta-band { background: var(--navy); color: #fff; padding: clamp(48px, 7vw, 80px) 0; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.85); max-width: 640px; margin: 0 auto 24px; }
.cta-band .hero-actions { justify-content: center; margin-top: 0; }

/* Footer */
.site-footer { background: var(--header-bg); color: rgba(255, 255, 255, 0.8); padding: 48px 0 24px; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; margin-bottom: 32px; }
.footer-grid h2 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--amber); margin-bottom: 12px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 20px; }
.site-footer p { margin: 0; }

/* 404 */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; }
