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

:root {
  --cream:    #faf7f2;
  --cream-dk: #f3ede4;
  --sand:     #e8ddd3;
  --sand-dk:  #d9cbb8;
  --olive:    #7a8b6f;
  --olive-lt: #96a88b;
  --olive-dk: #5c6b52;
  --charcoal: #3a3a3a;
  --warm:     #c4a882;
  --warm-lt:  #d4c0a4;
  --warm-dk:  #a68a64;
  --terracotta: #c47d5a;
  --white:    #ffffff;
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Nunito Sans', 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.7;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a   { color: var(--olive); text-decoration: none; transition: color .2s; }
a:hover { color: var(--olive-dk); }

/* ========== Typography ========== */
h1, h2, h3 { font-family: var(--font-heading); font-weight: 500; color: var(--charcoal); }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.15; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: .6em; }
h3 { font-size: 1.3rem; margin-bottom: .4em; }

/* ========== Layout helpers ========== */
.container { width: min(1100px, 90%); margin-inline: auto; }
.section   { padding: 5rem 0; position: relative; overflow: hidden; }
.section--alt { background: var(--sand); }

/* ========== Decorative SVG elements ========== */
.decor-lotus { display: block; margin: 0 auto; opacity: .15; }
.decor-lotus--sm { width: 48px; height: 48px; }
.decor-lotus--md { width: 80px; height: 80px; }
.decor-lotus--lg { width: 120px; height: 120px; }

.decor-divider {
  display: block; width: 100%; height: 60px;
  margin: -1px 0; position: relative; z-index: 2;
}

.decor-mandala {
  position: absolute; opacity: .04; pointer-events: none; z-index: 0;
}
.decor-mandala--left  { left: -120px; top: 50%; transform: translateY(-50%); }
.decor-mandala--right { right: -120px; top: 50%; transform: translateY(-50%); }

.decor-branch {
  position: absolute; opacity: .06; pointer-events: none;
}

/* ========== Navigation ========== */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,247,242,.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--sand);
}
.nav .container {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 0;
}
.nav__logo {
  font-family: var(--font-heading);
  font-size: 1.5rem; font-weight: 600;
  color: var(--olive);
  display: flex; align-items: center; gap: .5rem;
}
.nav__logo svg { width: 28px; height: 28px; }
.nav__links { display: flex; gap: 1.8rem; list-style: none; }
.nav__links a {
  font-size: .85rem; font-weight: 600; letter-spacing: .05em;
  text-transform: uppercase; color: var(--charcoal);
  position: relative; padding-bottom: 2px;
}
.nav__links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 2px; background: var(--olive);
  transition: width .3s ease;
}
.nav__links a:hover::after,
.nav__links a.active::after { width: 100%; }
.nav__links a:hover,
.nav__links a.active { color: var(--olive); }

/* hamburger */
.nav__toggle { display: none; background: none; border: none; cursor: pointer; }
.nav__toggle span {
  display: block; width: 24px; height: 2px; background: var(--charcoal);
  margin: 5px 0; transition: .3s;
}

@media (max-width: 768px) {
  .nav__toggle { display: block; position: relative; z-index: 10000; }
  .nav__links {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100vh; height: 100dvh;
    background: #f8f6f1; /* solid fallback */
    flex-direction: column; align-items: center; justify-content: center;
    gap: 2rem; transform: translateX(100%); transition: transform .35s;
    z-index: 9999;
    margin: 0; padding: 0;
    box-sizing: border-box;
  }
  .nav__links.open { transform: translateX(0); }
  .nav__links a { font-size: 1.2rem; }
}

