/* ============================================
   CMMI International — Main Stylesheet
   Design: Refined Sacred Minimalism
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400&family=DM+Sans:wght@300;400;500&display=swap');

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

:root {
  --brand:       #8B4A2F;
  --brand-light: #F9F0EB;
  --brand-dark:  #3C2415;
  --bg:          #FFFFFF;
  --bg-soft:     #F9F5F0;
  --text:        #1A1410;
  --text-muted:  #6B5E52;
  --border:      rgba(139,74,47,0.15);
  --radius:      8px;
  --radius-lg:   14px;
  --serif:       'Cormorant Garamond', Georgia, serif;
  --sans:        'DM Sans', system-ui, sans-serif;
  --shadow:      0 2px 16px rgba(60,36,21,0.08);
  --nav-h:       88px;
  --transition:  0.2s ease;
}

[data-theme="dark"] {
  --brand: #c9a38a;
  --brand-light: rgba(217,184,162,0.16);
  --brand-dark: #f5ede5;
  --bg: #0f1318;
  --bg-soft: #191f27;
  --text: #f5f4ef;
  --text-muted: #cfc7bd;
  --border: rgba(255,255,255,0.10);
  --shadow: 0 20px 40px rgba(0,0,0,0.35);
}

html { scroll-behavior: smooth; font-size: 16px; }
body { position: relative; font-family: var(--sans); color: var(--text); background: var(--bg); line-height: 1.7; }
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: url("../images/Assets/world map.jpg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-blend-mode: screen;
  opacity: 0.08;
  filter: blur(0.4px);
  pointer-events: none;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---------- Typography ---------- */
h1,h2,h3,h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; }
h1 { font-size: clamp(36px, 5vw, 58px); }
h2 { font-size: clamp(28px, 3.5vw, 42px); }
h3 { font-size: clamp(20px, 2.5vw, 26px); }
h4 { font-size: 18px; }
p  { font-size: 15px; line-height: 1.75; color: var(--text-muted); }

.eyebrow {
  font-family: var(--sans);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--brand); display: block; margin-bottom: 10px;
}
em { font-style: italic; color: var(--brand); }

/* ---------- Layout Helpers ---------- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-header { margin-bottom: 48px; }
.section-header { text-align: center; }
.section-header h2 { margin-bottom: 14px; font-weight: 800; }
.doctrine-section-title {
  color: var(--text);
  font-family: var(--serif);
  font-size: clamp(36px, 4.5vw, 52px);
  letter-spacing: -0.02em;
  margin: 0 auto 18px;
}
#leadership .section-header p { max-width: 880px; margin: 0 auto; }
.section-header p { max-width: 540px; }
.doctrine-content .section-header p { max-width: 100%; margin: 0 auto; }
.doctrine-page .doctrine-bg {
  background-image: url("../images/Assets/world map.jpg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-color: rgba(249, 245, 240, 0.90);
  background-blend-mode: screen;
  backdrop-filter: saturate(120%) blur(0.5px);
}
.text-center { text-align: center; }
.text-center p { margin: 0 auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 26px; border-radius: var(--radius);
  font-size: 14px; font-weight: 500; font-family: var(--sans);
  transition: var(--transition); cursor: pointer;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: #7a3f27; }
.btn-ghost { border: 1.5px solid var(--brand); color: var(--brand); }
.btn-ghost:hover { background: var(--brand-light); }
.btn-glow {
  position: relative;
  box-shadow: 0 0 18px rgba(255, 138, 66, 0.3);
  animation: glowPulse 2.2s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% {
    box-shadow: 0 0 14px rgba(255, 138, 66, 0.32), 0 0 32px rgba(255, 138, 66, 0.16);
    transform: translateY(0);
  }
  50% {
    box-shadow: 0 0 26px rgba(255, 138, 66, 0.55), 0 0 44px rgba(255, 138, 66, 0.24);
    transform: translateY(-2px);
  }
}
select.btn-ghost {
  width: 100%;
  text-align: left;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath fill='%238B4A2F' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 10px 6px;
}
select.btn-ghost option { color: var(--text); }
.btn-white { background: #fff; color: var(--brand); }
.btn-white:hover { background: var(--brand-light); }

/* ---------- Live Badge ---------- */
.live-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 8px;
  background: #c1121f; color: #fff; font-weight: 600; font-size: 12px;
  letter-spacing: 0.04em; margin-bottom: 20px;
  text-decoration: none; box-shadow: 0 6px 18px rgba(193,17,31,0.18);
}
.live-badge::before{
  content: '';
  display:inline-block;
  width:8px; height:8px; border-radius:50%;
  background:#fff; margin-right:6px;
}

