:root {
  --ink: #1d1d1f;
  --graphite: #2a2a2a;
  --graphite-2: #353535;
  --red: #f9423a;
  --red-dark: #d9302a;
  --paper: #ffffff;
  --paper-2: #f4f3f1;
  --line: #e3e1dd;
  --muted: #5f5d5a;
  --on-dark: #f4f3f1;
  --on-dark-muted: #b3b0ab;
  --radius: 6px;
  --wrap: 1180px;
  --font: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Poppins", var(--font);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 17px/1.6 var(--font);
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 600; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--alt { background: var(--paper-2); }
.section--dark { background: var(--graphite); color: var(--on-dark); }
.section--dark .lead, .section--dark p { color: var(--on-dark-muted); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 62ch; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 24px;
  font: 500 1rem/1 var(--font); text-decoration: none;
  border: 2px solid transparent; border-radius: var(--radius); cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-dark); }
.btn--ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn--ghost:hover { background: rgba(255,255,255,.1); }
.btn:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, button:focus-visible {
  outline: 3px solid var(--red); outline-offset: 2px;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img { width: 52px; }
.brand span { font: 600 1rem/1.1 var(--display); letter-spacing: .02em; }
.brand small { display: block; color: var(--red); font-size: .72rem; letter-spacing: .18em; }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a { display: block; padding: 10px 14px; text-decoration: none; font-weight: 500; border-radius: var(--radius); }
.nav a:hover { background: var(--paper-2); }
.nav a[aria-current="page"] { color: var(--red); }
.header-phone { white-space: nowrap; font-weight: 700; padding: 0 18px; }
.header-phone svg { flex: none; }
.nav-toggle { display: none; }

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; border: 1px solid var(--line); border-radius: var(--radius);
    background: #fff; cursor: pointer;
  }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    display: block; width: 20px; height: 2px; background: var(--ink); position: relative; content: "";
  }
  .nav-toggle span::before { position: absolute; top: -6px; }
  .nav-toggle span::after { position: absolute; top: 6px; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); display: none; }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; padding: 8px 16px 16px; }
  .nav a { padding: 14px 8px; }
  .header-phone { width: 48px; padding: 0; }
  .header-phone span { display: none; }
}

