/* =================================================================
   Pentecostal Fire Youth Conference (PFYC) — clone stylesheet
   Light theme by default, with an opt-in dark theme
   (applied via [data-theme="dark"] on <html>).
   ================================================================= */

:root {
  /* brand accents — identical in both themes */
  --accent:    #d72f1f;   /* fire red */
  --accent-2:  #f0851f;   /* ember orange */
  --on-accent: #ffffff;   /* text/icons sitting on an accent fill */

  /* ---- light theme (default) ---- */
  --bg:        #ffffff;
  --bg-alt:    #f3f4f6;
  --bg-panel:  #f6f7f9;
  --text:      #181b21;
  --muted:     #4b5159;
  --muted-dim: #737a83;
  --line:      rgba(0, 0, 0, 0.12);

  --header-bg: rgba(255, 255, 255, 0.9);
  --footer-bg: #f1f2f4;
  --surface-2: #ffffff;            /* dropdown */
  --mobile-menu-bg:     #ffffff;
  --mobile-dropdown-bg: #f1f2f4;
  --nav-link:  #2a2d33;
  --input-bg:  #ffffff;

  --tabs-bg:     #eceef1;
  --tabs-border: rgba(0, 0, 0, 0.10);
  --tabs-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  --tab-bg:        #ffffff;
  --tab-border:    rgba(0, 0, 0, 0.08);
  --tab-text:      #3a3f47;
  --tab-hover-bg:     #ffffff;
  --tab-hover-border: rgba(0, 0, 0, 0.16);

  --hover-soft: rgba(0, 0, 0, 0.035);
  --hover-icon: rgba(0, 0, 0, 0.06);

  --ghost-text:       #181b21;
  --ghost-border:     rgba(0, 0, 0, 0.4);
  --ghost-hover-bg:   #181b21;
  --ghost-hover-text: #ffffff;

  --banner-top:    #e9eaee;
  --player-bg:     rgba(255, 255, 255, 0.97);
  --player-shadow: 0 -10px 30px rgba(0, 0, 0, 0.12);
  --tag-preach-text: #c42a1b;
  --shadow:    0 18px 45px rgba(0, 0, 0, 0.14);

  --logo:      url("../img/logo.png");        /* dark-gray logo — for the light theme */
  --uld-logo:  url("../img/uld-icon.png");    /* dark Uplift icon — for the light theme */

  /* layout / type */
  --maxw:      1180px;
  --radius:    6px;
  --font-head: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Lato", "Helvetica Neue", Arial, sans-serif;
}

/* ---- dark theme overrides ---- */
[data-theme="dark"] {
  --bg:        #0a0a0a;
  --bg-alt:    #121212;
  --bg-panel:  #181818;
  --text:      #ffffff;
  --muted:     #b9b9b9;
  --muted-dim: #8a8a8a;
  --line:      rgba(255, 255, 255, 0.10);

  --header-bg: rgba(8, 8, 8, 0.92);
  --footer-bg: #060606;
  --surface-2: #141414;
  --mobile-menu-bg:     #0c0c0c;
  --mobile-dropdown-bg: #060606;
  --nav-link:  #f1f1f1;
  --input-bg:  #1c1c1c;

  --tabs-bg:     #0e0e0e;
  --tabs-border: rgba(255, 255, 255, 0.16);
  --tabs-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
  --tab-bg:        rgba(255, 255, 255, 0.06);
  --tab-border:    rgba(255, 255, 255, 0.08);
  --tab-text:      #eaeaea;
  --tab-hover-bg:     rgba(255, 255, 255, 0.13);
  --tab-hover-border: rgba(255, 255, 255, 0.2);

  --hover-soft: rgba(255, 255, 255, 0.03);
  --hover-icon: rgba(255, 255, 255, 0.06);

  --ghost-text:       #ffffff;
  --ghost-border:     rgba(255, 255, 255, 0.55);
  --ghost-hover-bg:   #ffffff;
  --ghost-hover-text: #0a0a0a;

  --banner-top:    #111111;
  --player-bg:     rgba(12, 12, 12, 0.97);
  --player-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
  --tag-preach-text: #ff7a6b;
  --shadow:    0 18px 45px rgba(0, 0, 0, 0.55);

  --logo:      url("../img/logo-dark.png");      /* white logo — for the dark theme */
  --uld-logo:  url("../img/uld-icon-dark.png");  /* white Uplift icon — for the dark theme */
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .3s ease, color .3s ease;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); margin: 0; line-height: 1.1; }
p { margin: 0 0 1.1em; }
/* smooth the surfaces that change with the theme */
.site-header, .site-footer, .card, .info-card, .dropdown, .player-bar,
.tabs, .tab, .form input, .form textarea, .sermon-controls input, .sermon-controls select {
  transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}

