/* Survesti draft marketing site
   Palette sampled from Stewart's mockup and the logo PNG. Ratios from contrast.py (WCAG 2.1).
   Navy          #1B2A4A  headings, body on light, navy band          14.22 on white
   Slate         #4A5568  body copy                                    7.53 on white, 7.01 on grey
   Orange        #B4541A  buttons (white text 4.97), eyebrows, flag    4.97 on white, 4.63 on grey
   Orange hover  #9A4715  button hover                                 6.39 with white text
   Logo orange   #E07A2F  decorative only (squares, parcel outline)    3.00 on white, not used for text
   Light orange  #F2A66B  eyebrow and step numbers on navy             7.07 on navy
   Mist          #D5DCE8  body text on navy                           10.31 on navy
   Green         #1E7A46  "Shared with every department" check line    5.35 on white
   Grey          #F5F7FA  section backgrounds
   Panel         #EEF2F7  hero map panels (decorative)
   Rule          #E3E8EF  borders
   Color is never the only carrier of meaning. Links in body and footer are underlined on hover and focus.
*/

@font-face {
  font-family: "Space Grotesk";
  src: url("assets/fonts/SpaceGrotesk-Variable.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --navy: #1B2A4A;
  --slate: #4A5568;
  --orange: #B4541A;
  --orange-hover: #9A4715;
  --logo-orange: #E07A2F;
  --light-orange: #F2A66B;
  --mist: #D5DCE8;
  --green: #1E7A46;
  --grey: #F5F7FA;
  --panel: #EEF2F7;
  --rule: #E3E8EF;
  --white: #FFFFFF;
  --display: "Space Grotesk", "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --shadow: 0 2px 4px rgba(27, 42, 74, 0.06), 0 16px 40px rgba(27, 42, 74, 0.12);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none; }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--slate);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { color: var(--navy); margin: 0; }

h1, h2 { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; }

h3 { font-family: var(--display); font-weight: 600; font-size: 1.1875rem; line-height: 1.3; }

p { margin: 0; }

ul, ol, dl, dd { margin: 0; padding: 0; }

ul, ol { list-style: none; }

a { color: var(--navy); }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--navy); color: var(--white); padding: 0.6rem 1rem; border-radius: 6px;
}
.skip-link:focus { top: 1rem; }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); background: var(--white); }
.header-inner { display: flex; align-items: center; gap: 2rem; min-height: 80px; }
.logo { height: 34px; width: auto; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 2rem; }
.site-nav a { text-decoration: none; font-weight: 500; font-size: 0.9375rem; color: var(--navy); }
.site-nav a:hover, .site-nav a:focus-visible { text-decoration: underline; text-underline-offset: 0.3em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0.75rem 1.4rem; border-radius: 8px;
  font-weight: 600; font-size: 1rem; text-decoration: none; line-height: 1.2;
  border: 2px solid transparent;
}
.btn-primary { background: var(--orange); color: var(--white); border-color: var(--orange); }
.btn-primary:hover { background: var(--orange-hover); border-color: var(--orange-hover); color: var(--white); }
.btn-outline { background: var(--white); color: var(--navy); border: 1.5px solid var(--navy); }
.btn-outline:hover { background: var(--grey); }
.btn-small { min-height: 44px; padding: 0.55rem 1rem; font-size: 0.9375rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.btn-row-center { justify-content: center; }

/* Eyebrows */
.eyebrow {
  color: var(--orange); font-weight: 600; font-size: 0.8125rem;
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1rem;
}
.eyebrow-light { color: var(--light-orange); }

/* Hero */
.hero { padding: 4rem 0 6.5rem; }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.hero-copy { padding-top: 1rem; }
.hero h1 { font-size: clamp(2.6rem, 5.2vw, 4.25rem); line-height: 1.05; margin-bottom: 1.5rem; }
.lede { font-size: 1.1875rem; line-height: 1.6; max-width: 34rem; color: var(--slate); }

.hero-visual { position: relative; padding-bottom: 2rem; }
.hero-map { width: 100%; }
.parcel-card {
  position: absolute; left: -2%; bottom: -4rem; width: min(300px, 62%);
  margin: 0; background: var(--white); border-radius: 12px; box-shadow: var(--shadow);
  padding: 1.1rem 1.25rem 1rem; font-size: 0.875rem;
}
.card-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.5rem; }
.card-title { font-weight: 700; color: var(--navy); font-size: 1rem; }
.card-tag { font-size: 0.75rem; color: var(--slate); }
.parcel-card dl div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.28rem 0; }
.parcel-card dt { color: var(--slate); }
.parcel-card dd { color: var(--navy); font-weight: 500; text-align: right; }
.parcel-card dd.flag { color: var(--orange); font-weight: 600; }
.card-shared {
  display: flex; align-items: center; gap: 0.45rem; margin-top: 0.6rem; padding-top: 0.6rem;
  border-top: 1px solid var(--rule); color: var(--green); font-weight: 600; font-size: 0.8125rem;
}

