/* ============================================
   Gateway Bible Church — Component Library
   Reusable patterns extracted from homepage V9.
   Every page loads: shared.css → components.css → [page].css
   ============================================ */

/* ============================================
   VISUAL RULES (for reference)
   ============================================

   Section alternation:
   - Never stack two white sections — alternate white/gray or insert dark/accent
   - Dark sections should have grain texture (add .grain class)
   - Accent (bright blue) sections: max one per page, reserved for closing invitation
   - Near-black: dramatic/emotional moments only (testimonies, video bg)

   Color roles:
   - Bright blue → CTAs, interactive states, accent labels, links
   - Tan → numbered markers, citations, subtle tags
   - Gold → decorative divider lines only (never text, never backgrounds)
   - Gray-blue → body text on light bg, secondary labels
   - Dark blue → primary text, dark backgrounds, resting buttons

   Shadows: Always dark-blue-tinted rgba. Never flat gray.
   Animations: Only transform + opacity. Spring easing. No transition-all.

   ============================================ */


/* ============================================
   SECTIONS — Background & Spacing
   ============================================ */

.section {
  padding: var(--section-padding-mobile) 0;
  position: relative;
}

@media (min-width: 768px) {
  .section {
    padding: var(--section-padding) 0;
  }
}

/* Backgrounds */
.section--white {
  background: var(--white);
  color: var(--dark-blue);
}

.section--gray {
  background: var(--cool-gray);
  color: var(--dark-blue);
}

.section--dark {
  background: var(--dark-blue);
  color: var(--white);
}

.section--deep {
  background: var(--deep-blue);
  color: var(--white);
}

.section--accent {
  background: var(--bright-blue);
  color: var(--white);
}

.section--cream {
  background-color: var(--cream);
}

/* Text color overrides for dark/accent sections */
.section--dark .section-sub,
.section--black .section-sub,
.section--deep .section-sub {
  color: var(--white-70);
}

.section--accent .section-sub {
  color: rgba(255, 255, 255, 0.85);
}


/* ============================================
   GRAIN TEXTURE — opt-in via .grain class
   ============================================ */

.grain {
  position: relative;
}

.grain::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  pointer-events: none;
  z-index: 1;
}


/* ============================================
   SECTION HEADERS — centered label + headline + subtitle
   ============================================ */

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-12);
}

/* Eyebrow label */
.section-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-blue);
  margin-bottom: var(--space-5);
}

.section-label--light {
  color: var(--white-50);
}

.section-label--gold {
  color: var(--tan);
}

.section-label--blue {
  color: var(--bright-blue);
}

/* Headline */
.section-headline {
  font-size: clamp(1.75rem, 4vw, var(--text-4xl));
  font-weight: var(--font-weight-bold);
  color: var(--dark-blue);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: var(--space-5);
}

.section--dark .section-headline,
.section--black .section-headline,
.section--deep .section-headline,
.section--accent .section-headline {
  color: var(--white);
}

/* Gold underline modifier */
.section-headline--underline::after {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin: var(--space-4) auto 0;
  border-radius: 2px;
}

/* Subtitle */
.section-sub {
  font-size: var(--text-base);
  font-weight: var(--font-weight-book);
  color: var(--gray-blue);
  line-height: 1.7;
}


/* ============================================
   BUTTONS — extends .btn base from shared.css
   ============================================ */

.btn--blue {
  background: var(--bright-blue);
  color: var(--white);
  font-weight: var(--font-weight-bold);
  box-shadow:
    0 2px 12px rgba(0, 156, 255, 0.3),
    0 0 0 1px rgba(0, 156, 255, 0.2);
}

.btn--blue:hover {
  background: #008ae6;
  box-shadow:
    0 4px 20px rgba(0, 156, 255, 0.4),
    0 0 0 1px rgba(0, 156, 255, 0.3);
}

.btn--glass {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn--glass:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn--inv {
  background: var(--white);
  color: var(--bright-blue);
  font-weight: var(--font-weight-bold);
}

.btn--inv:hover {
  background: var(--cream);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.btn--inv-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.btn--inv-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}


/* ============================================
   CONTENT SPLITS — image + text side-by-side
   ============================================ */

.split {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
}

.split-image {
  position: relative;
  overflow: hidden;
}

.split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 767px) {
  .split-image {
    height: 320px;
  }
}

.split-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-12) var(--space-6);
}

@media (min-width: 768px) {
  .split-content {
    padding: var(--space-16) var(--space-12);
  }
}

@media (min-width: 1200px) {
  .split-content {
    padding: var(--space-20) var(--space-16);
  }
}


