/* ==========================================================================
   Beechclub Flying Club — stylesheet
   ========================================================================== */

:root {
  --navy-900: #0a1f33;
  --navy-800: #0f2d4a;
  --navy-700: #163f66;
  --sky-500: #2e86c1;
  --sky-400: #4fa8dc;
  --sky-100: #eaf4fb;
  --gold-500: #e0a527;
  --gold-600: #c98f18;
  --maroon-600: #7a1f35;
  --gray-900: #1b2530;
  --gray-700: #445164;
  --gray-500: #6b7789;
  --gray-300: #d7dee6;
  --gray-100: #f4f6f9;
  --white: #ffffff;
  --radius: 10px;
  --shadow-sm: 0 1px 3px rgba(10, 31, 51, 0.08);
  --shadow-md: 0 6px 20px rgba(10, 31, 51, 0.12);
  --max-width: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy-900);
  margin: 0 0 16px;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 16px; color: var(--gray-700); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sky-500);
  margin-bottom: 10px;
}

.section {
  padding: 72px 0;
}

.section--alt {
  background: var(--gray-100);
}

.section--navy {
  background: var(--navy-900);
  color: var(--white);
}

.section--navy h2, .section--navy .eyebrow {
  color: var(--white);
}

.section--navy p {
  color: #c3d3e3;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-head p {
  margin: 0;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--gold-500);
  color: var(--navy-900);
}

.btn-primary:hover {
  background: var(--gold-600);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-outline-navy {
  background: transparent;
  border-color: var(--navy-700);
  color: var(--navy-800);
}

.btn-outline-navy:hover {
  background: var(--navy-800);
  color: var(--white);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 31, 51, 0.96);
  backdrop-filter: blur(6px);
}

.site-header::after {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(to right,
    var(--navy-700) 0%, var(--navy-700) 33%,
    var(--maroon-600) 33%, var(--maroon-600) 66%,
    var(--gold-500) 66%, var(--gold-500) 100%);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

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

.nav-links a {
  color: #d7e4f0;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

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

.nav-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 4px;
}

.nav-cta-mobile {
  display: none;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
    order: 2;
    margin-left: auto;
  }

  .nav-cta {
    display: none;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-800);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .nav-links.is-open {
    max-height: 480px;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 14px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .nav-cta-mobile {
    display: block;
    padding: 14px 24px;
  }

  .nav-cta-mobile a {
    display: block;
    width: 100%;
    text-align: center;
    border-bottom: none;
  }
}

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

.hero {
  position: relative;
  background: linear-gradient(150deg, var(--navy-900) 0%, var(--navy-700) 60%, var(--sky-500) 130%);
  color: var(--white);
  padding: 96px 0 110px;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 82% 20%, rgba(224, 165, 39, 0.18), transparent 45%),
                     radial-gradient(circle at 10% 85%, rgba(79, 168, 220, 0.25), transparent 40%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 18px;
}

.hero p.lead {
  font-size: 1.15rem;
  color: #d7e4f0;
  max-width: 480px;
}

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

.hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.hero-stat .num {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--gold-500);
}

.hero-stat .label {
  font-size: 0.82rem;
  color: #b9c9db;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-art svg {
  width: 100%;
  max-width: 420px;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.35));
}

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art svg { max-width: 260px; }
}

/* ---------- Page header (non-home pages) ---------- */

.page-header {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: var(--white);
  padding: 64px 0 56px;
}

.page-header .eyebrow { color: var(--gold-500); }
.page-header h1 { color: var(--white); margin-bottom: 10px; }
.page-header p { color: #cddced; max-width: 620px; margin: 0; }

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

.grid {
  display: grid;
  gap: 28px;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

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

.card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--sky-100);
  color: var(--sky-500);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

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

/* ---------- Aircraft cards ---------- */

.plane-card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.plane-media {
  height: 190px;
  background: linear-gradient(135deg, var(--sky-500), var(--navy-700));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.plane-media svg {
  width: 96px;
  height: 96px;
  color: rgba(255,255,255,0.92);
}

.plane-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--gold-500);
  color: var(--navy-900);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
}

.plane-body { padding: 22px 24px 26px; }

.plane-body h3 { margin-bottom: 4px; }

.plane-reg {
  font-size: 0.85rem;
  color: var(--sky-500);
  font-weight: 700;
  margin-bottom: 14px;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 6px;
  font-size: 0.9rem;
}