/* animate only when explicitly blinking */
.live-badge.blinking { animation: blink 1.4s infinite; }
@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0.4; }
}
.live-badge:hover { opacity: 1 !important; }

.watch-badge::before { display: none; }

.hero-badges {
  display: inline-flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

/* ---------- Navigation ---------- */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 300;
  height: var(--nav-h);
  display: flex; align-items: center;
  justify-content: center;
  background: var(--brand);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
  padding: 4px 0;
}
#navbar.scrolled { box-shadow: var(--shadow); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
  min-height: 100%;
}

/* Make navbar span the full viewport on wide screens so items sit at the far edges */
@media (min-width: 1000px) {
  #navbar .nav-inner {
    max-width: none; /* override .container max-width */
    width: 100%;
    padding: 0 28px;
  }
  /* ensure links are pushed fully to the right edge */
  #navbar .nav-links { margin-left: auto; }
}
.nav-logo {
  font-family: var(--serif); font-size: 16px; font-weight: 600;
  color: #fff; letter-spacing: 0.02em; display:flex; align-items:center; gap:10px;
  padding: 4px 0;
}
.nav-logo span { color: #fff; }
.nav-logo-img {
  height: 48px; width: 48px; display:block; background:#fff;
  padding:6px; border-radius:50%; object-fit:contain; box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}
.nav-logo-text { display:inline-block; color:#fff; }

@media (max-width: 600px) {
  .nav-logo-text { display: none; }
  .nav-logo-img { height: 36px; width:36px; padding:4px; }
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-size: 13.5px; font-weight: 500; color: rgba(255,255,255,0.9);
  transition: color var(--transition); letter-spacing: 0.01em;
}
.nav-links a:hover { color: #fff; }
.nav-links a { position: relative; padding-bottom: 8px; }
.nav-links a.active { color: #fff; font-weight: 700; }
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  z-index: 310;
}
.nav-dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.nav-dropdown::after {
  content: '▾';
  margin-left: 4px;
  font-size: 11px;
  color: rgba(255,255,255,0.8);
}
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 130px;
  display: none;
  flex-direction: column;
  gap: 0;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(139,74,47,0.12);
  border-radius: 12px;
  padding: 8px 0;
  box-shadow: 0 18px 48px rgba(0,0,0,0.12);
  z-index: 350;
}
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 18px;
  width: 12px;
  height: 12px;
  background: rgba(255,255,255,0.96);
  transform: rotate(45deg);
  border-left: 1px solid rgba(139,74,47,0.12);
  border-top: 1px solid rgba(139,74,47,0.12);
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  display: flex;
}
.dropdown-menu a {
  display: block;
  padding: 10px 16px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background var(--transition), color var(--transition);
}
.dropdown-menu a:hover {
  background: rgba(139,74,47,0.16);
  color: var(--brand-dark);
}
.mobile-menu a.mobile-sub-link {
  font-size: 16px;
  padding-left: 26px;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(139,74,47,0.08);
}
.mobile-menu a.mobile-sub-link:hover {
  color: var(--text);
  background: transparent;
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 50%; transform: translateX(-50%);
  bottom: 2px;
  width: 36px; height: 4px; border-radius: 4px;
  background: #fff; opacity: 0.98;
}
.nav-actions {
  display: flex; align-items: center; gap: 12px;
}
.nav-theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 46px; padding: 10px 14px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius); color: #fff;
  background: rgba(255,255,255,0.12);
  transition: background var(--transition), transform var(--transition);
}
.nav-theme-toggle:hover {
  background: rgba(255,255,255,0.18);
}
.nav-cta { margin-left: 8px; }
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  width: 28px; padding: 4px 0;
}
.hamburger span {
  display: block; height: 1.5px; background: #fff;
  transition: var(--transition);
}
.mobile-menu {
  display: none; position: fixed;
  top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: var(--bg); z-index: 99;
  padding: 32px 24px; flex-direction: column; gap: 24px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 22px; font-family: var(--serif);
  font-weight: 600; color: var(--text);
  padding: 8px 0; border-bottom: 1px solid var(--border);
}
.mobile-menu a:last-child { border-bottom: none; }
body.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-h);
  display: flex; align-items: center; justify-content: center;
  min-height: 92vh;
  background: var(--bg-soft);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(135deg, rgba(255,255,255,0.7), rgba(255,255,255,0.3)),
    url("../images/Assets/world map.jpg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 140%;
  background-blend-mode: screen;
  opacity: 0.22;
  filter: blur(0.4px);
  pointer-events: none;
}
.hero-text {
  position: relative;
  z-index: 1;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 72px 24px;
}
.hero-text h1 { margin-bottom: 20px; }
.hero-text p { margin-bottom: 0; font-size: 16px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.hero-visual {
  display: none;
}
.hero-cross {
  display: none;
}
.hero-quote {
  font-family: var(--serif); font-size: 22px; font-style: italic;
  color: var(--text); text-align: center; line-height: 1.55;
  position: relative; z-index: 1; max-width: 540px;
}
.hero-quote cite {
  display: block; margin-top: 18px;
  font-family: var(--sans); font-style: normal; font-size: 12px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted);
}

