/* ============================================================
   BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Josefin Sans', 'Helvetica Neue', sans-serif;
  color: #2c1a0e;
  background: #e8f4fa;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

/* ============================================================
   HERO — SKY
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 560px;
  /* Deep sky at top → bright midday blue → soft horizon */
  background: linear-gradient(
    180deg,
    #0d2b45 0%,
    #1a5c8a 18%,
    #2c8fc9 42%,
    #6dbde8 65%,
    #a8d9f0 80%,
    #d6eef8 92%,
    #e8f6fd 100%
  );
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ============================================================
   CLOUDS
   ============================================================ */
.cloud {
  position: absolute;
  background: rgba(255, 255, 255, 0.82);
  border-radius: 60px;
  animation: cloudDrift linear infinite;
}

.cloud::before,
.cloud::after {
  content: '';
  position: absolute;
  background: rgba(255, 255, 255, 0.82);
  border-radius: 50%;
}

/* Cloud A — large, slow, mid-height */
.cloud-a {
  width: 220px; height: 55px;
  top: 22%; left: -240px;
  animation-duration: 55s;
  animation-delay: 0s;
}
.cloud-a::before { width: 110px; height: 110px; top: -55px; left: 40px; }
.cloud-a::after  { width: 80px;  height: 80px;  top: -38px; left: 120px; }

/* Cloud B — small, faster, upper */
.cloud-b {
  width: 140px; height: 38px;
  top: 12%; left: -160px;
  animation-duration: 38s;
  animation-delay: -12s;
}
.cloud-b::before { width: 70px; height: 70px; top: -35px; left: 25px; }
.cloud-b::after  { width: 55px; height: 55px; top: -24px; left: 80px; }

/* Cloud C — medium, mid-screen */
.cloud-c {
  width: 180px; height: 45px;
  top: 35%; left: -200px;
  animation-duration: 62s;
  animation-delay: -28s;
}
.cloud-c::before { width: 90px;  height: 90px;  top: -45px; left: 30px; }
.cloud-c::after  { width: 65px;  height: 65px;  top: -28px; left: 105px; }

/* Cloud D — small, near horizon */
.cloud-d {
  width: 120px; height: 30px;
  top: 55%; left: -140px;
  animation-duration: 45s;
  animation-delay: -20s;
  opacity: 0.55;
}
.cloud-d::before { width: 60px; height: 60px; top: -28px; left: 20px; }
.cloud-d::after  { width: 45px; height: 45px; top: -18px; left: 68px; }

@keyframes cloudDrift {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(100vw + 260px)); }
}

/* ============================================================
   HERO HEADER — WEDDING TITLE
   ============================================================ */
.hero-header {
  position: relative;
  z-index: 10;
  text-align: center;
  padding-top: clamp(40px, 10vh, 90px);
  animation: fadeDown 1s ease-out 0.2s both;
  pointer-events: none;
  user-select: none;
  /* Frosted backdrop so text stays legible when clouds drift behind */
  background: radial-gradient(ellipse at center, rgba(10, 40, 70, 0.8) 0%, transparent 72%);
  padding-left: 40px;
  padding-right: 40px;
  padding-bottom: 28px;
  border-radius: 50%;
}

.pre-title {
  font-size: clamp(0.62rem, 1.4vw, 0.78rem);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 14px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.couple-names {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.4rem, 7.5vw, 5.2rem);
  font-weight: 700;
  line-height: 1.08;
  color: #ffffff;
  text-shadow:
    0 2px 8px rgba(0, 0, 0, 0.9),
    0 4px 32px rgba(0, 0, 0, 0.75),
    0 0 80px rgba(10, 40, 80, 0.9);
}

.amp {
  font-style: italic;
  font-weight: 400;
  color: #f7d96a;
}

.biplane {
  pointer-events: auto;
  cursor: pointer;
  touch-action: manipulation;
}

.wedding-meta {
  margin-top: 12px;
  font-size: clamp(0.7rem, 1.8vw, 0.9rem);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   FLIGHT SCENE
   ============================================================ */
.flight-scene {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 58%;
  pointer-events: none;
  /* Show on desktop only */
}

/* The biplane + banner container.
   Starts far off-screen to the right, flies to resting position. */
.flight-unit {
  position: absolute;
  bottom: 32%;
  left: 44%;
  display: flex;
  align-items: center;
  animation: flyIn 2s cubic-bezier(0.22, 0.8, 0.4, 1) 0.7s both;
  pointer-events: auto;
}

@keyframes flyIn {
  from { transform: translateX(110vw); }
  to   { transform: translateX(-50%); }
}

/* ── Biplane image ── */
.plane-wrap {
  flex-shrink: 0;
  /* Gentle float after arrival */
  animation: planeFloat 4s ease-in-out 2.8s infinite;
}

.biplane {
  display: block;
  width: clamp(110px, 17vw, 210px);
  height: auto;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.38));
}

