/* ==========================================================================
   Wince Flight Instruction — site styles
   ========================================================================== */

:root {
  --navy: #09192b;
  --navy-deep: #06111e;
  --blue: #14314b;
  --gold: #d9b36b;
  --gold-dark: #aa8346;
  --cream: #f5f6f5;
  --ink: #172636;
  --muted: #586779;
  --border: #e2e7ea;
  --header-h: 76px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: #fff;
  overflow-x: hidden;
}

a {
  color: inherit;
}

section[id] {
  scroll-margin-top: var(--header-h);
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--navy);
  color: #fff;
  border-bottom: 1px solid #ffffff24;
}

.nav {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 22px;
}

.brand {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.07em;
  line-height: 1.2;
  text-decoration: none;
}

.brand small {
  display: block;
  margin-top: 5px;
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 0.22em;
}

.links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 19px;
}

.links a {
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.links a:not(.btn):hover {
  color: var(--gold);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid #ffffff3d;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #fff;
  transition: transform 0.2s, opacity 0.2s;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

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

.btn {
  display: inline-block;
  padding: 13px 22px;
  border: 1px solid var(--gold);
  border-radius: 3px;
  background: var(--gold);
  color: #101c29 !important;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-align: center;
  text-decoration: none;
  transition: filter 0.15s;
}

.btn:hover {
  filter: brightness(1.08);
}

.btn.outline {
  background: transparent;
  color: #fff !important;
}

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

/* ---------- Typography ---------- */

.eyebrow {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.23em;
  text-transform: uppercase;
}

h2 {
  margin: 12px 0 20px;
  color: var(--navy);
  font-size: clamp(30px, 4vw, 49px);
  line-height: 1.16;
  letter-spacing: -0.025em;
}

h3 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 22px;
}

.lead {
  max-width: 790px;
  color: #526173;
  font-size: 18px;
}

.fine {
  color: #6c7987;
  font-size: 13px;
}

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

.hero {
  display: flex;
  align-items: center;
  min-height: 630px;
  background:
    linear-gradient(105deg, #081726ed, #0d2c48d8),
    radial-gradient(ellipse at 80% 20%, #67849a, #0c2339 65%);
  color: #fff;
}

.hero .wrap {
  width: 100%;
  padding-top: 85px;
  padding-bottom: 85px;
}

.hero h1 {
  max-width: 850px;
  margin: 22px 0;
  font-size: clamp(36px, 6vw, 78px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.hero p {
  max-width: 670px;
  color: #d6e0e9;
  font-size: 20px;
}

.credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 65px;
  padding-top: 24px;
  border-top: 1px solid #ffffff3d;
  color: #d9e2ea;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

.section {
  padding: 88px 0;
}

.alt {
  background: var(--cream);
}

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

.card {
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 8px 28px #0a233009;
}

.card .num {
  color: var(--gold-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

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

.card h3 small {
  color: #647386;
  font-size: 15px;
  font-weight: 500;
}

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

.split.top {
  align-items: start;
}

.panel {
  padding: 45px;
  border-radius: 5px;
  background: var(--navy);
  color: #fff;
}

.panel h3 {
  color: #fff;
}

.panel p {
  color: #d7e0e7;
}

.panel .fine {
  color: #b9cbd9;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  margin: 0 0 14px;
  padding-left: 30px;
  color: #d7e0e7;
  counter-increment: step;
}

.steps li::before {
  content: counter(step) ".";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 800;
}

/* Principles */

.principles {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 13px;
  margin-top: 36px;
}

.principle {
  padding: 24px 18px;
  border-top: 3px solid var(--gold);
  background: #fff;
  box-shadow: 0 5px 25px #081a2b0b;
}

.principle strong {
  display: block;
  font-size: 18px;
}

.principle p {
  color: #627184;
  font-size: 13px;
}

/* Credentials list */

.cred-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cred-list li {
  padding: 10px 0;
  border-bottom: 1px solid #ffffff1a;
  color: #d7e0e7;
}

.cred-list li:last-child {
  border-bottom: 0;
}

.cred-list strong {
  color: #fff;
}

/* Rates */

#rates .card h3 {
  font-size: 27px;
}

#rates .grid > .card {
  min-height: 205px;
}

.rate-notice {
  margin: 28px 0 12px;
  padding: 20px 24px;
  border-left: 4px solid #b67a22;
  background: #fff6e5;
  color: #563b14;
}

.rate-notice strong {
  font-size: 13px;
  letter-spacing: 0.06em;
}

.rate-notice p {
  margin: 7px 0 0;
}

.rate-notice.discounts {
  margin-top: 30px;
}

.rate-notice .grid {
  margin-top: 18px;
}

.rate-notice .grid .card {
  min-height: 0;
}

/* Service area */

.areas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.pill {
  padding: 10px 15px;
  border: 1px solid #cdd7df;
  border-radius: 40px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
}

/* FAQ */

.faq {
  max-width: 860px;
  margin-top: 30px;
  border-top: 1px solid var(--border);
}

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

.faq summary {
  position: relative;
  padding: 20px 40px 20px 0;
  color: var(--navy);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 4px;
  transform: translateY(-50%);
  color: var(--gold-dark);
  font-size: 26px;
  font-weight: 400;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  margin: 0 0 22px;
  color: var(--muted);
}

.faq a {
  color: var(--gold-dark);
}

/* Contact */

.contact address {
  margin: 24px 0 16px;
  font-style: normal;
}

.contact {
  background: var(--navy);
  color: #fff;
}

.contact h2 {
  color: #fff;
}

.contact .lead {
  color: #d0dbe4;
}

.contact a:not(.btn) {
  color: #f3d396;
}

.contact .fine {
  color: #aebdc9;
}

/* Footer */

.site-footer {
  padding: 25px 0;
  background: var(--navy-deep);
  color: #b8c6d0;
  font-size: 13px;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 15px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Tablets & small laptops */
@media (max-width: 1024px) {
  .principles {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Collapse nav to a menu button */
@media (max-width: 960px) {
  .menu-toggle {
    display: block;
  }

  .links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 22px 22px;
    background: var(--navy);
    border-bottom: 1px solid #ffffff24;
    box-shadow: 0 16px 30px #00000040;
  }

  .links.open {
    display: flex;
  }

  .links a:not(.btn) {
    padding: 14px 0;
    border-bottom: 1px solid #ffffff14;
    font-size: 15px;
  }

  .links .btn {
    margin-top: 16px;
  }
}

/* Tablets */
@media (max-width: 850px) {
  .grid {
    grid-template-columns: 1fr 1fr;
  }

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

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

  .hero {
    min-height: 550px;
  }

  .section {
    padding: 72px 0;
  }
}

/* Phones */
@media (max-width: 570px) {
  :root {
    --header-h: 68px;
  }

  .wrap {
    padding: 0 18px;
  }

  .nav {
    padding: 12px 18px;
  }

  .brand {
    font-size: 16px;
  }

  .brand small {
    font-size: 8.5px;
    letter-spacing: 0.16em;
  }

  .grid,
  .principles {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
  }

  .hero .wrap {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .hero p {
    font-size: 17px;
  }

  .credentials {
    flex-direction: column;
    gap: 8px;
    margin-top: 44px;
    font-size: 12px;
  }

  .section {
    padding: 60px 0;
  }

  .lead {
    font-size: 17px;
  }

  .panel {
    padding: 28px 22px;
  }

  .card {
    padding: 24px;
  }

  #rates .grid > .card {
    min-height: 0;
  }

  .rate-notice {
    padding: 18px 16px;
  }

  .actions {
    flex-direction: column;
  }

  .actions .btn {
    width: 100%;
  }

  .footer-row {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
}

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