/* ---------- layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 92px 0; }
.section--tight { padding: 60px 0; }
.section--alt { background: var(--bg-alt); }
.text-center { text-align: center; }
.eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-2);
  margin: 0 0 18px;
}
.section-title {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.lead { color: var(--muted); font-size: 1.08rem; max-width: 70ch; }
.divider { width: 64px; height: 4px; background: var(--accent); border: 0; margin: 22px 0 30px; }
.divider.center { margin-left: auto; margin-right: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
  padding: 16px 34px;
  border-radius: var(--radius);
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 10px 26px rgba(215, 47, 31, 0.35);
}
.btn--primary:hover { background: #ef3a28; transform: translateY(-2px); box-shadow: 0 14px 32px rgba(215, 47, 31, 0.5); }
.btn--ghost { background: transparent; color: var(--ghost-text); border-color: var(--ghost-border); }
.btn--ghost:hover { background: var(--ghost-hover-bg); color: var(--ghost-hover-text); transform: translateY(-2px); }
.btn--sm { padding: 11px 22px; font-size: 0.72rem; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 84px;
}
.nav__logo img { height: 52px; width: auto; }
/* swap the logo artwork to match the active theme (white on dark, dark on light) */
.nav__logo img, .site-footer .footer-logo { content: var(--logo); }
.nav__menu {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__menu > li { position: relative; }
.nav__link {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--nav-link);
  padding: 12px 16px;
  transition: color .2s ease;
}
.nav__link:hover, .nav__link.is-active { color: var(--accent-2); }
.nav__link--btn {
  background: var(--accent);
  color: var(--on-accent) !important;
  border-radius: var(--radius);
  margin-left: 10px;
  padding: 12px 24px;
}
.nav__link--btn:hover { background: #ef3a28; }

/* dropdown */
.has-dropdown > .nav__link::after { content: "\25BE"; font-size: 0.65em; margin-left: 7px; opacity: 0.7; }
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 270px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  list-style: none;
  margin: 0;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all .2s ease;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: block;
  padding: 11px 14px;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  border-radius: 4px;
}
.dropdown a:hover { background: rgba(215,47,31,0.16); color: var(--accent); }

