/* styles.css */

:root {
  --navy: #102536;
  --navy-light: #18384f;
  --blue: #2f769b;
  --sky: #eaf4f8;
  --cream: #f7f5ef;
  --white: #fff;
  --ink: #20313b;
  --muted: #64737c;
  --border: #d8e1e5;
  --accent: #e9a23b;
  --shadow: 0 12px 32px rgba(16, 37, 54, 0.12);
  --content-width: 1160px;
  --header-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.container {
  width: min(var(--content-width), calc(100% - 40px));
  margin-inline: auto;
}

/* Fixed navigation */
.site-header {
  position: fixed;
  z-index: 1000;
  inset: 0 0 auto;
  min-height: var(--header-height);
  color: var(--white);
  background: rgba(16, 37, 54, .96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 3px 16px rgba(0, 0, 0, 0.16);
}

.navbar {
  width: min(var(--content-width), calc(100% - 40px));
  min-height: var(--header-height);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  flex: 0 0 auto;
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.brand span {
  display: block;
  color: #b8d4e2;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(12px, 2vw, 26px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  color: #edf5f8;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 160ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--accent);
}

.nav-cta {
  padding: 9px 15px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 5px;
}

/* Keep anchored section headings clear of the fixed header */
section[id] {
  scroll-margin-top: 90px;
}

/* Hero */
.hero {
  min-height: 690px;
  padding: calc(var(--header-height) + 80px) 20px 90px;
  display: grid;
  align-items: center;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(9, 28, 42, 0.86), rgba(9, 28, 42, 0.28)),
    url("./media/shobdon-hero.jpg") center / cover no-repeat,
    var(--navy-light);
}

.hero-content {
  width: min(var(--content-width), 100%);
  margin-inline: auto;
}

.hero-copy {
  max-width: 690px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 700px;
  margin: 0 0 20px;
  font-size: clamp(2.5rem, 6vw, 4.8rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 620px;
  margin: 0 0 30px;
  color: #e5eef2;
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 46px;
  padding: 11px 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  border-radius: 5px;
  background: var(--accent);
  color: #1b2b35;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
  background: #f2b656;
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.75);
  background: transparent;
  color: var(--white);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* General sections */
section {
  padding: 84px 0;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-heading h2 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.section-kicker {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* About */
.about {
  background: var(--cream);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 52px;
}

.about-copy h2 {
  margin: 0 0 18px;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.12;
}

.about-copy p {
  color: #52636c;
}

.about-image {
  overflow: hidden;
  min-height: 340px;
  border-radius: 12px;
  background: #d8e5e9;
  box-shadow: var(--shadow);
}

.about-image img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
}

/* Training pathways */
.training {
  background: var(--white);
}

.pathway-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.pathway-card {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(16, 37, 54, 0.05);
}

.pathway-card h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 1.25rem;
}

.pathway-card p {
  margin: 0;
  color: var(--muted);
}

/* Aircraft and rates */
.aircraft {
  background: var(--sky);
}

.aircraft-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 44px;
}

.aircraft-photo {
  overflow: hidden;
  min-height: 340px;
  border-radius: 12px;
  background: #d3e1e6;
  box-shadow: var(--shadow);
}

.aircraft-photo img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
}

.aircraft-copy h2 {
  margin: 0 0 14px;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 2.7rem);
  line-height: 1.12;
}

.aircraft-copy > p {
  color: #52636c;
}

.rate-list {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
}

.rate-item {
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid #c8dbe2;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.78);
}

.rate-item span {
  color: #52636c;
}

.rate-item strong {
  color: var(--navy);
  font-size: 1.15rem;
  white-space: nowrap;
}

.rate-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Instructors */
.instructors {
  background: var(--cream);
}

.instructor-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.instructor-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 6px 20px rgba(16, 37, 54, 0.07);
}

.instructor-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #d7e2e6;
}

.instructor-info {
  padding: 18px;
}

.instructor-info h3 {
  margin: 0 0 5px;
  color: var(--navy);
  font-size: 1.15rem;
}

.instructor-info p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

/* Weather */
.weather {
  color: var(--white);
  background: var(--navy);
}

.weather .section-heading h2 {
  color: var(--white);
}

.weather .section-heading p {
  color: #c8d7df;
}

.weather-card {
  max-width: 760px;
  margin-inline: auto;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
}

.weather-status {
  margin: 0;
  color: #d8e7ee;
  text-align: center;
}

.weather-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.weather-value {
  padding: 17px 12px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.09);
  text-align: center;
}

.weather-value span {
  display: block;
  color: #bfd1da;
  font-size: 0.82rem;
}

.weather-value strong {
  display: block;
  margin-top: 5px;
  color: var(--white);
  font-size: 1.2rem;
}

/* Contact */
.contact {
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.contact-copy h2 {
  margin: 0 0 16px;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 2.7rem);
  line-height: 1.12;
}

.contact-copy p {
  color: var(--muted);
}

.contact-details {
  margin-top: 22px;
}

.contact-details p {
  margin: 9px 0;
}

.contact-details a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

.contact-details a:hover {
  text-decoration: underline;
}

.contact-panel {
  padding: 25px;
  border-radius: 10px;
  background: var(--sky);
}

.contact-panel h3 {
  margin: 0 0 12px;
  color: var(--navy);
}

.contact-panel p {
  margin: 0;
  color: #52636c;
}

.map-frame {
  width: 100%;
  min-height: 250px;
  margin-top: 20px;
  border: 0;
  border-radius: 8px;
}

/* Footer */
.site-footer {
  padding: 28px 0;
  color: #d5e1e7;
  background: #0a1b27;
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 0.9rem;
}

/* Responsive layout */
@media (max-width: 900px) {
  .navbar {
    gap: 16px;
  }

  .nav-links {
    gap: 12px;
  }

  .nav-links a {
    font-size: 0.82rem;
  }

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

@media (max-width: 680px) {
  :root {
    --header-height: 68px;
  }

  .container,
  .navbar {
    width: min(100% - 28px, var(--content-width));
  }

  .navbar {
    min-height: var(--header-height);
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding-block: 8px;
  }

  .brand {
    font-size: 0.95rem;
  }

  .brand span {
    display: none;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 2px;
    white-space: nowrap;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a {
    font-size: 0.78rem;
  }

  .nav-cta {
    padding: 0;
    border: 0;
  }

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

  .hero {
    min-height: 610px;
    padding: 145px 14px 70px;
  }

  section {
    padding: 64px 0;
  }

  .about-grid,
  .aircraft-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .pathway-grid {
    grid-template-columns: 1fr;
  }

  .weather-grid {
    grid-template-columns: 1fr;
  }

  .weather-value {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }

  .weather-value strong {
    margin-top: 0;
  }
}

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

  .instructor-card img {
    aspect-ratio: 16 / 10;
  }

  .rate-item {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
