/* =========================================================
   Auvion Solutions — landing page styles
   Colors live here as variables. Change a color once and it
   updates everywhere. Light is the default; dark applies when
   <html data-theme="dark">.
   ========================================================= */

:root {
  --bg: #FFFFFF;
  --soft: #F6F9FC;
  --card: #FFFFFF;
  --text: #142033;
  --heading: #052653;
  --muted: #5A6A80;
  --border: #E2E8F0;
  --accent: #078FE5;          /* Auvion Blue: icons, accents */
  --bright: #19B5F5;          /* Bright Accent */
  --action: #0670C2;          /* Button blue (passes WCAG AA with white text) */
  --action-text: #FFFFFF;
  --link: #0670C2;
  --link-hover: #052653;
  --focus: #078FE5;
  --chip: #EAF5FE;
  --header-bg: rgba(255, 255, 255, 0.88);
  --hero-bg: radial-gradient(120% 90% at 85% 40%, #EAF5FE 0%, #FFFFFF 60%);
  --band: #052653;
  --band-text: #F8FAFC;
  --band-muted: #B8C7DA;
  --band-line: rgba(248, 250, 252, 0.22);
  --cta-bg: linear-gradient(160deg, #EAF5FE 0%, #F6F9FC 70%);
  --foot-bg: #031A3A;
  --foot-text: #F8FAFC;
  --foot-muted: #B8C7DA;
  --shadow: 0 24px 48px -24px rgba(3, 26, 58, 0.35);

  --font-heading: 'Manrope', Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --max: 1240px;
  --radius: 18px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #071426;
  --soft: #0A1A30;
  --card: #0D2038;
  --text: #E6EDF5;
  --heading: #F8FAFC;
  --muted: #A3B3C7;
  --border: #1E3352;
  --accent: #19B5F5;
  --bright: #19B5F5;
  --action: #19B5F5;
  --action-text: #031A3A;
  --link: #5CC8F7;
  --link-hover: #F8FAFC;
  --focus: #5CC8F7;
  --chip: #102A4A;
  --header-bg: rgba(7, 20, 38, 0.86);
  --hero-bg: radial-gradient(120% 90% at 85% 40%, #0D2A4C 0%, #071426 60%);
  --band: #0D2038;
  --band-text: #F8FAFC;
  --band-muted: #A3B3C7;
  --band-line: rgba(248, 250, 252, 0.18);
  --cta-bg: linear-gradient(160deg, #0D2A4C 0%, #0A1A30 70%);
  --foot-bg: #030E1E;
  --foot-muted: #A3B3C7;
  --shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--link); }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-heading); color: var(--heading); margin: 0; }
p { margin: 0; }

.container { max-width: var(--max); margin: 0 auto; padding-inline: 24px; }
.section { padding-block: 104px; }
.section--soft { background: var(--soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.h2 { font-weight: 800; font-size: clamp(32px, 3.6vw, 46px); line-height: 1.1; letter-spacing: -0.02em; }
.lede { color: var(--muted); font-size: 18px; max-width: 56ch; }
.split { display: flex; flex-wrap: wrap; gap: 32px 64px; align-items: flex-end; }
.split > * { flex: 1 1 420px; min-width: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--action); color: var(--action-text); padding: 12px 18px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }
.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; }

/* ---------- Logo swap per theme ---------- */
.logo-dark { display: none; }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px; border-radius: 14px;
  font-weight: 600; text-decoration: none; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn--primary { background: var(--action); color: var(--action-text); }
.btn--primary:hover { color: var(--action-text); transform: translateY(-1px); box-shadow: 0 8px 20px -10px rgba(6, 112, 194, 0.6); }
.btn--secondary { background: var(--card); color: var(--heading); border-color: var(--border); }
.btn--secondary:hover { color: var(--heading); border-color: var(--accent); }
.btn--small { min-height: 44px; padding: 0 20px; border-radius: 12px; font-size: 15px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-bar { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; }
.brand__mark { height: 40px; width: auto; }
.brand__word { height: 30px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; font-size: 15px; font-weight: 500; }
.nav__link, .nav__trigger {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px;
  color: var(--text); text-decoration: none; background: none; border: 0; font: inherit; cursor: pointer;
}
.nav__link:hover, .nav__trigger:hover, .nav__link[aria-current="page"] { color: var(--accent); }
.nav__trigger svg { transition: transform .2s ease; }
.nav__trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav__item { position: relative; }
.mega {
  position: absolute; top: 56px; left: -160px; width: 640px;
  background: var(--card); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow);
  padding: 24px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px;
}
.mega[hidden] { display: none; }
.mega__group { display: flex; flex-direction: column; gap: 2px; }
.mega__title { font-family: var(--font-heading); font-weight: 700; font-size: 14px; color: var(--heading); margin-bottom: 6px; }
.mega a { color: var(--muted); text-decoration: none; font-size: 15px; padding: 5px 0; }
.mega a:hover { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px; border: 1px solid var(--border); background: var(--card); color: var(--text); cursor: pointer;
}
.icon-btn:hover { border-color: var(--accent); }
.theme-icon--sun { display: none; }
:root[data-theme="dark"] .theme-icon--sun { display: block; }
:root[data-theme="dark"] .theme-icon--moon { display: none; }
.menu-btn { display: none; }
.mobile-nav { border-top: 1px solid var(--border); background: var(--bg); padding: 12px 24px 24px; }
.mobile-nav[hidden] { display: none; }
.mobile-nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--border); color: var(--text); text-decoration: none; font-weight: 500; }
.mobile-nav .mobile-sub a { padding-left: 16px; font-weight: 400; color: var(--muted); }
.mobile-nav .btn { display: flex; margin-top: 16px; width: 100%; padding: 0 20px; border-bottom: 0; color: var(--action-text); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--hero-bg); }
.hero__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-block: 88px 96px; }
.hero__copy { flex: 1 1 480px; min-width: 0; max-width: 620px; }
.hero__title { font-weight: 800; font-size: clamp(42px, 6vw, 72px); line-height: 1.04; letter-spacing: -0.03em; }
.hero__sub { margin-top: 24px; font-family: var(--font-heading); font-weight: 600; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.35; color: var(--heading); }
.hero__copy .lede { margin-top: 16px; }
.hero__visual { flex: 1 1 420px; min-width: 0; display: flex; justify-content: center; }
.orbit-stage { position: relative; width: 100%; max-width: 540px; aspect-ratio: 1 / 1; }
.orbit-stage svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.orbit-mark { position: absolute; left: 50%; top: 50%; width: 34%; transform: translate(-50%, -52%); }
.orbit-mark img { width: 100%; height: auto; }
.orbit { stroke-dasharray: 1700; stroke-dashoffset: 1700; animation: draw 1.6s cubic-bezier(.4, 0, .2, 1) forwards; }
.orbit--2 { animation-delay: .2s; }
.orbit--3 { animation-delay: .4s; }
.orbit-labels { list-style: none; margin: 0; padding: 0; }
.pill {
  position: absolute; transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 8px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--border);
  box-shadow: 0 10px 24px -14px rgba(3, 26, 58, 0.45);
  font-size: clamp(12px, 1.4vw, 15px); font-weight: 600; color: var(--heading);
  opacity: 0; animation: pillin .5s ease forwards;
}
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.pill:nth-child(1) { left: 8%;  top: 64%; animation-delay: .9s; }
.pill:nth-child(2) { left: 44%; top: 24%; animation-delay: 1.05s; }
.pill:nth-child(3) { left: 90%; top: 36%; animation-delay: 1.2s; }
.pill:nth-child(4) { left: 60%; top: 78%; animation-delay: 1.35s; }
.pill:nth-child(5) { left: 22%; top: 84%; animation-delay: 1.5s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pillin { from { opacity: 0; transform: translate(-50%, -30%); } to { opacity: 1; transform: translate(-50%, -50%); } }

/* ---------- Value row ---------- */
.value-grid { margin-top: 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); border-top: 1px solid var(--border); }
.value-item { padding: 32px 28px 8px 0; }
.value-item svg { color: var(--accent); }
.value-item h3 { margin: 16px 0 8px; font-weight: 700; font-size: 22px; }
.value-item p { color: var(--muted); }