/* mobile toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span { width: 26px; height: 3px; background: var(--text); border-radius: 2px; transition: .3s; }
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- hero (always over dark media — text stays light) ---------- */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 0;
  overflow: hidden;
  /* poster image is the fallback paint before the video is ready */
  background: #000 url("../vid/home-hero-poster.jpg") center / cover no-repeat;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  /* avoid a flash of unstyled background before the first frame */
  background: #000;
}
/* semi-transparent black overlay so the headline pops */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,0.55) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.45), rgba(0,0,0,0.65));
}
.hero__inner { position: relative; z-index: 2; max-width: 820px; padding: 0 24px; color: #fff; }

/* honour reduced-motion: drop the video, keep the poster image */
@media (prefers-reduced-motion: reduce) {
  .hero__video { display: none; }
}
.hero__kicker {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.45em;
  font-size: 0.85rem;
  color: var(--accent-2);
  margin-bottom: 20px;
}
.hero__title {
  font-size: clamp(2.6rem, 8vw, 6rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  text-shadow: 0 6px 30px rgba(0,0,0,0.6);
}
.hero__sub {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1rem, 2.4vw, 1.5rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #efefef;
  margin: 14px 0 14px;
}
.hero__dates {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  letter-spacing: 0.16em;
  color: #fff;
  margin: 0 0 34px;
}

/* ---------- generic two-column feature ---------- */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.feature--reverse .feature__media { order: 2; }
.feature__media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.feature__media--poster img { max-width: 460px; margin: 0 auto; }
.scripture {
  border-left: 3px solid var(--accent);
  padding: 6px 0 6px 22px;
  margin: 26px 0;
  font-style: italic;
  color: var(--muted);
}
.scripture cite { display: block; font-style: normal; font-family: var(--font-head); font-weight: 700; color: var(--accent-2); letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.8rem; margin-bottom: 8px; }

/* ---------- photo gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.gallery a, .gallery figure { margin: 0; }
.gallery img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
  transition: transform .35s ease, filter .35s ease;
}
.gallery img { cursor: zoom-in; }
.gallery img:hover { transform: scale(1.04); filter: brightness(1.08); }

/* ---------- lightbox (full-res image viewer) ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  display: none; align-items: center; justify-content: center;
  padding: 30px;
  background: rgba(0, 0, 0, 0.92);
  opacity: 0; transition: opacity .25s ease;
}
.lightbox.is-open { display: flex; opacity: 1; }
.lightbox__img {
  max-width: 92vw; max-height: 88vh; width: auto; height: auto;
  border-radius: 4px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  cursor: default;
}
.lightbox__close, .lightbox__nav {
  position: absolute;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.1); border: 0; color: #fff; cursor: pointer;
  font-size: 1.7rem; line-height: 1;
  transition: background .2s ease, transform .2s ease;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255, 255, 255, 0.25); }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__nav--prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 18px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev:hover { transform: translateY(-50%) scale(1.08); }
.lightbox__nav--next:hover { transform: translateY(-50%) scale(1.08); }
.lightbox__counter {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-head); font-size: 0.78rem; letter-spacing: 0.12em;
}
@media (max-width: 560px) {
  .lightbox { padding: 12px; }
  .lightbox__nav { width: 42px; height: 42px; }
  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
}

/* ---------- media cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 46px 30px;
  text-align: center;
  transition: transform .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-6px); border-color: rgba(215,47,31,0.5); }
.card__icon { font-size: 2.4rem; margin-bottom: 16px; }
.card h3 {
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

/* ---------- featured media card (home) ---------- */
.featured-media {
  max-width: 560px;
  margin: 0 auto;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 30px;
  box-shadow: var(--shadow);
}
.featured-media__tag {
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.2em; font-size: 0.68rem; color: var(--accent-2); margin: 0 0 10px;
}
.featured-media__title {
  font-size: 1.5rem; text-transform: uppercase; letter-spacing: 0.02em; margin: 0 0 6px;
}
.featured-media__meta { color: var(--muted); font-size: 0.9rem; margin: 0 0 20px; }
.featured-media__player { width: 100%; height: 44px; }

/* ---------- tabs ---------- */
.tabs-wrap { text-align: center; }
.tabs {
  display: inline-flex;
  gap: 10px;
  padding: 9px;
  background: var(--tabs-bg);
  border: 1px solid var(--tabs-border);
  border-radius: 999px;
  margin: 0 auto 50px;
  box-shadow: var(--tabs-shadow);
}
.tab {
  font-family: var(--font-head);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.88rem;
  color: var(--tab-text);
  background: var(--tab-bg);
  border: 1px solid var(--tab-border);
  padding: 16px 38px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .18s ease, background .2s ease, color .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.tab:hover {
  color: var(--text);
  background: var(--tab-hover-bg);
  border-color: var(--tab-hover-border);
  transform: translateY(-1px);
}
.tab.is-active {
  color: var(--on-accent);
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  border-color: transparent;
  box-shadow: 0 10px 26px rgba(215, 47, 31, 0.5);
  transform: translateY(-1px);
}
.tab.is-active:hover { background: linear-gradient(135deg, #ff9636, #ef3a28); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: tabIn .3s ease; }
@keyframes tabIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (max-width: 560px) {
  .tabs { display: flex; width: 100%; gap: 7px; padding: 7px; border-radius: 16px; }
  .tab { flex: 1; padding: 14px 8px; border-radius: 12px; letter-spacing: 0.05em; font-size: 0.78rem; }
}

/* ---------- dates list ---------- */
.dates {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 620px;
}
.dates li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-head);
}
.dates .year { font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.dates .when { color: var(--accent-2); font-weight: 600; letter-spacing: 0.06em; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  color: var(--text);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 22px 40px 22px 0;
  position: relative;
  cursor: pointer;
}
.faq__q::after {
  content: "+";
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 1.6rem; color: var(--accent-2); transition: transform .25s ease;
}
.faq__item.is-open .faq__q::after { content: "\2013"; }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq__a-inner { padding: 0 0 22px; color: var(--muted); }
.faq__a a { color: var(--accent-2); text-decoration: underline; }

/* ---------- contact form ---------- */
.form { max-width: 620px; margin: 0 auto; }
.form .field { margin-bottom: 18px; }
.form label { display: block; font-family: var(--font-head); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px; color: var(--muted); }
.form input, .form textarea {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 14px 16px;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); }
.form textarea { min-height: 150px; resize: vertical; }
.form__note { color: var(--muted-dim); font-size: 0.9rem; margin-top: 10px; }
.form__status { margin-top: 16px; font-family: var(--font-head); color: var(--accent-2); display: none; }
.form__status--pending { color: var(--muted); }
.form__status--success { color: #2fa85a; }
.form__status--error   { color: var(--accent); }

/* address card on contact */
.info-card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  text-align: center;
}
.info-card h3 { text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; font-size: 1.1rem; }

/* ---------- page banner (interior pages) ---------- */
.page-banner {
  padding: 130px 0 70px;
  text-align: center;
  background: linear-gradient(180deg, var(--banner-top) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}
.page-banner h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.page-banner p { color: var(--muted); margin-top: 14px; }

/* ---------- image hero (interior pages — over dark media, text stays light) ---------- */
.page-hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 0 90px;
  overflow: hidden;
  background: #000 center / cover no-repeat;
}
.page-hero__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,0.6) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.5), rgba(0,0,0,0.72));
}
.page-hero__inner { position: relative; z-index: 2; max-width: 860px; padding: 0 24px; color: #fff; }
.page-hero h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-shadow: 0 6px 28px rgba(0,0,0,0.55);
}
.page-hero p { color: #e9e9e9; margin-top: 14px; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--line);
  padding: 58px 0 34px;
  text-align: center;
}
.site-footer .footer-logo { height: 60px; margin: 0 auto 22px; width: auto; }
.site-footer h4 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.18em; margin-bottom: 14px; }
.site-footer p { color: var(--muted); margin: 4px 0; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent-2); }
.social { display: flex; justify-content: center; gap: 16px; margin: 22px 0; }
.social a {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: all .2s ease;
}
.social a:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-3px); }
.social svg { width: 18px; height: 18px; fill: var(--text); transition: fill .2s ease; }
.social a:hover svg { fill: var(--on-accent); }
.footer-bottom { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted-dim); font-size: 0.85rem; }
.footer-bottom a { color: var(--muted-dim); text-decoration: underline; }
/* Uplift Digital credit — icon swaps with the theme */
.footer-sep { margin: 0 12px; opacity: 0.45; }
.footer-credit { display: inline-flex; align-items: center; vertical-align: middle; text-decoration: none; }
.footer-credit .uld-icon { height: 20px; width: auto; vertical-align: middle; content: var(--uld-logo); transition: opacity .2s ease; }
.footer-credit:hover .uld-icon { opacity: 0.7; }