/* Dark variant for split-content inside series-block layouts */
.split-content--dark {
  background: var(--dark-blue);
  color: var(--white);
}

.split-content--dark .section-headline,
.split-content--dark .section-headline--underline {
  color: var(--white);
}


/* ============================================
   SERIES BLOCK — full-bleed asymmetric image + content split
   Used on homepage and Sundays page for current sermon series.
   ============================================ */

.series-block {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 500px;
  background: var(--cool-gray);
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .series-block {
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
  }
}

@media (min-width: 1200px) {
  .series-block {
    grid-template-columns: 55% 45%;
    min-height: 700px;
  }
}

.series-block-title {
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: var(--font-weight-black);
  color: var(--dark-blue);
  letter-spacing: -0.03em;
  line-height: 0.92;
  margin-bottom: var(--space-4);
}

.series-block-subtitle {
  font-size: var(--text-lg);
  font-weight: var(--font-weight-medium);
  color: var(--bright-blue);
  margin-bottom: var(--space-4);
}

.series-block-desc {
  font-size: var(--text-base);
  font-weight: var(--font-weight-book);
  color: var(--dark-blue-70);
  line-height: 1.7;
  max-width: 420px;
  margin-bottom: var(--space-8);
}

.series-block-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* Mobile: hide large split image, show inline thumbnail */
.series-block-thumb {
  display: none;
}

@media (max-width: 767px) {
  .series-block .split-image {
    display: none;
  }
  .series-block-thumb {
    display: block;
    width: 100%;
    max-width: 280px;
    border-radius: var(--radius-md);
    margin-bottom: var(--space-5);
    box-shadow: 0 4px 20px rgba(13, 32, 56, 0.15);
  }
}


/* ============================================
   PHOTO TREATMENTS
   ============================================ */

.photo {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo--desaturate img {
  filter: saturate(0.85);
  transition: transform 0.5s var(--ease-out),
              filter 0.5s var(--ease-out);
}

.photo--desaturate:hover img {
  filter: saturate(1.1);
}

.photo--zoom img {
  transition: transform 0.5s var(--ease-out);
}

.photo--zoom:hover img {
  transform: scale(1.06);
}


/* ============================================
   TYPOGRAPHY COMPONENTS
   ============================================ */

/* Blockquote */
.quote {
  font-size: clamp(1.15rem, 2.5vw, var(--text-2xl));
  font-weight: var(--font-weight-medium);
  color: var(--dark-blue);
  line-height: 1.7;
  font-style: normal;
  margin-bottom: var(--space-5);
}

.section--dark .quote,
.section--black .quote,
.section--deep .quote {
  color: var(--white);
}

.quote-cite {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--tan);
  font-style: normal;
  letter-spacing: 0.04em;
}

/* Scripture accent — woven into content sections */
.scripture-accent {
  margin: var(--space-6) 0;
  padding-left: var(--space-5);
  border-left: 2px solid var(--gold);
}

.scripture-text {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-book);
  color: var(--gray-blue);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: var(--space-1);
}

.scripture-ref {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  font-style: normal;
  letter-spacing: 0.06em;
  color: var(--gold);
}

/* On dark backgrounds */
.section--dark .scripture-text,
.section--deep .scripture-text {
  color: var(--white-50);
}

.section--dark .scripture-accent,
.section--deep .scripture-accent {
  border-left-color: var(--gold);
}

/* Stat / number display */
.stat {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: var(--font-weight-extrabold);
  color: var(--bright-blue);
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat--glow {
  text-shadow:
    0 0 20px rgba(0, 156, 255, 0.4),
    0 0 60px rgba(0, 156, 255, 0.15);
}

.stat-label {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-book);
  color: var(--white-70);
  line-height: 1.4;
}

/* Dividers */
.divider--gold {
  width: 40px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}


/* ============================================
   PAGE HERO — shorter than homepage, for inner pages
   ============================================ */

.page-hero {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark-blue);
  overflow: hidden;
  padding: calc(var(--nav-height) + var(--space-16)) var(--space-6) var(--space-16);
}

@media (min-width: 768px) {
  .page-hero {
    min-height: 400px;
    padding: calc(var(--nav-height) + var(--space-20)) var(--space-10) var(--space-20);
  }
}

.page-hero--tall {
  min-height: 50vh;
}

/* Background image variant */
.page-hero--photo {
  background-size: cover;
  background-position: center;
}