/* ---------- Stats Bar ---------- */
.stats-bar {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: 1100px;
  margin: 24px auto 48px;
  background: var(--bg);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 6px;
}
.stat-item {
  padding: 28px 18px; display: flex; align-items: center; gap: 12px;
  justify-content: center; flex-direction: column; text-align: center;
  border-right: none; border-bottom: none;
}
.stat-item:last-child { }
.stat-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--brand); color: #fff; display: flex; align-items: center;
  justify-content: center; flex-shrink: 0; font-size: 22px;
}
.meta-icon, .stat-icon, [data-icon] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15em;
  line-height: 1;
  color: inherit;
}
.meta-icon::before, .stat-icon::before, [data-icon]::before {
  content: '';
}
[data-icon="globe"]::before { content: "🌍"; }
[data-icon="church"]::before { content: "⛪"; }
[data-icon="pin"]::before { content: "�"; }
[data-icon="location"]::before { content: "📍"; }
[data-icon="clock"]::before { content: "🕒"; }
[data-icon="prayer"]::before { content: "🙏"; }
[data-icon="handshake"]::before { content: "🤝"; }
[data-icon="person"]::before { content: "👤"; }
.stat-label { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-top: 10px; }
.stat-value { font-family: var(--serif); font-size: 18px; font-weight: 700; color: var(--brand-dark); margin-top: 6px; }

/* ---------- Pillars / Cards ---------- */
.pillars-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden;
}
.pillar-card {
  background: var(--bg); padding: 28px 24px;
  transition: background var(--transition);
}
.pillar-card:hover { background: var(--bg-soft); }
.pillar-icon { font-size: 24px; color: var(--brand); margin-bottom: 14px; }
.pillar-card h4 { font-family: var(--serif); margin-bottom: 6px; }
.pillar-card p { font-size: 13px; }

/* ---------- Membership Tiers ---------- */
.tiers-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.tier-card {
  border: 1px solid rgba(139,74,47,0.1); border-radius: 16px;
  padding: 32px 24px 24px; background: var(--bg);
  display: flex; flex-direction: column;
  transition: box-shadow var(--transition), border-color var(--transition);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.tier-card .hotel-img {
  width: 100%; min-height: 220px;
  background-size: cover; background-position: center;
  background-repeat: no-repeat;
}
.tier-card .hotel-card-body {
  padding: 24px;
  display: flex; flex-direction: column;
}
.tier-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.08); border-color: rgba(139,74,47,0.2); }
.tier-card.featured { border: 1.5px solid var(--brand); }
.tier-card img.leadership-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  display: block;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  border: 1px solid rgba(139,74,47,0.12);
}
.tier-badge {
  display: inline-block; font-size: 11px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--brand); background: var(--brand-light);
  padding: 6px 14px; border-radius: 8px; margin-bottom: 14px; width: fit-content;
}
.tier-name { font-family: var(--serif); font-size: 24px; margin-bottom: 6px; font-weight: 600; }
.tier-price {
  font-size: 36px; font-weight: 600; color: var(--brand);
  margin-bottom: 6px; font-family: var(--sans);
}
.tier-price span { font-size: 15px; color: var(--text-muted); font-weight: 400; }
.tier-divider { border: none; border-top: 1px solid rgba(139,74,47,0.08); margin: 20px 0; }
.tier-desc { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; flex: 1; line-height: 1.6; }
.tier-features { margin-bottom: 24px; }
.tier-feature {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; color: var(--text-muted); margin-bottom: 10px; line-height: 1.5;
}
.tier-feature::before {
  content: '✓'; color: var(--brand); font-weight: 700;
  flex-shrink: 0; margin-top: 2px;
}

