/* ============================================================
   Hearts and Mind — site stylesheet
   Brand: deep purple + warm gold, soft cream backgrounds
   ============================================================ */
:root {
  --purple-900: #3b0764;
  --purple-800: #4c1d95;
  --purple-700: #6b21a8;
  --purple-600: #7e22ce;
  --purple-500: #9333ea;
  --purple-100: #f3e8ff;
  --purple-50:  #faf5ff;
  --gold-500: #f5c542;
  --gold-600: #eab308;
  --gold-100: #fef9c3;
  --ink: #1f1235;
  --muted: #6b6280;
  --cream: #fdfbf7;
  --white: #ffffff;
  --radius: 18px;
  --shadow-sm: 0 2px 10px rgba(59, 7, 100, .07);
  --shadow-md: 0 10px 30px rgba(59, 7, 100, .12);
  --shadow-lg: 0 24px 60px rgba(59, 7, 100, .18);
  --grad-hero: linear-gradient(135deg, rgba(60, 7, 100, 0.5) 0%,  rgba(147,51,234,0.5) 100%);
  --grad-brand: linear-gradient(135deg, var(--purple-800), var(--purple-500));
  --grad-gold: linear-gradient(135deg, #fde68a, var(--gold-500));
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--purple-700); text-decoration: none; }

h1, h2, h3, h4 { font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif; line-height: 1.15; font-weight: 700; }

.container { width: min(1160px, 92%); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.9rem; border-radius: 999px;
  font-weight: 700; font-size: 1rem; font-family: inherit;
  border: 0; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--grad-gold); color: var(--purple-900); box-shadow: 0 8px 24px rgba(234, 179, 8, .35); }
.btn-gold:hover { box-shadow: 0 12px 32px rgba(234, 179, 8, .5); }
.btn-purple { background: var(--grad-brand); color: #fff; box-shadow: 0 8px 24px rgba(107, 33, 168, .35); }
.btn-outline { background: transparent; color: var(--purple-700); border: 2px solid var(--purple-300, #d8b4fe); }
.btn-outline:hover { background: var(--purple-50); }
.btn-light { background: #fff; color: var(--purple-800); box-shadow: var(--shadow-sm); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(107,33,168,.08);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; padding: .65rem 0; }
.brand { display: flex; align-items: center; gap: .7rem; }
.brand img { height: 52px; width: 52px; object-fit: contain; }
.brand-name { font-weight: 800; font-size: 1.15rem; color: var(--purple-800); line-height: 1.1; }
.brand-tag { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.nav-links { display: flex; align-items: center; gap: .25rem; list-style: none; }
.nav-links > li { position: relative; }
.nav-links a, .nav-links .drop-toggle {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .55rem .85rem; border-radius: 10px;
  color: var(--ink); font-weight: 600; font-size: .93rem;
  background: none; border: 0; cursor: pointer; font-family: inherit;
}
.nav-links a:hover, .nav-links .drop-toggle:hover, .nav-links a.active { background: var(--purple-100); color: var(--purple-800); }
.nav-links a.nav-cta { background: var(--grad-gold); color: var(--purple-900); border-radius: 999px; padding: .55rem 1.3rem; margin-left: .4rem; }
.caret { font-size: .6rem; transition: transform .2s; }

.dropdown { position: relative; }
.drop-menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 250px;
  background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg);
  padding: .5rem; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all .22s ease; z-index: 60;
}
.dropdown:hover .drop-menu, .dropdown:focus-within .drop-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown:hover .caret { transform: rotate(180deg); }
.drop-menu a { display: block; padding: .6rem .8rem; border-radius: 10px; font-size: .9rem; }

.nav-burger { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--purple-800); }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; text-align: center;
  padding: clamp(5rem, 12vw, 9rem) 0;
  background: var(--grad-hero), url('/images/hero1.jpg') center/cover no-repeat;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 -1px 0; height: 90px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath d='M0,60 C360,110 1080,0 1440,50 L1440,90 L0,90 Z' fill='%23fdfbf7'/%3E%3C/svg%3E") bottom/cover no-repeat;
}
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); letter-spacing: -.01em; }
.hero .tagline {
  display: inline-flex; gap: 1rem; align-items: center; flex-wrap: wrap; justify-content: center;
  margin: 1.2rem 0 2.2rem; font-size: clamp(1.05rem, 2.4vw, 1.35rem); font-weight: 500; opacity: .95;
}
.hero .tagline .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-500); }
.hero-sub { max-width: 640px; margin: 0 auto 2rem; opacity: .9; font-size: 1.05rem; }

