/* ==========================================================================
   Bethel Ethiopian & Eritrean Evangelical Church — Redesign Stylesheet
   Brand: deep navy + burgundy + warm gold + cream · Fraunces + Inter
   Mobile-first · Accessible · Reduced-motion aware
   ========================================================================== */

:root {
  /* Brand palette (derived from the church's existing theme & C&MA logo) */
  --navy: #0b2035;
  --navy-deep: #061422;
  --navy-2: #13334f;
  --burgundy: #8c2436;
  --burgundy-light: #a8394a;
  --gold: #bf9750;
  --gold-light: #e2c583;
  --gold-deep: #96793e;

  /* Surfaces & ink */
  --cream: #f5f1e8;
  --cream-2: #efe8d8;
  --paper: #ffffff;
  --ink: #1d2733;
  --muted: #5c6675;
  --line: #e5ddce;
  --line-soft: #efe9dd;

  /* Type */
  --serif: "Fraunces", "Noto Serif Ethiopic", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Noto Sans Ethiopic", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  /* Spacing & radii */
  --container: 1180px;
  --gutter: clamp(1.1rem, 4vw, 2.4rem);
  --section-y: clamp(3.4rem, 8vw, 6.5rem);
  --radius: 14px;
  --radius-lg: 22px;
  --radius-sm: 9px;

  /* Shadows */
  --shadow: 0 22px 55px rgba(6, 20, 34, 0.16);
  --shadow-soft: 0 10px 28px rgba(6, 20, 34, 0.10);
  --shadow-tight: 0 5px 16px rgba(6, 20, 34, 0.09);

  /* Decorative cross pattern (data-URI SVG) */
  --cross-gold: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='104' height='104'%3E%3Cg fill='none' stroke='%23e2c583' stroke-width='1.4' stroke-linecap='round' opacity='.5'%3E%3Cpath d='M52 20v22M52 62v22M20 52h22M62 52h22'/%3E%3C/g%3E%3Cg fill='%23e2c583' opacity='.5'%3E%3Ccircle cx='52' cy='20' r='2.1'/%3E%3Ccircle cx='52' cy='84' r='2.1'/%3E%3Ccircle cx='20' cy='52' r='2.1'/%3E%3Ccircle cx='84' cy='52' r='2.1'/%3E%3Ccircle cx='52' cy='52' r='2.4'/%3E%3C/g%3E%3C/svg%3E");

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.42s;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.075rem);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--burgundy); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.12; color: var(--navy); letter-spacing: -0.01em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.2rem, 1.6rem + 2.6vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.55rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem); }
p { margin: 0 0 1.1rem; }
p:last-child { margin-bottom: 0; }
ul { margin: 0 0 1.1rem; padding-left: 1.2rem; }
:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 0; top: -100px; z-index: 1000;
  background: var(--navy); color: #fff; padding: 0.7rem 1.1rem;
  border-radius: 0 0 8px 0; font-weight: 600; transition: top 0.2s;
}
.skip-link:focus { top: 0; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Utility bits ---------- */
.eyebrow {
  display: inline-block; font-family: var(--sans); font-weight: 700;
  font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-deep); margin: 0 0 0.9rem;
}
.eyebrow.light { color: var(--gold-light); }
.eyebrow.red { color: var(--burgundy); }
.eyebrow.center { display: block; text-align: center; }
.lead { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.32rem); color: var(--muted); line-height: 1.6; }
.section { padding-block: var(--section-y); }
.section.soft { background: var(--cream); }
.section.dark { background: var(--navy-deep); color: #d8e0ea; }
.section.dark h2, .section.dark h3 { color: #fff; }
.section-head { max-width: 720px; margin: 0 auto clamp(2rem, 4vw, 3rem); text-align: center; }
.section-head p { color: var(--muted); }
.section.dark .section-head p { color: #b6c2d2; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem; justify-content: center;
  font-family: var(--sans); font-weight: 600; font-size: 0.98rem;
  padding: 0.82rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform var(--dur) var(--ease), background var(--dur), color var(--dur), box-shadow var(--dur);
  text-decoration: none; line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn.primary { background: var(--burgundy); color: #fff; box-shadow: 0 8px 20px rgba(140, 36, 54, 0.28); }
.btn.primary:hover { background: var(--burgundy-light); }
.btn.gold { background: linear-gradient(135deg, var(--gold), var(--gold-deep)); color: var(--navy-deep); box-shadow: 0 8px 20px rgba(150, 121, 62, 0.3); }
.btn.gold:hover { filter: brightness(1.05); }
.btn.light-btn { background: #fff; color: var(--navy); }
.btn.light-btn:hover { background: var(--cream); }
.btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
.btn.ghost:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.btn.ghost-dark { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn.ghost-dark:hover { background: var(--navy); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }

.text-link { color: var(--burgundy); font-weight: 600; font-size: 0.92rem; }
.text-link:hover { color: var(--burgundy-light); }

/* ==========================================================================
   Topbar
   ========================================================================== */
.topbar { background: var(--navy-deep); color: #c4d0de; font-size: 0.82rem; }
.topbar-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.4rem 1.4rem; padding-block: 0.5rem; }
.topbar-left { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; }
.topbar-left span::before { content: "✦"; color: var(--gold); margin-right: 0.4rem; }
.topbar-right { display: flex; gap: 1.4rem; }
.topbar a { color: #c4d0de; }
.topbar a:hover { color: var(--gold-light); }
@media (max-width: 720px) { .topbar-left span:first-child { display: none; } }

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); transition: box-shadow var(--dur); }
.site-header.scrolled { box-shadow: var(--shadow-tight); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.7rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; color: var(--navy); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark { height: 46px; width: auto; flex: none; object-fit: contain; border-radius: 8px; background: #fff; border: 1px solid var(--line); padding: 3px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--serif); font-weight: 700; font-size: 1.02rem; color: var(--navy); letter-spacing: -0.01em; }
.brand-text small { font-size: 0.7rem; color: var(--muted); font-weight: 500; letter-spacing: 0.02em; }

.nav { display: flex; align-items: center; gap: 0.2rem; }
.nav > a, .nav .dropbtn { font-family: var(--sans); font-weight: 600; font-size: 0.95rem; color: var(--ink); padding: 0.6rem 0.85rem; border-radius: 8px; background: none; border: none; cursor: pointer; transition: color var(--dur), background var(--dur); }
.nav > a:hover, .nav .dropbtn:hover { color: var(--burgundy); background: var(--cream); text-decoration: none; }
.nav > a[aria-current="page"] { color: var(--burgundy); }
.nav-cta { background: var(--burgundy) !important; color: #fff !important; padding: 0.62rem 1.25rem !important; }
.nav-cta:hover { background: var(--burgundy-light) !important; }

.dropdown { position: relative; }
.dropbtn { display: inline-flex; align-items: center; gap: 0.25rem; }
.dropdown-menu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 200px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-soft); padding: 0.4rem; opacity: 0; visibility: hidden; transform: translateY(8px); transition: all var(--dur) var(--ease); }
.dropdown:hover .dropdown-menu, .dropdown:focus-within .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a { display: block; padding: 0.55rem 0.7rem; border-radius: 8px; color: var(--ink); font-weight: 500; font-size: 0.92rem; }
.dropdown-menu a:hover { background: var(--cream); color: var(--burgundy); text-decoration: none; }

/* Language switcher — native nav-style dropdown (reuses .dropdown / .dropbtn / .dropdown-menu) */
.lang-switch { margin-left: 0.3rem; }
.lang-btn { display: inline-flex; align-items: center; gap: 0.35rem; background: none; border: none; border-radius: 8px; padding: 0.6rem 0.7rem; font-family: var(--sans); font-weight: 600; font-size: 0.95rem; color: var(--ink); cursor: pointer; transition: color var(--dur), background var(--dur); }
.lang-btn:hover, .lang-btn:focus-visible { color: var(--burgundy); background: var(--cream); outline: none; }
.lang-btn .lang-current { font-weight: 700; font-size: 0.85rem; letter-spacing: 0.04em; }
.lang-menu { right: 0; left: auto; min-width: 172px; }
.lang-menu button { display: flex; align-items: center; gap: 0.55rem; width: 100%; text-align: left; padding: 0.55rem 0.7rem; border: none; background: none; border-radius: 8px; font-family: var(--sans); font-weight: 500; font-size: 0.92rem; color: var(--ink); cursor: pointer; }
.lang-menu button::before { content: ""; width: 1rem; display: inline-block; font-weight: 700; color: var(--gold-deep); }
.lang-menu button:hover { background: var(--cream); color: var(--burgundy); }
.lang-menu button[aria-checked="true"] { color: var(--burgundy); font-weight: 700; }
.lang-menu button[aria-checked="true"]::before { content: "\2713"; }
@media (max-width: 960px) {
  .lang-switch { margin: 0; }
  .lang-btn { width: 100%; justify-content: flex-start; }
}

.menu-toggle { display: none; flex-direction: column; gap: 5px; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; align-items: center; justify-content: center; }
.menu-toggle span { display: block; width: 20px; height: 2px; background: var(--navy); border-radius: 2px; transition: all var(--dur) var(--ease); }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  .menu-toggle { display: flex; }
  /* backdrop-filter on .site-header creates a containing block that traps the
     fixed-position nav drawer; neutralise it on mobile so the drawer spans the
     full viewport. Header bg is 96% opaque, so the blur is not visible anyway. */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(82vw, 340px); flex-direction: column;
    align-items: stretch; gap: 0; background: #fff; padding: 1.2rem; box-shadow: -20px 0 60px rgba(6,20,34,0.2);
    transform: translateX(105%); transition: transform var(--dur) var(--ease); overflow-y: auto; z-index: 99;
  }
  .nav.open { transform: translateX(0); }
  .nav > a, .nav .dropbtn { padding: 0.85rem 0.6rem; border-radius: 8px; text-align: left; font-size: 1.05rem; border-bottom: 1px solid var(--line-soft); }
  .nav-cta { margin-top: 0.8rem; text-align: center; }
  .dropdown-menu { position: static; visibility: visible; opacity: 1; transform: none; box-shadow: none; border: none; padding: 0 0 0 0.9rem; background: var(--cream); margin: 0.2rem 0; border-radius: 8px; display: none; }
  .dropdown.open .dropdown-menu { display: block; }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(6,20,34,0.5); opacity: 0; visibility: hidden; transition: opacity var(--dur); z-index: 98; }
  .nav-backdrop.show { opacity: 1; visibility: visible; }
}

/* ==========================================================================
   Hero (home)
   ========================================================================== */
.hero { position: relative; min-height: clamp(540px, 78vh, 760px); display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -2; background: var(--navy); }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, rgba(6,20,34,0.92) 0%, rgba(11,32,53,0.78) 42%, rgba(11,32,53,0.42) 100%); }
.hero .eyebrow { color: var(--gold-light); }
.hero h1 { color: #fff; max-width: 16ch; }
.hero .lead { color: #d8e0ea; max-width: 54ch; }
.hero-content { padding-block: clamp(3rem, 8vw, 6rem); }
.hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.18); color: var(--gold-light); padding: 0.4rem 0.9rem; border-radius: 999px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; margin-bottom: 1.2rem; }
.hero-card { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.16); border-radius: var(--radius-lg); padding: clamp(1.4rem, 3vw, 2rem); backdrop-filter: blur(6px); }
.hero-card small { color: var(--gold-light); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.7rem; }
.hero-card h3 { color: #fff; margin: 0.4rem 0 1rem; font-size: 1.3rem; }
.hero-card ul { list-style: none; padding: 0; margin: 0 0 1.3rem; display: grid; gap: 0.55rem; }
.hero-card li { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: 0.55rem; border-bottom: 1px solid rgba(255,255,255,0.12); font-size: 0.95rem; }
.hero-card li:last-child { border-bottom: none; padding-bottom: 0; }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; } .hero-card { order: -1; } }