/* ---------- Leadership Cards (compact, 300px) ---------- */
.leadership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 300px));
  gap: 20px;
  justify-content: center;
  margin-top: 32px;
}
.leadership-card {
  display: grid; grid-template-rows: auto 1fr;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; background: var(--bg);
  transition: box-shadow var(--transition), transform var(--transition);
  width: 100%; max-width: 300px; min-width: 260px;
}
.leadership-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.leadership-photo {
  display: block; width: 100%; height: 300px; object-fit: cover;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
}
.leadership-body {
  padding: 18px 16px; display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center; justify-content: center;
}
.leadership-card h4 { font-family: var(--serif); font-size: 18px; margin: 0; }
.leadership-card p { font-size: 13px; margin: 0; color: var(--text-muted); }
.leadership-role {
  font-size: 12px; color: var(--brand); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px;
}
.leadership-card .btn { margin-top: 12px; }
.leadership-bios { margin-top: 28px; display: grid; gap: 18px; }
.leadership-bio {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
  display: none;
  max-height: 60vh;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.leadership-bio.open { display: block; }
.leadership-bio h3 { margin: 0 0 8px 0; font-family: var(--serif); }
.leadership-bio p { margin: 0 0 14px 0; color: var(--text-muted); line-height: 1.75; }
.leadership-bio .close-bio { float: right; margin-left: 8px; }
/* Social icons for bios */
.social-icons { margin-top: 12px; display: flex; gap: 12px; align-items: center; }
.social-icons a { display: inline-block; }
.social-icons img { width: 20px; height: 20px; display: block; }

/* Modal bio layout */
.modal-bio { display: flex; gap: 18px; align-items: flex-start; }
.modal-bio-photo { width: 140px; height: 140px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.modal-bio-body { display: flex; flex-direction: column; gap: 10px; }
.modal-bio-body h3 { margin: 0; }
.modal-bio-body p { margin: 0; color: var(--text-muted); }

/* center social icons in modal */
.modal-bio .social-icons { justify-content: center; }

@media (max-width: 640px) {
  .modal-bio { flex-direction: column; align-items: center; text-align: center; }
  .modal-bio-photo { width: 220px; height: 220px; }
  .modal-bio-body p { text-align: left; }
}
.tier-btn { width: 100%; text-align: center; margin-top: auto; }

/* ---------- Events ---------- */

/* Give page */
.give-layout {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; max-width: 880px; margin: 0 auto;
}
.give-intro {
  max-width: 640px; margin: 0 auto; color: var(--text-muted); font-size: 15px; line-height: 1.6;
}
.give-online-btn { min-width: 180px; justify-content: center; }
.give-visual { width: 100%; min-width: 0; }
.give-hero-image {
  width: 100%; max-width: 920px; min-height: 320px;
  aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden;
}
.give-hero-image img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  display: block;
}

.events-filter-bar {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-bottom: 24px;
}
.event-filter-btn {
  padding: 10px 18px; font-size: 13px;
  border: 1px solid var(--border); color: var(--text);
  background: var(--bg); transition: var(--transition);
}
.event-filter-btn:hover,
.event-filter-btn.active {
  border-color: var(--brand); background: var(--brand); color: #fff;
}
.events-empty {
  display: none; margin-top: 16px;
  padding: 24px; border: 1px solid var(--border);
  border-radius: var(--radius-lg); background: var(--bg);
  color: var(--text); font-size: 14px;
}
.events-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 500px));
  gap: 24px;
  justify-content: center;
  justify-items: center;
}
.event-card {
  display: grid; grid-template-rows: auto 1fr;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; background: var(--bg);
  transition: box-shadow var(--transition), transform var(--transition);
  width: 100%;
  max-width: 500px;
  min-width: 320px;
}
.event-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.event-img-btn {
  border: 0; padding: 0; background: transparent; width: 100%; text-align: left; cursor: pointer;
}
.event-img-btn:focus-visible {
  outline: 3px solid rgba(139,74,47,0.25); outline-offset: 2px; border-radius: var(--radius-lg);
}
.event-photo {
  display: block; width: 100%; height: 500px; object-fit: contain; background: linear-gradient(135deg, var(--brand-dark), var(--brand));
}
.event-img {
  width: 100%; min-height: 500px; background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  background-size: cover; background-position: center;
  background-repeat: no-repeat;
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; color: rgba(255,255,255,0.3);
}
.event-body {
  padding: 28px 24px 28px;
  display: flex; flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
  justify-content: center;
}
.event-body p,
.event-body ul {
  width: 100%;
  max-width: 100%;
}
.event-body ul {
  padding-left: 16px;
  text-align: left;
}
.event-meta {
  width: 100%;
  max-width: 420px;
}
.event-body {
  padding: 28px 24px 28px;
  display: flex; flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
  justify-content: center;
}
.event-body p,
.event-body ul {
  width: 100%;
  max-width: 100%;
}
.event-body ul {
  display: inline-block;
  text-align: left;
  margin: 0 auto;
}
.event-body li {
  margin-bottom: 10px;
}
.event-date {
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--brand); margin-bottom: 8px;
}
.event-card h4 { font-family: var(--serif); font-size: 20px; margin-bottom: 8px; }
.event-card p { font-size: 13px; margin-bottom: 16px; }
.event-card .btn {
  min-width: 140px;
}
.event-meta { display: flex; gap: 16px; font-size: 12px; color: var(--text-muted); justify-content: center; }
.event-meta span { display: flex; align-items: center; gap: 5px; }
.flyer-modal {
  position: fixed; inset: 0; display: none; align-items: center; justify-content: center; z-index: 1200;
}
.flyer-modal.open { display: flex; }
.flyer-modal-backdrop {
  position: absolute; inset: 0; background: rgba(8, 12, 15, 0.78); backdrop-filter: blur(4px);
}
.flyer-modal-panel {
  position: relative; width: min(92vw, 980px); max-height: 92vh; overflow: auto;
  background: var(--bg); border: 1px solid var(--border); border-radius: 28px;
  box-shadow: var(--shadow-lg); padding: 16px;
}
.flyer-modal-image {
  display: block; width: 100%; max-height: 86vh; object-fit: contain; border-radius: 18px;
}
.event-detail-modal {
  display: grid;
  gap: 28px;
}
.event-detail-image {
  width: 100%; border-radius: 18px; object-fit: cover;
}
.event-detail-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.event-detail-body h2 {
  font-size: clamp(28px, 3vw, 34px);
  margin: 0;
}
.event-detail-body p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.75;
}
.event-detail-body ul {
  padding-left: 20px;
}
.event-detail-body li {
  margin-bottom: 10px;
}
.event-detail-registration p {
  margin: 0 0 8px 0;
  font-weight: 700;
  color: var(--text);
}
.event-detail-cta {
  margin-top: 8px;
  font-weight: 700;
  color: var(--brand-dark);
}
@media (min-width: 880px) {
  .event-detail-modal {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}
.modal-bio-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: min(70vh, 520px);
  overflow-y: auto;
  padding-right: 8px;
}
.modal-bio-body p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.75;
}
.modal-bio-body::-webkit-scrollbar {
  width: 8px;
}
.modal-bio-body::-webkit-scrollbar-thumb {
  background: rgba(139,74,47,0.25);
  border-radius: 999px;
}
.modal-bio-body::-webkit-scrollbar-track {
  background: transparent;
}
.flyer-close {
  position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 999px;
  border: 1px solid var(--border); background: rgba(255,255,255,0.92); color: var(--text);
  font-size: 22px; line-height: 1; cursor: pointer;
}
body.modal-open { overflow: hidden; }