/* ========== Hero ========== */
.hero {
  min-height: 85vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(122,139,111,.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(196,168,130,.1) 0%, transparent 50%),
    linear-gradient(160deg, var(--cream) 30%, var(--cream-dk) 70%, var(--sand) 100%);
  padding: 4rem 1rem;
  position: relative; overflow: hidden;
}
.hero__bg-art {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.hero__bg-art svg { position: absolute; }

.hero__inner { max-width: 700px; position: relative; z-index: 1; }
.hero__tagline {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--olive);
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: flex; align-items: center; justify-content: center; gap: .8rem;
}
.hero__tagline svg { width: 20px; height: 20px; opacity: .6; }
.hero__tagline::before,
.hero__tagline::after {
  content: ''; width: 40px; height: 1px; background: var(--olive); opacity: .4;
}
.hero h1 { margin-bottom: 1.2rem; }
.hero p  { font-size: 1.1rem; color: #6b6b6b; max-width: 520px; margin: 0 auto 2rem; }

.hero__buttons {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
}

.hero__photo-placeholder {
  width: 280px; height: 280px;
  margin: 2.5rem auto 0;
  border-radius: 50%;
  border: 3px dashed var(--warm);
  display: flex; align-items: center; justify-content: center;
  color: var(--warm); font-size: .9rem; text-align: center; padding: 1rem;
  background: rgba(196,168,130,.08);
  position: relative;
}
.hero__photo-placeholder::before {
  content: ''; position: absolute; inset: -12px;
  border-radius: 50%; border: 1px solid rgba(196,168,130,.2);
}

/* ========== Buttons ========== */
.btn {
  display: flex !important; align-items: center !important; justify-content: center !important;
  width: fit-content; margin-left: auto; margin-right: auto;
  padding: .85rem 2rem;
  border-radius: 50px; font-weight: 700; font-size: .9rem;
  line-height: 1 !important; letter-spacing: .06em; text-transform: uppercase;
  transition: all .3s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: var(--olive); color: var(--white);
  box-shadow: 0 4px 15px rgba(122,139,111,.3);
}
.btn--primary:hover {
  background: var(--olive-dk); color: var(--white);
  box-shadow: 0 6px 20px rgba(122,139,111,.4);
}
.btn--outline {
  border: 2px solid var(--olive); color: var(--olive);
}
.btn--outline:hover { background: var(--olive); color: var(--white); }

/* ========== Section headings with ornament ========== */
.section-heading {
  text-align: center; margin-bottom: 2.5rem;
}
.section-heading h2 { margin-bottom: .3rem; }
.section-heading__ornament {
  display: flex; align-items: center; justify-content: center; gap: .8rem;
  margin-top: .5rem;
}
.section-heading__ornament::before,
.section-heading__ornament::after {
  content: ''; width: 50px; height: 1px; background: var(--warm);
}
.section-heading__ornament svg { width: 24px; height: 24px; opacity: .3; }

/* ========== Cards ========== */
.card {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 20px rgba(0,0,0,.04);
  transition: transform .3s ease, box-shadow .3s ease;
  border: 1px solid rgba(232,221,211,.5);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(0,0,0,.07);
}

/* ========== Feature cards (home) ========== */
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  text-align: center; padding: 2.5rem 2rem;
  position: relative;
}
.feature-card__icon {
  width: 56px; height: 56px; margin: 0 auto 1.2rem;
  border-radius: 50%; background: rgba(122,139,111,.1);
  display: flex; align-items: center; justify-content: center;
}
.feature-card__icon svg { width: 28px; height: 28px; color: var(--olive); }
.feature-card h3 { font-size: 1.2rem; }
.feature-card p { color: #555; font-size: .95rem; }

/* ========== Schedule ========== */
.schedule-grid { display: grid; gap: 1.5rem; }
.schedule-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.2rem;
  align-items: center;
  padding: 1.5rem 2rem;
}
.schedule-card__icon {
  flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--olive), var(--olive-dk));
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(92,107,82,.25);
}
.schedule-card__details h3 { margin-bottom: .15rem; font-size: 1.15rem; }
.schedule-card__details p  { color: #6b6b6b; font-size: .9rem; margin: 0; }
.schedule-card__tag {
  display: inline-block; margin-top: .3rem;
  background: rgba(122,139,111,.1); padding: .2rem .6rem;
  border-radius: 20px; font-size: .75rem; font-weight: 600; color: var(--olive-dk);
  border: 1px solid rgba(122,139,111,.2);
}
.schedule-card__action {
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
/* Props shown as an inline comma-separated line */
.schedule-card__props {
  grid-column: 1 / -1;
  margin-top: 0; padding-top: .6rem;
  border-top: 1px solid var(--sand);
}
.schedule-card__props h4 {
  font-family: var(--font-heading);
  font-size: .85rem; font-weight: 600;
  color: var(--olive-dk); margin-bottom: 0;
  display: inline;
}
.schedule-card__props ul {
  list-style: none; padding: 0; display: inline;
}
.schedule-card__props li {
  font-size: .82rem; color: #666;
  display: inline;
}
.schedule-card__props li + li::before {
  content: ' · '; color: var(--warm);
}
@media (max-width: 600px) {
  .schedule-card {
    grid-template-columns: auto 1fr;
  }
  .schedule-card__action {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

/* ========== Props ========== */
.props-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}
.prop-card { overflow: hidden; padding: 0; }
.prop-card img {
  width: 100%; height: 220px; object-fit: cover;
  transition: transform .4s ease;
}
.prop-card:hover img { transform: scale(1.05); }
.prop-card__body { padding: 1.5rem 2rem 2rem; }
.prop-card__body h3 { color: var(--olive-dk); }
.prop-card__body p  { font-size: .95rem; color: #555; }

/* ========== About ========== */
.about-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start;
}
.about-photo-placeholder {
  width: 100%; aspect-ratio: 3/4;
  border-radius: 12px;
  border: 3px dashed var(--warm);
  display: flex; align-items: center; justify-content: center;
  color: var(--warm); font-size: .9rem; text-align: center; padding: 2rem;
  background: rgba(196,168,130,.06);
  position: relative;
}
.about-text p { margin-bottom: 1.2rem; color: #555; }
.about-text p:first-of-type::first-letter {
  font-family: var(--font-heading);
  font-size: 3.4rem; float: left; line-height: .8;
  margin-right: .15em; color: var(--olive);
  font-weight: 600;
}

@media (max-width: 768px) {
  .about-layout { grid-template-columns: 1fr; }
}

/* ========== Donations ========== */
.donate-intro { max-width: 640px; margin: 0 auto 2.5rem; text-align: center; }
.donate-intro p { color: #555; font-size: 1.05rem; }
.donate-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.donate-btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: 1rem 2.2rem; border-radius: 50px;
  font-weight: 700; font-size: 1rem;
  transition: all .3s ease;
}
.donate-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,.15);
}
.donate-btn--paypal  { background: #0070ba; color: var(--white); }
.donate-btn--paypal:hover  { color: var(--white); }
.donate-btn--venmo   { background: #008CFF; color: var(--white); }
.donate-btn--venmo:hover   { color: var(--white); }
.donate-btn svg { width: 24px; height: 24px; fill: currentColor; }

.donate-note {
  text-align: center; margin-top: 2rem;
  font-size: .9rem; color: #888;
  font-style: italic;
}

/* ========== Footer ========== */
.footer {
  background: var(--charcoal); color: rgba(255,255,255,.55);
  padding: 3rem 0; text-align: center; font-size: .9rem;
  position: relative;
}
.footer a { color: var(--warm-lt); }
.footer__lotus { margin: 0 auto 1rem; opacity: .2; }
.footer__links {
  display: flex; justify-content: center; gap: 1.5rem;
  margin-bottom: 1rem; flex-wrap: wrap;
}
.footer__links a {
  font-size: .85rem; text-transform: uppercase; letter-spacing: .05em;
  color: rgba(255,255,255,.45);
}
.footer__links a:hover { color: var(--warm-lt); }

/* ========== Page header (inner pages) ========== */
.page-header {
  padding: 5rem 0 3.5rem;
  text-align: center;
  background:
    radial-gradient(ellipse at 30% 70%, rgba(122,139,111,.06) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 30%, rgba(196,168,130,.08) 0%, transparent 50%),
    linear-gradient(160deg, var(--cream) 30%, var(--sand) 100%);
  position: relative; overflow: hidden;
}
.page-header__ornament {
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  margin-top: .8rem;
}
.page-header__ornament::before,
.page-header__ornament::after {
  content: ''; width: 40px; height: 1px; background: var(--warm); opacity: .5;
}
.page-header__ornament svg { width: 20px; height: 20px; opacity: .25; }
.page-header p {
  color: #6b6b6b; font-size: 1.05rem; max-width: 560px; margin: .8rem auto 0;
}

/* ========== Privates ========== */
.privates-card {
  padding: 3rem; position: relative;
}
.privates-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--olive), var(--warm), var(--olive));
  border-radius: 12px 12px 0 0;
}

/* ========== Contact card ========== */
.contact-card {
  border-top: 3px solid var(--olive);
  text-align: center;
}

/* ========== Quote / pullout ========== */
.pullquote {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-style: italic;
  color: var(--olive-dk);
  text-align: center;
  max-width: 600px; margin: 2rem auto;
  padding: 2rem 0;
  position: relative;
}
.pullquote::before {
  content: '\201C'; font-size: 4rem;
  position: absolute; top: -.2rem; left: 50%; transform: translateX(-50%);
  color: var(--warm); opacity: .3; font-style: normal;
  line-height: 1;
}

/* ========== Wave dividers ========== */
.wave-divider { display: block; width: 100%; line-height: 0; }
.wave-divider svg { display: block; width: 100%; height: auto; }
.wave-divider--flip { transform: scaleY(-1); }

/* ========== Gallery ========== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

/* ========== Full-page background art ========== */
.bg-art {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0;
}
.bg-art svg {
  position: absolute;
}

/* Hero: large flowing water + mandala */
.hero { position: relative; }
.hero > *:not(.bg-art) { position: relative; z-index: 1; }
.hero .bg-art { opacity: 1; }

/* Page headers: scroll normally with header content */
.page-header { position: relative; }
.page-header > *:not(.bg-art) { position: relative; z-index: 1; }

/* Section backgrounds: FIXED parallax - bg stays still, content scrolls over it */
.section { position: relative; overflow: hidden; }
.section > *:not(.bg-art):not(.decor-mandala) { position: relative; z-index: 1; }
.section > .bg-art {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100vh;
  z-index: 0;
}
/* Clip the fixed bg to the section bounds so it doesn't bleed out */
.section { clip-path: inset(0); }

/* Footer water */
.footer { position: relative; overflow: hidden; }
.footer > *:not(.bg-art) { position: relative; z-index: 1; }

/* ========== Utilities ========== */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.relative { position: relative; }

/* ==========================================================
   RESPONSIVE — Tablet (≤ 1024px)
   ========================================================== */
@media (max-width: 1024px) {
  .hero { min-height: 70vh; padding: 3rem 1rem; }
  .hero__photo-placeholder { width: 220px; height: 220px; }
  .section { padding: 3.5rem 0; }
  .page-header { padding: 3.5rem 0 2.5rem; }
  .privates-card { padding: 2rem; }
  .props-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.5rem; }
}