.spec-table td {
  padding: 7px 0;
  border-bottom: 1px solid var(--gray-300);
  color: var(--gray-700);
}

.spec-table td:last-child {
  text-align: right;
  font-weight: 700;
  color: var(--navy-900);
}

.spec-table td a {
  color: var(--sky-500);
  text-decoration: underline;
  text-decoration-color: var(--gold-500);
  text-underline-offset: 2px;
}

.spec-table td a:hover,
.spec-table td a:focus-visible {
  color: var(--gold-600);
}

/* ---------- Tables ---------- */

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--gray-300);
}

table.dues {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

table.dues th, table.dues td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--gray-300);
}

table.dues th {
  background: var(--navy-900);
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

table.dues tbody tr:last-child td { border-bottom: none; }
table.dues tbody tr:nth-child(even) { background: var(--gray-100); }

/* ---------- Steps ---------- */

.steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
}

.steps li {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gold-500);
  color: var(--navy-900);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps h4 { margin-bottom: 4px; }
.steps p { margin: 0; }

/* ---------- Timeline / events ---------- */

.event-row {
  display: flex;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--gray-300);
}

.event-row:last-child { border-bottom: none; }

.event-date {
  flex-shrink: 0;
  width: 84px;
  text-align: center;
  background: var(--navy-900);
  color: var(--white);
  border-radius: var(--radius);
  padding: 12px 8px;
}

.event-date .month {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold-500);
  font-weight: 700;
}

.event-date .day {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
}

.event-body h3 { margin-bottom: 4px; }

.event-meta {
  font-size: 0.85rem;
  color: var(--sky-500);
  font-weight: 700;
  margin-bottom: 8px;
}

.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--sky-100);
  color: var(--sky-500);
  margin-left: 10px;
}

/* ---------- Forms ---------- */

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

.form-grid .full { grid-column: 1 / -1; }

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

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 6px;
}

input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--gray-900);
  background: var(--white);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--sky-500);
  box-shadow: 0 0 0 3px rgba(46, 134, 193, 0.15);
}

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

.form-note {
  font-size: 0.82rem;
  color: var(--gray-500);
  margin-top: 4px;
}

.form-success {
  display: none;
  background: #e6f6ec;
  border: 1px solid #b7e3c6;
  color: #1e6b3a;
  padding: 16px 18px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-weight: 600;
}

/* ---------- Contact info list ---------- */

.info-list {
  display: grid;
  gap: 18px;
}

.info-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.info-item .card-icon { margin-bottom: 0; }

.info-item h4 { margin-bottom: 2px; }
.info-item p { margin: 0; }

.map-placeholder {
  height: 260px;
  border-radius: var(--radius);
  background: repeating-linear-gradient(135deg, var(--sky-100), var(--sky-100) 12px, var(--white) 12px, var(--white) 24px);
  border: 1px dashed var(--gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  font-weight: 600;
  text-align: center;
  padding: 20px;
}

/* ---------- Weather / METAR ---------- */

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

.metar-card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
}

.metar-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.metar-station {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--navy-900);
  display: flex;
  flex-direction: column;
}

.metar-name {
  font-weight: 500;
  font-size: 0.78rem;
  color: var(--gray-500);
  margin-top: 2px;
}

.metar-badge {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--white);
  background: var(--gray-500);
}

.fc-vfr { background: #1e8f4e; }
.fc-mvfr { background: #2e86c1; }
.fc-ifr { background: #d1453b; }
.fc-lifr { background: #b13be0; }

.metar-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
  font-size: 0.88rem;
  color: var(--navy-900);
  font-weight: 600;
  margin-bottom: 14px;
}

.metar-stats span {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gray-500);
  margin-bottom: 2px;
}

.metar-meta {
  font-size: 0.78rem;
  color: var(--gray-500);
  border-top: 1px solid var(--gray-300);
  padding-top: 10px;
}

.metar-meta a {
  color: var(--sky-500);
  font-weight: 600;
}

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

.cta-band {
  background: linear-gradient(120deg, var(--sky-500), var(--navy-800));
  color: var(--white);
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
}

.cta-band h2 { color: var(--white); }
.cta-band p { color: #dceaf6; max-width: 520px; margin: 0 auto 26px; }

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

.site-footer {
  background: var(--navy-900);
  color: #b9c9db;
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

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

.footer-grid h4 {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.footer-brand svg { width: 28px; height: 28px; }

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-grid a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
}

.footer-note {
  color: #7f93aa;
}

/* ---------- Utility ---------- */

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