/* Hero */
.hero { position: relative; color: #fff; overflow: hidden; isolation: isolate; background: var(--graphite); }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: url("../img/hero.jpg") center 60% / cover no-repeat;
  animation: hero-zoom 14s cubic-bezier(.2,.6,.3,1) both;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(20,20,20,.88) 0%, rgba(20,20,20,.62) 55%, rgba(20,20,20,.25) 100%);
}
.hero .wrap { position: relative; padding: clamp(96px, 16vw, 180px) 0 clamp(80px, 12vw, 140px); }
.hero p { font-size: clamp(1.1rem, 2vw, 1.35rem); max-width: 52ch; color: #e8e6e2; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero h1 .accent { color: var(--red); }

.page-hero { background: var(--graphite); color: #fff; padding: clamp(64px, 10vw, 110px) 0 clamp(48px, 7vw, 80px); }
.page-hero p { color: var(--on-dark-muted); font-size: clamp(1.05rem, 1.8vw, 1.25rem); max-width: 56ch; margin: 0; }
.eyebrow { display: block; color: var(--red); font-weight: 700; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }

/* Layout helpers */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

/* Audience cards */
.paths { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 40px; }
@media (max-width: 720px) { .paths { grid-template-columns: 1fr; } }
.path {
  display: flex; flex-direction: column; padding: clamp(28px, 4vw, 44px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; transition: border-color .15s;
}
.path:hover { border-color: var(--ink); }
.path h3 { font-size: 1.6rem; }
.path p { color: var(--muted); flex: 1; }
.path .more { font-weight: 700; color: var(--red); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--graphite-2); border: 1px solid var(--graphite-2); margin-top: 40px; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { background: var(--graphite); padding: 28px 24px; }
.stat b { display: block; font: 600 clamp(2rem, 4.5vw, 3rem)/1 var(--display); color: #fff; margin-bottom: 10px; }
.stat span { color: var(--on-dark-muted); font-size: .95rem; }

/* Feature list */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; list-style: none; padding: 0; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .features { grid-template-columns: 1fr; } }
.features li { padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.features svg { width: 32px; height: 32px; color: var(--red); margin-bottom: 14px; }
.features h3 { margin: 0; font-size: 1.05rem; }

/* Checklist */
.checklist { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.checklist li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/14px no-repeat;
}

/* Job */
.job { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; }
@media (max-width: 860px) { .job { grid-template-columns: 1fr; } }
.job-meta { position: sticky; top: 96px; padding: 28px; background: var(--paper-2); border-radius: var(--radius); }
.job-meta dl { margin: 0 0 24px; }
.job-meta dt { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.job-meta dd { margin: 2px 0 16px; font-weight: 500; }
.duties { padding-left: 1.2em; }
.duties li { margin-bottom: .6em; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 72px); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.contact-list small { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.contact-list a { font-weight: 500; text-decoration-color: var(--red); text-underline-offset: 3px; }
.form { display: grid; gap: 18px; padding: clamp(24px, 4vw, 40px); background: var(--paper-2); border-radius: var(--radius); }
.form label { display: grid; gap: 6px; font-weight: 500; }
.form input, .form textarea, .form select {
  font: inherit; width: 100%; padding: 12px 14px; min-height: 48px;
  border: 1px solid #cfccc7; border-radius: var(--radius); background: #fff; color: var(--ink);
}
.form textarea { min-height: 140px; resize: vertical; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.form-status { margin: 0; padding: 12px 14px; border-radius: var(--radius); font-weight: 500; }
.form-status.is-ok { background: #e5f4ea; color: #1d5e33; }
.form-status.is-error { background: #fde8e7; color: #9b1d17; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form { position: relative; }
.form button[disabled] { opacity: .6; cursor: progress; }

/* CTA band */
.cta { background: var(--red); color: #fff; padding: clamp(48px, 7vw, 72px) 0; }
.cta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta h2 { margin: 0; }
.cta p { margin: 6px 0 0; color: #ffe3e1; }
.cta .btn--light { background: #fff; color: var(--ink); }
.cta .btn--light:hover { background: var(--paper-2); }

/* Footer */
.site-footer { background: #1a1a1a; color: var(--on-dark-muted); padding: 64px 0 32px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h3 { color: #fff; font-size: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-logo { width: 150px; background: #fff; padding: 10px 14px; border-radius: var(--radius); margin-bottom: 18px; }
.footer-bottom { border-top: 1px solid #333; margin-top: 48px; padding-top: 24px; font-size: .85rem; }

/* Utilities used by page markup */
.muted { color: var(--muted); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn--block { width: 100%; }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: #fff; }
.job-subtitle { margin-top: 1.5em; }
.form-title { margin: 0; }
.site-footer .footer-title { color: #fff; font-size: 1rem; }
address { font-style: normal; }

/* FAQ */
.faq { max-width: 860px; }
.faq h2 { margin-bottom: 28px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; }
.section:not(.section--alt) .faq details { background: var(--paper-2); border-color: transparent; }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 20px 56px 20px 22px; font: 600 1.05rem/1.4 var(--display);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--red); border-bottom: 2px solid var(--red);
  transform: rotate(45deg); transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq summary:hover { color: var(--red); }
.faq details p { margin: 0; padding: 0 22px 22px; color: var(--muted); }
.faq details a { color: var(--ink); text-decoration-color: var(--red); text-underline-offset: 3px; }
.faq details[open] p { animation: fade-up .35s ease-out both; }

/* ---------- Motion ---------- */
@keyframes hero-zoom { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes slide-down { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes ring {
  0%, 100% { transform: rotate(0); }
  10%, 30% { transform: rotate(-14deg); }
  20%, 40% { transform: rotate(14deg); }
  50% { transform: rotate(0); }
}
@keyframes dot-pop { 0% { opacity: 0; transform: scale(0); } 70% { transform: scale(1.5); } 100% { opacity: 1; transform: scale(1); } }

/* Entrance of the first screen */
.hero .eyebrow, .hero h1, .hero p, .hero .actions,
.page-hero .eyebrow, .page-hero h1, .page-hero p {
  animation: fade-up .8s cubic-bezier(.2,.7,.2,1) both;
}
.hero h1, .page-hero h1 { animation-delay: .12s; }
.hero p, .page-hero p { animation-delay: .24s; }
.hero .actions { animation-delay: .36s; }
.hero h1 .accent { display: inline-block; animation: dot-pop .5s .9s cubic-bezier(.3,1.6,.5,1) both; }

/* Scroll reveal (classes set by main.js; without JS everything stays visible) */
.js .reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Header */
.site-header { transition: box-shadow .25s, background-color .25s; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(0,0,0,.08); }
.header-phone svg { transform-origin: 50% 50%; }
.header-phone:hover svg { animation: ring .9s ease-in-out; }
@media (max-width: 900px) { .nav.is-open { animation: slide-down .25s ease-out; } }
.nav a { transition: background-color .15s, color .15s; }

/* Hover and press */
.btn { transition: background-color .15s, border-color .15s, color .15s, transform .15s, box-shadow .2s; }
.btn--primary:hover { box-shadow: 0 8px 20px rgba(249,66,58,.35); transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.97); box-shadow: none; }
.path, .features li, .checklist li { transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s, border-color .15s; }
.path:hover, .features li:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0,0,0,.08); }
.checklist li:hover { transform: translateX(6px); }
.path .more { display: inline-block; transition: transform .2s; }
.path:hover .more { transform: translateX(6px); }
.features svg { transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
.features li:hover svg { transform: scale(1.18) rotate(-6deg); }
.stat { transition: background-color .2s; }
.stat:hover { background: #313131; }
.form input, .form textarea, .form select { transition: border-color .15s, box-shadow .15s; }
.form input:focus, .form textarea:focus, .form select:focus { border-color: var(--red); box-shadow: 0 0 0 4px rgba(249,66,58,.15); outline: none; }
.form-status:not([hidden]) { animation: fade-up .4s ease-out both; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