/* Page hero (interior) */
.page-hero { position: relative; color: #fff; padding-block: clamp(3rem, 7vw, 5.5rem); overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, var(--navy-deep), var(--navy) 60%, var(--navy-2)); }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.5; background-image: var(--cross-gold); background-size: 104px 104px; mask-image: radial-gradient(circle at 80% 30%, #000, transparent 70%); -webkit-mask-image: radial-gradient(circle at 80% 30%, #000, transparent 70%); }
.page-hero h1 { color: #fff; max-width: 18ch; }
.page-hero .lead { color: #cdd8e4; max-width: 60ch; }

/* ==========================================================================
   Service ribbon
   ========================================================================== */
.service-ribbon { background: var(--navy); }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.service-grid article { padding: clamp(1.4rem, 2.5vw, 2rem); border-right: 1px solid rgba(255,255,255,0.1); }
.service-grid article:last-child { border-right: none; }
.service-grid small { color: var(--gold-light); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.72rem; }
.service-grid strong { display: block; font-family: var(--serif); font-size: clamp(1.3rem, 1rem + 1vw, 1.8rem); color: #fff; margin: 0.3rem 0 0.4rem; }
.service-grid p { color: #b6c2d2; font-size: 0.9rem; margin: 0; }
@media (max-width: 880px) { .service-grid { grid-template-columns: repeat(2, 1fr); } .service-grid article:nth-child(2) { border-right: none; } .service-grid article:nth-child(1), .service-grid article:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,0.1); } }
@media (max-width: 460px) { .service-grid { grid-template-columns: 1fr; } .service-grid article { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); } }

/* ==========================================================================
   Split / media-card
   ========================================================================== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.media-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 3 / 4; }
.media-card img { width: 100%; height: 100%; object-fit: cover; }
.media-card .float-card { position: absolute; left: 1.2rem; bottom: 1.2rem; right: 1.2rem; background: rgba(255,255,255,0.95); padding: 1rem 1.2rem; border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.media-card .float-card strong { display: block; font-family: var(--serif); font-style: italic; color: var(--navy); font-size: 1.02rem; }
.media-card .float-card span { color: var(--muted); font-size: 0.82rem; font-weight: 600; }

/* Pastor portrait (portrait image framed) */
.portrait-frame { position: relative; max-width: 420px; margin-inline: auto; }
.portrait-frame img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.portrait-frame::before { content: ""; position: absolute; inset: 14px -14px -14px 14px; border: 2px solid var(--gold); border-radius: var(--radius-lg); z-index: -1; }

.signature { font-family: var(--serif); font-style: italic; color: var(--navy); font-size: 1.05rem; }
.signature strong { font-style: normal; }

/* Highlight card */
.highlight { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.2rem); }
.highlight.dark { background: var(--navy); color: #d8e0ea; border-color: var(--navy-2); }
.highlight.dark h3 { color: var(--gold-light); font-size: 1.05rem; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 0.4rem; }
.highlight.dark h3 + p { margin-bottom: 1.4rem; }
.highlight.dark ul { list-style: none; padding: 0; display: grid; gap: 0.6rem; }
.highlight.dark li { padding-left: 1.5rem; position: relative; }
.highlight.dark li::before { content: "✦"; position: absolute; left: 0; color: var(--gold); }

/* ==========================================================================
   Cards / grids
   ========================================================================== */
.cards { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.compact { grid-template-columns: repeat(3, 1fr); }
.cards.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 820px) { .cards.three, .cards.compact { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .cards.three, .cards.compact, .cards.two { grid-template-columns: 1fr; } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.4rem, 2.5vw, 1.9rem); transition: transform var(--dur) var(--ease), box-shadow var(--dur), border-color var(--dur); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); border-color: var(--gold-light); }
.card .icon { width: 54px; height: 54px; border-radius: 14px; background: linear-gradient(135deg, var(--cream), var(--cream-2)); color: var(--burgundy); display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 1rem; border: 1px solid var(--line); }
.card h3 { margin-bottom: 0.4rem; }
.card p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* Ministry grid */
.ministry-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: clamp(1rem, 2vw, 1.4rem); }
.ministry-card { background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--radius); padding: 1.5rem 1.6rem; transition: transform var(--dur) var(--ease), box-shadow var(--dur); scroll-margin-top: 100px; }
.ministry-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.ministry-card span { font-family: var(--serif); font-weight: 700; color: var(--gold); font-size: 1.1rem; }
.ministry-card h3 { margin: 0.3rem 0 0.5rem; font-size: 1.2rem; }
.ministry-card p { color: var(--muted); font-size: 0.93rem; margin: 0 0 0.6rem; }
.ministry-card small { color: var(--burgundy); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.04em; }