/* Inner-page hero */
.page-hero { position: relative; color: #fff; padding: clamp(3.5rem, 8vw, 6rem) 0; background: var(--grad-brand); text-align: center; }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
.page-hero p { max-width: 680px; margin: 1rem auto 0; opacity: .92; font-size: 1.08rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-alt { background: #fff; }
.section-purple { background: var(--purple-50); }
.eyebrow { display: inline-block; letter-spacing: .18em; text-transform: uppercase; font-size: .75rem; font-weight: 800; color: var(--purple-600); margin-bottom: .8rem; }
.section-title { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: .8rem; }
.section-lead { color: var(--muted); max-width: 640px; font-size: 1.05rem; }
.center { text-align: center; }
.center .section-lead { margin-inline: auto; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  background: #fff; border-radius: var(--radius); padding: 2rem;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(107,33,168,.06);
  transition: transform .22s ease, box-shadow .22s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card .icon {
  width: 58px; height: 58px; display: grid; place-items: center;
  font-size: 1.7rem; border-radius: 16px; background: var(--purple-100); margin-bottom: 1.1rem;
}
.card h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.card p { color: var(--muted); font-size: .95rem; }
.card .card-link { display: inline-block; margin-top: 1rem; font-weight: 700; font-size: .9rem; }

/* ---------- About subpage nav ---------- */
.sub-nav { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center; margin-bottom: 2.8rem; }
.sub-nav a {
  padding: .65rem 1.4rem; border-radius: 999px; font-weight: 700; font-size: .9rem;
  border: 1.5px solid #e5dff0; background: #fff; color: var(--muted); transition: all .18s;
}
.sub-nav a:hover { border-color: var(--purple-300, #d8b4fe); color: var(--purple-700); }
.sub-nav a.active { background: var(--grad-brand); color: #fff; border-color: transparent; box-shadow: 0 4px 12px rgba(107,33,168,.3); }

/* ---------- Team cards ---------- */
.team-card { text-align: center; }
.team-card .avatar {
  width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 1.1rem;
  display: grid; place-items: center; background: var(--grad-brand); color: #fff;
  font-weight: 800; font-size: 1.5rem;
}
.team-card h3 { margin-bottom: .15rem; }
.team-card .role { color: var(--purple-600); font-weight: 700; font-size: .88rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 1rem; display: block; }
.team-card p { color: var(--muted); font-size: .93rem; text-align: left; }

/* Tier cards */
.tier { position: relative; text-align: center; }
.tier .medal { font-size: 2.4rem; }
.tier ul { list-style: none; margin: 1.2rem 0 1.6rem; display: grid; gap: .6rem; text-align: left; }
.tier ul li { display: flex; gap: .6rem; align-items: flex-start; color: var(--muted); font-size: .95rem; }
.tier.featured { border: 2px solid var(--gold-500); box-shadow: var(--shadow-md); }
.tier .badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--grad-gold); color: var(--purple-900); font-size: .72rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; padding: .3rem .9rem; border-radius: 999px;
}

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.5rem; }
.stat { text-align: center; padding: 1.8rem 1rem; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.stat .num { font-size: 2.6rem; font-weight: 800; color: var(--purple-700); }
.stat .label { color: var(--muted); font-size: .92rem; margin-top: .3rem; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; }
.step { position: relative; padding: 2rem 2rem 2rem 4.6rem; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 1.2rem; top: 1.9rem;
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800;
  background: var(--grad-brand); color: #fff;
}

/* ---------- Quotes ---------- */
.quote {
  background: #fff; border-left: 5px solid var(--gold-500);
  padding: 1.6rem 1.8rem; border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow-sm); font-style: italic; color: var(--ink);
}
.quote cite { display: block; margin-top: .8rem; font-style: normal; font-weight: 700; color: var(--purple-700); font-size: .9rem; }

/* ---------- Testimonials (reusable across pages) ---------- */
.testimonials-grid { display: grid; gap: 1.5rem; }
.testimonials-grid.cols-1 { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
.testimonials-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.testimonials-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.testimonials-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 780px) {
  .testimonials-grid { grid-template-columns: 1fr !important; }
}
.testimonial {
  background: #fff; border-radius: var(--radius); padding: 1.8rem;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(107,33,168,.06);
  display: flex; flex-direction: column;
}
.testimonial .stars { color: var(--gold-500); font-size: 1.1rem; letter-spacing: .1em; margin-bottom: .9rem; }
.testimonial-quote { font-style: italic; color: var(--ink); flex: 1; margin-bottom: 1.2rem; }
.testimonial-author { display: flex; flex-direction: column; }
.testimonial-author .name { font-weight: 800; color: var(--purple-800); font-size: .95rem; }
.testimonial-author .role { color: var(--muted); font-size: .85rem; }

/* ---------- Forms ---------- */
.form-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-md); padding: clamp(1.6rem, 4vw, 2.8rem); }
.form-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: .88rem; }
.field .hint { font-size: .78rem; color: var(--muted); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: .95rem; color: var(--ink);
  padding: .75rem .9rem; border-radius: 12px; border: 1.5px solid #e5dff0; background: #fdfcff;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--purple-500); box-shadow: 0 0 0 4px rgba(147,51,234,.12);
}
.checks { display: grid; gap: .5rem; }
.checks .group-label { font-weight: 800; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--purple-600); margin-top: .6rem; }
.check { display: flex; align-items: center; gap: .6rem; font-size: .95rem; }
.check input { width: 1.05rem; height: 1.05rem; accent-color: var(--purple-600); }
.form-note { font-size: .8rem; color: var(--muted); margin-top: 1rem; }