/* Audience strip */
.audience { background: var(--grey); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.audience-list {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem 2.25rem;
  padding-top: 1.1rem; padding-bottom: 1.1rem; font-size: 0.9375rem; color: var(--navy); font-weight: 500;
}

/* Sections */
.section { padding: 6rem 0; }
.section-grey { background: var(--grey); }
.section h2 { font-size: clamp(2rem, 3.4vw, 2.75rem); line-height: 1.12; max-width: 40rem; }
.section-lede { margin-top: 1rem; max-width: 42rem; }

.record-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 3rem;
}
.record-grid li {
  border: 1px solid var(--rule); border-radius: 12px; padding: 1.5rem 1.3rem 1.6rem; background: var(--white);
}
.record-grid li::before {
  content: ""; display: block; width: 10px; height: 10px; background: var(--logo-orange); margin-bottom: 1rem;
}
.record-grid h3 { margin-bottom: 0.6rem; }
.record-grid p { font-size: 0.96875rem; }

.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 3rem; }
.why-grid li { background: var(--white); border: 1px solid var(--rule); border-radius: 12px; padding: 2rem 1.6rem; }
.icon { color: var(--navy); margin-bottom: 1.1rem; }
.why-grid h3 { margin-bottom: 0.75rem; }
.why-grid p { font-size: 0.96875rem; }

.section-navy { background: var(--navy); color: var(--mist); }
.section-navy h2, .section-navy h3 { color: var(--white); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; margin-top: 3.5rem; }
.step-num {
  display: block; font-family: var(--display); font-size: 2.75rem; font-weight: 500;
  color: var(--light-orange); line-height: 1; margin-bottom: 1.25rem;
}
.steps h3 { margin-bottom: 0.75rem; }
.steps p { font-size: 0.96875rem; }

.dept-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.security { margin-top: 2rem; max-width: 30rem; padding-left: 1.1rem; border-left: 3px solid var(--logo-orange); }
.security h3 { font-size: 1.0625rem; margin-bottom: 0.5rem; }
.security p { font-size: 0.96875rem; }
.dept-list div { padding: 1.15rem 0; border-bottom: 1px solid var(--rule); }
.dept-list div:first-child { padding-top: 0.35rem; }
.dept-list div:last-child { border-bottom: 0; }
.dept-list dt { color: var(--navy); font-weight: 700; font-size: 1rem; }
.dept-list dd { font-size: 0.96875rem; margin-top: 0.15rem; }

.section-cta { padding-top: 0; }
#departments { padding-bottom: 4.5rem; }
.cta-box { background: var(--grey); border-radius: 18px; padding: 4rem 2rem; text-align: center; }
.cta-box h2 { margin: 0 auto 1rem; max-width: none; }
.cta-box p { max-width: 28rem; margin: 0 auto; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); padding: 2rem 0; font-size: 0.875rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.copyright { color: var(--navy); font-weight: 500; }
.footer-line { margin-top: 0.15rem; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { text-decoration: none; color: var(--navy); font-weight: 500; }
.footer-links a:hover, .footer-links a:focus-visible { text-decoration: underline; }

/* 404 */
.notfound { padding: 7rem 0; text-align: center; }
.notfound h1 { font-size: clamp(2.2rem, 4vw, 3.25rem); margin-bottom: 1rem; }
.notfound p { max-width: 30rem; margin: 0 auto; }

/* Responsive */
@media (max-width: 1080px) {
  .record-grid { grid-template-columns: repeat(3, 1fr); }
  .site-nav ul { gap: 1.25rem; }
}

@media (max-width: 900px) {
  .hero-inner, .dept-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; margin-bottom: 2rem; }
  .parcel-card { left: 0; }
  .record-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid, .steps { grid-template-columns: 1fr; }
  .site-nav { display: none; }
  .header-inner > .btn { margin-left: auto; }
  .section { padding: 4.5rem 0; }
  #departments { padding-bottom: 3rem; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 1.25rem; }
  .header-inner { min-height: 68px; gap: 1rem; }
  .logo { height: 28px; }
  .hero { padding: 2.5rem 0 3.5rem; }
  .lede { font-size: 1.0625rem; }
  .hero-visual { padding-bottom: 0; margin-bottom: 0; }
  .parcel-card { position: relative; left: auto; bottom: auto; width: auto; margin: -2rem 0.75rem 0; }
  .record-grid { grid-template-columns: 1fr; }
  .audience-list { gap: 0.5rem 1.5rem; }
  .btn-row .btn { flex: 1 1 100%; }
  .cta-box { padding: 3rem 1.25rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
