/* ==========================================================================
   Bluejay Delivery — site stylesheet
   ========================================================================== */

:root {
  --ink: #0b1f2e;
  --ink-soft: #3c4f5e;
  --muted: #64788a;
  --brand: #0e74ab;
  --brand-deep: #0a567f;
  --accent: #f26a21;
  --paper: #ffffff;
  --mist: #f4f7f9;
  --border: #e2e9ee;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 31, 46, 0.08);
  --font-display: "Sora", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

[id] { scroll-margin-top: 84px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 0.6em;
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }

p { margin: 0 0 1em; }

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-deep); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

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

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.9rem;
}

/* --- Buttons --------------------------------------------------------- */

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.8rem 1.7rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-deep); color: #fff; }

.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--mist); color: var(--ink); }

.btn-outline { border-color: var(--border); color: var(--ink); background: transparent; }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }

/* --- Header ----------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand img { height: 46px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
}

.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--brand); }

.nav-links .btn { padding: 0.55rem 1.3rem; }
.nav-links .btn:hover { color: #fff; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  color: var(--ink);
}

.nav-toggle svg { display: block; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 8px 24px 16px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 0; }
  .nav-links .btn { margin-top: 8px; text-align: center; width: 100%; }
}

/* --- Hero ------------------------------------------------------------- */

.hero {
  position: relative;
  color: #fff;
  display: flex;
  align-items: center;
  min-height: clamp(480px, 72vh, 680px);
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(7, 24, 36, 0.88) 0%, rgba(7, 24, 36, 0.62) 50%, rgba(7, 24, 36, 0.3) 100%);
}

.hero .container { padding-top: 72px; padding-bottom: 72px; }

.hero h1 { color: #fff; max-width: 15ch; }

.hero .lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  max-width: 48ch;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
}