/* ---------- Service cards ---------- */
.card-grid { margin-top: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.service-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; display: flex; flex-direction: column; gap: 12px; transition: border-color .2s ease;
}
.service-card:hover { border-color: var(--accent); }
.service-card__icon { width: 48px; height: 48px; border-radius: 14px; background: var(--chip); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.service-card h3 { margin-top: 8px; font-weight: 700; font-size: 22px; line-height: 1.3; }
.service-card p { color: var(--muted); flex-grow: 1; }
.service-card .text-link { align-self: flex-start; }

/* ---------- Method band ---------- */
.band { background: var(--band); color: var(--band-text); }
.band .h2 { color: var(--band-text); }
.band .lede { color: var(--band-muted); }
.method-steps { list-style: none; margin: 64px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 32px; }
.method-steps li { position: relative; padding-top: 28px; border-top: 2px solid var(--band-line); }
.method-steps li::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--bright); }
.method-steps strong { display: block; font-family: var(--font-heading); font-weight: 800; font-size: 28px; letter-spacing: -0.01em; }
.method-steps span { display: block; margin-top: 10px; color: var(--band-muted); }

/* ---------- How it works ---------- */
.how { display: flex; flex-wrap: wrap; gap: 48px 80px; }
.how__intro { flex: 1 1 340px; min-width: 0; }
.how__intro .btn { margin-top: 32px; }
.steps { flex: 2 1 520px; min-width: 0; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { display: flex; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--border); counter-increment: step; }
.steps li::before {
  content: counter(step); flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid var(--accent); color: var(--heading);
  display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-weight: 800;
}
.steps h3 { font-weight: 700; font-size: 21px; }
.steps p { margin-top: 4px; color: var(--muted); }

