/* ============================================================
   Sydney Zoo — layout.css
   Header / nav, hero, footer, section wrappers, grids
   ============================================================ */

/* ---- Floating nav ---- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding-top: clamp(16px, 2.5vw, 28px);
}
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: rgba(24, 24, 24, 0.55);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-pill);
  padding: 10px 12px 10px 20px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--olive); display: grid; place-items: center; flex: none;
}
.brand-mark svg { width: 22px; height: 22px; }
.brand-name {
  font-family: var(--font-display); font-weight: 800; font-size: 1.25rem;
  color: #fff; letter-spacing: -0.01em;
}
.nav-links { display: none; align-items: center; gap: 6px; }
.nav-links a {
  color: rgba(255, 255, 255, 0.88); padding: 8px 18px; border-radius: var(--radius-pill);
  font-weight: 500; transition: background-color 0.18s ease, color 0.18s ease;
}
.nav-links a:hover { color: #fff; }
.nav-links a.active { background: #fff; color: var(--olive); }
.nav-cta { display: none; }

/* mobile nav toggle */
.nav-toggle {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; color: var(--ink); flex: none;
}
.nav-toggle svg { width: 20px; height: 20px; }
.mobile-menu {
  position: fixed; inset: 0; z-index: 150; background: var(--ink);
  display: flex; flex-direction: column; padding: 24px var(--gutter);
  transform: translateX(100%); transition: transform 0.3s ease; visibility: hidden;
}
.mobile-menu.open { transform: translateX(0); visibility: visible; }
.mobile-menu-head { display: flex; justify-content: space-between; align-items: center; }
.mobile-menu nav { margin-top: 48px; display: flex; flex-direction: column; gap: 4px; }
.mobile-menu nav a {
  color: #fff; font-family: var(--font-display); font-weight: 700;
  font-size: 2rem; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.12);
}
.mobile-menu .btn { margin-top: 32px; align-self: flex-start; }

@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
}

/* ---- Hero ---- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  color: #fff; background: var(--ink); overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(24,24,24,0.45) 0%, rgba(24,24,24,0.05) 32%, rgba(24,24,24,0.72) 100%);
}
.hero-inner { position: relative; z-index: 2; padding-block: clamp(48px, 8vh, 96px); width: 100%; }
.hero h1 { max-width: 15ch; }
.hero-lead { margin-top: 20px; max-width: 46ch; color: rgba(255,255,255,0.86); font-size: clamp(1rem, 1.4vw, 1.15rem); }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* page hero (inner pages) — shorter */
.page-hero { min-height: 62vh; }
.page-hero .hero-inner { padding-block: clamp(56px, 10vh, 120px); }

/* ---- Generic grids ---- */
.grid { display: grid; gap: clamp(20px, 3vw, 36px); }
.split { display: grid; gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (min-width: 768px) { .cols-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) {
  .cols-3 { grid-template-columns: repeat(3, 1fr); }
  .split.head-split { grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); align-items: end; }
}
@media (min-width: 1180px) { .cols-4 { grid-template-columns: repeat(4, 1fr); } }

/* section header row (eyebrow + heading left, text right) */
.section-head { display: grid; gap: 20px; margin-bottom: clamp(32px, 5vw, 56px); }
@media (min-width: 900px) {
  .section-head.row { grid-template-columns: minmax(0,1.1fr) minmax(0,0.9fr); align-items: end; }
  .section-head.row .sh-side { padding-bottom: 6px; }
}

/* ---- Footer ---- */
.site-footer { background: var(--ink); color: var(--on-dark-muted); padding-top: clamp(56px, 7vw, 88px); }
.footer-top { display: grid; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-news h3 { color: #fff; font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 8px; }
.footer-news p { max-width: 34ch; margin-bottom: 20px; }
.footer-cols { display: grid; gap: 32px; }
.footer-col h3 { color: #fff; font-family: var(--font-body); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
.footer-col a, .footer-col p { color: var(--on-dark-muted); display: block; padding: 4px 0; }
.footer-col a:hover { color: #fff; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  padding-block: 26px; font-size: 0.85rem; color: rgba(255,255,255,0.5);
}
@media (min-width: 768px) { .footer-cols { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) {
  .footer-top { grid-template-columns: minmax(0,1.1fr) minmax(0,1.2fr); gap: 64px; }
}
