/* =========================
   BASE & TYPOGRAPHY
   ========================= */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { width: 100%; max-width: 100vw; overflow-x: hidden; }

/* Prevent browsers from fake-bolding when a weight isn't available */
html, body { font-synthesis: none; }

body, h1, h2, h3, h4, h5, h6, p, a, button, input, textarea {
  font-family: "Futura", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  margin: 0;
}

body {
  margin: 0;
  min-height: 100vh;

  background: linear-gradient(
    to bottom,
    #8EC5FF 0%,
    #F7F8FC 16%,
    #6BCCCF 30%,
    #F7F8FC 56%,
    #FBE5B1 78%,
    #FFD166 100%
  );
}

.page-overlay1 {
  position: absolute;
  top: 50vh;       /* about 20% down the page */
  left: 0;
  width: 100%;
  height: 50vh;   /* adjust for how tall you want the glow */
  pointer-events: none;

  background: linear-gradient(
    to bottom,
    rgba(255,209,101,0) 0%,
    rgba(255,209,102,1) 50%,
    rgba(255,209,101,0) 100%
  );

  z-index: 1;
}

/* Keep real content above decorative layers */
header, main, footer { position: relative; z-index: 2; }

/* Global scale knob for easy future nudging */
:root {
  --nav-h: clamp(48px, 6vh, 72px);
}

/* =========================
   TOP WAVE (decorative, no layout)
   ========================= */
.site-header {
  position: relative;
  isolation: isolate;            /* allows -1 z-index child under content */
  padding-top: var(--nav-h);     /* space for fixed nav */
}

.top-wave-img {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 100vw; height: auto;
  z-index: -1;                   /* sits behind nav/hero */
  pointer-events: none;
}

/* =========================
   NAVIGATION (fixed, right aligned)
   ========================= */
.nav-row {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  padding: clamp(8px, 1.6vw, 14px) clamp(16px, 8vw, 15%) clamp(2px, 0.3vw, 3px) clamp(16px, 8vw, 15%);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  z-index: 100000;               /* top-most */
}

.menu {
  display: flex;
  gap: clamp(8px, 2.6vw, 26px);
  margin-left: auto;
}
.menu a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(16px, 2.1vw, 20px);
  font-weight: bold;
  padding: 12px 16px;
  border-radius: 16px;
  color: #0F4C5C;
  text-decoration: none;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.menu a:hover,
.menu a:focus-visible {
  background: rgba(255,255,255,0.18);
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  outline: none;
}
.menu a:active { transform: scale(0.98); }

/* =========================
   HERO
   ========================= */
.hero {
  margin-top: clamp(10px, 11vw, 110px);
  padding: 0 min(2vw, 28px) clamp(10px, 4vw, 40px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(22px, 4.6vw, 56px);
  align-items: center;
}

.logo-img { 
  width: 60%; 
  margin-top: -13vh; 
  margin-left: 4vw; 
  margin-bottom: 5vh;
}

.hero-left h1 {
  color: #0F4C5C;
  font-size: 55px;
  text-align: center;
  margin-bottom: 5vh;
  text-shadow: 0px 4px 12px rgba(0,0,0,0.25);
}

.choices {
  color: #F96F45;
  text-shadow: 0px 4px 12px rgba(0,0,0,0.25);
}

.magic {
  color: #35AD90;
  text-shadow: 0px 4px 12px rgba(0,0,0,0.25);
}

.adventure {
  color: #FBC651;
  text-shadow: 0px 4px 12px rgba(0,0,0,0.25);
}

.store-links { 
  display: flex; 
  gap: 5vw; 
  flex-wrap: wrap; 
  margin-left: 4vw; 
}
.store-links img {
  width: min(50vw, 250px);
  height: min(16vw, 90px);
  object-fit: contain;
  transition: transform .2s ease;
}
.store-links img:hover { transform: scale(1.07); }

.hero-right { display: flex; justify-content: center; }
.hero-illustration {
  width: min(82vw, 700px);
  height: auto;
  filter: drop-shadow(0 10px 28px rgba(0,0,0,.45));
  pointer-events: none; /* decorative */
  margin-top: -20vh;
}

/* =========================
   PHONES ROW
   ========================= */
.phones-row {
  padding: clamp(32px, 8.6vw, 92px) min(5vw, 28px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3.6vw, 42px);
  align-items: start;
}

.phone-section {
  transition: transform .3s ease, box-shadow .3s ease;
}
.phone-section:hover {
  transform: scale(1.05);
  z-index: 2;
}

.phone { text-align: center; }

.phone img {
  width: 100%;
  max-width: 300px;             /* bigger phones */
  aspect-ratio: 9/19.5;
  object-fit: cover;
  border-radius: 26px;
  padding: 14px 12px 20px;
  margin: 0 auto;
  position: relative;
}

/* Phone headings & text: paragraph only slightly smaller + lighter */
.phone h3 {
  margin: 16px 0 8px;
  font-size: clamp(22px, 2.8vw, 28px);
  color: #0F4C5C;
  font-weight: 600;
}
.phone p {
  margin: 0 auto;
  max-width: 34ch;
  color: #0F4C5C;
  font-size: clamp(20px, 2.4vw, 24px);  /* close to h3 size */
  line-height: 1.5;
  font-weight: 300;                     /* lighter than heading */
}

/* =========================
   FLOATING STARS (decorative)
   ========================= */
.floating-star {
  position: absolute;
  width: 100%;
  height: auto;
  z-index: 0;
  pointer-events: none;
}

/* =========================
   CONTACT
   ========================= */
.contact {
  position: relative;
  padding: clamp(72px, 13vw, 148px) clamp(16px, 8vw, 15%) clamp(60px, 12vw, 126px);
}

.contact::after {
  content: "";
  position: absolute;
  top: 120px;
  right: -3vw;

  width: clamp(500px, 45vw, 750px);
  height: 450px;

  background-image: url("assets/paper-airplane.webp");
  background-repeat: no-repeat;
  background-size: contain;

  pointer-events: none;
  z-index: 0;
}
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 48px;
  max-width: 1200px;
  margin-inline: auto;

  transform: translateY(40px);
}