/* Bulletin 'New' badge */
.bulletin-new {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
  margin-left: 8px;
  vertical-align: middle;
}

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
label { font-size: 13px; font-weight: 500; color: var(--text); }
input, select, textarea {
  padding: 11px 14px; border: 1px solid var(--border);
  border-radius: var(--radius); font-family: var(--sans); font-size: 14px;
  color: var(--text); background: var(--bg);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none; width: 100%;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(139,74,47,0.1);
}
textarea { resize: vertical; min-height: 120px; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238B4A2F' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.form-success {
  display: none; background: #f0fdf4; border: 1px solid #86efac;
  border-radius: var(--radius); padding: 14px 18px;
  color: #166534; font-size: 14px; margin-top: 12px;
}
.form-success.show { display: flex; align-items: center; gap: 10px; }
.form-error { color: #dc2626; font-size: 12px; display: none; }
.form-error.show { display: block; }

/* ---------- Bulletin ---------- */
.bulletin-list { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory; }
.bulletin-list::-webkit-scrollbar { height: 10px; }
.bulletin-list::-webkit-scrollbar-thumb { background: rgba(139,74,47,0.18); border-radius: 999px; }
.bulletin-list::-webkit-scrollbar-track { background: transparent; }
.bulletin-item {
  flex: 0 0 330px;
  min-width: 330px;
  display: flex; gap: 20px; align-items: flex-start;
  padding: 20px; border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--bg); transition: box-shadow var(--transition);
  scroll-snap-align: start;
}
.bulletin-item:hover { box-shadow: var(--shadow); }
.bulletin-date {
  min-width: 52px; text-align: center;
  background: var(--brand-light); border-radius: var(--radius);
  padding: 8px 6px;
}
.bulletin-day { font-family: var(--serif); font-size: 24px; font-weight: 600; color: var(--brand); line-height: 1; }
.bulletin-month, .bulletin-year-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }
.bulletin-year-label { margin-top: 4px; }
.bulletin-content h4 { font-family: var(--serif); font-size: 18px; margin-bottom: 4px; }
.bulletin-content p { font-size: 13px; }
.bulletin-tag {
  display: inline-block; font-size: 11px; padding: 2px 8px;
  background: var(--brand-light); color: var(--brand);
  border-radius: 4px; font-weight: 500; margin-bottom: 6px;
}

