/* ==========================================================================
   GHC — Global Helicopter Company · Landing page
   base.css: fonts, design tokens, reset, layout helpers, shared components
   (buttons, eyebrow, chip, KPI row), header, mobile menu and motion states.
   Section styles live in assets/css/sections/<section>.css
   ========================================================================== */

/* ---------- Fonts: Codec Pro (Light < News < Regular < ExtraBold) ---------- */
@font-face {
  font-family: "Codec Pro";
  src: url("../fonts/CodecPro-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Codec Pro";
  src: url("../fonts/CodecPro-News.woff2") format("woff2");
  font-weight: 350;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Codec Pro";
  src: url("../fonts/CodecPro-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Codec Pro";
  src: url("../fonts/CodecPro-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design tokens (from Figma variables) ---------- */
:root {
  --crimson: #891538;
  --navy: #204989;
  --royal: #0083d5;
  --sky: #31b4e7;
  --sand: #d3baa1;
  --ink: #0a0a0a;
  --deep: #0b1a33;
  --muted: #798395;
  --grey: #7e7e7e;
  --line: #dce0e6;
  --navy-60: #7992b8;
  --navy-40: #a6b6d0;
  --sky-20: #d6f0fa;
  --light: #f9f9f9;
  --white: #ffffff;
  --surface-soft: #f3f6fb;

  --font: "Codec Pro", ui-sans-serif, system-ui, sans-serif;
  --fw-light: 300;
  --fw-news: 350;
  --fw-regular: 400;
  --fw-extrabold: 800;

  --gradient-brand: linear-gradient(to left, var(--sky), var(--crimson));
  --gradient-header: linear-gradient(270deg, var(--crimson) 0%, var(--sky) 68.264%);

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1440px;
  --gutter: 20px;
  --header-h: 116px;
}

@media (min-width: 768px) {
  :root { --gutter: 40px; }
}
@media (min-width: 1280px) {
  :root { --gutter: 56px; }
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0 solid;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  min-height: 100vh;
  overflow-x: clip;
  background: var(--white);
  color: var(--navy);
  font-family: var(--font);
  font-weight: var(--fw-regular);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  background: none;
}
button {
  cursor: pointer;
}
ul,
ol {
  list-style: none;
}
[id] {
  scroll-margin-top: var(--header-h);
}
:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 2px;
}

/* ---------- Helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.text-gradient {
  background-image: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.no-scrollbar {
  scrollbar-width: none;
}
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
/* Decorative Figma layers that may be larger than their box. */
.deco {
  pointer-events: none;
  user-select: none;
}
.deco img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
}

/* ---------- Button ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-block: 15px;
  border-radius: 40px;
  font-size: 16px;
  line-height: 20px;
  white-space: nowrap;
  /* Hover changes colour and depth only; buttons never move. */
  transition:
    box-shadow 0.5s var(--ease-smooth),
    background-color 0.5s var(--ease-smooth),
    background-position 0.5s var(--ease-smooth);
}
.btn--primary {
  padding-inline: 24px 15px;
  background-color: var(--navy);
  color: var(--white);
}
.btn--primary:hover {
  background-color: #2a5697;
  box-shadow: 0 10px 24px -10px rgba(32, 73, 137, 0.7);
}
/* The gradient is twice the button width. At rest the right half shows (royal → sky, as in Figma);
   hover slides it to the deeper left half. */
.btn--gradient {
  padding-inline: 24px 15px;
  background-image: linear-gradient(to right, #0070b8, var(--royal), var(--sky));
  background-size: 200% 100%;
  background-position: 100% 0;
  color: var(--white);
}
.btn--gradient:hover {
  background-position: 0 0;
  box-shadow: 0 10px 24px -10px rgba(0, 131, 213, 0.8);
}
.btn--outline {
  padding-inline: 24px;
  color: var(--navy);
  border: 1px solid transparent;
  background:
    linear-gradient(var(--white), var(--white)) padding-box,
    linear-gradient(90deg, var(--crimson), var(--sky)) border-box;
}
.btn--outline:hover {
  box-shadow: 0 10px 24px -12px rgba(49, 180, 231, 0.7);
}
/* White 24×18 pill with the navy arrow, used inside primary/gradient buttons. */
.btn__arrow {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 18px;
  border-radius: 20px;
  background: var(--white);
  transition: transform 0.5s var(--ease-smooth);
}
.btn__arrow img {
  width: 14px;
  height: 14px;
}
.btn:hover .btn__arrow {
  transform: translateX(3px);
}

/* ---------- Eyebrow ("01 · WHO WE ARE") ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  line-height: 16px;
  color: var(--navy-60);
}
.eyebrow__index {
  padding: 3px 8px;
  border: 1px solid currentColor;
  border-radius: 999px;
}
.eyebrow__label {
  text-transform: uppercase;
}

/* ---------- Chip ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  line-height: 16px;
  white-space: nowrap;
  color: var(--navy);
}

/* ---------- KPI row ---------- */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  row-gap: 8px;
  padding: 0 20px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(2px);
}
.kpi {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
  padding-block: 20px;
}
.kpi__value {
  font-weight: var(--fw-news);
  font-size: 48px;
  line-height: 1.1;
  letter-spacing: -0.04em;
}
.kpi__spacer {
  height: 8px;
}
.kpi__label {
  font-size: 16px;
  line-height: 20px;
  color: var(--navy);
}
.kpi__note {
  font-weight: var(--fw-news);
  font-size: 14px;
  line-height: 18px;
  color: var(--muted);
}
.kpi-row__divider {
  display: none;
  flex-shrink: 0;
  width: 1px;
  height: 100px;
  background: var(--line);
}
@media (min-width: 768px) {
  .kpi-row {
    padding-inline: 40px;
  }
  .kpi__value {
    font-size: 72px;
    line-height: 80px;
  }
}
/* Mobile and tablet (2-column grid): centre each KPI with a 10px gap between cells. */
@media (max-width: 1023.98px) {
  .kpi-row {
    gap: 10px;
  }
  .kpi {
    align-items: center;
    text-align: center;
  }
}
@media (min-width: 1024px) {
  .kpi-row {
    display: flex;
    align-items: center;
    gap: 28px;
  }
  .kpi-row__divider {
    display: block;
  }
  .kpi {
    padding-inline: 24px;
  }
  .kpi:first-child {
    padding-left: 0;
  }
}

/* ==========================================================================
   Header (always visible) + Company dropdown + mobile menu
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding-block: 16px;
  background-image: var(--gradient-header);
  transition:
    padding 0.5s var(--ease-out-expo),
    box-shadow 0.5s var(--ease-out-expo);
}
.site-header.is-scrolled {
  padding-block: 12px;
  box-shadow: 0 8px 30px -12px rgba(11, 26, 51, 0.45);
}
@media (min-width: 1024px) {
  .site-header {
    padding-block: 32px;
  }
  .site-header.is-scrolled {
    padding-block: 16px;
  }
}
.site-header__art {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.site-header__art img {
  position: absolute;
  top: -534px;
  left: 50%;
  width: 1409px;
  height: 1320px;
  max-width: none;
  margin-left: -621px;
  object-fit: cover;
  opacity: 0.7;
  mix-blend-mode: luminosity;
}
.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}
@media (min-width: 768px) {
  .site-header__inner { padding-inline: 40px; }
}
@media (min-width: 1280px) {
  .site-header__inner { padding-inline: 60px; }
}
.site-header__logo {
  flex-shrink: 0;
}

/* Logo: Figma layers positioned with the design's insets. */
.logo {
  position: relative;
  display: block;
  width: 150px;
  aspect-ratio: 197.26 / 52.05;
  transition: width 0.5s var(--ease-out-expo);
}
.logo > span {
  position: absolute;
}
.logo > span > img {
  width: 100%;
  height: 100%;
}
.logo__mark { inset: 15.24% 80.26% 63.63% 6.68%; }
.logo__ghc { inset: 15.05% 44.48% 15.05% 4.05%; }
.logo__text-1 { inset: 54.44% 4.05% 30.78% 59.54%; }
.logo__text-2 { inset: 70.76% 20.7% 15.05% 59.54%; }
.logo__arabic { inset: 13.94% 11.72% 53.22% 59.56%; }
@media (min-width: 1024px) {
  .logo { width: 197px; }
  .is-scrolled .logo { width: 170px; }
}

.main-nav {
  display: none;
  align-items: flex-start;
  gap: 48px;
}
.main-nav__link {
  position: relative;
  display: flex;
  align-items: center;
  height: 44px;
  padding-block: 10px;
  font-size: 16px;
  line-height: 20px;
  color: var(--white);
}
/* Sand underline: shown for the section in view and on hover/focus.
   It grows in from the left and retracts to the right. */
.main-nav__link::after {
  content: "";
  position: absolute;
  inset: auto 0 -2px;
  height: 4px;
  background: var(--sand);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease-smooth);
}
.main-nav__link.is-active::after,
.main-nav__link:hover::after,
.main-nav__link:focus-visible::after,
.nav-dropdown.is-open .main-nav__link::after {
  transform: scaleX(1);
  transform-origin: left;
}
.site-header__cta {
  display: none;
}
@media (min-width: 1024px) {
  .main-nav,
  .site-header__cta {
    display: flex;
  }
}