/* Teaser grid */
.teaser-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.5rem); }
@media (max-width: 820px) { .teaser-grid { grid-template-columns: 1fr; } }
.teaser-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem; position: relative; overflow: hidden; transition: transform var(--dur) var(--ease), box-shadow var(--dur); }
.teaser-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--burgundy), var(--gold)); transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease); }
.teaser-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.teaser-card:hover::before { transform: scaleX(1); }

/* Resources */
.resource-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1rem, 2vw, 1.4rem); }
@media (max-width: 700px) { .resource-grid { grid-template-columns: 1fr; } }
.resource-card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem; transition: transform var(--dur) var(--ease), box-shadow var(--dur), border-color var(--dur); text-decoration: none; color: var(--ink); }
.resource-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); border-color: var(--gold-light); text-decoration: none; }
.resource-card h3 { margin-bottom: 0.4rem; }
.resource-card p { color: var(--muted); font-size: 0.93rem; flex: 1; margin-bottom: 0; }
.resource-card span { color: var(--burgundy); font-weight: 600; font-size: 0.9rem; margin-top: 1rem; display: inline-block; }

/* CTA band */
.cta { position: relative; background: linear-gradient(135deg, var(--navy-deep), var(--navy-2)); color: #fff; text-align: center; overflow: hidden; }
.cta::after { content: ""; position: absolute; inset: 0; background-image: var(--cross-gold); background-size: 104px; opacity: 0.25; }
.cta .container { position: relative; z-index: 1; }
.cta .eyebrow { color: var(--gold-light); }
.cta h2 { color: #fff; }
.cta p { color: #cdd8e4; font-size: 1.1rem; }

/* ==========================================================================
   Sermons
   ========================================================================== */
.empty-state { text-align: center; max-width: 760px; margin: 0 auto; }
.empty-state > span { display: inline-grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: var(--cream); color: var(--burgundy); font-size: 1.8rem; margin-bottom: 1.2rem; border: 1px solid var(--line); }
.sermon-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.5rem); margin-top: 2.4rem; }
@media (max-width: 820px) { .sermon-grid { grid-template-columns: 1fr; } }
.sermon-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.8rem; text-align: left; transition: transform var(--dur) var(--ease), box-shadow var(--dur); position: relative; }
.sermon-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.sermon-card .play { width: 48px; height: 48px; border-radius: 50%; background: var(--burgundy); color: #fff; display: grid; place-items: center; font-size: 1rem; margin-bottom: 1rem; transition: background var(--dur); }
.sermon-card:hover .play { background: var(--burgundy-light); }
.sermon-card h3 { font-size: 1.2rem; margin-bottom: 0.3rem; }
.sermon-card p { color: var(--muted); font-size: 0.9rem; margin: 0; }
.sermon-card .tag { display: inline-block; margin-top: 0.8rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-deep); background: var(--cream); padding: 0.25rem 0.7rem; border-radius: 999px; }

