/* ==========================================================================
   KODAIR WIND — HOLDING PAGE
   TN Media · 2026

   · Type    Montserrat — the family kodairwind.com already uses.
   · Colour  Navy #000061 and turquoise #43CEDD, sampled from the Kodair
             logo and the existing site's buttons.
   · Form    Square. Full-bleed footage, a flat scrim only where the type
             sits, heavy weights. No cards, no pills, no pulsing.
   ========================================================================== */

:root {
  --navy:      #000061;
  --navy-deep: #00003D;
  --cyan:      #43CEDD;
  --white:     #FFFFFF;

  --t-sm:    clamp(0.82rem, 0.79rem + 0.13vw, 0.92rem);
  --t-lead:  clamp(1.06rem, 0.98rem + 0.38vw, 1.35rem);
  --t-title: clamp(2.7rem, 1.5rem + 5.2vw, 6.2rem);

  --gutter:  clamp(1.25rem, 5vw, 5rem);
  --ease:    cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  margin: 0;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--navy-deep);
  color: var(--white);
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

/* --------------------------------------------------------------------------
   Background footage — full bleed, largely unveiled
   -------------------------------------------------------------------------- */
.bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.bg--video {
  opacity: 0;
  z-index: -1;
  transition: opacity 700ms var(--ease);
}
.bg--video.is-playing { opacity: 1; }

/* A flat navy wash plus a gradient that only deepens behind the type,
   so the footage stays visible up top and the words stay legible below. */
.scrim {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top,
      rgba(0, 0, 61, 0.92) 0%,
      rgba(0, 0, 61, 0.72) 26%,
      rgba(0, 0, 61, 0.28) 55%,
      rgba(0, 0, 61, 0.10) 100%),
    /* just enough at the very top to hold the white logo */
    linear-gradient(to bottom,
      rgba(0, 0, 61, 0.50) 0%,
      rgba(0, 0, 61, 0.00) 20%),
    linear-gradient(to right,
      rgba(0, 0, 61, 0.55) 0%,
      rgba(0, 0, 61, 0.00) 55%);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1.25rem, 3vw, 2.25rem) var(--gutter);
}

.brand img {
  width: clamp(170px, 19vw, 240px);
  height: auto;
}

.top__phone {
  font-size: var(--t-sm);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 2px solid var(--cyan);
  transition: color 180ms var(--ease);
}
.top__phone:hover { color: var(--cyan); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(3rem, 10vw, 7rem) var(--gutter) clamp(2rem, 5vw, 3.5rem);
}

.title {
  margin: 0 0 clamp(1rem, 2.5vw, 1.6rem);
  font-size: var(--t-title);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.035em;
  text-shadow: 0 2px 30px rgba(0, 0, 61, 0.5);
}

.lead {
  margin: 0 0 clamp(1.75rem, 4vw, 2.5rem);
  max-width: 34ch;
  font-size: var(--t-lead);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--white);
  text-shadow: 0 2px 22px rgba(0, 0, 61, 0.6);
}

/* --------------------------------------------------------------------------
   Buttons — square
   -------------------------------------------------------------------------- */
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.9rem;
  border: 2px solid transparent;
  font-size: var(--t-sm);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 180ms var(--ease), color 180ms var(--ease),
              border-color 180ms var(--ease);
}

.btn--primary {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--navy-deep);
}
.btn--primary:hover {
  background: var(--white);
  border-color: var(--white);
}

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
}
.btn--ghost:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--navy-deep);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.foot {
  padding: clamp(1.25rem, 3vw, 1.75rem) var(--gutter) clamp(1.5rem, 3vw, 2rem);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.4rem 2rem;
  font-size: clamp(0.72rem, 0.70rem + 0.10vw, 0.8rem);
}

.foot p { margin: 0; }
.foot__cred  { font-weight: 600; color: var(--white); }
.foot__legal { font-weight: 500; color: rgba(255, 255, 255, 0.62); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 620px) {
  .top { flex-direction: column; align-items: flex-start; gap: 0.9rem; }
  .lead { max-width: none; }
  .cta { flex-direction: column; align-items: stretch; }
  .foot { flex-direction: column; }
}

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

/* Designer credit */
.foot__legal a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  border-bottom: 1px solid rgba(67, 206, 221, 0.5);
  transition: color 180ms var(--ease), border-color 180ms var(--ease);
}
.foot__legal a:hover { color: var(--cyan); border-color: var(--cyan); }