@keyframes planeFloat {
  0%,  100% { transform: translateY(0)    rotate(-1deg); }
  50%        { transform: translateY(-12px) rotate(1.5deg); }
}

/* ── Tow cable ── */
.banner-assembly {
  display: flex;
  align-items: center;
  overflow: hidden; /* masks the reveal animation */
}

.tow-cable {
  flex-shrink: 0;
  width: clamp(18px, 2.5vw, 36px);
  height: 2px;
  background: rgba(80, 50, 20, 0.55);
}

/* Reveal wrapper — clips from right, unfurls left-to-right */
.banner-reveal {
  clip-path: inset(0 100% 0 0);
  animation: bannerUnfurl 2s cubic-bezier(0.2, 0.6, 0.4, 1) 0.7s forwards;
}

@keyframes bannerUnfurl {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0%   0 0); }
}

/* ── Banner ── */
.banner {
  position: relative;
  background: linear-gradient(180deg, #fdf3dc 0%, #f5e5be 100%);
  border: 1.5px solid #c8a060;
  border-radius: 0 6px 6px 0;
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  padding: 0;
  /* Pointed left edge (flag tab) */
  clip-path: polygon(24px 0%, 100% 0%, 100% 100%, 24px 100%, 0% 50%);
  padding-left: 28px;
}

.banner-nav {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  padding: 14px 22px 14px 14px;
}

.banner-nav a {
  font-family: 'Josefin Sans', sans-serif;
  font-size: clamp(0.68rem, 1.35vw, 0.88rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #5a3010;
  padding: 2px 10px;
  transition: color 0.2s;
}

.banner-nav a:hover { color: #b85c00; }

.sep {
  color: #c8a060;
  font-size: 0.55rem;
  padding: 0 2px;
}

/* ============================================================
   MOBILE NAV  (hidden ≥ 768 px)
   ============================================================ */
.mobile-nav {
  display: none;
}

/* ============================================================
   SCROLL HINT
   ============================================================ */
.scroll-hint {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
  animation: fadeDown 1s ease-out 3s both;
  pointer-events: none;
}

.scroll-arrow {
  width: 10px;
  height: 10px;
  border-right: 1.5px solid rgba(255,255,255,0.5);
  border-bottom: 1.5px solid rgba(255,255,255,0.5);
  transform: rotate(45deg);
  animation: scrollBounce 1.6s ease-in-out 4s infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50%       { transform: rotate(45deg) translateY(5px); }
}

/* ============================================================
   DETAILS SECTION
   ============================================================ */
.details-section {
  background: #f7f2eb;
  padding: clamp(56px, 8vw, 100px) 20px;
  text-align: center;
}

.container {
  max-width: 900px;
  margin: 0 auto;
}

.section-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #b87333;
  margin-bottom: 10px;
}

.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: #2c1a0e;
  margin-bottom: 18px;
}

.section-body {
  font-size: clamp(0.9rem, 2vw, 1rem);
  line-height: 1.75;
  color: #5a3d2b;
  max-width: 560px;
  margin: 0 auto 48px;
}

/* Info cards */
.info-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.info-card {
  background: #ffffff;
  border: 1px solid #e2d5c0;
  border-radius: 12px;
  padding: 32px 28px;
  min-width: 160px;
  flex: 1 1 160px;
  max-width: 220px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.card-icon { font-size: 1.8rem; margin-bottom: 12px; }

.info-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  margin-bottom: 6px;
  color: #2c1a0e;
}

.info-card p {
  font-size: 0.85rem;
  color: #7a5c45;
  line-height: 1.5;
}

/* Clickable venue card */
.info-card--clickable {
  cursor: pointer;
  position: relative;
  /* Reset button element defaults */
  font-family: inherit;
  font-size: inherit;
  background: #ffffff;
  width: 100%;
  text-align: center;
  touch-action: manipulation;
}

.info-card--clickable:hover,
.info-card--clickable:focus {
  border-color: #b87333;
  outline: none;
}

.card-hint {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #b87333;
  border-bottom: 1px solid #b87333;
}

/* Map modal */
.map-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 30, 50, 0.7);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.map-modal.is-open {
  display: flex;
}