/* ==========================================================
   RESPONSIVE — Mobile (≤ 768px)
   ========================================================== */
@media (max-width: 768px) {
  body { font-size: 15px; }

  .container { width: 92%; }
  .section { padding: 2.5rem 0; }
  .page-header { padding: 3rem 0 2rem; }

  /* Hero */
  .hero { min-height: auto; padding: 3rem 1rem 2.5rem; }
  .hero__inner { max-width: 100%; }
  .hero p { font-size: 1rem; }
  .hero__photo-placeholder { width: 180px; height: 180px; }
  .hero__buttons { flex-direction: column; align-items: center; }
  .hero__buttons .btn { width: 100% !important; max-width: 280px; text-align: center; }

  /* Buttons — larger tap targets */
  .btn { padding: .9rem 1.8rem; font-size: .85rem; }

  /* Feature cards */
  .features-grid { grid-template-columns: 1fr; gap: 1rem; }
  .feature-card { padding: 1.8rem 1.5rem; }

  /* Schedule cards — stack vertically */
  .schedule-card { padding: 1.2rem 1.2rem; gap: .8rem; }
  .schedule-card__icon { width: 40px; height: 40px; }
  .schedule-card__details h3 { font-size: 1rem; }
  .schedule-card__details p { font-size: .82rem; }

  /* Props grid */
  .props-grid { grid-template-columns: 1fr; gap: 1.2rem; }
  .prop-card img { height: 180px; }
  .prop-card__body { padding: 1rem 1.2rem 1.2rem; }

  /* About layout */
  .about-layout { gap: 2rem; }
  .about-text p:first-of-type::first-letter { font-size: 2.6rem; }

  /* Pullquote */
  .pullquote { padding: 1.5rem 0; }
  .pullquote::before { font-size: 3rem; }

  /* Page header subtitle */
  .page-header p { font-size: .95rem; }

  /* Gallery */
  .gallery-grid { grid-template-columns: 1fr; gap: 1rem; }

  /* Footer */
  .footer { padding: 2rem 0; }
  .footer__links { gap: 1rem; }
  .footer__links a { font-size: .78rem; }

  /* Donation buttons */
  .donate-buttons { flex-direction: column; align-items: center; }

  /* Privates card */
  .privates-card { padding: 1.5rem; }

  /* Cards — reduce padding */
  .card { padding: 1.5rem; }

  /* Keep parallax fixed backgrounds on mobile too */
  .section > .bg-art {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
  }
  .section { clip-path: inset(0); }

  /* Background art — scale down decorative SVGs */
  .bg-art svg[style*="width:700px"],
  .bg-art svg[style*="width:450px"],
  .bg-art svg[style*="width:300px"] {
    display: none;
  }
}

