/* =================================================================
   MSFS PASSPORT — TEMPLATE STYLESHEET
   -----------------------------------------------------------------
   Structure:
     1. Variables / reset
     2. Base typography
     3. Layout helpers (container, section, buttons)
     4. Header / nav
     5. Hero
     6. Feature panel (reusable component)
     7. Gallery (self-reflowing flex grid)
     8. Awards
     9. Community / Discord CTA
     10. Footer
     11. Parallax engine (see also js/main.js)
     12. Responsive breakpoints

   Colour, type and spacing all live in the :root variables below —
   change them there and the whole site restyles. Plain CSS3 only,
   no build step, so it previews correctly in Dreamweaver.
   ================================================================= */

/* ---------- 1. Variables / reset ---------- */
:root {
  /* brand palette, sampled from /Assets artwork */
  --color-primary: #7C1E2E;
  --color-primary-dark: #4E1119;
  --color-primary-light: #A5324A;
  --color-accent: #F6B93B;
  --color-accent-light: #FFD675;

  --color-bg: #FBF6EC;
  --color-bg-alt: #F3E9D8;
  --color-ink: #2B1416;
  --color-ink-soft: #6E5750;
  --color-white: #FFFFFF;

  --font-heading: 'Poppins', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Inter', 'Segoe UI', Arial, sans-serif;

  --container-width: 1180px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --shadow-md: 0 20px 45px rgba(43, 20, 22, 0.16);
  --shadow-sm: 0 8px 20px rgba(43, 20, 22, 0.12);

  --header-height: 104px;
  --section-pad-y: clamp(64px, 10vw, 128px);
}

* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-heading); margin: 0; }

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  z-index: 1000;
}
.skip-link:focus { left: 16px; top: 16px; }

/* anchor targets should clear the sticky header */
section[id] { scroll-margin-top: var(--header-height); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- 3. Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: var(--section-pad-y) 0; }
.section--alt { background: var(--color-bg-alt); }

.eyebrow {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin: 0 0 12px;
}
.eyebrow--light { color: var(--color-accent-light); }
.eyebrow--center { text-align: center; }

.section-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
  color: var(--color-primary-dark);
}
.section-title--center { text-align: center; margin-left: auto; margin-right: auto; max-width: 720px; }
.section-title--light { color: var(--color-white); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-align: center;  /* keeps wrapped button text (e.g. "Get Passport") centred, not ragged-left */
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: var(--color-accent);
  color: var(--color-primary-dark);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--color-accent-light); }
.btn--small { padding: 10px 22px; font-size: 13px; }
.btn--outline {
  background: transparent;
  color: var(--color-primary-dark);
  border-color: var(--color-primary);
  box-shadow: none;
}
.btn--outline:hover { background: rgba(124, 30, 46, 0.08); }

.discord-btn { display: inline-block; line-height: 0; transition: transform 0.18s ease; }
.discord-btn:hover { transform: translateY(-2px); }
.discord-btn img { height: 56px; width: auto; }
.discord-btn--large img { height: 64px; }

/* ---------- 4. Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: rgba(251, 246, 236, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(43, 20, 22, 0.08);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { min-width: 0; }
.brand__logo {
  height: auto;
  width: auto;
  max-height: 88px;
  max-width: 100%;
  border-radius: 6px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 510;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-primary-dark);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.primary-nav { display: flex; align-items: center; gap: 22px; }
.primary-nav ul { display: flex; align-items: center; gap: 20px; }
.nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  color: var(--color-ink);
  position: relative;
  padding: 4px 0;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.nav-link:hover::after { transform: scaleX(1); }

/* ---------- 5. Hero ---------- */
.hero { min-height: 92vh; display: flex; align-items: center; }
.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
  padding-top: 48px;
  padding-bottom: 48px;
}
.hero__content { position: relative; z-index: 1; color: var(--color-white); }
.hero__content::before {
  content: "";
  position: absolute;
  top: -50px;     /* 50px padding above the text */
  bottom: -50px;  /* 50px padding below the text */
  left: -100vw;   /* bleed off the left edge of the screen */
  right: -60px;   /* 60px of padding to the right of the text */
  z-index: -1;
  background: rgba(0, 0, 0, 0.4);
  pointer-events: none;
}
.hero__title {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
  text-wrap: balance;
}
.hero__subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.88);
  max-width: 46ch;
  margin-bottom: 34px;
}
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }

.hero__art { display: flex; justify-content: center; }
.hero__passport {
  max-width: 340px;
  width: 100%;
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.45));
}