@media (max-width: 720px) {
  .bulletin-list {
    gap: 12px;
    padding-bottom: 10px;
  }
  .bulletin-item {
    min-width: 280px;
    flex: 0 0 280px;
  }
}

/* ---------- Chatbot Widget ---------- */
#chatbot-toggle {
  position: fixed; bottom: 24px; right: 24px; z-index: 200;
  width: 48px; height: 48px;
  background: #7a3f27;
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0;
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(0,0,0,0.24);
  transition: transform var(--transition), background var(--transition);
  border: none;
}
#chatbot-toggle::after {
  display: none;
}
#chatbot-toggle:hover { transform: scale(1.08); background: #643423; }
#chatbot-toggle .chat-toggle-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255,255,255,0.22);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 6.5C4 4.15 6.2 2 8.7 2h6.6C18.8 2 21 4.15 21 6.5v6c0 2.5-2.2 4.5-4.8 4.5H11l-4 4V17.5H8.7C6.2 17.5 4 15.5 4 12.5v-6z' fill='none' stroke='%23ffffff' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 60%;
}
#chatbot-toggle .chat-toggle-label {
  font-weight: 600;
  display: none;
}
@media (max-width: 600px) {
  #chatbot-toggle { right: 16px; bottom: 16px; width: 52px; height: 52px; min-width: 0; aspect-ratio: 1; padding: 0; }
  #chatbot-toggle .chat-toggle-label { display: none; }
  #chatbot-toggle::after { right: 16px; }
}