.hero .eyebrow { color: #7fc5ec; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* Rate card (hero) */

.rate-card {
  background: rgba(10, 29, 43, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.rate-card h3 {
  color: #fff;
  font-size: 0.875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.rate-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.rate-row:last-of-type { border-bottom: 0; }

.rate-row a { color: #fff; font-weight: 500; }
.rate-row a:hover { color: #7fc5ec; }
.rate-row small { display: block; color: rgba(255, 255, 255, 0.55); font-size: 0.8125rem; }

.rate-row strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: #ffb25e;
  white-space: nowrap;
}

.rate-row strong sub {
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  vertical-align: baseline;
}

/* Role cards (pay-forward) */

.role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.role-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.role-card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.role-card .loc {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

.role-card h3 { margin-bottom: 0.2rem; }

.role-card .pay {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--brand-deep);
  letter-spacing: -0.02em;
  margin: 0.4rem 0 1rem;
}

.role-card .pay small {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}

.role-card .perks { color: var(--muted); font-size: 0.95rem; margin: 0 0 1.4rem; }

.role-card .btn { margin-top: auto; align-self: flex-start; }

/* A-day-with-us timeline */

.day-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px;
  counter-reset: day-step;
}

.day-step {
  position: relative;
  padding: 20px 18px 0;
}

.day-step::before {
  counter-increment: day-step;
  content: counter(day-step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.day-step::after {
  content: "";
  position: absolute;
  top: 37px;
  left: 52px;
  right: 0;
  height: 2px;
  background: var(--border);
}

.day-step:last-child::after { display: none; }

.day-step strong {
  display: block;
  font-family: var(--font-display);
  color: var(--ink);
  margin-bottom: 4px;
}

.day-step span { font-size: 0.9rem; color: var(--muted); }

/* FAQ accordion */

.faq-list { max-width: 820px; margin: 0 auto; }

details.faq {
  border-bottom: 1px solid var(--border);
  padding: 4px 0;
}

details.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
}

details.faq summary::-webkit-details-marker { display: none; }

details.faq summary::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--brand);
  transition: transform 0.2s ease;
}

details.faq[open] summary::after { transform: rotate(45deg); }

details.faq .faq-body { padding: 0 0 20px; color: var(--ink-soft); }
details.faq .faq-body p:last-child { margin-bottom: 0; }

/* Compact hero for interior pages */
.page-hero {
  background: linear-gradient(115deg, #0a1d2b 0%, #0e3350 60%, #0e5e8d 100%);
  color: #fff;
  padding: clamp(48px, 8vw, 88px) 0;
}

.page-hero h1 { color: #fff; margin-bottom: 0.3em; }
.page-hero p { color: rgba(255, 255, 255, 0.8); max-width: 60ch; margin: 0; }
.page-hero .eyebrow { color: #7fc5ec; }

/* --- Stats band -------------------------------------------------------- */

.stats {
  background: var(--paper);
  border-bottom: 1px solid var(--border);
}

.stats .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 36px;
  padding-bottom: 36px;
}

.stat { text-align: center; }

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.stat span { font-size: 0.95rem; color: var(--muted); }

@media (max-width: 640px) {
  .stats .container { grid-template-columns: 1fr; gap: 20px; }
}

/* --- Sections ---------------------------------------------------------- */

.section { padding: clamp(64px, 9vw, 108px) 0; }
.section.tinted { background: var(--mist); }

.section-head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.centered { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }

/* --- Cards ------------------------------------------------------------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
}

.card h3 { margin-bottom: 0.5em; }
.card p { margin: 0; color: var(--muted); }

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #e8f3fa;
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}

.card-icon svg { width: 24px; height: 24px; }

/* --- Split (about) ------------------------------------------------------ */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.split-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.split-media img { width: 100%; height: 100%; object-fit: cover; }

.checklist { list-style: none; margin: 1.5rem 0 0; padding: 0; }

.checklist li {
  position: relative;
  padding-left: 34px;
  margin-bottom: 0.9rem;
  color: var(--ink-soft);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3.2" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>') center / 12px no-repeat;
}

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
}

/* --- CTA band ----------------------------------------------------------- */

.band {
  background: linear-gradient(115deg, #0a1d2b 0%, #0e3350 55%, #0e5e8d 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(40px, 6vw, 64px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.band h2 { color: #fff; margin: 0 0 0.3em; }
.band p { color: rgba(255, 255, 255, 0.8); margin: 0; max-width: 52ch; }

/* --- Contact ------------------------------------------------------------ */

.contact-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.form-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 40px);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
}

.field { margin-bottom: 16px; }

.field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.field select {
  width: 100%;
  font: inherit;
  color: var(--ink);
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
}

.field input, .field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  transition: border-color 0.15s ease;
}

.field input:focus, .field textarea:focus {
  border-color: var(--brand);
  outline: none;
}

.field textarea { resize: vertical; min-height: 120px; }

.sms-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 4px 0 20px;
}

.sms-consent input[type="checkbox"] { margin-top: 3px; flex: 0 0 auto; }

.sms-consent a { text-decoration: underline; }

.form-status { margin-top: 14px; font-weight: 600; }
.form-status.ok { color: #1a7f4e; }
.form-status.err { color: #c2403a; }

.contact-list { list-style: none; margin: 1.5rem 0 0; padding: 0; }

.contact-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 1.1rem;
}

.contact-list .card-icon { width: 40px; height: 40px; margin: 0; flex: 0 0 auto; }
.contact-list strong { display: block; color: var(--ink); font-size: 0.95rem; }
.contact-list span { color: var(--muted); font-size: 0.95rem; }

.map-frame {
  margin-top: clamp(40px, 6vw, 64px);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 380px;
  border: 0;
}

/* --- Careers / job cards ------------------------------------------------ */

.job-list { display: grid; gap: 16px; }

.job-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.job-row:hover { border-color: var(--brand); box-shadow: var(--shadow); }

.job-row h3 { margin: 0 0 4px; }
.job-row h3 a { color: var(--ink); }
.job-row h3 a:hover { color: var(--brand); }
.job-row .meta { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* --- Job detail / legal prose ------------------------------------------- */

.prose-wrap { max-width: 820px; margin: 0 auto; }

.prose h2 {
  font-size: 1.35rem;
  margin-top: 2.2em;
}

.prose ul { padding-left: 1.3rem; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.4em; }

.prose strong { color: var(--ink); }

.job-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 1.8rem; }

.chip {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-deep);
  background: #e8f3fa;
  border-radius: 999px;
  padding: 6px 14px;
}

.apply-box {
  margin-top: 2.5rem;
  padding: 24px 28px;
  background: var(--mist);
  border-radius: var(--radius);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.apply-box p { margin: 0; font-weight: 600; color: var(--ink); }

.eeo {
  max-width: 820px;
  margin: 2.5rem auto 0;
  font-size: 0.8125rem;
  color: var(--muted);
  text-align: center;
}

/* --- Footer ------------------------------------------------------------- */

.site-footer {
  background: #0a1724;
  color: #9fb3c2;
  padding: clamp(48px, 7vw, 72px) 0 0;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 48px;
}

.site-footer address { font-style: normal; }

@media (max-width: 980px) and (min-width: 761px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

.site-footer .brand {
  background: #fff;
  padding: 10px 16px;
  border-radius: 12px;
}

.site-footer .brand img { height: 42px; }

.footer-tagline { margin-top: 16px; max-width: 36ch; font-size: 0.95rem; }

.site-footer h4 {
  color: #fff;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}

.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer ul li { margin-bottom: 0.65rem; }
.site-footer a { color: #c4d4e0; }
.site-footer a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  font-size: 0.875rem;
}

.footer-bottom .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}

/* --- Utilities ----------------------------------------------------------- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
