/* =========================
   JESUS CAMP RESORT — site.css (CLEAN + STABLE)
   - One nav system: body.nav-open + #primaryNav + #menuToggle
   - Desktop dropdown = hover/focus-within (no "stuck")
   - Mobile nav = fullscreen panel
   - No nested @media, no duplicate/conflicting blocks
========================= */

:root {
  --logo-blue: #0e4a8a;
  --logo-orange: #ff9f0d;
  --logo-gold: #ffd36b;

  --accent: #ffa726;
  --accent-dark: #e68900;

  --bg-soft: #fff9ec;
  --text: #222;

  --container: 1200px;
  --radius-lg: 22px;
  --radius-md: 16px;

  --shadow-sm: 0 10px 22px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 18px 55px rgba(0, 0, 0, 0.14);
  --shadow-lg: 0 28px 90px rgba(0, 0, 0, 0.2);

  --section-pad: clamp(3rem, 5vw, 5.25rem);

  /* Logo sizing controls */
  --logo-size: 110px;
  --logo-size-mobile: 92px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  font-family: "Mulish", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: #fff;
}

img {
  max-width: 100%;
  height: auto; /* safe global */
  display: block;
}

/* Skip link (accessibility) */
.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: #000;
  color: #fff;
  padding: 10px 12px;
  border-radius: 10px;
  z-index: 999999;
  text-decoration: none;
  font-weight: 900;
}
.skip-link:focus {
  left: 10px;
}

/* ===== Shared layout helpers ===== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 18px;
}

section {
  padding: var(--section-pad) 0;
}

/* Shared section heading pattern */
.section-head {
  text-align: center;
  margin: 0 auto 28px;
  max-width: 860px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 167, 38, 0.14);
  border: 1px solid rgba(255, 167, 38, 0.25);
  font-weight: 900;
  color: #8a5200;
  margin-bottom: 14px;
}

.h2 {
  margin: 0 0 10px;
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  letter-spacing: 0.3px;
}

.lead {
  margin: 0 auto;
  max-width: 820px;
  color: #3c3c3c;
  line-height: 1.8;
  font-size: 1.08rem;
}

/* ===== Buttons (site-wide) ===== */
.btn {
  background: var(--accent);
  color: #fff !important;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 900;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 0.22s ease, filter 0.22s ease, background 0.22s ease;
}
.btn:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  filter: brightness(0.98);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent) !important;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 900;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease;
}
.btn-outline:hover {
  background: var(--accent);
  color: #fff !important;
  transform: translateY(-2px);
}

.btn-gold {
  background: linear-gradient(90deg, #ffb300, #ff9800);
  color: #fff;
  font-weight: 1000;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(255, 185, 0, 0.28);
  transition: transform 0.25s ease, filter 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.btn-gold:hover {
  transform: translateY(-2px);
  filter: brightness(0.95);
}

.btn-pill-outline {
  border: 2px solid #ffb300;
  color: #ffb300;
  font-weight: 1000;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  background: transparent;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.btn-pill-outline:hover {
  background: #ffb300;
  color: #fff;
  transform: translateY(-2px);
}

/* =========================
   HEADER / NAV (shared)
========================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.nav-container {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

/* Logo */
.logo {
  width: var(--logo-size);
  height: var(--logo-size);
  border-radius: 50%;
  object-fit: cover;
  padding: 6px;
  background: linear-gradient(135deg, var(--logo-gold), var(--logo-orange));
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}
.logo:hover {
  transform: scale(1.03);
  box-shadow: 0 18px 38px rgba(255, 140, 0, 0.25);
  filter: saturate(1.1);
  cursor: pointer;
}
@media (max-width: 768px) {
  .logo {
    width: var(--logo-size-mobile);
    height: var(--logo-size-mobile);
  }
}

/* Toggle button */
.menu-toggle {
  display: none; /* desktop hidden */
  font-size: 26px;
  background: none;
  border: none;
  cursor: pointer;
}

/* Main menu (desktop) */
.main-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 0;
}

.main-menu > li {
  position: relative;
}

.site-header .main-menu > li > a {
  color: #0b1020;
  font-weight: 800;
  text-decoration: none;
  padding: 10px 8px;
  border-radius: 10px;
}
.site-header .main-menu > li > a:hover,
.site-header .main-menu > li > a:focus {
  color: #f5a623;
}

/* Dropdown (desktop) — stable: only direct child opens */
.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  background: #fff;
  min-width: 220px;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.14);
  border-radius: 16px;
  overflow: hidden;
  z-index: 9999;
  padding: 10px;
}

.main-menu > li:hover > .dropdown,
.main-menu > li:focus-within > .dropdown {
  display: block;
}

.dropdown li {
  list-style: none;
}

.site-header .dropdown a {
  display: block;
  padding: 10px 14px;
  font-weight: 800;
  color: #0b1020;
  text-decoration: none;
  border-radius: 12px;
  white-space: nowrap;
}

