/* ============================================================
   W3xcel v2 — Solo Consultant Edition
   WCAG 2.1 AA | Mobile-First | Authoritative tone
   ============================================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
img, video { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

:root {
  --navy:       #1a2456;
  --navy-dark:  #0f1535;
  --navy-mid:   #1e2d6b;
  --orange:     #f97340;
  --pink:       #e8436e;
  --white:      #ffffff;
  --text:       #e8eaf6;
  --muted:      #8b91b5;
  --subtle:     rgba(255,255,255,0.06);
  --border:     rgba(255,255,255,0.08);
  --grad:       linear-gradient(135deg,#f97340 0%,#e8436e 50%,#c2256e 100%);
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  18px;
  --radius-xl:  24px;
  --t:          .22s ease;
}

html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--navy-dark);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }

/* ---- ADA: Skip Link ---- */
.skip-link {
  position: absolute; top: -100%; left: 1rem;
  background: var(--orange); color: #fff;
  padding: .5rem 1.1rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-family: 'Sora', sans-serif; font-weight: 600; font-size: .88rem;
  z-index: 9999; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 0; }

/* ---- ADA: Focus ---- */
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: var(--radius-sm); }

/* ---- ADA: SR Only ---- */
.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; }

/* ---- Type ---- */
h1,h2,h3,h4,h5,h6 { font-family: 'Sora', sans-serif; line-height: 1.15; }
h1 { font-size: clamp(2.1rem,5.5vw,4rem);  font-weight: 800; letter-spacing: -.75px; }
h2 { font-size: clamp(1.6rem,3.5vw,2.5rem); font-weight: 700; }
h3 { font-size: clamp(1rem,2vw,1.2rem);     font-weight: 700; }
p  { font-size: 1rem; line-height: 1.8; }
a  { color: var(--orange); text-underline-offset: 3px; }

/* ---- Utilities ---- */
.container    { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
.container-sm { max-width: 760px;  margin: 0 auto; padding: 0 2rem; }
section { padding: 5rem 0; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.section-label {
  display: block;
  font-family: 'Sora', sans-serif; font-size: .72rem; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--orange); margin-bottom: .85rem;
}
.lead { font-size: 1.1rem; color: var(--muted); line-height: 1.8; max-width: 600px; }
.text-muted { color: var(--muted); }
.text-center { text-align: center; }
.mt-sm { margin-top: 1rem; }
.mt-md { margin-top: 2rem; }
.mt-lg { margin-top: 3rem; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  font-family: 'Sora', sans-serif; font-size: .9rem; font-weight: 600;
  padding: .85rem 2rem; border-radius: var(--radius-md);
  border: none; cursor: pointer; text-decoration: none;
  transition: opacity var(--t), transform var(--t);
  line-height: 1; text-align: center;
}
.btn:hover { opacity: .85; transform: translateY(-2px); }
.btn-primary { background: var(--grad); color: #fff; }
.btn-outline  { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.25); }
.btn-outline:hover { border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.05); }
.btn-sm { padding: .55rem 1.2rem; font-size: .82rem; }
.btn-block { display: block; width: 100%; }

/* ---- Header ---- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(15,21,53,.96); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem; gap: 1rem;
}
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo img { height: 36px; width: auto; }
.nav-logo-fallback {
  font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.2rem;
  background: var(--grad); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text; display: none;
}
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  color: var(--muted); text-decoration: none;
  font-family: 'Sora', sans-serif; font-size: .86rem; font-weight: 500;
  transition: color var(--t); padding: .2rem 0;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--white); }
.nav-links a[aria-current="page"] { border-bottom: 2px solid var(--orange); }
.nav-cta {
  background: var(--grad); color: #fff; border: none;
  padding: .6rem 1.4rem; border-radius: var(--radius-md);
  font-family: 'Sora', sans-serif; font-size: .86rem; font-weight: 600;
  cursor: pointer; text-decoration: none; display: inline-block;
  transition: opacity var(--t), transform var(--t); white-space: nowrap;
}
.nav-cta:hover { opacity: .85; transform: translateY(-1px); }

/* Hamburger */
.nav-toggle {
  display: none; flex-direction: column;
  justify-content: center; align-items: center; gap: 5px;
  background: transparent; border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: .5rem .6rem;
  cursor: pointer; width: 44px; height: 44px;
  transition: border-color var(--t);
}
.nav-toggle:hover { border-color: rgba(255,255,255,.4); }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--white); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-menu {
  display: none; flex-direction: column; gap: .1rem;
  padding: 1rem 2rem 1.5rem;
  border-top: 1px solid var(--border);
  background: rgba(15,21,53,.98);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--muted); text-decoration: none;
  font-family: 'Sora', sans-serif; font-size: .98rem; font-weight: 500;
  padding: .7rem 0; border-bottom: 1px solid rgba(255,255,255,.06);
  transition: color var(--t);
}
.mobile-menu a:last-of-type { border-bottom: none; }
.mobile-menu a:hover { color: var(--white); }
.mobile-menu .nav-cta { margin-top: .85rem; text-align: center; display: block; }