.page-hero--photo::after {
  content: '';
  position: absolute;
  inset: 0;
  /* Approved overlay recipe (matches homepage). ~40% of original strength. */
  background:
    radial-gradient(ellipse at 50% 40%, rgba(13, 32, 56, 0.18) 0%, rgba(13, 32, 56, 0.45) 60%),
    linear-gradient(to bottom, rgba(0, 15, 35, 0.12) 0%, rgba(0, 15, 35, 0.25) 50%, rgba(13, 32, 56, 0.78) 100%);
}

/* Brighter variant — now matches base overlay (kept as a class hook in case we want a lighter variant later) */
.page-hero--photo.page-hero--brighter::after {
  background:
    radial-gradient(ellipse at 50% 40%, rgba(13, 32, 56, 0.18) 0%, rgba(13, 32, 56, 0.45) 60%),
    linear-gradient(to bottom, rgba(0, 15, 35, 0.12) 0%, rgba(0, 15, 35, 0.25) 50%, rgba(13, 32, 56, 0.78) 100%);
}

/* Shift the focal point of a background-image hero toward the top of the photo.
   Mobile keeps the default center (for heroes that crop short vertically). */
@media (min-width: 768px) {
  .page-hero--photo.page-hero--crop-top {
    background-position: center 35%;
  }
  /* Harder top-crop for portrait photos where the face/subject is near the very top */
  .page-hero--photo.page-hero--crop-top-hard {
    background-position: center 25%;
  }
}

/* Shift the focal point toward the bottom of the photo (applies on all viewports). */
.page-hero--photo.page-hero--crop-bottom {
  background-position: center bottom;
}

/* Zoom in ~1.33× anchored to the left, showing the left ~75% of the photo. Desktop only. */
@media (min-width: 768px) {
  .page-hero--photo.page-hero--zoom-left {
    background-size: 133% auto;
    background-position: left center;
  }
}

.page-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 760px;
}

.page-hero-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: var(--font-weight-black);
  color: var(--white);
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: var(--space-5);
}

.page-hero-sub {
  font-size: clamp(var(--text-base), 2vw, var(--text-lg));
  font-weight: var(--font-weight-book);
  color: var(--white-70);
  line-height: 1.7;
  max-width: 540px;
  margin: 0 auto;
}

/* ============================================
   ACCORDION — expandable content
   ============================================ */

.accordion {
  max-width: 760px;
}

.accordion-item {
  border-bottom: 1px solid var(--dark-blue-10);
}

.section--dark .accordion-item,
.section--deep .accordion-item {
  border-bottom-color: var(--white-10);
}

.accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-5) 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-primary);
  font-size: var(--text-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--dark-blue);
  text-align: left;
  transition: color var(--duration-fast) var(--ease-out);
}

.section--dark .accordion-trigger,
.section--deep .accordion-trigger {
  color: var(--white);
}

.accordion-trigger:hover {
  color: var(--bright-blue);
}

.accordion-trigger:focus-visible {
  outline: 2px solid var(--bright-blue);
  outline-offset: 2px;
  border-radius: 4px;
}

.accordion-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  position: relative;
  margin-left: var(--space-4);
}

/* Plus/minus icon with CSS */
.accordion-icon::before,
.accordion-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform var(--duration-normal) var(--ease-out);
}

.accordion-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.accordion-item.is-open .accordion-icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-slow) var(--ease-out);
}

.accordion-item.is-open .accordion-content {
  max-height: 1000px;
}

.accordion-body {
  padding: 0 0 var(--space-6);
  font-size: var(--text-base);
  font-weight: var(--font-weight-book);
  color: var(--gray-blue);
  line-height: 1.7;
}

.section--dark .accordion-body,
.section--deep .accordion-body {
  color: var(--white-70);
}


/* ============================================
   FORMS
   ============================================ */

.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--dark-blue);
  margin-bottom: var(--space-2);
}

.form-input,
.form-textarea,
.form-select {
  display: block;
  width: 100%;
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: var(--font-weight-book);
  color: var(--dark-blue);
  background: var(--white);
  border: 1.5px solid var(--dark-blue-20);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  transition: border-color var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--bright-blue);
  box-shadow: 0 0 0 3px rgba(0, 156, 255, 0.15);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--gray-blue);
  opacity: 0.6;
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}


/* ============================================
   VIDEO EMBED — responsive 16:9 container
   ============================================ */

.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--near-black);
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}


/* ============================================
   EVENT CARD
   ============================================ */

.event-card {
  display: flex;
  gap: var(--space-5);
  align-items: flex-start;
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  border: 1px solid var(--dark-blue-10);
  background: var(--white);
  transition: transform var(--duration-normal) var(--ease-spring),
              box-shadow var(--duration-normal) var(--ease-out);
}