.site-header .dropdown a:hover,
.site-header .dropdown a:focus {
  background: rgba(245, 166, 35, 0.14);
}

/* =========================
   Mobile NAV — Fullscreen
   Uses: body.nav-open + #primaryNav + #menuToggle
========================== */
@media (max-width: 980px) {
  .menu-toggle {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    border: 2px solid rgba(255, 179, 0, 0.35);
    background: #fff;
    color: #0b0b0b;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
  }

  /* Move X button when open */
  body.nav-open #menuToggle {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 10000;
  }

  /* Fullscreen panel */
  #primaryNav {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    display: none;
    background: #fff;
    padding: 92px 18px 26px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 9998;
  }

  body.nav-open #primaryNav {
    display: block;
  }

  /* Stack menu */
  .main-menu {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
  }

  .main-menu > li {
    width: 100%;
    padding: 18px 6px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.10);
  }

  .main-menu > li > a {
    padding: 0;
    font-size: 1.25rem;
    font-weight: 900;
    color: #121212;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  /* dropdowns collapsed by default on mobile */
  .dropdown {
    display: none;
    position: static;
    box-shadow: none;
    border-radius: 0;
    background: transparent;
    min-width: 0;
    padding: 10px 0 0;
    border: 0;
  }

  /* opened via JS: li.is-open */
  .main-menu > li.is-open > .dropdown {
    display: block;
  }

  .dropdown a {
    padding: 12px 0 12px 18px;
    font-weight: 800;
    color: #1a1a1a;
    white-space: normal;
  }

  .dropdown a:hover {
    background: rgba(255, 167, 38, 0.10);
  }

  /* make Donate + Book Now full-width buttons */
  .main-menu a.btn {
    width: 100%;
    margin-top: 12px;
    padding: 18px 22px;
    border-radius: 18px;
    font-size: 1.12rem;
    justify-content: center;
  }

  /* do not draw divider for button rows (no :has) */
  .main-menu > li.btn-row {
    border-bottom: 0;
    padding-bottom: 8px;
  }
}

/* =========================
   FOOTER (shared)
========================== */
.site-footer {
  background: radial-gradient(circle at top, #1a1a1a 0%, #0b0b0b 70%);
  color: #fff;
  padding: 56px 0 22px;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top center, rgba(255, 170, 0, 0.14), transparent 68%);
  pointer-events: none;
}

.footer-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
  align-items: start;
}

.footer-invite h2 {
  margin: 0 0 10px;
  font-family: "Playfair Display", serif;
  font-size: clamp(1.55rem, 2.2vw, 2.05rem);
  color: #ffb84d;
  text-shadow: 0 0 14px rgba(255, 184, 77, 0.45);
}

.footer-invite p {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
  max-width: 560px;
}

.footer-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.footer-card {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.footer-contact {
  padding: 16px 16px 14px;
  display: grid;
  gap: 10px;
}

.footer-row {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.98rem;
}

.footer-row i {
  color: #ffb84d;
  margin-top: 2px;
}

.footer-row a {
  color: #ffdf85;
  text-decoration: none;
  font-weight: 900;
}
.footer-row a:hover {
  text-decoration: underline;
  color: #fff7cc;
}

.footer-map {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: #000;
}

.footer-map iframe {
  width: 100%;
  height: 190px;
  border: 0;
  display: block;
  background: transparent;
}

.footer-bottom {
  position: relative;
  z-index: 2;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
}

/* Footer nav */
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6px 0;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}
.footer-nav a:hover {
  color: #fff;
  text-decoration: underline;
}
.footer-nav .footer-nav-btn {
  color: rgba(255, 223, 133, 0.98);
  font-weight: 900;
}
.footer-nav .footer-nav-btn:hover {
  color: #fff7cc;
}

.footer-sep {
  color: rgba(255, 255, 255, 0.35);
  padding: 0 2px;
}

.footer-socials {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-socials a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 900;
  color: rgba(255, 223, 133, 0.95);
}
.footer-socials a:hover {
  color: #fff;
}

@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

/* =========================
   Cookie banner (shared)
========================== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #f2f2f2;
  padding: 12px 14px;
  z-index: 99999;
  display: none;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.cookie-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.cookie-banner p {
  margin: 0;
  color: #333;
  font-weight: 700;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-banner button {
  padding: 10px 14px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 1000;
  background: var(--accent);
  color: #fff;
}
.cookie-banner button.secondary {
  background: #ddd;
  color: #222;
}

/* =========================
   Polaroid image safety
========================== */
.polaroid img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

@media (max-width: 900px) {
  .polaroid img {
    aspect-ratio: auto;
    object-fit: contain;
    background: #fff;
  }
}
/* =========================
   AOS SAFETY: never hide content if AOS isn't running
========================= */
html:not(.aos-on) [data-aos] {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}