/* ---- Page hero (inner pages) ---- */
.page-hero {
  padding: 9rem 0 4.5rem; text-align: center;
  position: relative; overflow: hidden;
  background: linear-gradient(180deg,var(--navy-dark) 0%,var(--navy) 100%);
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 65% 55% at 50% 0%,rgba(249,115,64,.11) 0%,transparent 70%);
  pointer-events: none;
}
.page-hero .container { position: relative; }
.page-hero h1 { margin-bottom: 1rem; }
.page-hero .lead { margin: 0 auto; }

/* ---- Breadcrumb ---- */
.breadcrumb {
  display: flex; align-items: center; gap: .5rem;
  font-size: .8rem; color: var(--muted);
  margin-bottom: 1.5rem; flex-wrap: wrap; justify-content: center;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--white); }

/* ---- Divider ---- */
.divider { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }

/* ---- Prose (legal pages) ---- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 1.3rem; font-weight: 700; margin: 2.5rem 0 .75rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.prose h2:first-of-type { border-top: none; padding-top: 0; margin-top: 1rem; }
.prose h3 { font-size: 1rem; font-weight: 600; margin: 1.5rem 0 .4rem; }
.prose p  { color: var(--text); margin-bottom: 1rem; font-size: .95rem; line-height: 1.8; }
.prose ul, .prose ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.prose li { color: var(--text); font-size: .95rem; line-height: 1.8; margin-bottom: .3rem; }
.prose ul li { list-style: disc; }
.prose ol li { list-style: decimal; }
.prose a { color: var(--orange); }
.prose strong { color: var(--white); }
.prose .note { background: rgba(249,115,64,.07); border-left: 3px solid var(--orange); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 1rem 1.25rem; margin: 1.5rem 0; }
.prose .note p { margin: 0; }

/* ---- Forms ---- */
.form-group { display: flex; flex-direction: column; gap: .3rem; margin-bottom: 1rem; }
.form-group label { font-size: .82rem; font-family: 'Sora', sans-serif; font-weight: 600; color: var(--muted); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: .85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.06);
  color: #fff; font-family: 'DM Sans', sans-serif; font-size: .92rem;
  transition: border-color var(--t), background var(--t); appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,.3); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--orange); background: rgba(249,115,64,.05);
  outline: none; box-shadow: 0 0 0 3px rgba(249,115,64,.2);
}
.form-group select option { background: var(--navy-dark); }
.form-group textarea { resize: vertical; min-height: 110px; }
.field-error { font-size: .78rem; color: #f87171; display: none; margin-top: .2rem; }
.field-error.show { display: block; }
.form-success { display: none; text-align: center; padding: 3rem 1rem; }
.form-success h3 { color: #4ade80; font-family: 'Sora', sans-serif; font-size: 1.3rem; margin-bottom: .75rem; }
.form-success p { color: var(--muted); font-size: .9rem; line-height: 1.65; }

/* ---- Footer ---- */
footer { background: var(--navy-dark); border-top: 1px solid var(--border); }
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem; padding: 3.5rem 2rem 2.5rem;
}
.footer-brand p { font-size: .84rem; color: var(--muted); line-height: 1.75; margin-top: .85rem; max-width: 280px; }
.footer-brand img { height: 32px; }
.footer-col h4 { font-family: 'Sora', sans-serif; font-size: .72rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-bottom: 1.1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: .55rem; }
.footer-col a { color: var(--text); font-size: .85rem; text-decoration: none; transition: color var(--t); }
.footer-col a:hover { color: var(--orange); }
.footer-bottom {
  border-top: 1px solid var(--border);
  max-width: 1100px; margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer-bottom p { font-size: .78rem; color: var(--muted); }
.footer-legal { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-legal a { font-size: .78rem; color: var(--muted); text-decoration: none; transition: color var(--t); }
.footer-legal a:hover { color: var(--white); }

/* ---- Pulse dot ---- */
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.3} }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); display: inline-block; animation: pulse 2s infinite; }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 580px) {
  section { padding: 3.5rem 0; }
  .container, .container-sm { padding: 0 1.25rem; }
  .nav-inner { padding: .75rem 1.25rem; }
  .page-hero { padding: 7.5rem 0 3rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; padding: 2.5rem 1.25rem 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; padding: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
@media (forced-colors: active) {
  .btn-primary, .nav-cta { border: 2px solid ButtonText; }
}
@media print {
  .site-header, .nav-toggle, .mobile-menu { display: none; }
  body { background: #fff; color: #000; }
}
