/* ===========================================================
   layout.css — header, footer, hero, section shells, grids
   =========================================================== */

/* ---------- Header (floating pill nav) ---------- */
/* sentinel sits just before the sticky bar; JS toggles .stuck when it scrolls past */
.nav-sentinel { height: 1px; width: 100%; margin: 0; padding: 0; }
.site-header {
  position: sticky; top: 0; z-index: 60;
  padding: clamp(1.4rem, 3.5vw, 2.2rem) clamp(1rem, 4vw, 2.25rem);
}
/* equal breathing room above (hero -> nav) and below (nav -> next block):
   the header's own vertical padding sets the gap, so the first block drops its top padding */
main > section:first-child { padding-top: 0; }
.nav {
  max-width: var(--maxw); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  background: var(--green);
  color: #fff;
  border-radius: var(--r-pill);
  padding: .55rem .7rem .55rem 1.4rem;
  box-shadow: var(--shadow-md);
  transition: box-shadow .25s ease;
}
.site-header.stuck .nav { box-shadow: var(--shadow-lg); }
.brand {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: 1.5rem; letter-spacing: .04em; color: #fff; line-height: 1;
  display: inline-flex; align-items: center; gap: .5rem;
}
.brand-logo { height: 40px; width: auto; display: block; }
.footer-brand .brand-logo { height: 48px; }
.nav-links { display: none; gap: 1.6rem; align-items: center; }
.nav-links a {
  font-weight: 700; font-size: .95rem; color: #ffffff;
  transition: color .2s;
}
.nav-links a:hover { color: var(--yellow); }
.nav-right { display: flex; align-items: center; gap: .5rem; }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.16); border: 0; cursor: pointer; color: #fff;
}
.nav-toggle svg { width: 22px; height: 22px; }
/* on mobile the nav is just brand + hamburger; the CTA lives in the drawer menu */
.nav-right .btn { display: none; }
@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
  .nav-right .btn { display: inline-flex; }
}

/* mobile drawer */
.mobile-menu {
  position: fixed; inset: 0; z-index: 70;
  background: var(--green-deep); color: #fff;
  display: flex; flex-direction: column; justify-content: center; gap: 1rem;
  padding: 2rem clamp(1.2rem, 6vw, 3rem);
  transform: translateY(-100%); transition: transform .4s cubic-bezier(.2,.7,.2,1);
  visibility: hidden;
}
.mobile-menu.open { transform: none; visibility: visible; }
.mobile-menu a {
  font-family: var(--font-display); text-transform: uppercase; font-weight: 800;
  font-size: 2.2rem; color: #fff; line-height: 1.05;
}
.mobile-menu a:hover { color: var(--yellow); }
.mobile-close {
  position: absolute; top: 1.4rem; right: 1.4rem;
  width: 48px; height: 48px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.14); border: 0; color: #fff; cursor: pointer;
  font-size: 1.6rem;
}
body.no-scroll { overflow: hidden; }

/* ---------- Hero (full-bleed background photo + veil) ---------- */
.hero {
  position: relative;
  min-height: min(78vh, 700px);
  display: flex; align-items: stretch;
  overflow: hidden;
  background: var(--green-deep);
  color: #fff;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: center;
}
.hero-veil {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(11,28,20,.22) 0%, rgba(11,28,20,.52) 42%, rgba(11,28,20,.88) 100%),
    linear-gradient(90deg, rgba(11,28,20,.62) 0%, rgba(11,28,20,.28) 60%, rgba(11,28,20,.20) 100%);
}
.hero-inner {
  position: relative; z-index: 2;
  width: 100%;
  display: grid; grid-template-columns: 1fr; align-items: end;
  gap: clamp(1.8rem, 4vw, 2.6rem);
  padding-block: clamp(2.5rem, 6vw, 4rem);
}
.hero .eyebrow { color: var(--yellow); margin-bottom: 1rem; }
.hero-lead h1 { color: #fff; margin: 0; text-shadow: 0 2px 24px rgba(0,0,0,.28); max-width: 13ch; }
.hero-aside .lede { color: #fff; font-size: clamp(1.05rem,1.7vw,1.25rem); max-width: 46ch; }
.hero-cta { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.hero-stats {
  display: flex; flex-wrap: wrap; gap: clamp(1.4rem, 4vw, 2.6rem);
  margin-top: 1.8rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.24);
}
.hero-stat { display: flex; flex-direction: column; }
.hs-n { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.9rem, 3vw, 2.7rem); color: var(--yellow); line-height: 1; }
.hs-l { font-size: .9rem; color: #fff; font-weight: 600; margin-top: .25rem; }
@media (min-width: 920px) {
  .hero-inner {
    grid-template-columns: 1.1fr .9fr;
    gap: clamp(2.5rem, 5vw, 4.5rem);
    padding-block: clamp(3rem, 6vw, 4.5rem);
  }
  .hero-lead h1 { max-width: 12ch; }
}

/* ---------- generic grids ---------- */
.grid { display: grid; gap: 1.3rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-parks { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-parks { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-parks { grid-template-columns: repeat(3, 1fr); }
}

.section-head { max-width: 720px; margin-bottom: clamp(1.8rem, 4vw, 3rem); }
.section-head.center { margin-inline: auto; }
.section-head h2 { margin-bottom: .8rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-deep); color: rgba(255,255,255,.8);
  padding-top: clamp(3rem, 6vw, 4.5rem);
  margin-top: clamp(3rem, 7vw, 6rem);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  overflow: hidden;
}
.footer-top { display: grid; gap: 2.4rem; grid-template-columns: 1fr; }
.footer-brand .brand { color: #fff; font-size: 1.7rem; }
.footer-brand p { color: rgba(255,255,255,.65); margin-top: .8rem; max-width: 34ch; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.8rem; }
.footer-col h3 {
  font-family: var(--font-display); text-transform: uppercase; font-weight: 700;
  font-size: .95rem; letter-spacing: .08em; color: #fff; margin-bottom: .9rem; line-height: 1.1;
}
.footer-col a, .footer-col li { color: rgba(255,255,255,.7); font-size: .95rem; padding-block: .18rem; display: block; }
.footer-col a:hover { color: var(--yellow); }
.footer-bottom {
  margin-top: 2.6rem; padding-block: 1.4rem;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: .6rem; justify-content: space-between;
  font-size: .85rem; color: rgba(255,255,255,.55);
}
.footer-wordmark {
  text-align: center; margin-top: 1.5rem; user-select: none; line-height: .8;
  pointer-events: none;
}
.footer-wordmark::after {
  content: "Dreamworld";
  display: block;
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  color: rgba(255,255,255,.07);
  font-size: clamp(3.5rem, 17vw, 13rem); line-height: .8; letter-spacing: .01em;
}
@media (min-width: 820px) {
  .footer-top { grid-template-columns: 1.3fr 2fr; gap: 3rem; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
}
