/* Yakima Aerosport — aviation workshop aesthetic */
:root {
  --navy-950: #071018;
  --navy-900: #0b1f33;
  --navy-800: #12304c;
  --navy-700: #1a4063;
  --sky-400: #5eb3e8;
  --sky-300: #8ec9ef;
  --sky-100: #e8f4fc;
  --cream: #f6f1e8;
  --cream-100: #fbf8f3;
  --sand: #e8dfd0;
  --amber: #d4a017;
  --amber-soft: #f0c75e;
  --steel: #6b7c8f;
  --text: #1a2430;
  --text-muted: #4a5a6a;
  --white: #ffffff;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 10px 40px rgba(7, 16, 24, 0.12);
  --shadow-sm: 0 4px 16px rgba(7, 16, 24, 0.08);
  --max: 1140px;
  --font: "Barlow", system-ui, sans-serif;
  --font-display: "Barlow Condensed", "Barlow", system-ui, sans-serif;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream-100);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--sky-400); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--navy-900);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 0 0 0.4em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 1.4em 0 0.5em; }
h3 { font-size: 1.35rem; margin: 1.2em 0 0.4em; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1.2em; padding-left: 1.2em; }
li { margin-bottom: 0.35em; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--amber);
  color: var(--navy-950);
  padding: 0.5rem 1rem;
  z-index: 1000;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.container.narrow { width: min(100% - 2rem, 820px); }
.container.wide { width: min(100% - 2rem, 1240px); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 31, 51, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(94, 179, 232, 0.15);
}
.header-inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--white);
  min-width: 0;
}
.brand-mark {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.03em;
  line-height: 1.1;
  text-transform: uppercase;
}
.brand-tag {
  font-size: 0.72rem;
  color: var(--sky-300);
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--white);
  transition: 0.2s;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-link {
  display: block;
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.45rem 0.55rem;
  border-radius: 6px;
  transition: 0.15s;
}
.nav-link:hover, .nav-link.is-active {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}
.nav-item { position: relative; }
.nav-sub {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--navy-800);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 0.4rem;
  list-style: none;
  margin: 0;
  box-shadow: var(--shadow);
}
.nav-item:hover .nav-sub,
.nav-item:focus-within .nav-sub { display: block; }
.nav-sub a {
  display: block;
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  padding: 0.55rem 0.75rem;
  border-radius: 6px;
  font-size: 0.9rem;
}
.nav-sub a:hover { background: rgba(255,255,255,0.08); color: var(--sky-300); }
.nav-cta { margin-left: 0.35rem; white-space: nowrap; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: 0.18s ease;
  font-family: inherit;
}
.btn-accent {
  background: var(--amber);
  color: var(--navy-950);
  border-color: var(--amber);
}
.btn-accent:hover {
  background: var(--amber-soft);
  border-color: var(--amber-soft);
  color: var(--navy-950);
}
.btn-primary {
  background: var(--sky-400);
  color: var(--navy-950);
  border-color: var(--sky-400);
}
.btn-primary:hover {
  background: var(--sky-300);
  color: var(--navy-950);
}
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.35);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  color: var(--white);
}
.btn-outline {
  background: transparent;
  color: var(--navy-800);
  border-color: var(--navy-800);
}
.btn-outline:hover {
  background: var(--navy-800);
  color: var(--white);
}
.btn-sm { padding: 0.45rem 0.95rem; font-size: 0.85rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* Hero home */
.hero {
  position: relative;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(7,16,24,0.88) 0%, rgba(18,48,76,0.72) 55%, rgba(11,31,51,0.55) 100%),
    url("/assets/images/ads/super18_02.jpg") center/cover no-repeat;
  min-height: clamp(480px, 72vh, 700px);
  display: flex;
  align-items: flex-end;
  padding: 4rem 0 3.5rem;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 100px;
  background: linear-gradient(transparent, var(--cream-100));
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 720px; }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-soft);
  margin: 0 0 0.75rem;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 24px rgba(0,0,0,0.35);
}
.hero .lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.9);
  max-width: 38rem;
  margin-bottom: 0;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.75rem;
  margin-top: 1.75rem;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.8);
}
.hero-meta strong { color: var(--white); font-weight: 600; }