#chatbot-window {
  position: fixed; bottom: 96px; right: 28px; z-index: 200;
  width: 340px; max-height: 500px;
  background: var(--bg); border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: 0 8px 40px rgba(60,36,21,0.15);
  display: flex; flex-direction: column;
  transform: scale(0.9) translateY(10px);
  opacity: 0; pointer-events: none;
  transition: all 0.25s cubic-bezier(0.34,1.56,0.64,1);
  transform-origin: bottom right;
}
#chatbot-window.open {
  transform: scale(1) translateY(0);
  opacity: 1; pointer-events: all;
}
.chat-header {
  padding: 16px 18px; background: var(--brand);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  display: flex; align-items: center; gap: 12px;
}
.chat-restart,
.chat-close {
  width: 32px; height: 32px;
  border-radius: 50%; background: rgba(255,255,255,0.18);
  color: #fff; border: none; font-size: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.chat-restart:hover,
.chat-close:hover {
  background: rgba(255,255,255,0.3);
}
.chat-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: #fff;
}
.chat-header-info { flex: 1; }
.chat-header-name { font-size: 14px; font-weight: 500; color: #fff; }
.chat-header-status { font-size: 11px; color: rgba(255,255,255,0.65); display: flex; align-items: center; gap: 4px; }
.chat-status-dot { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; }
.chat-close { color: rgba(255,255,255,0.7); font-size: 18px; background: none; border: none; cursor: pointer; }
.chat-messages {
  flex: 1; overflow-y: auto; padding: 16px;
  display: flex; flex-direction: column; gap: 12px;
  max-height: 300px;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.msg { max-width: 82%; }
.msg-bot { align-self: flex-start; }
.msg-user { align-self: flex-end; }
.msg-bubble {
  padding: 10px 14px; border-radius: 14px;
  font-size: 13px; line-height: 1.5;
}
.msg-bot .msg-bubble {
  background: var(--bg-soft); color: var(--text);
  border-radius: 4px 14px 14px 14px;
}
.msg-user .msg-bubble {
  background: var(--brand); color: #fff;
  border-radius: 14px 4px 14px 14px;
}
.msg-time { font-size: 10px; color: var(--text-muted); margin-top: 4px; padding: 0 4px; }
.msg-user .msg-time { text-align: right; }
.chat-quick-replies { padding: 0 16px 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.quick-reply {
  font-size: 12px; padding: 5px 12px;
  border: 1px solid var(--border); border-radius: 20px;
  color: var(--brand); background: var(--bg);
  cursor: pointer; transition: all var(--transition); white-space: nowrap;
}
.quick-reply:hover { background: var(--brand-light); border-color: var(--brand); }
.chat-input-area {
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  display: flex; gap: 8px; align-items: center;
}
.chat-input-area input {
  flex: 1; border-radius: 20px; padding: 9px 16px;
  font-size: 13px; border: 1px solid var(--border);
}
.chat-send {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0; border: none; cursor: pointer;
  transition: background var(--transition);
}
.chat-send:hover { background: #7a3f27; }
.typing-indicator { display: flex; gap: 4px; align-items: center; padding: 10px 14px; }
.typing-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--text-muted); animation: typing 1.2s infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing { 0%,60%,100% { transform: translateY(0); } 30% { transform: translateY(-5px); } }

/* ---------- Footer ---------- */
footer {
  background: var(--bg-soft); color: var(--text);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}
.footer-logo {
  font-family: var(--serif); font-size: 20px; font-weight: 600;
  color: var(--text); margin-bottom: 12px;
}
.footer-tagline { font-size: 13px; color: var(--text-muted); line-height: 1.65; max-width: 240px; margin-bottom: 20px; }
.footer-contact { font-size: 13px; color: var(--text-muted); display: flex; flex-direction: column; gap: 6px; }
.footer-contact a { color: var(--text); transition: color var(--transition); display: inline-flex; align-items: center; gap: 8px; }
.footer-contact a:hover { color: var(--brand); }
.footer-contact a img, .footer-contact-line img { width: 18px; height: 18px; display: inline-block; }
.footer-contact-line { display: inline-flex; align-items: center; gap: 8px; color: var(--text); }
.footer-heading {
  font-size: 11px; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-muted);
  margin-bottom: 16px;
}
footer ul { display: flex; flex-direction: column; gap: 10px; }
footer ul a { font-size: 13px; color: var(--text); transition: color var(--transition); }
footer ul a:hover { color: var(--brand); }
.footer-copy {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--text-muted);
}
.social-links { display: flex; gap: 12px; margin-top: 16px; }
.social-link {
  width: 34px; height: 34px; border-radius: 6px;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text); font-size: 14px;
  transition: all var(--transition);
}
.social-link:hover { background: rgba(255,255,255,0.08); color: var(--brand); }
.social-link img,
.youtube-icon {
  width: 18px;
  height: 18px;
  display: block;
}
.youtube-icon {
  margin-right: 8px;
  vertical-align: middle;
}

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
  padding-top: var(--nav-h);
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 100%);
  padding-bottom: 64px; padding-top: calc(var(--nav-h) + 64px);
  text-align: center; position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  width: 180px;
  height: min(100%, 280px);
  bottom: 0;
  right: -24px;
  background:
    linear-gradient(rgba(255,255,255,0.06), rgba(255,255,255,0.06)) center / 20px 100% no-repeat,
    linear-gradient(rgba(255,255,255,0.06), rgba(255,255,255,0.06)) center / 100% 20px no-repeat;
  opacity: 0.55;
  mix-blend-mode: soft-light;
  pointer-events: none;
}
.page-hero h1 { color: #fff; margin-bottom: 14px; }
.page-hero p { color: rgba(255,255,255,0.7); max-width: 480px; margin: 0 auto; font-size: 16px; }
.breadcrumb {
  display: flex; align-items: center; gap: 6px;
  justify-content: center; font-size: 12px;
  color: rgba(255,255,255,0.45); margin-bottom: 16px;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.breadcrumb a { color: rgba(255,255,255,0.55); }
.breadcrumb span { color: rgba(255,255,255,0.3); }

/* ---------- About Sections ---------- */
.about-split {
  display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: center;
}
.about-visual {
  background: linear-gradient(145deg, var(--brand-dark), var(--brand));
  border-radius: var(--radius-lg); height: 380px;
  display: flex; align-items: center; justify-content: center;
  font-size: 80px; color: rgba(255,255,255,0.2);
}
.value-list { display: flex; flex-direction: column; gap: 18px; margin-top: 28px; }
.doctrine-content .value-item { display: flex; flex-direction: column; gap: 14px; align-items: center; text-align: center; }
.doctrine-content .value-item div { max-width: 860px; }
.value-num {
  font-family: var(--serif); font-size: 20px; font-weight: 600;
  color: var(--brand); min-width: 28px; line-height: 1;
}
.value-item h4 { margin-bottom: 4px; }

/* ---------- Gallery Placeholder ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* Brown image placeholder helper */
.brown-placeholder {
  width: 100%;
  aspect-ratio: var(--placeholder-aspect-ratio, 16/9);
  max-height: var(--placeholder-max-height, 560px);
  min-height: var(--placeholder-min-height, 220px);
  background: #8B5E3C;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--sans); font-size: 14px;
  overflow: hidden;
}
.brown-placeholder.small { aspect-ratio: var(--placeholder-aspect-ratio, 16/9); min-height: 120px; max-height: none; }
.brown-placeholder img { width: 100%; height: 100%; object-fit: cover; object-position: right center; display: block; }

.gallery-item {
  aspect-ratio: 4/3; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; color: rgba(255,255,255,0.2);
  cursor: pointer; transition: transform var(--transition);
}
.gallery-item:hover { transform: scale(1.02); }

/* ---------- Sermon/Media Card ---------- */
.media-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.media-card {
  border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden;
  background: var(--bg); transition: box-shadow var(--transition);
}
.media-card:hover { box-shadow: var(--shadow); }
.media-thumb {
  height: 140px; background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; position: relative;
}
.play-btn {
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,0.2); border: 2px solid rgba(255,255,255,0.5);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: #fff; cursor: pointer;
  transition: background var(--transition);
}
.play-btn:hover { background: rgba(255,255,255,0.35); }
.media-body { padding: 18px; }
.media-series { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--brand); font-weight: 500; margin-bottom: 6px; }
.media-card h4 { font-family: var(--serif); font-size: 18px; margin-bottom: 6px; }
.media-meta { display: flex; gap: 12px; font-size: 12px; color: var(--text-muted); }