/* ---------- Team ---------- */
.team { display: flex; flex-wrap: wrap; gap: 48px 80px; align-items: center; }
.team > * { flex: 1 1 440px; min-width: 0; }
.team .lede { margin-top: 20px; }
.team .text-link { margin-top: 28px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.chips li { padding: 12px 20px; border-radius: 999px; background: var(--card); border: 1px solid var(--border); font-weight: 600; color: var(--heading); }

/* ---------- Training ---------- */
.academy { border-radius: 28px; border: 1px solid var(--border); background: var(--card); padding: clamp(32px, 5vw, 64px); display: flex; flex-wrap: wrap; gap: 40px 64px; }
.academy > div { flex: 1 1 400px; min-width: 0; }
.academy__brand { margin-bottom: 14px; font-weight: 600; color: var(--accent); }
.academy .lede { margin-top: 20px; }
.academy .btn { margin-top: 28px; }
.course-list { flex: 1 1 360px; min-width: 0; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; align-content: center; }
.course-list li { padding: 20px; border-radius: 16px; background: var(--soft); border: 1px solid var(--border); font-family: var(--font-heading); font-weight: 700; font-size: 18px; line-height: 1.3; color: var(--heading); }

/* ---------- Social proof ---------- */
.proof { padding-bottom: 104px; }
.proof h2 { font-weight: 800; font-size: clamp(28px, 3vw, 38px); line-height: 1.15; letter-spacing: -0.02em; }
.proof__empty { margin-top: 28px; border: 2px dashed var(--border); border-radius: 20px; padding: 40px 32px; color: var(--muted); text-align: center; }

/* ---------- About ---------- */
.about { display: flex; flex-wrap: wrap; gap: 48px 80px; align-items: center; }
.about__art { flex: 1 1 300px; min-width: 0; display: flex; justify-content: center; }
.about__art img { width: min(100%, 300px); height: auto; }
.about__copy { flex: 2 1 480px; min-width: 0; }
.about__lead { margin-top: 20px; font-size: 19px; max-width: 58ch; }
.about__copy .lede { margin-top: 14px; }
.about__copy .text-link { margin-top: 24px; }

/* ---------- Contact / inquiry ---------- */
.contact { background: var(--cta-bg); padding-block: 112px; }
.contact__grid { display: flex; flex-wrap: wrap; gap: 48px 72px; align-items: flex-start; }
.contact__intro { flex: 1 1 360px; min-width: 0; }
.contact__intro h2 { font-weight: 800; font-size: clamp(32px, 4vw, 50px); line-height: 1.08; letter-spacing: -0.02em; }
.contact__intro .lede { margin-top: 20px; font-size: 19px; }
.contact__details { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; color: var(--muted); }
.contact__details strong { color: var(--heading); font-weight: 600; }
.form-card { flex: 1.3 1 460px; min-width: 0; background: var(--card); border: 1px solid var(--border); border-radius: 24px; box-shadow: var(--shadow); padding: clamp(24px, 4vw, 40px); }
.form-card h3 { font-weight: 800; font-size: 26px; letter-spacing: -0.01em; }
.form-card__note { margin-top: 6px; color: var(--muted); font-size: 15px; }
.form-grid { margin-top: 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 18px 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 15px; color: var(--heading); }
.field .req { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--bg); color: var(--text);
  font: inherit; font-size: 16px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(7, 143, 229, 0.25); }