/* ==========================================================================
   Schedule / visit card
   ========================================================================== */
.schedule { display: grid; gap: 0.8rem; margin-top: 1.4rem; }
.schedule-card { display: grid; grid-template-columns: 96px 1fr; gap: 1rem; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; transition: border-color var(--dur), transform var(--dur); }
.schedule-card:hover { border-color: var(--gold); transform: translateX(4px); }
.schedule-card span { font-family: var(--serif); font-weight: 700; color: var(--burgundy); font-size: 1.15rem; }
.schedule-card strong { display: block; color: var(--navy); font-size: 1.05rem; }
.schedule-card small { color: var(--muted); }
.visit-card { background: var(--navy); color: #d8e0ea; border-radius: var(--radius-lg); padding: clamp(1.6rem, 3vw, 2.2rem); }
.visit-card h3 { color: #fff; }
.visit-card p { margin-bottom: 1rem; }
.visit-card strong { color: var(--gold-light); display: inline-block; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; }
.visit-card a { color: #fff; }
.visit-card a:hover { color: var(--gold-light); }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { display: grid; gap: 0.6rem; margin-top: 1.4rem; }
.contact-list a, .contact-list > div { display: grid; grid-template-columns: 1fr; gap: 0.15rem; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); transition: border-color var(--dur), transform var(--dur); }
.contact-list a:hover { border-color: var(--gold); transform: translateX(4px); text-decoration: none; }
.contact-list strong { color: var(--gold-deep); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; }
.contact-list span { color: var(--ink); font-weight: 500; }

.contact-form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.2rem); box-shadow: var(--shadow-tight); }
.contact-form h3 { margin-bottom: 1.2rem; }
.contact-form label { display: block; font-weight: 600; font-size: 0.85rem; color: var(--navy); margin: 0 0 0.35rem 0.05rem; }
.contact-form input, .contact-form textarea { width: 100%; font-family: var(--sans); font-size: 0.98rem; padding: 0.75rem 0.9rem; border: 1.5px solid #c9bb98; border-radius: var(--radius-sm); background: var(--cream); color: var(--ink); transition: border-color var(--dur), background var(--dur); margin-bottom: 1rem; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--gold); background: #fff; box-shadow: 0 0 0 3px rgba(191,151,80,0.15); }
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form button { width: 100%; }
.form-honeypot { position: absolute; left: -9999px; }
.form-status { font-weight: 600; color: var(--burgundy); margin-top: 0.8rem; min-height: 1.2em; }
.form-note { font-size: 0.8rem; color: var(--muted); margin-top: 0.6rem; }
.form-success { background: #eaf5ee; border: 1px solid #bfe3cc; color: #157347; padding: 1rem 1.2rem; border-radius: var(--radius); margin-bottom: 1.4rem; font-weight: 600; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--navy-deep); color: #b6c2d2; padding-top: clamp(2.5rem, 5vw, 4rem); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: clamp(1.5rem, 3vw, 2.5rem); padding-bottom: 2.5rem; }
.footer-logo { height: 60px; width: auto; max-width: 140px; object-fit: contain; border-radius: 10px; margin-bottom: 1rem; background: rgba(255,255,255,0.08); padding: 4px; border: 1px solid rgba(255,255,255,0.12); }
.footer h3 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer a { color: #b6c2d2; }
.footer a:hover { color: var(--gold-light); }
.footer p { font-size: 0.92rem; }
.footer-grid div > a { display: block; padding: 0.2rem 0; font-size: 0.92rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-block: 1.4rem; text-align: center; font-size: 0.82rem; color: #8791a3; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* Back to top */
.back-top { position: fixed; right: 1.2rem; bottom: 1.2rem; width: 48px; height: 48px; border-radius: 50%; background: var(--burgundy); color: #fff; border: none; font-size: 1.2rem; cursor: pointer; box-shadow: var(--shadow-soft); opacity: 0; visibility: hidden; transform: translateY(12px); transition: all var(--dur) var(--ease); z-index: 90; }
.back-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { background: var(--burgundy-light); transform: translateY(-2px); }

/* ==========================================================================
   Reveal animations
   ========================================================================== */
html.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
html.js .reveal.in { opacity: 1; transform: none; }
html.js .reveal[data-delay="1"] { transition-delay: 0.08s; }
html.js .reveal[data-delay="2"] { transition-delay: 0.16s; }
html.js .reveal[data-delay="3"] { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  html.js .reveal { opacity: 1; transform: none; }
}

/* ---- First-visit welcome dialog (modal with dimmed backdrop) ---- */
.lang-prompt { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; background: rgba(11,32,53,0.55); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); opacity: 0; transition: opacity .3s ease; pointer-events: none; padding: 1rem; }
.lang-prompt.show { opacity: 1; pointer-events: auto; }
.lp-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: 0 24px 60px rgba(6,20,34,0.28); padding: 1.6rem 1.5rem 1.5rem; width: min(92vw, 330px); text-align: center; transform: scale(0.96); transition: transform .3s cubic-bezier(.2,.75,.25,1); }
.lang-prompt.show .lp-card { transform: scale(1); }
.lp-close { position: absolute; top: .5rem; right: .6rem; width: 30px; height: 30px; border: none; background: none; font-size: 1.3rem; line-height: 1; color: var(--muted); cursor: pointer; border-radius: 8px; }
.lp-close:hover { background: var(--cream); color: var(--burgundy); }
.lp-globe { font-size: 1.9rem; line-height: 1; margin-bottom: .5rem; }
.lp-card h2 { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; color: var(--navy); margin: 0 0 .25rem; letter-spacing: -0.01em; }
.lp-sub { font-family: var(--sans); font-size: 0.95rem; color: var(--ink); margin: 0 0 1.1rem; }
.lp-actions { display: flex; gap: 0.6rem; }
.lp-btn { flex: 1; padding: 0.72rem 0.8rem; border-radius: 999px; border: 1px solid var(--line); background: var(--cream); color: var(--navy); font-family: var(--sans); font-weight: 600; font-size: 0.95rem; cursor: pointer; transition: border-color var(--dur), background var(--dur), color var(--dur); }
.lp-btn:hover { border-color: var(--gold); background: #fff; color: var(--burgundy); }
.lp-btn[data-lang="am"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.lp-btn[data-lang="am"]:hover { background: var(--burgundy); border-color: var(--burgundy); color: #fff; }
@media (prefers-reduced-motion: reduce) { .lang-prompt { transition: opacity .2s ease; } .lp-card { transition: none; transform: scale(1); } .lang-prompt:not(.show) { opacity: 0; pointer-events: none; } }
