/* Big Valley Aviation — site styles */
:root {
  --red: #c62127;
  --red-dark: #9e1a1f;
  --ink: #16181b;
  --ink-2: #3a3f45;
  --muted: #5d636b;
  --line: #e3e5e8;
  --paper: #ffffff;
  --paper-2: #f5f5f3;
  --night: #121417;
  --max: 1160px;
  --radius: 6px;
  --font-head: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --font-body: "Barlow", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red-dark); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: .02em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 700; text-transform: uppercase; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); font-weight: 700; text-transform: uppercase; }
h3 { font-size: 1.35rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius);
}
.skip-link:focus { top: 12px; color: #fff; }

/* Eyebrow + swoosh rule echoing the logo */
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: .6rem;
}
.rule {
  width: 84px; height: 4px; border: 0; margin: 0 0 1.4rem;
  background: linear-gradient(90deg, var(--red) 0 60%, transparent 60% 66%, var(--red) 66% 76%, transparent 76% 82%, var(--red) 82% 88%);
}

/* ---------- Top bar & header ---------- */
.topbar { background: var(--night); color: #cfd2d6; font-size: .9rem; }
.topbar .container { display: flex; justify-content: space-between; gap: 16px; padding-top: 7px; padding-bottom: 7px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar a:hover { color: #fff; text-decoration: underline; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(140%) blur(6px);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 84px; }
.brand img { width: 170px; height: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; align-items: center; }
.nav a {
  display: block; padding: 10px 14px;
  font-family: var(--font-head); font-weight: 600; font-size: 1.1rem;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink); text-decoration: none; border-radius: var(--radius);
}
.nav a:hover { color: var(--red); }
.nav a[aria-current="page"] { color: var(--red); box-shadow: inset 0 -3px 0 var(--red); border-radius: 0; }
.nav .nav-cta a { background: var(--red); color: #fff; padding: 10px 18px; border-radius: var(--radius); box-shadow: none; }
.nav .nav-cta a:hover { background: var(--red-dark); color: #fff; }

.nav-toggle {
  display: none; background: none; border: 2px solid var(--ink); border-radius: var(--radius);
  padding: 8px 12px; font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink); cursor: pointer;
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; padding: 8px 20px 16px; gap: 2px; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--red); padding-left: 14px; }
  .nav .nav-cta a { text-align: center; margin-top: 6px; }
  .brand img { width: 120px; }
  .site-header .container { min-height: 72px; }
  .topbar .hide-sm { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: var(--radius);
  font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; border: 2px solid transparent; cursor: pointer; line-height: 1.2;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-ghost { border-color: currentColor; color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Hero ---------- */
.hero { background: var(--night); color: #d9dce0; overflow: hidden; }
.hero .container { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.hero h1 { color: #fff; }
.hero h1 span { color: var(--red); }
.hero p.lead { font-size: 1.2rem; color: #c9cdd2; max-width: 34em; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 28px; padding: 0; list-style: none; }
.hero-badges li {
  border: 1px solid #3a3f45; border-radius: 999px; padding: 5px 14px;
  font-size: .9rem; color: #e6e8eb; font-weight: 500;
}
.hero-figure { margin: 0; position: relative; }
.hero-figure img { border-radius: var(--radius); width: 100%; aspect-ratio: 16 / 10; object-fit: cover; box-shadow: 0 20px 50px rgba(0,0,0,.45); }
.hero-figure::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 3px solid var(--red); border-radius: var(--radius); z-index: 0;
}
.hero-figure img { position: relative; z-index: 1; }
@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; padding-top: 44px; padding-bottom: 56px; gap: 40px; }
  .hero-figure::before { inset: 12px -10px -12px 10px; }
}

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-alt { background: var(--paper-2); }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head p { font-size: 1.15rem; }
@media (max-width: 640px) { .section { padding: 56px 0; } }

.stats { background: var(--red); color: #fff; }
.stats .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat { padding: 28px 20px; text-align: center; border-left: 1px solid rgba(255,255,255,.25); }
.stat:first-child { border-left: 0; }
.stat strong { display: block; font-family: var(--font-head); font-size: 2.2rem; line-height: 1.05; letter-spacing: .02em; }
.stat span { font-size: .95rem; opacity: .95; }
@media (max-width: 760px) {
  .stats .container { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.25); }
}

.service-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px;
}
.service-grid li {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--red);
  border-radius: var(--radius); padding: 16px 18px;
  font-weight: 600; color: var(--ink); line-height: 1.35;
}

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px;
}
.card h3 { margin-bottom: .8em; }
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { position: relative; padding: 9px 0 9px 32px; border-bottom: 1px solid var(--line); }
.check-list li:last-child { border-bottom: 0; }
.check-list li::before {
  content: ""; position: absolute; left: 4px; top: 17px; width: 14px; height: 8px;
  border-left: 3px solid var(--red); border-bottom: 3px solid var(--red); transform: rotate(-45deg);
}
.cert-number { font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; color: var(--ink); letter-spacing: .06em; }

.safety .container { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.safety figure { margin: 0; }
.safety figure img { border-radius: var(--radius); width: 100%; }
.safety figcaption { font-size: .9rem; color: var(--muted); margin-top: 8px; }
.callout {
  border-left: 5px solid var(--red); background: var(--paper-2); padding: 20px 24px; margin: 0 0 24px;
  font-family: var(--font-head); font-size: 1.5rem; font-weight: 600; color: var(--ink); line-height: 1.25;
}
@media (max-width: 860px) { .safety .container { grid-template-columns: 1fr; gap: 32px; } }

.pay-row { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.pay-row li { border: 1px solid var(--line); background: #fff; border-radius: var(--radius); padding: 10px 18px; font-weight: 600; color: var(--ink); }

.cta-band { background: var(--night); color: #d9dce0; padding: 60px 0; }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 .2em; }
.cta-band p { margin: 0; }

/* ---------- Page header (inner pages) ---------- */
.page-hero { background: var(--night); color: #c9cdd2; padding: 56px 0 48px; }
.page-hero h1 { color: #fff; margin-bottom: .2em; }
.page-hero p { margin: 0; max-width: 46em; font-size: 1.1rem; }

/* ---------- Prose (legal pages) ---------- */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.7rem; margin-top: 2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.2rem; margin-top: 1.6em; }
.prose ul { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .35em; }
.prose strong { color: var(--ink); }
.legal-layout { display: grid; grid-template-columns: 240px 1fr; gap: 56px; align-items: start; }
.toc { position: sticky; top: 110px; font-size: .95rem; }
.toc h2 { font-size: 1rem; letter-spacing: .14em; color: var(--muted); margin-bottom: .8em; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 5px 0 5px 14px; color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--red); }
@media (max-width: 900px) { .legal-layout { grid-template-columns: 1fr; gap: 24px; } .toc { position: static; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 32px; align-items: stretch; }
.contact-list { list-style: none; margin: 0 0 28px; padding: 0; }
.contact-list li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-list li:first-child { padding-top: 0; }
.contact-list .label { display: block; font-family: var(--font-head); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: .9rem; color: var(--red); }
.contact-list .value { font-size: 1.15rem; color: var(--ink); font-weight: 600; }
.contact-list .value a { color: var(--ink); }
.contact-list .value a:hover { color: var(--red); }
.hours { width: 100%; border-collapse: collapse; }
.hours td { padding: 4px 0; }
.hours td:last-child { text-align: right; }
.map-frame {
  position: relative; min-height: 420px; height: 100%; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--paper-2);
}
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 28px;
  background:
    repeating-linear-gradient(0deg, transparent 0 39px, #e7e8ea 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, #e7e8ea 39px 40px),
    var(--paper-2);
}
.map-pin { width: 44px; height: 44px; border-radius: 50% 50% 50% 0; background: var(--red); transform: rotate(-45deg); margin-bottom: 18px; position: relative; }
.map-pin::after { content: ""; position: absolute; width: 16px; height: 16px; background: #fff; border-radius: 50%; top: 14px; left: 14px; }
.map-placeholder p { max-width: 30em; color: var(--ink-2); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } .map-frame { min-height: 340px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: #aeb3b9; font-size: .95rem; }
.site-footer .container { padding-top: 56px; padding-bottom: 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.footer-logo { background: #fff; display: inline-block; padding: 10px 12px; border-radius: var(--radius); margin-bottom: 16px; }
.footer-logo img { width: 140px; }
.site-footer h2 { color: #fff; font-size: 1.05rem; letter-spacing: .16em; margin-bottom: 1em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #e6e8eb; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer address { font-style: normal; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: #e6e8eb; cursor: pointer; text-align: left; }
.linklike:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid #2a2e33; margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .88rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 300;
  max-width: 760px; margin: 0 auto;
  background: #fff; color: var(--ink-2);
  border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: var(--radius);
  box-shadow: 0 18px 48px rgba(0,0,0,.25);
  padding: 22px 24px;
  display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner h2 { font-size: 1.25rem; margin: 0 0 .3em; }
.cookie-banner p { margin: 0; font-size: .97rem; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions .btn { padding: 10px 18px; font-size: 1rem; }
@media (max-width: 640px) { .cookie-banner { grid-template-columns: 1fr; padding: 18px; } .cookie-actions .btn { flex: 1; justify-content: center; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  .site-header, .topbar, .cookie-banner, .nav-toggle, .cta-band { display: none !important; }
  .page-hero, .hero, .site-footer { background: #fff; color: #000; }
}

.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; }

/* ---------- Testimonial (under safety photo) ---------- */
.safety .container { align-items: start; }
.safety-media { display: flex; flex-direction: column; gap: 28px; }
.safety figure.testimonial {
  position: relative; margin: 0; background: var(--night); color: #fff;
  border-radius: var(--radius); border-top: 4px solid var(--red); padding: 30px 30px 26px;
}
.testimonial blockquote { margin: 0; }
.testimonial blockquote p {
  font-family: var(--font-head); font-weight: 600; font-size: 1.45rem; line-height: 1.3; color: #fff; margin: 0 0 16px;
}
.safety .testimonial figcaption {
  margin: 0; font-family: var(--font-head); font-weight: 600; font-size: 1.05rem;
  letter-spacing: .12em; text-transform: uppercase; color: #ff6b70;
}

/* ---------- Staff directory ---------- */
.staff-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.staff-grid .card { padding: 26px 26px 24px; border-top: 4px solid var(--red); }
.staff-grid h3 { margin: 0 0 .5em; font-size: 1.5rem; }
.staff-role { display: block; font-family: var(--font-head); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: .9rem; color: var(--muted); margin-bottom: 6px; }
.staff-grid a { overflow-wrap: anywhere; font-weight: 600; }
@media (max-width: 860px) { .staff-grid { grid-template-columns: 1fr; } }