.field [aria-invalid="true"] { border-color: #C2410C; }
:root[data-theme="dark"] .field [aria-invalid="true"] { border-color: #FB923C; }
.field-error { font-size: 14px; color: #B42318; min-height: 0; }
:root[data-theme="dark"] .field-error { color: #FDA29B; }
.field-error:empty { display: none; }
.consent { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--muted); }
.consent input { width: 22px; height: 22px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--action); }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.turnstile-box { grid-column: 1 / -1; min-height: 65px; }
.form-actions { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.btn[disabled] { opacity: 0.75; cursor: progress; transform: none; box-shadow: none; }
.spinner { width: 18px; height: 18px; margin-right: 10px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
.spinner[hidden] { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-success { margin-top: 24px; padding: 20px; border-radius: 16px; background: var(--chip); color: var(--heading); font-weight: 500; }
.form-success[hidden] { display: none; }
.form-success small { display: block; margin-top: 6px; color: var(--muted); font-weight: 400; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 200; transform: translate(-50%, 20px);
  max-width: min(92vw, 440px); padding: 14px 18px; border-radius: 14px;
  background: #052653; color: #F8FAFC; box-shadow: 0 18px 40px -16px rgba(3, 26, 58, 0.6);
  font-size: 15px; font-weight: 500; opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast--error { background: #B42318; }
:root[data-theme="dark"] .toast { background: #F8FAFC; color: #031A3A; }
:root[data-theme="dark"] .toast--error { background: #FDA29B; color: #3B0A06; }

/* ---------- Simple text pages (privacy) ---------- */
.prose { max-width: 760px; padding-block: 88px; }
.prose h1 { font-weight: 800; font-size: clamp(34px, 4vw, 48px); letter-spacing: -0.02em; }
.prose h2 { margin-top: 36px; font-weight: 700; font-size: 22px; }
.prose p, .prose ul { margin-top: 12px; color: var(--text); }
.prose .note { margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: var(--chip); color: var(--heading); font-size: 15px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--foot-bg); color: var(--foot-muted); }
.footer-inner { padding-block: 72px 32px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 40px; }
.footer-brand .brand__mark, .footer-brand .brand__word { display: block; }
.footer-brand__logo { display: flex; align-items: center; gap: 10px; }
.footer-tagline { margin-top: 18px; font-family: var(--font-heading); font-weight: 700; color: var(--foot-text); }
.footer-desc { margin-top: 8px; font-size: 15px; }
.footer-col { display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.footer-col p { margin-bottom: 8px; font-weight: 600; color: var(--foot-text); }
.footer-col a { color: var(--foot-muted); text-decoration: none; padding: 4px 0; }
.footer-col a:hover { color: var(--foot-text); }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(248, 250, 252, 0.14); font-size: 14px; }

/* ---------- 404 ---------- */
.not-found { padding-block: 140px; text-align: center; }
.not-found .lede { margin: 16px auto 0; }
.not-found .btn-row { justify-content: center; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav, .header-cta { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 640px) {
  .section { padding-block: 72px; }
  .hero__inner { padding-block: 56px 64px; }
  .brand__word { height: 24px; }
  .brand__mark { height: 34px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orbit { animation: none; stroke-dashoffset: 0; }
  .pill { animation: none; opacity: 1; }
  .btn, .service-card, .nav__trigger svg, .toast { transition: none; }
  .spinner { animation-duration: 1.6s; }
}
