/*
 * aptria.css — Shared design system for Aptria.net
 * Single <link> for all content pages. Orange + Blues + Whites palette.
 * Pages in /vs/ subfolder: href="../assets/aptria.css"
 * ------------------------------------------------------------------ */

/* ================================================================
   1. DESIGN TOKENS
   ================================================================ */
:root {
  /* Light surfaces (formerly navy bases) — kept names so all selectors below still resolve.
     navy-deep / navy / navy-soft now map to light slate tints for legibility on white. */
  --navy-deep: #1e293b;   /* dark slate — used only where a dark element is still wanted (e.g. table head) */
  --navy:      #1e293b;
  --navy-soft: #334155;

  /* Azure accents (replaces all blues) */
  --blue:       #2389c6;
  --blue-bright:#4aa8e0;
  --blue-dim:   #1c7bb0;
  --blue-glow:  rgba(35,137,198,.14);

  /* ORANGE accent — primary CTA / highlight */
  --orange:       #ff6b00;
  --orange-bright:#ff8534;
  --orange-deep:  #e25c00;
  --orange-glow:  rgba(255,107,0,.18);

  /* Whites / light neutral surfaces */
  --paper: #ffffff;
  --mist:  #ffffff;
  --mist2: #f1f5f9;
  --line:  #e2e8f0;

  /* Ink text (dark, for light backgrounds) */
  --ink:  #1e293b;
  --ink2: #475569;
  --ink3: #7c95ac;

  /* Text on dark backgrounds (table head, etc.) */
  --on-dark:  #ffffff;
  --on-dark2: #cbd5e1;

  /* Typography */
  --disp: 'Hanken Grotesk', system-ui, sans-serif;
  --sans: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', 'Courier New', monospace;

  /* Layout */
  --max: 1140px;
  --r:   16px;
  --sh:  0 10px 40px -10px rgba(0,0,0,.1);
}

/* ================================================================
   2. RESET & BASE
   ================================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background: var(--mist);
  color: var(--ink);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

section {
  position: relative;
}

/* ================================================================
   3. LAYOUT CONTAINER
   ================================================================ */
.w {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ================================================================
   4. TYPOGRAPHY
   ================================================================ */
h1, h2, h3 {
  font-family: var(--disp);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.02em;
}

h1 { font-size: clamp(36px, 6vw, 64px); }
h2 { font-size: clamp(28px, 4.5vw, 46px); }
h3 { font-size: clamp(18px, 2.5vw, 24px); }

p { margin-bottom: 0; }

a {
  color: var(--blue);
  text-decoration: none;
}
a:hover {
  color: var(--blue-bright);
  text-decoration: underline;
}

.kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--orange);
}

/* ================================================================
   5. BUTTONS
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--disp);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s, color .15s;
  text-decoration: none;
  white-space: nowrap;
}

/* Primary — orange w/ white text */
.btn-p {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 6px 22px var(--orange-glow);
}
.btn-p:hover {
  background: var(--orange-bright);
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px var(--orange-glow);
}

/* Ghost — outline azure, now used on light backgrounds */
.btn-g {
  background: transparent;
  color: var(--blue-dim);
  border-color: var(--line);
}
.btn-g:hover {
  border-color: var(--blue-bright);
  color: var(--blue-bright);
  text-decoration: none;
  background: var(--blue-glow);
  transform: translateY(-2px);
}

/* Light — white w/ border, for use on light cards */
.btn-light {
  background: #fff;
  color: var(--navy);
  border-color: var(--line);
}
.btn-light:hover {
  background: var(--mist);
  color: var(--navy);
  text-decoration: none;
  transform: translateY(-2px);
}

/* Small modifier */
.btn-sm {
  padding: 10px 20px;
  font-size: 14px;
}

/* ================================================================
   6. NAV — sticky, translucent navy, blur
   ================================================================ */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

nav .w {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 16px;
}

.brand-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  gap: 12px;
}
.brand-link:hover { text-decoration: none; }

.brand-logo {
  width: 76px;
  height: auto;
  aspect-ratio: 634/782;
  object-fit: contain;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-text strong {
  font-family: var(--disp);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: .04em;
}
.brand-text small {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink2);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nl {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink2);
  text-decoration: none;
}
.nl:hover {
  color: var(--orange);
  text-decoration: none;
}

/* ================================================================
   7. FOOTER — dark navy
   ================================================================ */
footer {
  background: #f8fafc;
  color: var(--ink2);
  border-top: 1px solid var(--line);
  padding: 36px 0;
}

footer .w {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.f-logo {
  width: 121px;
  height: auto;
  aspect-ratio: 634/782;
  object-fit: contain;
  display: block;
}

.f-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.f-links a {
  font-size: 14px;
  color: var(--ink2);
  text-decoration: none;
}
.f-links a:hover {
  color: var(--blue);
  text-decoration: none;
}

.f-copy {
  width: 100%;
  font-size: 12px;
  color: var(--ink3);
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 8px;
}

/* ================================================================
   8. PAGE HERO — navy gradient band with orange glow
   ================================================================ */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 88px;
  background: #ffffff;
  color: var(--ink);
}