/* Page hero */
.page-hero {
  background:
    linear-gradient(120deg, var(--navy-900) 0%, var(--navy-800) 60%, #1e4d72 100%);
  color: var(--white);
  padding: 3rem 0 2.5rem;
  border-bottom: 3px solid var(--amber);
}
.page-hero h1 { color: var(--white); margin-bottom: 0.35rem; }
.page-hero .lead { color: rgba(255,255,255,0.85); margin: 0; max-width: 40rem; }
.page-hero .eyebrow { color: var(--amber-soft); }

/* Sections */
.section { padding: 3.5rem 0; }
.section-alt { background: var(--cream); }
.section-dark {
  background: var(--navy-900);
  color: rgba(255,255,255,0.9);
}
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}
.section-head h2 { margin: 0; }
.section-head p { margin: 0.35rem 0 0; color: var(--text-muted); max-width: 36rem; }

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(11,31,51,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  height: 100%;
}
a.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  color: inherit;
}
.card-img {
  aspect-ratio: 16/10;
  object-fit: cover;
  width: 100%;
  background: var(--navy-800);
}
.card-body { padding: 1.15rem 1.25rem 1.35rem; flex: 1; display: flex; flex-direction: column; }
.card-body h3 {
  margin: 0 0 0.4rem;
  font-size: 1.35rem;
}
.card-body p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  flex: 1;
}
.card-link {
  margin-top: 0.9rem;
  font-weight: 600;
  color: var(--navy-700);
  font-size: 0.9rem;
}
a.card:hover .card-link { color: var(--sky-400); }

/* Feature strip */
.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: -2.5rem;
  position: relative;
  z-index: 2;
}
.feature {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--amber);
}
.feature h3 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}
.feature p { margin: 0; color: var(--text-muted); font-size: 0.92rem; }

/* Prose content */
.prose {
  font-size: 1.05rem;
}
.prose > *:first-child { margin-top: 0; }
.prose img,
.prose .content-img {
  margin: 1.5rem auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.prose a { font-weight: 500; }
.prose .video-embed,
.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  margin: 1.5rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: #000;
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
  margin: 1.5rem 0;
}
.photo-grid .gallery-item,
.photo-grid a {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--navy-800);
}
.photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transition: transform 0.25s;
}
.photo-grid a:hover img { transform: scale(1.05); }

/* Stats / callout */
.callout {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  display: grid;
  gap: 1.25rem;
  align-items: center;
}
@media (min-width: 720px) {
  .callout { grid-template-columns: 1.4fr auto; }
}
.callout h2 { color: var(--white); margin: 0 0 0.4rem; }
.callout p { margin: 0; color: rgba(255,255,255,0.85); }

/* Contact */
.contact-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 860px) {
  .contact-grid { grid-template-columns: 1fr 1.1fr; align-items: start; }
}
.contact-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(11,31,51,0.06);
}
.contact-card h2 { margin-top: 0; }
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
}
.contact-list li {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--sand);
  display: grid;
  gap: 0.15rem;
}
.contact-list span {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--steel);
  font-weight: 600;
}
.contact-list a, .contact-list strong {
  color: var(--navy-900);
  text-decoration: none;
  font-weight: 600;
}
.contact-list a:hover { color: var(--sky-400); }