.alert-success {
  background: #ecfdf5; border: 1.5px solid #6ee7b7; color: #065f46;
  padding: 1rem 1.2rem; border-radius: 12px; margin-bottom: 1.4rem; font-weight: 600;
}
.alert-error {
  background: #fef2f2; border: 1.5px solid #fca5a5; color: #991b1b;
  padding: 1rem 1.2rem; border-radius: 12px; margin-bottom: 1.4rem; font-size: .92rem;
}

/* Form tabs (support / contact) */
.form-tabs { display: flex; gap: .6rem; margin-bottom: 1.6rem; flex-wrap: wrap; }
.form-tabs button {
  padding: .65rem 1.4rem; border-radius: 999px; font-weight: 700; font-family: inherit; font-size: .92rem;
  border: 1.5px solid #e5dff0; background: #fff; color: var(--muted); cursor: pointer; transition: all .18s;
}
.form-tabs button.active { background: var(--grad-brand); color: #fff; border-color: transparent; }

/* ---------- Calendar ---------- */
.calendar-wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: 1.5rem; align-items: start; }
.calendar { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 1.6rem; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.cal-head h3 { font-size: 1.15rem; }
.cal-nav { display: flex; gap: .4rem; }
.cal-nav button {
  width: 2.2rem; height: 2.2rem; border-radius: 10px; border: 1.5px solid #e5dff0;
  background: #fff; cursor: pointer; font-size: 1rem; color: var(--purple-700); font-weight: 700;
}
.cal-nav button:hover { background: var(--purple-100); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: .3rem; text-align: center; }
.cal-grid .dow { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: .4rem 0; }
.cal-grid .day {
  aspect-ratio: 1; display: grid; place-items: center; border-radius: 10px;
  font-size: .9rem; font-weight: 600; color: var(--ink); cursor: default;
}
.cal-grid .day.dim { color: #c9c2d8; }
.cal-grid .day.today { outline: 2px solid var(--purple-300, #d8b4fe); }
.cal-grid .day.has-event {
  background: var(--grad-brand); color: #fff; cursor: pointer; position: relative;
  box-shadow: 0 4px 12px rgba(107,33,168,.35);
}
.cal-grid .day.has-event:hover { transform: scale(1.08); }
.event-detail { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 1.8rem; min-height: 260px; }
.event-detail .placeholder { color: var(--muted); text-align: center; padding: 2.5rem 1rem; }
.event-detail .placeholder .big { font-size: 2.4rem; margin-bottom: .6rem; }
.event-meta { display: grid; gap: .45rem; margin: .9rem 0 1.1rem; color: var(--muted); font-size: .93rem; }

/* Event cards (events page) */
.events-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }

/* Upcoming Events tab: event cards on the left, calendar on the right */
.events-with-calendar { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: start; }
.events-with-calendar .events-grid { grid-template-columns: 1fr; }
.events-with-calendar .calendar-col { position: sticky; top: 90px; }
.events-with-calendar .calendar-col .calendar-wrap { grid-template-columns: 1fr; }
@media (max-width: 960px) {
  .events-with-calendar { grid-template-columns: 1fr; }
  .events-with-calendar .calendar-col { position: static; }
}
.event-card { display: flex; flex-direction: column; }
.events-grid .event-card:only-child { max-width: 420px; margin-inline: auto; }
.event-card-head { display: flex; align-items: center; gap: 1rem; margin-bottom: .9rem; }
.event-card-head h3 { flex: 1; }
.event-flier-thumb {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: 14px; margin: 0 0 .9rem; box-shadow: var(--shadow-sm); display: block;
}
.event-card-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: .6rem; margin-top: auto; padding-top: .9rem; }
.event-date-chip {
  background: var(--grad-brand); color: #fff; border-radius: 14px; text-align: center;
  padding: .6rem .85rem; min-width: 64px; flex-shrink: 0;
}
.event-date-chip .d { font-size: 1.4rem; font-weight: 800; line-height: 1; }
.event-date-chip .m { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }

/* ---------- Donate ---------- */
.donate-card { max-width: 620px; margin-inline: auto; }
.amounts { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: .8rem; margin: 1.4rem 0; }
.amounts .amt {
  padding: 1rem .5rem; text-align: center; border-radius: 14px; cursor: pointer;
  border: 2px solid #e5dff0; font-weight: 800; font-size: 1.05rem; background: #fff;
  font-family: inherit; color: var(--ink); transition: all .15s;
}
.amounts .amt:hover { border-color: var(--purple-400, #c084fc); }
.amounts .amt.selected { border-color: var(--purple-600); background: var(--purple-100); color: var(--purple-800); box-shadow: 0 4px 14px rgba(107,33,168,.18); }
.freq-toggle { display: flex; background: var(--purple-50); border-radius: 999px; padding: .3rem; gap: .3rem; width: fit-content; }
.freq-toggle button {
  border: 0; background: transparent; padding: .55rem 1.4rem; border-radius: 999px;
  font-weight: 700; font-family: inherit; cursor: pointer; color: var(--muted); font-size: .92rem; transition: all .18s;
}
.freq-toggle button.active { background: var(--grad-brand); color: #fff; box-shadow: 0 4px 12px rgba(107,33,168,.3); }
.custom-row { display: flex; gap: .8rem; align-items: stretch; margin-top: 1rem; flex-wrap: wrap; }
.custom-row .field { flex: 1; min-width: 180px; }
.impact-line { text-align: center; color: var(--muted); font-size: .92rem; margin-top: 1.2rem; }

/* ---------- FAQ ---------- */
details.faq {
  background: #fff; border-radius: 14px; box-shadow: var(--shadow-sm);
  padding: 1.1rem 1.4rem; margin-bottom: .8rem;
}
details.faq summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
details.faq summary::after { content: "+"; font-size: 1.3rem; color: var(--purple-600); font-weight: 800; }
details.faq[open] summary::after { content: "–"; }
details.faq p { margin-top: .8rem; color: var(--muted); font-size: .95rem; }

/* ---------- Sponsor logos ---------- */
.sponsors { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; }
.sponsor-logo {
  background: #fff; border: 1.5px solid #efe9f8; border-radius: var(--radius);
  padding: 10px; box-shadow: var(--shadow-sm); display: grid; place-items: center;
  min-height: 110px; transition: transform .18s ease, box-shadow .18s ease;
}
.sponsor-logo:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.sponsor-logo img { width: auto; object-fit: contain; }
.sponsor-pill {
  background: #fff; border: 1.5px solid #efe9f8; border-radius: 999px;
  padding: .55rem 1.3rem; font-weight: 700; font-size: .88rem; color: var(--purple-800);
  box-shadow: var(--shadow-sm);
}

/* ---------- Photo gallery ---------- */
.gallery-photo {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  aspect-ratio: 4 / 3; transition: transform .22s ease, box-shadow .22s ease;
}
.gallery-photo:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.gallery-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--grad-brand); border-radius: 24px; color: #fff;
  padding: clamp(2.2rem, 6vw, 3.6rem); text-align: center; position: relative; overflow: hidden;
}
.cta-band::before {
  content: "♥"; position: absolute; right: -20px; top: -40px; font-size: 12rem; opacity: .08;
}
.cta-band h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin-bottom: .7rem; }
.cta-band p { opacity: .9; max-width: 560px; margin: 0 auto 1.6rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--purple-900); color: #e9d5ff; margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2.4rem; padding: 3.5rem 0 2.5rem; }
.site-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 1rem; }
.site-footer a { color: #e9d5ff; }
.site-footer a:hover { color: var(--gold-500); }
.footer-list { list-style: none; display: grid; gap: .55rem; font-size: .93rem; }
.footer-bottom { border-top: 1px solid rgba(233,213,255,.15); padding: 1.3rem 0; font-size: .84rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; }
.social-row { display: flex; gap: .7rem; }
.social-row a {
  width: 2.4rem; height: 2.4rem; display: grid; place-items: center;
  background: rgba(255,255,255,.1); border-radius: 50%; font-size: 1.05rem;
}
.social-row a:hover { background: var(--gold-500); color: var(--purple-900); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Two-column feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.split .visual {
  border-radius: 24px; min-height: 320px; box-shadow: var(--shadow-md);
  background: var(--grad-brand); display: grid; place-items: center; color: #fff; font-size: 4rem; overflow: hidden;
}
.split .visual img { width: 100%; height: 100%; object-fit: cover; }

/* Auto-playing image slider (no controls) — fills whatever positioned box it's in */
.slider { position: relative; width: 100%; height: 100%; }
.slider img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; animation: slider-fade 20s ease-in-out infinite;
}
.slider img:nth-child(1) { animation-delay: 0s; }
.slider img:nth-child(2) { animation-delay: 5s; }
.slider img:nth-child(3) { animation-delay: 10s; }
.slider img:nth-child(4) { animation-delay: 15s; }
/* Faster variant — 2s per image (4 images = 8s full cycle) */
.slider--fast img { animation-duration: 8s; }
.slider--fast img:nth-child(1) { animation-delay: 0s; }
.slider--fast img:nth-child(2) { animation-delay: 2s; }
.slider--fast img:nth-child(3) { animation-delay: 4s; }
.slider--fast img:nth-child(4) { animation-delay: 6s; }
@keyframes slider-fade {
  0% { opacity: 0; }
  2% { opacity: 1; }
  23% { opacity: 1; }
  25% { opacity: 0; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .slider img { animation: none; opacity: 0; }
  .slider img:first-child { opacity: 1; }
}

/* Slider used as a full-bleed page-hero background */
.page-hero { overflow: hidden; }
.page-hero .slider { position: absolute; inset: 0; z-index: 0; }
.page-hero .slider::after { content: ""; position: absolute; inset: 0; background: var(--grad-hero); }
.page-hero .container { position: relative; z-index: 1; }
/* Slider heroes/boxes stand +50px taller than their static-image counterparts */
.page-hero.has-slider { padding-top: calc(clamp(3.5rem, 8vw, 6rem) + 25px); padding-bottom: calc(clamp(3.5rem, 8vw, 6rem) + 25px); }
.split .visual.has-slider { min-height: 370px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav-links {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch;
    background: #fff; padding: 1rem 1.2rem 1.6rem; box-shadow: var(--shadow-lg);
    display: none; max-height: calc(100vh - 68px); overflow: auto;
  }
  .nav-links.open { display: flex; }
  .nav-burger { display: block; }
  .drop-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; display: none; padding-left: 1rem; }
  .dropdown.open .drop-menu { display: block; }
  .calendar-wrap, .split { grid-template-columns: 1fr; }
}