.connect-header {
  color: #FFFFFF;
  font-size: clamp(36px, 4.6vw, 52px);
  font-weight: 600;
  margin-bottom: 10vh;
  text-align: center;
}
/* use your class from HTML for the subheading to keep it distinct */
.connect-subheading {
  font-size: clamp(28px, 3vw, 34px);
  line-height: 1.4;
  font-weight: 300;           /* lighter, like you wanted */
  color: #E6EBFF;
  letter-spacing: 0.01em;
  text-align: center;
}

.contact-form {
  display: grid;
  gap: 40px;
  max-width: 480px;
  justify-self: end;
  width: 100%;
  margin-right: 6vw;
}
.contact-form input,
.contact-form textarea {
  border: none;
  border-radius: 30px;
  padding: 20px 22px;
  background: rgba(255,255,255,0.35);
  color: #676256;
  font-size: 17px;
  backdrop-filter: blur(7px);
}
.contact-form textarea { min-height: 140px; resize: none; }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #676256; }
.contact-form button {
  justify-self: start;
  background: #37316D;
  color: #fff;
  font-weight: 700;
  border-radius: 32px;
  padding: 14px 36px;
  border: none;
  cursor: pointer;
  transition: transform .15s ease;
  font-size: 17px;
}
.contact-form button:hover { transform: scale(1.06); }

/* =========================
   BOTTOM WAVE + FOOTER (wave decorative under footer)
   ========================= */
.bottom-wave-section {
  position: relative;
  z-index: 0;                           /* decorative behind footer text */
  margin: 0; padding: 0;
}
.bottom-wave-img {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleY(0.85); /* squishes height */
  width: 100vw;
  height: auto;
  z-index: 0;
  pointer-events: none;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,.25));
}

.site-footer {
  position: relative;
  z-index: 1;                           /* above the wave */
  background: transparent;
  color: #fff;
  font-weight: bold;
  text-align: center;
  font-size: 16px;
  padding: 24px 12px clamp(56px, 7vw, 96px); /* bottom padding so text sits on the curve */
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 980px) {
  /* Hero: put text above image and center logo/buttons */
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero-left  { order: 1; }
  .hero-right { order: 2; margin-top: clamp(12px, 4vw, 24px); }

  .logo-img {
    display: block;
    width: min(70vw, 320px);
    margin: 0 auto 20px auto;
    padding-left: 0;
  }
  .hero-illustration {
    margin-top: 10px;
    width: min(80vw, 420px);
  }
  .store-links { justify-content: center; }

  /* Phones: always show text above image when stacked */
  .phones-row { grid-template-columns: 1fr; gap: 28px; }
  .phone {
    display: flex; flex-direction: column;
    align-items: center; text-align: center;
  }
  .phone figcaption { order: 1; margin-bottom: 12px; }
  .phone img { order: 2; margin-top: 0; }

  .contact::after {
    position: relative;
    display: block;
    top: 0;
    right: 0;
    margin: 20px auto 0;
    width: min(70vw, 300px);
    height: auto;
  }

  /* Contact stacks cleanly */
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .contact-copy { text-align: center; }
  .contact-form { justify-self: center; }
}

/* === Stacking fix: header must sit above main/footer === */
header { position: relative; z-index: 1000 !important; }
main, footer { position: relative; z-index: 1 !important; }

/* === Nav: fixed, truly topmost, always clickable === */
.nav-row {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 2147483000 !important;  /* above any content */
  pointer-events: auto !important;
}

/* Decorative overlays must never intercept clicks */
.floating-star {
  pointer-events: none !important;
  z-index: 0 !important;
}

/* Hover-scaled cards stay below nav */
.phone-section { position: relative; z-index: 2; }