/* ---------- 6. Feature panel (reusable) ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 56px;
}
.feature-1col {
  margin-top: 56px;
}
.feature-panel {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(43, 20, 22, 0.06);
}
.feature-panel__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 20px;
}
.feature-panel__list li {
  position: relative;
  padding-left: 34px;
  margin-bottom: 14px;
  color: var(--color-ink-soft);
}
.feature-panel__list li:last-child { margin-bottom: 0; }
.feature-panel__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--color-accent);
}
.feature-panel__list li::after {
  content: "";
  position: absolute;
  left: 6px; top: 13px;    /* centred on the 22px circle above */
  width: 10px; height: 6px;
  border-left: 3px solid var(--color-primary-dark);
  border-bottom: 3px solid var(--color-primary-dark);
  transform: rotate(-45deg);
}

/* ---------- 7. Gallery ---------- */
.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 48px;
}
.gallery__item {
  flex: 1 1 260px;
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--color-white);
  aspect-ratio: 4 / 3;
}
.gallery__trigger {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.gallery__trigger:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: -3px;
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.gallery__item:hover img { transform: scale(1.05); }

/* ---------- 7b. Lightbox ---------- */
body.lightbox-open { overflow: hidden; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox[hidden] { display: none; }

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 4, 6, 0.92);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.lightbox.is-open .lightbox__backdrop { opacity: 1; }

.lightbox__stage {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 90vw;
  max-height: 84vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox__img {
  display: block;
  max-width: 90vw;
  max-height: 78vh;
  width: auto;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  background: var(--color-bg-alt);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.22, 0.9, 0.3, 1), opacity 0.2s ease;
}
.lightbox.is-open .lightbox__img { opacity: 1; }

.lightbox__counter {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-white);
  cursor: pointer;
  transition: background-color 0.18s ease, transform 0.18s ease;
}
.lightbox__close:hover,
.lightbox__nav:hover { background: rgba(255, 255, 255, 0.22); }
.lightbox__close:active,
.lightbox__nav:active { transform: scale(0.92); }
.lightbox__close:focus-visible,
.lightbox__nav:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }

.lightbox__close { top: 22px; right: 22px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 18px; }
.lightbox__nav--next { right: 18px; }
.lightbox__nav:active { transform: translateY(-50%) scale(0.92); }

/* ---------- 7c. Get Passport (where to buy) ---------- */
.purchase {
  display: grid;
  grid-template-columns: 7fr 3fr;
  gap: 32px;
  align-items: stretch;  /* both columns match height, however long the content */
  margin-top: 56px;
}
.purchase__vendors { display: flex; flex-direction: column; gap: 18px; }

/* reusable: .vendor-card — one per storefront */
.vendor-card {
  display: flex;
  align-items: stretch;
  gap: 24px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(43, 20, 22, 0.06);
  flex: 1 1 auto;   /* grows to fill the column when the trial side is taller */
}
.vendor-card__image {
  width: 260px;
  flex: 0 0 260px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}
.vendor-card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px 8px 8px 0;
}
.vendor-card__name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 19px;
  color: var(--color-primary-dark);
  margin: 0 0 6px;
}
.vendor-card__desc { color: var(--color-ink-soft); margin: 0; max-width: 46ch; }

.purchase__note {
  color: var(--color-ink-soft);
  font-size: 14px;
  margin: 4px 0 0 4px;
}

/* the trial column intentionally reads quieter than the vendor list */
.purchase__trial {
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  border: 1.5px dashed rgba(124, 30, 46, 0.25);
  border-radius: var(--radius-md);
  padding: 28px;
}
.purchase__trial .eyebrow { margin-bottom: 10px; }
.purchase__trial-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 19px;
  color: var(--color-primary-dark);
  margin: 0 0 10px;
}
.purchase__trial-desc {
  color: var(--color-ink-soft);
  font-size: 15px;
  margin: 0 0 20px;
}
.purchase__trial-list { margin-bottom: 24px; }
.purchase__trial-list li { font-size: 14px; }
.purchase__trial .btn { margin-top: auto; align-self: flex-start; }

/* ---------- 8. Achievements examples ---------- */
.awards__inner { position: relative; z-index: 2; }

/* 25% / 75% split: large graphic anchors the left, the list box takes the rest */
.examples {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 40px;
  align-items: center;
  margin-top: 56px;
}
.examples__graphic { display: flex; justify-content: center; }
.examples__graphic-img {
  width: 100%;
  max-width: 220px;
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.4));
}

.icon-list-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  padding: 32px 36px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* reusable: .icon-list — duplicate any <li> to add another example achievement */
.icon-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 40px;
}
.icon-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}
.icon-list__icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
  flex: 0 0 30px;
}