.map-modal__box {
  background: #fdf7ee;
  border-radius: 16px;
  width: 100%;
  max-width: 560px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.map-modal__close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: #7a5c45;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
  transition: background 0.15s;
}

.map-modal__close:hover { background: rgba(0,0,0,0.07); }

.map-modal__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: #2c1a0e;
  padding-right: 30px;
}

.map-modal__address {
  font-size: 0.78rem;
  color: #7a5c45;
  letter-spacing: 0.05em;
}

.map-modal__frame {
  width: 100%;
  height: 320px;
  border-radius: 10px;
  overflow: hidden;
  border: 1.5px solid #e2d0b0;
}

.map-modal__directions {
  align-self: flex-end;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #b87333;
  text-decoration: none;
  border-bottom: 1px solid #b87333;
  padding-bottom: 1px;
  transition: color 0.2s;
}

.map-modal__directions:hover { color: #8b5a00; }

@media (max-width: 767px) {
  .map-modal__frame { height: 240px; }
}

/* ============================================================
   PAGE LINK CARDS
   ============================================================ */
.nav-section {
  background: #ffffff;
  padding: clamp(40px, 6vw, 72px) 20px;
}

.page-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.page-link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: #fdf7ee;
  border: 1.5px solid #e2d0b0;
  border-radius: 14px;
  padding: 28px 22px;
  min-width: 120px;
  flex: 1 1 120px;
  max-width: 160px;
  text-align: center;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.page-link-card:hover {
  background: #fff3d6;
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.link-icon { font-size: 1.6rem; }

.link-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #5a3010;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #1a3a4e;
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 28px 20px;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ============================================================
   RESPONSIVE — TABLET  (< 900px)
   ============================================================ */
@media (max-width: 900px) {
  .flight-unit {
    bottom: 28%;
  }
}

/* ============================================================
   RESPONSIVE — MOBILE  (< 768px)
   ============================================================ */
@media (max-width: 767px) {
  /* Hide the desktop flight-scene banner nav on mobile */
  .flight-scene {
    pointer-events: none;
    height: 48%;
  }

  /* Re-centre the plane, smaller */
  .flight-unit {
    left: 50%;
    transform: translateX(-50%);
    bottom: 36%;
    flex-direction: column;
    align-items: center;
    /* Override flyIn: drop down from above instead */
    animation: flyInMobile 1.6s cubic-bezier(0.22, 0.8, 0.4, 1) 0.7s both;
  }

  @keyframes flyInMobile {
    from { transform: translateX(110vw); opacity: 0; }
    to   { transform: translateX(-50%); opacity: 1; }
  }

  .biplane {
    width: clamp(90px, 40vw, 150px);
  }

  /* Hide the trailing banner on mobile */
  .banner-assembly { display: none; }

  /* Show the mobile nav instead */
  .mobile-nav {
    display: flex;
    position: absolute;
    bottom: 14%;
    left: 50%;
    transform: translateX(-50%);
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 10px;
    z-index: 20;
    animation: mobileNavFadeIn 0.8s ease-out 2.5s both;
    width: 90%;
    max-width: 400px;
    pointer-events: auto;
  }

  @keyframes mobileNavFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
  }

  .mobile-nav a {
    background: rgba(255, 243, 214, 0.92);
    border: 1.5px solid #c8a060;
    border-radius: 50px;
    padding: 7px 16px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #5a3010;
    white-space: nowrap;
    backdrop-filter: blur(6px);
    transition: background 0.2s;
  }

  .mobile-nav a:hover,
  .mobile-nav a:active {
    background: rgba(255, 230, 160, 0.98);
  }

  /* Stack info cards */
  .info-grid {
    flex-direction: column;
    align-items: center;
  }

  .info-card {
    max-width: 100%;
    width: 100%;
  }

  /* Stack page link cards in 2-col grid */
  .page-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .page-link-card {
    max-width: 100%;
  }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .flight-unit,
  .plane-wrap,
  .banner-reveal,
  .scroll-hint,
  .hero-header,
  .mobile-nav,
  .cloud {
    animation: none !important;
  }
  .flight-unit    { transform: translateX(0); }
  .banner-reveal  { clip-path: inset(0 0% 0 0); }
}