/* Subtle ambient color blobs */
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 45% at 80% 0%, rgba(35,137,198,.06), transparent 60%),
    radial-gradient(ellipse 55% 50% at 10% 100%, var(--orange-glow), transparent 65%);
  pointer-events: none;
}

/* Bottom edge line */
.page-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
}

.page-hero .kicker {
  color: var(--orange);
  margin-bottom: 14px;
}

.page-hero h1 {
  color: var(--ink);
  margin-bottom: 18px;
}

.page-hero .lead {
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--ink2);
  max-width: 600px;
  line-height: 1.6;
  margin-bottom: 32px;
}

.page-hero .lead b { color: var(--ink); font-weight: 600; }

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ================================================================
   9. SECTIONS
   ================================================================ */
.sec {
  padding: 88px 0;
}

.sec-head {
  max-width: 680px;
  margin-bottom: 48px;
}

.sec-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.sec-head .kicker {
  margin-bottom: 12px;
}

.sec-head h2 {
  margin: 0 0 14px;
  color: var(--ink);
}

.sec-head p {
  font-size: 18px;
  color: var(--ink2);
}

/* Dark-tinted section variant — now a light tinted band */
.sec-dark {
  background: var(--mist2);
  color: var(--ink);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.sec-dark .sec-head h2 { color: var(--ink); }
.sec-dark .sec-head p  { color: var(--ink2); }
.sec-dark .kicker      { color: var(--orange); }

/* Light-accent section */
.sec-mist { background: var(--mist2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-white { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ================================================================
   10. PROSE — long-form article body
   ================================================================ */
.prose {
  max-width: 720px;
  margin: 0 auto;
  font-size: 17px;
  color: var(--ink);
  line-height: 1.75;
}

.prose p + p { margin-top: 1.25em; }

.prose h2 {
  font-size: clamp(22px, 3vw, 30px);
  margin: 2.2em 0 .6em;
  color: var(--ink);
  letter-spacing: -.02em;
}

.prose h3 {
  font-size: clamp(18px, 2.2vw, 22px);
  margin: 1.8em 0 .5em;
  color: var(--navy);
}

.prose ul,
.prose ol {
  padding-left: 1.5em;
  margin: 1em 0 1.25em;
}

.prose li {
  margin-bottom: .5em;
  color: var(--ink2);
}

.prose strong { color: var(--ink); font-weight: 600; }

.prose a {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.prose a:hover { color: var(--blue-bright); }

/* ================================================================
   11. CARDS
   ================================================================ */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 28px;
  box-shadow: var(--sh);
  transition: transform .18s, box-shadow .18s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px -12px rgba(0,0,0,.14);
}

.card h3 { font-size: 20px; margin-bottom: 8px; }
.card p  { font-size: 15px; color: var(--ink2); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

/* Featured card — orange accent border */
.card-feat {
  border: 2px solid var(--orange);
  box-shadow: 0 16px 36px var(--orange-glow);
}

/* ================================================================
   12. CALLOUT / PULL-QUOTE
   ================================================================ */
.callout {
  border-left: 4px solid var(--orange);
  background: var(--mist2);
  border-radius: 0 var(--r) var(--r) 0;
  padding: 20px 24px;
  margin: 2em 0;
}

.callout p {
  font-size: 17px;
  color: var(--ink);
  line-height: 1.65;
}

.callout strong { color: var(--orange-deep); }

.pull-quote {
  border-left: 4px solid var(--orange);
  background: var(--mist2);
  border-radius: 0 var(--r) var(--r) 0;
  padding: 24px 28px;
  margin: 2em 0;
}

.pull-quote p {
  font-family: var(--disp);
  font-size: clamp(18px, 2.5vw, 22px);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.4;
  margin: 0;
}

/* ================================================================
   13. TABLE (.tbl) — comparison / glossary
   ================================================================ */
.tbl-wrap {
  overflow-x: auto;
  border-radius: var(--r);
  border: 1px solid var(--line);
  box-shadow: var(--sh);
  margin: 2em 0;
}

.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  background: var(--paper);
}

.tbl thead tr {
  background: #1e293b;
  color: #ffffff;
}

.tbl thead th {
  padding: 14px 18px;
  text-align: left;
  font-family: var(--disp);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tbl tbody tr:nth-child(even) {
  background: var(--mist2);
}

.tbl tbody tr:hover {
  background: var(--mist2);
}

.tbl td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--ink2);
  vertical-align: top;
  line-height: 1.55;
}

.tbl td:first-child {
  font-weight: 600;
  color: var(--ink);
}

/* Pass / Fail cell badges */
.tbl .pass { color: var(--blue); font-weight: 700; }
.tbl .fail { color: var(--orange-deep); font-weight: 700; }

/* ================================================================
   14. CHECKLIST — audit rows
   ================================================================ */
.checklist {
  list-style: none;
  padding: 0;
  margin: 1.5em 0;
  display: grid;
  gap: 16px;
}

.checklist li {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 20px 22px;
  box-shadow: var(--sh);
}

.checklist li::before { content: none; }

.checklist .question {
  grid-column: 1 / -1;
  font-family: var(--disp);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.35;
  color: var(--ink);
  margin: 0;
}

.checklist .pass-item,
.checklist .fail-item {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink2);
  padding: 12px 14px;
  border-radius: 8px;
}

.checklist .pass-item::before,
.checklist .fail-item::before { content: none; }

.checklist .pass-item {
  background: #eaf4fb;
  border-left: 3px solid var(--blue);
}

.checklist .fail-item {
  background: #fff4ec;
  border-left: 3px solid var(--orange);
}

.checklist .pass-item strong { color: var(--blue-dim); }
.checklist .fail-item strong { color: var(--orange-deep); }

@media (max-width: 640px) {
  .checklist li { grid-template-columns: 1fr; }
}

/* ================================================================
   15. FAQ / Q&A BLOCK
   ================================================================ */
.faq {
  max-width: 780px;
  margin: 0 auto;
}

.qa {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 24px 28px;
  margin-bottom: 12px;
  box-shadow: var(--sh);
}

.qa h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--ink);
}