/* Company dropdown */
.nav-dropdown {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 44px;
}
.nav-dropdown__toggle {
  height: 40px;
  gap: 2px;
}
.nav-dropdown__chevron {
  width: 24px;
  height: 24px;
  transform: rotate(90deg);
  transition: transform 0.3s var(--ease-out-expo);
}
.nav-dropdown.is-open .nav-dropdown__chevron {
  transform: rotate(-90deg);
}
.nav-dropdown__panel {
  position: absolute;
  top: 100%;
  left: 50%;
  width: 245px;
  margin-top: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px) scale(0.98);
  transform-origin: top center;
  transition:
    opacity 0.22s var(--ease-out-expo),
    transform 0.22s var(--ease-out-expo),
    visibility 0s linear 0.22s;
}
.nav-dropdown.is-open .nav-dropdown__panel {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0) scale(1);
  transition-delay: 0s;
}
.nav-dropdown__card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 10px 10px;
  border-radius: 20px;
  background: var(--white);
  filter: drop-shadow(0 4px 12px rgba(32, 73, 137, 0.4));
}
.nav-dropdown__title {
  padding-inline: 12px;
  font-size: 12px;
  line-height: 16px;
  color: var(--navy-60);
  text-transform: uppercase;
}
.nav-dropdown__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 24px;
  border-radius: 12px;
  transition: background-color 0.2s;
}
.nav-dropdown__item:hover,
.nav-dropdown__item:focus-visible {
  background: var(--surface-soft);
  outline: none;
}
.nav-dropdown__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  line-height: 20px;
  color: var(--ink);
}
.nav-dropdown__label img {
  width: 24px;
  height: 24px;
  transition: transform 0.3s var(--ease-out-expo);
}
.nav-dropdown__item:hover .nav-dropdown__label img {
  transform: translateX(4px);
}
.nav-dropdown__desc {
  font-size: 12px;
  line-height: 16px;
  color: var(--navy-60);
}