/* ---------- theme toggle switch ---------- */
.theme-toggle { margin-top: 28px; display: flex; justify-content: center; }
.theme-switch {
  display: inline-flex; align-items: center; gap: 12px;
  background: none; border: 0; cursor: pointer; padding: 6px;
  color: var(--muted-dim);
  font-family: var(--font-head); font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.16em;
}
.theme-switch:hover { color: var(--text); }
.theme-switch__track {
  position: relative; width: 60px; height: 30px; border-radius: 999px;
  background: var(--bg-panel); border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: space-between;
  padding: 0 8px;
}
.theme-switch__icon { font-size: 12px; line-height: 1; z-index: 1; }
.theme-switch__icon--sun { color: var(--accent-2); }
.theme-switch__icon--moon { color: var(--muted); }
.theme-switch__thumb {
  position: absolute; top: 50%; left: 4px; transform: translateY(-50%);
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 2px 6px rgba(0,0,0,0.35);
  transition: left .25s ease;
}
[data-theme="dark"] .theme-switch__thumb { left: 32px; }

/* ---------- sermons archive + player ---------- */
.sermon-controls {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 14px;
  margin-bottom: 14px;
}
.sermon-controls input, .sermon-controls select {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 13px 14px;
}
.sermon-controls input:focus, .sermon-controls select:focus { outline: none; border-color: var(--accent); }
.sermon-controls select { appearance: none; cursor: pointer; }
.sermon-count { color: var(--muted-dim); font-size: 0.85rem; margin: 0 0 22px; font-family: var(--font-head); letter-spacing: 0.06em; }