.form-stack { display: grid; gap: 1rem; }
.form-row {
  display: grid;
  gap: 1rem;
}
@media (min-width: 560px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}
.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--navy-900);
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--sand);
  border-radius: 10px;
  font: inherit;
  background: var(--cream-100);
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--sky-400);
  box-shadow: 0 0 0 3px rgba(94, 179, 232, 0.25);
  background: var(--white);
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}
.form-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}
.form-status {
  display: none;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  font-weight: 500;
  margin-bottom: 1rem;
}
.form-status.is-success {
  display: block;
  background: #e6f6ea;
  color: #14532d;
  border: 1px solid #86efac;
}
.form-status.is-error {
  display: block;
  background: #fef2f2;
  color: #7f1d1d;
  border: 1px solid #fca5a5;
}

/* Video grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.video-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.video-card .video-embed { margin: 0; border-radius: 0; }
.video-card h3 {
  margin: 0;
  padding: 0.9rem 1rem 1rem;
  font-size: 1.05rem;
}

/* Photo gallery page */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.gallery-filters button {
  border: 1.5px solid var(--sand);
  background: var(--white);
  color: var(--navy-800);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}
.gallery-filters button.is-active,
.gallery-filters button:hover {
  background: var(--navy-800);
  color: var(--white);
  border-color: var(--navy-800);
}
.gallery-masonry {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}
.gallery-masonry a {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--navy-800);
  box-shadow: var(--shadow-sm);
}
.gallery-masonry img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.gallery-masonry a:hover img { transform: scale(1.06); }
.gallery-masonry a[hidden] { display: none; }

/* Lightbox simple */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(7,16,24,0.92);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: min(96vw, 1100px);
  max-height: 88vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255,255,255,0.15);
  border: 0;
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
}

/* Footer */
.site-footer {
  background: var(--navy-950);
  color: rgba(255,255,255,0.78);
  margin-top: 2rem;
}
.footer-inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  padding: 3rem 0 2rem;
  display: grid;
  gap: 2rem;
}
@media (min-width: 800px) {
  .footer-inner { grid-template-columns: 1.3fr 2fr; }
}
.footer-logo {
  width: 120px;
  height: auto;
  margin-bottom: 0.85rem;
  opacity: 0.95;
}
.footer-tag { font-size: 0.95rem; max-width: 28rem; margin: 0; }
.footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
}
.footer-cols h3 {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 0.75rem;
}
.footer-cols p { margin: 0 0 0.4rem; font-size: 0.92rem; }
.footer-cols a { color: rgba(255,255,255,0.85); text-decoration: none; }
.footer-cols a:hover { color: var(--sky-300); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.4rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}
.footer-bottom p { margin: 0; }

/* Aircraft subnav chips */
.subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}
.subnav a {
  text-decoration: none;
  background: var(--white);
  border: 1.5px solid var(--sand);
  color: var(--navy-800);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
}
.subnav a:hover, .subnav a.is-active {
  background: var(--navy-800);
  border-color: var(--navy-800);
  color: var(--white);
}

/* Media logos row */
.logo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
}
.logo-row a {
  background: var(--white);
  padding: 0.75rem 1rem;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70px;
  min-width: 120px;
}
.logo-row img { max-height: 48px; width: auto; }

/* Responsive nav */
@media (max-width: 980px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--navy-900);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1rem 1.25rem;
    gap: 0.75rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: 0.25s ease;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
  }
  .nav-link { padding: 0.7rem 0.5rem; }
  .nav-sub {
    position: static;
    display: block;
    box-shadow: none;
    border: 0;
    background: rgba(0,0,0,0.2);
    margin: 0 0 0.25rem 0.5rem;
  }
  .nav-cta { align-self: flex-start; margin-left: 0; }
  .feature-strip { grid-template-columns: 1fr; margin-top: 1.5rem; }
  .brand-tag { display: none; }
}

@media (max-width: 560px) {
  .hero { min-height: 70vh; padding-bottom: 2rem; }
  .section { padding: 2.5rem 0; }
}

/* Print */
@media print {
  .site-header, .site-footer, .nav-toggle, .btn { display: none !important; }
  body { background: white; color: black; }
}