.event-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 56px;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  background: var(--bright-blue-10);
  flex-shrink: 0;
}

.event-date-month {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-bold);
  color: var(--bright-blue);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1;
}

.event-date-day {
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--dark-blue);
  line-height: 1.2;
}

.event-info {
  flex: 1;
}

.event-title {
  font-size: var(--text-base);
  font-weight: var(--font-weight-bold);
  color: var(--dark-blue);
  margin-bottom: var(--space-1);
}

.event-meta {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-book);
  color: var(--gray-blue);
}


/* ============================================
   SCROLL ANIMATION — fade in on scroll
   ============================================ */

.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out),
              transform 0.6s var(--ease-out);
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for children */
.animate-on-scroll[data-delay="1"] { transition-delay: 0.1s; }
.animate-on-scroll[data-delay="2"] { transition-delay: 0.2s; }
.animate-on-scroll[data-delay="3"] { transition-delay: 0.3s; }
.animate-on-scroll[data-delay="4"] { transition-delay: 0.4s; }


/* ============================================
   STAGGERED CARD CASCADE — parent triggers children
   Add data-stagger-children to a container; each
   direct child fades up with 80ms stagger delay.
   ============================================ */

[data-stagger-children] > * {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

[data-stagger-children] > .is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* ============================================
   SVG STROKE-DRAW — paths draw on scroll entry
   Add .animate-stroke alongside animate-on-scroll;
   JS measures real path lengths and animates dashoffset.
   ============================================ */

.animate-stroke svg path,
.animate-stroke svg circle,
.animate-stroke svg polyline,
.animate-stroke svg line,
.animate-stroke svg rect {
  transition: stroke-dashoffset 0.8s var(--ease-out);
}


/* ============================================
   ANIMATIONS — shared keyframes
   ============================================ */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ============================================
   Featured Events — Planning Center one-off
   event cards rendered into demographic pages.
   Driven by /featured-events.js.
   ============================================ */

.featured-events {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-10);
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.featured-event-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--dark-blue-10);
  overflow: hidden;
  transition: transform var(--duration-normal) var(--ease-spring),
              box-shadow var(--duration-normal) var(--ease-out);
}

.featured-event-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.featured-event-card-image {
  aspect-ratio: 16 / 9;
  background: var(--cream);
  overflow: hidden;
}

.featured-event-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.featured-event-card-body {
  padding: var(--space-4) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.featured-event-card-date {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bright-blue);
}

.featured-event-card-name {
  font-size: var(--text-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--dark-blue);
  margin: 0;
  line-height: 1.25;
}

.featured-event-card-desc {
  font-size: var(--text-sm);
  color: var(--gray-blue);
  margin: 0;
  line-height: 1.5;
}


/* ============================================
   Event detail modal — used by featured-events.js
   to show full event info without navigating away
   from the demographic page.
   ============================================ */

.event-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}

.event-modal[hidden] { display: none; }

.event-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 32, 56, 0.7);
  backdrop-filter: blur(4px);
}

.event-modal-panel {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-xl);
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  animation: event-modal-in 0.25s var(--ease-spring);
}

@keyframes event-modal-in {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.event-modal-close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  z-index: 1;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(13, 32, 56, 0.6);
  color: var(--white);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--duration-fast) var(--ease-out);
}

.event-modal-close:hover { background: rgba(13, 32, 56, 0.85); }

.event-modal-image {
  aspect-ratio: 16 / 9;
  background: var(--cream);
  overflow: hidden;
}

.event-modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.event-modal-body {
  padding: var(--space-8) var(--space-8) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.event-modal-date {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bright-blue);
}

.event-modal-name {
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-semibold);
  color: var(--dark-blue);
  margin: 0;
  line-height: 1.2;
}

.event-modal-meta {
  font-size: var(--text-sm);
  color: var(--gray-blue);
}

.event-modal-desc {
  font-size: var(--text-base);
  color: var(--dark-blue);
  line-height: 1.65;
}

.event-modal-desc div { margin-bottom: var(--space-2); }
.event-modal-desc div:last-child { margin-bottom: 0; }
.event-modal-desc strong { font-weight: var(--font-weight-semibold); }
.event-modal-desc a {
  color: var(--bright-blue);
  text-decoration: underline;
}

.event-modal-actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-top: var(--space-3);
}

@media (max-width: 600px) {
  .event-modal-body { padding: var(--space-5); }
  .event-modal-name { font-size: var(--text-xl); }
}