.sermon-list { list-style: none; margin: 0; padding: 0; }
.sermon-item {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 18px;
  padding: 16px 14px;
  border: 1px solid transparent;
  border-bottom: 1px solid var(--line);
  border-radius: var(--radius);
  transition: background .18s ease, border-color .18s ease;
}
.sermon-item:hover { background: var(--hover-soft); }
.sermon-item.is-playing { background: rgba(215,47,31,0.10); border-color: rgba(215,47,31,0.45); }
.sermon-item__play {
  width: 46px; height: 46px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent);
  border: 0; cursor: pointer;
  color: var(--on-accent);
  transition: transform .15s ease, background .15s ease;
}
.sermon-item__play:hover { transform: scale(1.07); background: #ef3a28; }
.sermon-item__play svg { width: 18px; height: 18px; fill: currentColor; }
.sermon-item__main { min-width: 0; }
.sermon-item__title {
  font-family: var(--font-head); font-weight: 700; font-size: 1.02rem;
  margin: 0 0 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sermon-item__sub { color: var(--muted-dim); font-size: 0.85rem; }
.sermon-item__sub .tag {
  display: inline-block; font-family: var(--font-head); font-size: 0.62rem;
  text-transform: uppercase; letter-spacing: 0.1em; padding: 2px 8px; border-radius: 20px;
  margin-right: 8px; vertical-align: middle;
}
.tag--music { background: rgba(240,133,31,0.18); color: var(--accent-2); }
.tag--preaching { background: rgba(215,47,31,0.18); color: var(--tag-preach-text); }
.sermon-item__time { color: var(--muted-dim); font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.sermon-item__dl { color: var(--muted-dim); display: grid; place-items: center; padding: 8px; border-radius: 6px; }
.sermon-item__dl:hover { color: var(--text); background: var(--hover-icon); }
.sermon-item__dl svg { width: 18px; height: 18px; fill: currentColor; }
.sermon-empty { text-align: center; color: var(--muted-dim); padding: 60px 0; }

/* sticky bottom player bar */
.player-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 200;
  background: var(--player-bg);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  box-shadow: var(--player-shadow);
  transform: translateY(110%);
  transition: transform .35s ease;
}
.player-bar.is-active { transform: translateY(0); }
.player-bar__inner {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 2.4fr auto;
  align-items: center;
  gap: 18px;
  padding: 12px 24px;
}
.player-bar__meta { min-width: 0; }
.player-bar__title { font-family: var(--font-head); font-weight: 700; font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-bar__speaker { color: var(--muted-dim); font-size: 0.8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-bar audio { width: 100%; height: 40px; }
.player-bar__actions { display: flex; gap: 8px; align-items: center; }
/* leave room so the fixed bar never covers the footer */
body.has-player { padding-bottom: 96px; }

@media (max-width: 760px) {
  .sermon-controls { grid-template-columns: 1fr 1fr; }
  .sermon-controls input { grid-column: 1 / -1; }
  .sermon-item { grid-template-columns: auto 1fr auto; gap: 12px; }
  .sermon-item__time { display: none; }
  .player-bar__inner { grid-template-columns: 1fr; gap: 8px; padding: 10px 16px; }
  .player-bar__actions { display: none; }
  body.has-player { padding-bottom: 132px; }
}

/* ---------- reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; gap: 34px; }
  .feature--reverse .feature__media { order: 0; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr; }

  .nav__toggle { display: flex; }
  .nav__menu {
    position: fixed;
    inset: 84px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--mobile-menu-bg);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
  }
  .nav.is-open .nav__menu { max-height: 90vh; overflow-y: auto; padding: 10px 0 20px; border-bottom: 1px solid var(--line); }
  .nav__link, .nav__link--btn { padding: 16px 24px; margin: 0; border-radius: 0; }
  .nav__link--btn { background: none; color: var(--accent-2) !important; }
  .has-dropdown > .nav__link::after { float: right; }
  .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; background: var(--mobile-dropdown-bg); min-width: 0;
    max-height: 0; overflow: hidden; padding: 0 24px; transition: max-height .3s ease;
  }
  .has-dropdown.is-open .dropdown { max-height: 300px; padding: 6px 24px 14px; }
}
@media (max-width: 560px) {
  .section { padding: 64px 0; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 10px; }
  .dates li { flex-direction: column; gap: 2px; }
}
