/* ===========================================================
   SDA Central Church, Visakhapatnam
   Main Stylesheet
   =========================================================== */

:root {
  /* Blue & white professional palette */
  --navy: #0b3a6f;          /* primary deep blue */
  --navy-dark: #072a53;     /* darker blue for footers/topbar */
  --sky: #1f6fc4;           /* mid blue for links */
  --accent: #2b8fe0;        /* bright accent blue */
  --accent-dark: #1c6fb3;   /* accent hover */

  /* Accent variables (repointed from gold -> blue so all existing
     rules that used gold now render in the accent blue) */
  --gold: #2b8fe0;
  --gold-dark: #1c6fb3;

  --light: #eef4fb;         /* very light blue-tinted surface */
  --muted: #5b6b7f;
  --text: #1f2b3a;
  --white: #ffffff;
  --border: #dbe6f2;
  --shadow: 0 6px 24px rgba(11, 58, 111, 0.10);
  --radius: 12px;
  --max: 1180px;
  --font: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --serif: "Georgia", "Times New Roman", serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
}

img { max-width: 100%; display: block; }

a { color: var(--sky); text-decoration: none; }
a:hover { color: var(--gold-dark); }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3, h4 { font-family: var(--serif); color: var(--navy); line-height: 1.25; }

.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--light { background: var(--light); }
.section--navy { background: var(--navy); color: #dbe4ee; }
.section--navy h2, .section--navy h3 { color: var(--white); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head .eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.78rem;
  color: var(--gold-dark);
  font-weight: 700;
  margin-bottom: 10px;
}
.section-head h2 { font-size: 2.1rem; margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn--gold { background: var(--accent); color: var(--white); box-shadow: 0 4px 14px rgba(43,143,224,0.32); }
.btn--gold:hover { background: var(--accent-dark); color: var(--white); }
.btn--outline { border-color: var(--white); color: var(--white); background: transparent; }
.btn--outline:hover { background: var(--white); color: var(--navy); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-dark); color: var(--white); }

/* ---------- Top bar ---------- */
.topbar {
  background: linear-gradient(90deg, var(--navy-dark), #0a3a66);
  color: #cdd8e4;
  font-size: 0.84rem;
  border-bottom: 1px solid rgba(43,143,224,0.28);
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 42px;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar a { color: #cdd8e4; transition: color 0.2s ease; }
.topbar a:hover { color: var(--gold); }
.topbar .topbar-info { display: flex; align-items: center; gap: 22px; }
.topbar .topbar-info span { display: inline-flex; align-items: center; gap: 6px; }
.topbar .topbar-info .ico { color: var(--gold); font-style: normal; }
.topbar .socials { display: flex; align-items: center; gap: 8px; }
.topbar .socials a {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.08);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.3px;
  transition: all 0.2s ease;
}
.topbar .socials a:hover { background: var(--gold); color: var(--navy-dark); transform: translateY(-1px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.98);
  backdrop-filter: saturate(140%) blur(6px);
  box-shadow: 0 2px 14px rgba(13,47,82,0.08);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.25s ease, padding 0.25s ease;
}
.site-header.scrolled { box-shadow: 0 8px 26px rgba(13,47,82,0.14); }
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  gap: 18px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand .logo {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--white);
  display: grid; place-items: center;
  overflow: hidden;
  border: 2px solid var(--gold);
  box-shadow: 0 4px 12px rgba(13,47,82,0.16);
  flex: 0 0 auto;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.brand:hover .logo { transform: scale(1.04); box-shadow: 0 6px 16px rgba(13,47,82,0.24); }
.brand .logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.brand .brand-text b {
  display: block; color: var(--navy); font-size: 1.22rem;
  font-family: var(--serif); line-height: 1.1; letter-spacing: 0.2px;
}
.brand .brand-text small {
  display: block; color: var(--gold-dark); font-size: 0.72rem;
  letter-spacing: 2.5px; text-transform: uppercase; font-weight: 700; margin-top: 3px;
}

.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  position: relative;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 12px 15px;
  border-radius: 8px;
  transition: color 0.2s ease;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 15px; right: 15px; bottom: 6px;
  height: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s ease;
}
.nav a:hover { color: var(--gold-dark); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.nav a.active { color: var(--navy); }

/* CTA button inside nav */
.nav .nav-cta {
  margin-left: 10px;
  background: var(--accent);
  color: var(--white);
  padding: 11px 22px;
  border-radius: 50px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(43,143,224,0.32);
}
.nav .nav-cta::after { display: none; }
.nav .nav-cta:hover { background: var(--navy); color: var(--white); transform: translateY(-1px); }

.nav-toggle {
  display: none;
  background: none; border: none;
  width: 44px; height: 44px;
  font-size: 1.5rem; color: var(--navy); cursor: pointer;
  border-radius: 8px;
}
.nav-toggle:hover { background: var(--light); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 82vh;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
  background:
    radial-gradient(1000px 500px at 78% 20%, rgba(43,143,224,0.28), transparent 60%),
    linear-gradient(135deg, #061f3d 0%, #0b3a6f 48%, #10538f 100%);
}
/* Subtle dotted texture for depth */
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}

/* Two-column hero: content left, Ten Commandments image right */
.hero-grid {
  position: relative; z-index: 1;
  width: 100%; max-width: var(--max);
  margin: 0 auto; padding: 40px 20px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 40px;
}
.hero--split { text-align: left; }
.hero-figure {
  display: flex; justify-content: center; align-items: center;
  animation: heroRise 0.9s ease both;
}
.hero-figure img {
  max-height: 62vh;
  width: auto; max-width: 100%;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.12);
}

.hero-inner {
  position: relative; z-index: 1;
  max-width: 640px; padding: 0;
  animation: heroRise 0.8s ease both;
}
@keyframes heroRise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero .eyebrow {
  display: inline-block;
  text-transform: uppercase; letter-spacing: 4px;
  color: #9ccbf5; font-weight: 700; font-size: 0.82rem;
  padding: 6px 16px; border-radius: 50px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(156,203,245,0.35);
}
.hero h1 {
  color: var(--white); font-size: 3.2rem; margin: 20px 0 18px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.28);
}
/* Typing effect cursor (sits in the hero eyebrow) */
.hero .eyebrow { min-height: 2em; }
.type-cursor {
  display: inline-block;
  width: 2px; height: 0.95em;
  margin-left: 3px;
  background: #9ccbf5;
  vertical-align: middle;
  animation: caretBlink 0.85s step-end infinite;
}
@keyframes caretBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
.hero p { font-size: 1.2rem; color: #dbe8f6; margin-bottom: 32px; }
.hero .hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero--split .hero-actions { justify-content: flex-start; }
.hero--split .hero-verse { margin-left: 0; margin-right: 0; }
.hero--split .eyebrow { text-align: left; }

.page-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  text-align: center;
  padding: 88px 20px 66px;
  background:
    radial-gradient(900px 400px at 80% 10%, rgba(43,143,224,0.30), transparent 60%),
    linear-gradient(135deg, #061f3d 0%, #0b3a6f 50%, #10538f 100%);
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 22px 22px;
}
.page-hero h1 { position: relative; z-index: 1; color: var(--white); font-size: 2.6rem; text-shadow: 0 2px 16px rgba(0,0,0,0.25); }
.page-hero .crumbs { position: relative; z-index: 1; color: #cddbec; margin-top: 10px; font-size: 0.9rem; }
.page-hero .crumbs a { color: #9ccbf5; }

/* ---------- Service times bar ---------- */
.times-bar {
  background: linear-gradient(90deg, var(--navy), var(--sky));
  color: var(--white);
}
.times-bar .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 30px 20px;
  text-align: center;
}
.times-bar .time-item { position: relative; }
.times-bar .time-item:not(:last-child)::after {
  content: ""; position: absolute; right: -10px; top: 50%;
  transform: translateY(-50%); height: 42px; width: 1px;
  background: rgba(255,255,255,0.22);
}
.times-bar .time-item b { display: block; font-family: var(--serif); font-size: 1.2rem; color: var(--white); }
.times-bar .time-item span { font-size: 0.92rem; color: #d5e6f7; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(13,47,82,0.16); }
.card .card-media {
  height: 190px;
  background: linear-gradient(135deg, var(--navy), var(--sky));
  color: var(--white);
  display: grid; place-items: center;
  font-size: 2.4rem;
}
.card .card-body { padding: 22px; }
.card .card-body h3 { font-size: 1.2rem; margin-bottom: 8px; }
.card .card-body p { color: var(--muted); font-size: 0.95rem; }
.card .card-body .card-link { display: inline-block; margin-top: 14px; font-weight: 600; }

/* ---------- Welcome / two-col ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split .split-media {
  min-height: 360px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--navy), var(--accent));
  display: grid; place-items: center;
  color: var(--white); font-size: 4rem;
  box-shadow: var(--shadow);
}
/* Photo variant of the split media panel */
.split .split-media--photo {
  padding: 0; overflow: hidden;
  background: var(--navy);
  border: 5px solid var(--white);
  box-shadow: 0 14px 40px rgba(11,58,111,0.22);
}
.split .split-media--photo img {
  width: 100%; height: 100%;
  min-height: 360px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.split .split-media--photo:hover img { transform: scale(1.04); }
/* Portrait photo (e.g. pastor) - medium, contained, centered */
.split .split-media--portrait {
  min-height: 0;
  width: 300px;
  max-width: 100%;
  margin: 0 auto;
  aspect-ratio: 3 / 4;
  align-self: center;
}
.split .split-media--portrait img {
  min-height: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
.split h2 { font-size: 2rem; margin-bottom: 16px; }
.split p { color: var(--muted); margin-bottom: 14px; }
.split .btn { margin-top: 10px; }

/* ---------- Event list ---------- */
.event {
  display: flex; gap: 20px; align-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: var(--shadow);
}
.event .date {
  flex: 0 0 74px; text-align: center;
  background: linear-gradient(160deg, var(--navy), var(--sky)); color: var(--white);
  border-radius: 10px; padding: 12px 8px;
}
.event .date b { display: block; font-size: 1.6rem; font-family: var(--serif); color: #cfe4fb; }
.event .date span { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; }
.event .event-body h4 { font-size: 1.1rem; margin-bottom: 4px; }
.event .event-body p { color: var(--muted); font-size: 0.9rem; }

/* ---------- Beliefs list ---------- */
.beliefs { list-style: none; display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.beliefs li {
  background: var(--white); border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: 8px; padding: 14px 18px;
}
.beliefs li b { color: var(--navy); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.info-item { display: flex; gap: 14px; margin-bottom: 22px; }
.info-item .ic {
  flex: 0 0 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--sky)); color: var(--white);
  display: grid; place-items: center; font-size: 1.2rem;
}
.info-item b { display: block; color: var(--navy); }
.info-item span { color: var(--muted); }

form .field { margin-bottom: 16px; }
form label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.9rem; }
form input, form textarea, form select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border);
  border-radius: 8px; font-family: inherit; font-size: 0.95rem;
}
form input:focus, form textarea:focus { outline: 2px solid var(--sky); border-color: transparent; }
.form-note { padding: 12px 16px; border-radius: 8px; margin-top: 12px; display: none; }
.form-note.success { display: block; background: #e6f6ec; color: #216e39; }

.map-embed iframe { width: 100%; min-height: 340px; border: 0; border-radius: var(--radius); }

/* ---------- Verse strip ---------- */
.verse {
  text-align: center; padding: 60px 20px;
  background: linear-gradient(135deg, rgba(7,42,83,0.92), rgba(31,111,196,0.86)), url("../img/hero.jpg") center/cover;
  color: var(--white);
}
.verse blockquote { font-family: var(--serif); font-size: 1.6rem; max-width: 820px; margin: 0 auto 12px; font-style: italic; }
.verse cite { color: var(--gold); font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: #a9b7c6; padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 34px; }
.site-footer h4 { color: var(--white); margin-bottom: 16px; font-size: 1.05rem; }
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 9px; }
.site-footer a { color: #a9b7c6; }
.site-footer a:hover { color: var(--gold); }
.site-footer .foot-brand b { color: var(--white); font-family: var(--serif); font-size: 1.15rem; }
.foot-logo {
  display: flex; align-items: center; gap: 12px; margin-bottom: 4px;
}
.foot-logo .logo-circle {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--gold);
  overflow: hidden; flex: 0 0 auto; display: grid; place-items: center;
}
.foot-logo .logo-circle img { width: 100%; height: 100%; object-fit: contain; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 44px; padding: 20px 0;
  text-align: center; font-size: 0.85rem; color: #8091a3;
}
.footer-bottom a { color: var(--accent); font-weight: 600; }
.footer-bottom a:hover { color: #9ccbf5; }
.footer-bottom .dev-credit {
  margin-top: 8px;
  font-size: 0.78rem;
  color: #6f8098;
  letter-spacing: 0.3px;
}
.footer-bottom .dev-credit b { color: #9ccbf5; font-weight: 700; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 28px; }
  .hero--split { text-align: center; }
  .hero--split .hero-actions { justify-content: center; }
  .hero--split .hero-verse { margin-left: auto; margin-right: auto; }
  .hero--split .eyebrow { text-align: center; }
  .hero-figure img { max-height: 320px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .times-bar .container { grid-template-columns: repeat(2, 1fr); }
  .times-bar .time-item:not(:last-child)::after { display: none; }
  .split { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 2.3rem; }
}

@media (max-width: 820px) {
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: var(--white);
    box-shadow: 0 14px 30px rgba(13,47,82,0.18);
    border-top: 3px solid var(--gold);
    padding: 14px; gap: 4px;
    max-height: 0; overflow: hidden;
    opacity: 0; visibility: hidden;
    transition: max-height 0.3s ease, opacity 0.25s ease, padding 0.3s ease;
  }
  .nav.open { max-height: 520px; opacity: 1; visibility: visible; padding: 14px; }
  .nav a {
    padding: 14px 16px; border-radius: 10px;
    border-bottom: 1px solid var(--border);
  }
  .nav a:last-of-type { border-bottom: none; }
  .nav a::after { display: none; }
  .nav a:hover, .nav a.active { background: var(--light); }
  .nav .nav-cta {
    margin: 8px 0 0; text-align: center;
  }
  .nav-toggle { display: grid; place-items: center; }
}

@media (max-width: 720px) {
  .times-bar .container {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 8px 16px 12px;
  }
  .times-bar .time-item {
    display: flex; flex-direction: column;
    padding: 14px 6px;
    border-bottom: 1px solid rgba(255,255,255,0.16);
  }
  .times-bar .time-item:last-child { border-bottom: none; }
  .times-bar .time-item:not(:last-child)::after { display: none; }
  .times-bar .time-item b { font-size: 1.12rem; margin-bottom: 2px; }
  .grid-4, .grid-3, .grid-2, .beliefs { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .topbar .topbar-info { display: none; }
  .hero { min-height: 66vh; }
  .brand .logo { width: 48px; height: 48px; }
  .brand .brand-text b { font-size: 1.05rem; }
  .brand .brand-text small { font-size: 0.66rem; letter-spacing: 2px; }
  .site-header .container { min-height: 70px; }
}

@media (max-width: 380px) {
  .brand .brand-text small { font-size: 0.6rem; letter-spacing: 1.5px; }
  .brand .brand-text b { font-size: 0.92rem; }
  .brand .logo { width: 42px; height: 42px; }
  .brand { gap: 9px; }
}

/* ===========================================================
   Professional polish & motion effects
   =========================================================== */

/* ---- Scroll reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Directional & staggered variants */
.reveal.reveal-left { transform: translateX(-36px); }
.reveal.reveal-right { transform: translateX(36px); }
.reveal.reveal-left.is-visible,
.reveal.reveal-right.is-visible { transform: none; }

.reveal.delay-1 { transition-delay: 0.08s; }
.reveal.delay-2 { transition-delay: 0.16s; }
.reveal.delay-3 { transition-delay: 0.24s; }
.reveal.delay-4 { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero-inner { animation: none !important; }
}

/* ---- Fluid, professional typography ---- */
.hero h1 { font-size: clamp(2rem, 5.2vw, 3.3rem); }
.hero p { font-size: clamp(1rem, 2.2vw, 1.2rem); }
/* Hero rotating Bible verse (typing effect) */
.hero-verse {
  min-height: 3.2em;
  font-style: italic;
  color: #eaf1f9;
  max-width: 760px; margin-left: auto; margin-right: auto;
}
.verse-cursor {
  display: inline-block;
  width: 2px; height: 1.05em;
  margin-left: 3px;
  background: #9ccbf5;
  vertical-align: middle;
  animation: caretBlink 0.85s step-end infinite;
}
.section-head h2, .split h2 { font-size: clamp(1.7rem, 3.6vw, 2.2rem); }
.page-hero h1 { font-size: clamp(1.9rem, 4.6vw, 2.7rem); }

/* ---- Elevated card interactions ---- */
.card {
  position: relative;
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1), box-shadow 0.3s ease;
}
.card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--sky));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s ease;
  z-index: 2;
}
.card:hover::before { transform: scaleX(1); }
.card:hover { transform: translateY(-8px); box-shadow: 0 18px 44px rgba(11,58,111,0.20); }
.card .card-media { overflow: hidden; }
.card .card-media, .card .card-media > * { transition: transform 0.45s ease; }
.card:hover .card-media { filter: brightness(1.05); }
.card .card-link { position: relative; transition: gap 0.2s ease, color 0.2s ease; }
.card:hover .card-link { color: var(--accent-dark); }

/* ---- Buttons: subtle press + sheen ---- */
.btn { position: relative; overflow: hidden; }
.btn:active { transform: translateY(1px); }
.btn--gold::after, .btn--navy::after {
  content: "";
  position: absolute; top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
}
.btn--gold:hover::after, .btn--navy:hover::after { left: 130%; }

/* ---- Event rows: accent slide + lift ---- */
.event {
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  border-left: 3px solid transparent;
}
.event:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(11,58,111,0.16);
  border-left-color: var(--accent);
}

/* ---- Welcome photo: floating badge ---- */
.split .split-media--photo { position: relative; }
.split .split-media--photo .photo-badge {
  position: absolute; right: -18px; bottom: 26px;
  display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(4px);
  padding: 16px 22px;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(11,58,111,0.24);
  z-index: 3;
}
.split .split-media--photo .photo-badge .pb-number {
  display: inline-flex; align-items: flex-start;
  font-family: var(--serif); font-weight: 700;
  font-size: 2.6rem; line-height: 0.9;
  color: var(--accent-dark);
  font-variant-numeric: tabular-nums;
}
.split .split-media--photo .photo-badge .pb-number em {
  font-style: normal; font-size: 1.4rem; margin-top: 2px; color: var(--accent);
}
.split .split-media--photo .photo-badge .pb-label {
  font-size: 0.8rem; line-height: 1.3;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--muted); font-weight: 600;
  padding-left: 14px;
  border-left: 2px solid var(--border);
}

/* ---- Sermon cards linking to YouTube ---- */
a.card-yt { text-decoration: none; color: inherit; display: block; }
a.card-yt h3 { color: var(--navy); }
a.card-yt p { color: var(--muted); }
a.card-yt .card-media {
  position: relative;
  transition: background 0.3s ease;
}
a.card-yt:hover .card-media {
  background: linear-gradient(135deg, #b30000, #ff0000);
  color: var(--white);
}
a.card-yt .card-link { color: var(--accent-dark); }
a.card-yt:hover .card-link { color: #cc0000; }

/* ---- Video thumbnail cards (real YouTube thumbnail) ---- */
a.card-video .video-thumb {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: #000;
}
a.card-video .video-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.3s ease;
}
a.card-video:hover .video-thumb img { transform: scale(1.06); filter: brightness(0.85); }
/* Red YouTube play button overlay */
a.card-video .play-btn {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 68px; height: 48px;
  background: rgba(0,0,0,0.6);
  border-radius: 14px;
  display: grid; place-items: center;
  transition: background 0.25s ease, transform 0.25s ease;
}
a.card-video:hover .play-btn { background: #ff0000; transform: translate(-50%,-50%) scale(1.08); }
a.card-video .play-btn::before {
  content: ""; display: block;
  width: 0; height: 0;
  border-style: solid;
  border-width: 11px 0 11px 19px;
  border-color: transparent transparent transparent #fff;
  margin-left: 4px;
}
a.card-video .yt-badge {
  position: absolute; top: 12px; left: 12px;
  background: #ff0000; color: #fff;
  font-size: 0.66rem; font-weight: 800; letter-spacing: 0.5px;
  padding: 4px 9px; border-radius: 4px;
  text-transform: uppercase;
}
a.card-video .card-link { color: var(--accent-dark); }
a.card-video:hover .card-link { color: #cc0000; }

/* ---- Resource cards (OneVoice27) ---- */
.resource-card {
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  box-shadow: var(--shadow);
  transition: transform 0.28s cubic-bezier(0.22,1,0.36,1), box-shadow 0.28s ease, border-color 0.28s ease;
  min-height: 190px;
}
.resource-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(11,58,111,0.18);
  border-color: var(--accent);
}
.resource-card .rc-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 20px;
}
.resource-card .rc-icon {
  width: 54px; height: 54px; border-radius: 12px;
  display: grid; place-items: center;
  font-size: 1.5rem;
  background: linear-gradient(135deg, rgba(43,143,224,0.14), rgba(31,111,196,0.10));
  color: var(--accent-dark);
}
.resource-card .rc-tag {
  font-size: 0.68rem; font-weight: 800; letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 11px; border-radius: 50px;
  background: rgba(43,143,224,0.12); color: var(--accent-dark);
}
.resource-card .rc-tag.pdf { background: rgba(220,38,38,0.10); color: #c0392b; }
.resource-card .rc-tag.image { background: rgba(16,133,89,0.12); color: #0f7a52; }
.resource-card h3 { font-size: 1.12rem; margin-bottom: 6px; line-height: 1.25; }
.resource-card p { color: var(--muted); font-size: 0.9rem; margin-bottom: 16px; }
.resource-card .rc-action {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 0.9rem; color: var(--accent-dark);
}
.resource-card .rc-action::after { content: "\2193"; transition: transform 0.2s ease; }
.resource-card:hover .rc-action::after { transform: translateY(3px); }

/* Resource card with OneVoice27 banner on top */
.resource-card--banner {
  padding: 0; overflow: hidden;
}
.resource-card--banner .rc-art {
  min-height: 130px;
  display: grid; place-items: center; text-align: center;
  background: radial-gradient(120% 120% at 30% 20%, #5b2a9e, #1a1440 70%);
}
.resource-card--banner .rc-art b {
  font-family: var(--serif); font-weight: 800; letter-spacing: 1px;
  font-size: 1.7rem;
  background: linear-gradient(90deg, #f06, #8a2be2, #29b6f6);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.resource-card--banner .rc-art small {
  display: block; color: #cfd3ff; letter-spacing: 3px;
  text-transform: uppercase; font-size: 0.68rem; margin-top: 4px;
}
.resource-card--banner .rc-content { padding: 20px 22px; display: flex; flex-direction: column; flex: 1; }
.resource-card--banner .rc-content .rc-top { margin-bottom: 14px; }

/* Featured artwork resource card */
.resource-card--feature {
  grid-column: span 1;
  padding: 0; overflow: hidden; min-height: 0;
  color: var(--white);
}
.resource-card--feature .rc-art {
  min-height: 170px;
  display: grid; place-items: center; text-align: center;
  background: radial-gradient(120% 120% at 30% 20%, #5b2a9e, #1a1440 70%);
  position: relative;
}
.resource-card--feature .rc-art b {
  font-family: var(--serif); font-weight: 800; letter-spacing: 1px;
  font-size: 1.9rem;
  background: linear-gradient(90deg, #f06, #8a2be2, #29b6f6);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.resource-card--feature .rc-art small {
  display: block; color: #cfd3ff; letter-spacing: 3px;
  text-transform: uppercase; font-size: 0.7rem; margin-top: 4px;
}

/* Distinct themed book banners */
.rc-art--doa, .rc-art--gc {
  position: relative;
  min-height: 200px;
  padding: 20px;
  text-align: center;
}
.rc-art--doa b, .rc-art--gc b {
  font-family: var(--serif); font-weight: 700;
  font-size: 1.7rem; line-height: 1.15;
  color: #fff; -webkit-text-fill-color: #fff;
  background: none;
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}
.rc-art--doa small, .rc-art--gc small {
  color: rgba(255,255,255,0.85);
  letter-spacing: 2px; font-size: 0.72rem; margin-top: 10px;
}
.rc-book-tag {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  font-size: 0.62rem; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.4);
  padding: 3px 12px; border-radius: 50px;
}
/* Desire of Ages - warm dawn / life of Christ */
.rc-art--doa {
  background:
    radial-gradient(120% 90% at 30% 15%, rgba(212,164,55,0.55), transparent 60%),
    linear-gradient(150deg, #1a3a6b 0%, #2a6db0 55%, #c98a2b 130%);
}
/* Great Controversy - dramatic cosmic conflict */
.rc-art--gc {
  background:
    radial-gradient(120% 90% at 70% 20%, rgba(180,40,60,0.5), transparent 60%),
    linear-gradient(150deg, #0a0e2a 0%, #2a1440 55%, #6b1030 130%);
}
.resource-card--feature .rc-cap {
  padding: 16px 20px; background: var(--white); color: var(--navy);
}
.resource-card--feature .rc-cap b { font-family: var(--serif); display: block; margin-bottom: 10px; }
.resource-card--feature .rc-langs { display: flex; gap: 10px; flex-wrap: wrap; }
.resource-card--feature .rc-lang {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 16px; border-radius: 50px;
  font-size: 0.82rem; font-weight: 700;
  background: rgba(43,143,224,0.10);
  color: var(--accent-dark);
  border: 1px solid rgba(43,143,224,0.25);
  transition: all 0.2s ease;
}
.resource-card--feature .rc-lang:hover {
  background: var(--accent); color: var(--white); border-color: var(--accent);
  transform: translateY(-2px);
}

/* ---- Footer campaign badge ---- */
.footer-bottom .onevoice {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 12px;
  padding: 7px 18px;
  border-radius: 50px;
  background: linear-gradient(90deg, var(--accent), var(--sky));
  color: var(--white) !important;
  font-weight: 700; letter-spacing: 0.5px;
  font-size: 0.85rem;
  box-shadow: 0 6px 18px rgba(43,143,224,0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.footer-bottom .onevoice:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(43,143,224,0.45); }
.footer-bottom .onevoice::before {
  content: "\2726"; /* sparkle */
  font-size: 0.9rem;
}
.footer-bottom .onevoice b { font-weight: 800; }

/* ---- Pastor signature block ---- */
.pastor-sign {
  margin-top: 22px;
  padding-left: 16px;
  border-left: 3px solid var(--accent);
}
.pastor-sign b {
  display: block;
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--navy);
  line-height: 1.2;
}
.pastor-sign span {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

/* ---- Section-head divider accent ---- */
.section-head h2 { position: relative; }
.section-head h2::after {
  content: "";
  display: block;
  width: 64px; height: 3px;
  margin: 14px auto 0;
  background: linear-gradient(90deg, var(--accent), var(--sky));
  border-radius: 3px;
}

/* ---- Smooth link underline in content ---- */
.card-link::after { content: " "; }

/* ---- Responsive spacing polish ---- */
.section { padding: clamp(48px, 7vw, 80px) 0; }

@media (max-width: 900px) {
  .split { gap: 32px; }
  .split .split-media { min-height: 300px; }
  .split .split-media--photo img { min-height: 300px; }
}

@media (max-width: 720px) {
  .split .split-media--photo .photo-badge { right: 12px; bottom: 12px; padding: 12px 16px; gap: 10px; }
  .split .split-media--photo .photo-badge .pb-number { font-size: 2rem; }
  .split .split-media--photo .photo-badge .pb-label { font-size: 0.72rem; padding-left: 10px; }
  .hero .hero-actions .btn { width: 100%; max-width: 320px; }
  .times-bar .container { gap: 8px; padding: 22px 16px; }
}

@media (max-width: 480px) {
  .card .card-media { height: 160px; font-size: 2rem; }
  .event { flex-wrap: wrap; }
}