/* Burger + mobile menu */
.burger {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}
.burger__lines {
  position: relative;
  display: block;
  width: 20px;
  height: 14px;
}
.burger__lines span {
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--white);
  transition:
    transform 0.3s var(--ease-out-expo),
    top 0.3s var(--ease-out-expo),
    opacity 0.2s;
}
.burger__lines span:nth-child(1) { top: 0; }
.burger__lines span:nth-child(2) { top: 6px; }
.burger__lines span:nth-child(3) { top: 12px; }
.burger[aria-expanded="true"] .burger__lines span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.burger[aria-expanded="true"] .burger__lines span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger__lines span:nth-child(3) { top: 6px; transform: rotate(-45deg); }
@media (min-width: 1024px) {
  .burger { display: none; }
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(11, 26, 51, 0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s,
    visibility 0s linear 0.3s;
}
.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}
.mobile-menu__panel {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 92px 16px 0;
  padding: 12px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 20px 40px -12px rgba(11, 26, 51, 0.35);
  transform: translateY(-24px);
  opacity: 0;
  transition:
    transform 0.35s var(--ease-out-expo),
    opacity 0.35s var(--ease-out-expo);
}
.mobile-menu.is-open .mobile-menu__panel {
  transform: none;
  opacity: 1;
}
.mobile-menu__title {
  padding: 8px 16px 4px;
  font-size: 12px;
  line-height: 16px;
  color: var(--navy-60);
  text-transform: uppercase;
}
.mobile-menu__link {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 16px;
  color: var(--ink);
}
.mobile-menu__link:hover {
  background: var(--surface-soft);
}
.mobile-menu__divider {
  height: 1px;
  margin-block: 8px;
  background: var(--line);
}
.mobile-menu .btn {
  margin-top: 12px;
}
@media (min-width: 1024px) {
  .mobile-menu { display: none; }
}

/* ==========================================================================
   Motion: initial states for scroll reveals (only when JS is running).
   core.js animates these in with GSAP; reduced-motion users get them instantly.
   ========================================================================== */
.js [data-reveal],
.js [data-stagger] > [data-stagger-item] {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Lenis smooth scroll */
html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}