/* ---------- CMMI Streams Live Section ---------- */
.section-stream { padding: 60px 0; }
.stream-panel {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 420px;
  gap: 28px;
  align-items: center;
  background: linear-gradient(180deg, rgba(139,74,47,0.08), rgba(255,255,255,0.95));
  border: 1px solid rgba(139,74,47,0.18);
  border-radius: calc(var(--radius-lg) * 1.15);
  padding: 32px;
  box-shadow: var(--shadow);
}
.stream-copy h2 { margin: 0 0 14px; font-size: clamp(28px, 3.5vw, 36px); color: var(--brand-dark); }
.stream-copy p { max-width: 420px; margin-bottom: 0; color: var(--text); }
.stream-visual { position: relative; }
.stream-badge {
  position: absolute; top: 18px; left: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 16px; border-radius: 999px;
  background: #b53f2f;
  color: #fff; font-size: 12px; font-weight: 700;
  z-index: 1;
}
.stream-frame {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(160deg, rgba(60,36,21,0.96), rgba(139,74,47,0.88));
  border: 1px solid rgba(0,0,0,0.12);
  display: grid; place-items: center;
  min-height: 280px;
}
.stream-screen {
  width: 100%; height: 100%; display: grid;
  grid-template-rows: auto 1fr;
  gap: 20px;
  padding: 20px;
  background: linear-gradient(180deg, rgba(0,0,0,0.28), rgba(0,0,0,0.08));
  border-radius: calc(var(--radius-lg) - 2px);
}
.stream-screen-top {
  display: flex; gap: 16px; align-items: center;
}
.stream-icon {
  width: 54px; height: 54px; border-radius: 18px;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
}
.stream-icon img {
  width: 24px; height: auto;
}
.stream-icon-zoom {
  font-size: 22px; font-weight: 700; color: #fff;
  background: rgba(255,255,255,0.12);
}
.stream-banner {
  flex: 1; display: grid; place-items: center;
  background: rgba(0,0,0,0.3);
  border-radius: var(--radius);
  min-height: 400px;
}
.stream-banner img {
  width: 100%; height: 100%; object-fit: contain;
}
.stream-controls {
  display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap;
  margin-top: 20px; padding: 14px 18px;
  background: #fff; border-radius: 999px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.stream-control-btn {
  padding: 8px 14px; font-size: 12px; font-weight: 600;
  border-radius: 6px; border: none;
  background: rgba(139,74,47,0.08); color: var(--brand);
  cursor: pointer; transition: background var(--transition);
  text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
}
.stream-control-btn:hover {
  background: rgba(139,74,47,0.15);
}
.stream-control-link {
  border: 1px solid rgba(139,74,47,0.15);
}
@media (max-width: 980px) {
  .stream-panel { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .stream-panel { padding: 24px; }
}
.stream-full {
  grid-template-columns: 1fr !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}
.stream-full .stream-visual {
  width: 100%;
}
.stream-full .stream-frame {
  min-height: 70vh;
  aspect-ratio: auto;
}

/* ---------- Notification / Toast ---------- */
#toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: var(--text); color: #fff; padding: 12px 24px;
  border-radius: var(--radius); font-size: 14px; z-index: 500;
  transition: transform 0.3s ease; pointer-events: none;
  box-shadow: var(--shadow);
}
#toast.show { transform: translateX(-50%) translateY(0); }

/* ---------- Animations ---------- */
.fade-up {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-text { padding: 56px 24px; order: 2; }
  .hero-visual { min-height: 280px; order: 1; }
  .stats-bar { grid-template-columns: 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); }
  .stat-item:last-child { border-bottom: none; }
  .tiers-grid { grid-template-columns: 1fr; }
  .about-split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-cta { display: none; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .tiers-grid { grid-template-columns: 1fr; }
  #chatbot-window { width: calc(100vw - 32px); right: 16px; bottom: 88px; }
}