/* ---------- 9. Community / Discord CTA ---------- */
.community__inner { position: relative; z-index: 2; text-align: center; }
.community__inner::before {
  content: "";
  position: absolute;
  top: -50px;     /* 50px padding above the content */
  bottom: -50px;  /* 50px padding below the content */
  left: -100vw;   /* bleed off both edges of the screen */
  right: -100vw;
  z-index: -1;
  background: rgba(0, 0, 0, 0.4);
  pointer-events: none;
}
.community__subtitle {
  color: rgba(255, 255, 255, 0.85);
  max-width: 54ch;
  margin: 0 auto 36px;
  font-size: 18px;
}

/* ---------- 9b. FAQ ---------- */
.faq-list {
  max-width: 820px;
  margin: 48px auto 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* reusable: .faq-item — a native <details>/<summary> pair, no JS required */
.faq-item {
  background: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid rgba(43, 20, 22, 0.06);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 26px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  color: var(--color-primary-dark);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-right: 3px solid var(--color-accent);
  border-bottom: 3px solid var(--color-accent);
  transform: rotate(45deg);
  transition: transform 0.25s ease;
  margin-top: -4px;
}
.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.faq-item summary:focus-visible { outline: 3px solid var(--color-accent); outline-offset: -3px; }
.faq-item__answer { padding: 0 26px 24px; color: var(--color-ink-soft); }
.faq-item__answer p { margin: 0; line-height: 1.6; }
.faq-item__answer a { color: var(--color-primary); font-weight: 600; text-decoration: underline; }

/* ---------- 10. Footer ---------- */
.site-footer { background: var(--color-primary-dark); color: rgba(255, 255, 255, 0.75); padding: 56px 0 32px; }
.site-footer__inner { display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.brand--footer .brand__logo { height: 96px; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; row-gap: 10px; }
.footer-nav a {
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-heading);
  padding: 0 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.25);
  line-height: 1;
}
.footer-nav a:last-child { border-right: 0; padding-right: 0; }
.footer-nav a:first-child { padding-left: 0; }
.footer-nav a:hover { color: var(--color-accent-light); }
.site-footer__fine-print { font-size: 12px; max-width: 640px; line-height: 1.6; opacity: 0.7; margin: 0; }

/* ---------- 11. Parallax engine ---------- */
.parallax {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: var(--section-pad-y) 0;
  isolation: isolate;
}
.parallax--dusk { min-height: 70vh; }
.parallax::after {
  /* subtle scrim so overlaid text/content stays legible */
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.18);
  z-index: 0;
}
.parallax__bg {
  position: absolute;
  inset: -10% -10%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: transform;
  z-index: -1;
}

/* ---------- 12. Responsive ---------- */

/* Nav switches to the off-canvas mobile menu well before the general
   content breakpoint below — with 7 links + the CTA button, the
   desktop nav runs out of breathing room earlier than the 2-column
   sections do, so it gets its own, wider breakpoint. */
@media (max-width: 1100px) {
  .nav-toggle { display: flex; }

  .primary-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 84vw);
    height: 100vh;
    background: var(--color-bg);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 36px;
    padding: 32px;
    transform: translateX(100%);
    transition: transform 0.28s ease;
    box-shadow: -16px 0 40px rgba(0, 0, 0, 0.18);
  }
  .primary-nav.is-open { transform: translateX(0); }
  .primary-nav ul { flex-direction: column; align-items: flex-start; gap: 22px; }
  .nav-link { font-size: 18px; }
  .nav-cta { width: 100%; text-align: center; }
}

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; padding-top: 24px; }
  .hero__subtitle { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .hero__art { order: -1; }
  .hero__passport { max-width: 220px; }

  .feature-grid { grid-template-columns: 1fr; }
  .purchase { grid-template-columns: 1fr; }

  .examples { grid-template-columns: 1fr; }
  .examples__graphic-img { max-width: 140px; }
  .icon-list { grid-template-columns: 1fr; }
  .icon-list-box { padding: 28px; }
}

@media (max-width: 560px) {
  .btn { width: 100%; }
  .discord-btn { display: block; width: 100%; }
  .discord-btn img { margin: 0 auto; }

  /* fixed 2-per-row grid so the last link never wraps alone */
  .footer-nav { display: grid; grid-template-columns: repeat(2, auto); justify-content: center; gap: 12px 28px; }
  .footer-nav a { border-right: 0; padding: 0; text-align: center; }
  .hero__actions { flex-direction: column; align-items: stretch; }

  .lightbox__close,
  .lightbox__nav { width: 38px; height: 38px; }
  .lightbox__close { top: 12px; right: 12px; }
  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
  .lightbox__img { max-width: 86vw; max-height: 70vh; }

  .vendor-card { flex-direction: column; }
  .vendor-card__image { width: 100%; flex-basis: auto; height: 180px; }
  .vendor-card__body { padding: 0; }
}