.qa p {
  font-size: 16px;
  color: var(--ink2);
  line-height: 1.65;
}

/* Highlighted/poetic variant */
.qa.callout-qa {
  border-left: 4px solid var(--orange);
  background: linear-gradient(90deg, var(--mist2), var(--paper) 40%);
}

/* ================================================================
   16. DISCLAIMER
   ================================================================ */
.disclaimer {
  font-size: 13px;
  font-style: italic;
  color: var(--ink3);
  line-height: 1.6;
  margin-top: 1.5em;
  padding-top: 1em;
  border-top: 1px solid var(--line);
}

/* ================================================================
   17. CTA BOX — centered navy booking panel
   ================================================================ */
.cta-box {
  background: #ffffff;
  color: var(--ink);
  border-radius: 24px;
  padding: 56px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 10px 40px -10px rgba(0,0,0,.1);
}

/* Orange glow radial from top-right */
.cta-box::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -60px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--orange-glow), transparent 70%);
  pointer-events: none;
}

.cta-in {
  position: relative;
  z-index: 1;
}

.cta-box h2 {
  color: var(--ink);
  font-size: clamp(26px, 4vw, 42px);
  margin-bottom: 14px;
}

.cta-box p {
  color: var(--ink2);
  font-size: 18px;
  max-width: 520px;
  margin: 0 auto 28px;
}

.cta-contact {
  margin-top: 22px;
  font-size: 15px;
  color: var(--ink2);
}

.cta-contact a {
  color: var(--orange-deep);
  font-weight: 600;
  text-decoration: none;
}
.cta-contact a:hover {
  color: var(--orange);
  text-decoration: underline;
}

/* Standalone CTA section wrapper */
#cta { padding: 88px 0; }

/* ================================================================
   18. PILLS / CHIPS
   ================================================================ */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue-glow);
  border: 1px solid rgba(35,137,198,.25);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-dim);
}

.pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange-bright);
  box-shadow: 0 0 0 4px var(--orange-glow);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink2);
}

/* Orange-tinted chip variant */
.chip-orange {
  background: var(--orange-glow);
  border-color: rgba(255,122,26,.3);
  color: var(--orange-deep);
}

/* ================================================================
   19. REVEAL ON SCROLL (.rev)
   ================================================================ */
.rev {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}

.rev.v {
  opacity: 1;
  transform: none;
}

.d1 { transition-delay: .08s; }
.d2 { transition-delay: .16s; }
.d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  .rev {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ================================================================
   20. RESPONSIVE BREAKPOINTS
   ================================================================ */

/* Tablet — 980px */
@media (max-width: 980px) {
  .card-grid {
    grid-template-columns: 1fr 1fr;
  }

  .page-hero {
    padding: 60px 0 68px;
  }
}

/* Mobile — 760px */
@media (max-width: 760px) {
  /* Hide nav links; show only CTA */
  .nav-links {
    display: none;
  }

  /* Section padding reduction */
  .sec { padding: 64px 0; }
  #cta  { padding: 64px 0; }

  /* Hero */
  .page-hero { padding: 48px 0 56px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }

  /* Grids collapse */
  .card-grid { grid-template-columns: 1fr; }

  /* CTA box */
  .cta-box { padding: 40px 24px; }

  /* Table: allow scroll */
  .tbl-wrap { border-radius: 0; }

  /* Footer reflow */
  footer .w { flex-direction: column; align-items: flex-start; }
  .f-links  { flex-direction: column; gap: 10px; }
}

/* Small mobile — 420px */
@media (max-width: 420px) {
  body { font-size: 16px; }

  .btn { font-size: 14px; padding: 11px 20px; }
  .btn-sm { padding: 9px 16px; font-size: 13px; }

  .cta-box { padding: 32px 16px; }

  .qa { padding: 18px 20px; }
  .callout, .pull-quote { padding: 16px 18px; }
}