/* ==========================================================
   RESPONSIVE — Small phones (≤ 480px)
   ========================================================== */
@media (max-width: 480px) {
  body { font-size: 14px; }
  .container { width: 94%; }

  h1 { font-size: clamp(1.6rem, 7vw, 2.2rem); }
  h2 { font-size: clamp(1.3rem, 5vw, 1.8rem); }
  h3 { font-size: 1.1rem; }

  .hero { padding: 2rem .8rem; }
  .hero p { font-size: .92rem; margin-bottom: 1.5rem; }
  .hero__photo-placeholder { width: 150px; height: 150px; font-size: .8rem; }
  .hero__tagline { font-size: .85rem; gap: .4rem; letter-spacing: .1em; }
  .hero__tagline::before,
  .hero__tagline::after { width: 25px; }

  .section { padding: 2rem 0; }
  .page-header { padding: 2.5rem 0 1.5rem; }

  /* Schedule cards — single column */
  .schedule-card {
    grid-template-columns: 1fr;
    text-align: center;
    gap: .6rem;
  }
  .schedule-card__icon { margin: 0 auto; width: 36px; height: 36px; }
  .schedule-card__action { justify-content: center; }

  /* Sign-up buttons on cards */
  .schedule-card .btn { width: 100%; text-align: center; }

  /* Prop cards */
  .prop-card img { height: 150px; }

  /* Footer links wrap */
  .footer__links { gap: .6rem .8rem; }
  .footer__links a { font-size: .72rem; }

  /* Cards */
  .card { padding: 1.2rem; border-radius: 10px; }

  /* Contact card */
  .contact-card { padding: 1.2rem; }
}

/* ==========================================================
   RESPONSIVE — Landscape phones
   ========================================================== */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { min-height: auto; padding: 2rem 1rem; }
  .hero__photo-placeholder { display: none; }
  .page-header { padding: 2rem 0 1.5rem; }
}

/* ==========================================================
   Touch device improvements
   ========================================================== */
@media (hover: none) and (pointer: coarse) {
  /* Remove hover transform on cards for touch devices */
  .card:hover { transform: none; }
  .btn:hover { transform: none; }
  .prop-card:hover img { transform: none; }

  /* Larger tap targets for checkboxes */
  input[type="checkbox"] {
    min-width: 20px; min-height: 20px;
  }
}

/* ==========================================================
   Safe area insets (iPhone notch, etc.)
   ========================================================== */
@supports (padding: env(safe-area-inset-bottom)) {
  .nav .container {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
  .footer {
    padding-bottom: calc(2rem + env(safe-area-inset-bottom));
  }
  .nav__links.open {
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
  }
}
