/*
Theme Name: Bishop Dan Gachuki
Theme URI: https://bishopdan.co.ke
Author: Custom
Description: Custom theme for Bishop Daniel Gachuki Ministry
Version: 1.0
*/

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

:root {
  --purple: #3b1f6e;
  --purple-dark: #26134a;
  --purple-mid: #4e2a8e;
  --gold: #c9a84c;
  --gold-light: #e8c96a;
  --gold-pale: #f5e6b8;
  --white: #ffffff;
  --off-white: #f9f6f0;
  --text-dark: #1a1020;
  --text-mid: #4a3d5c;
  --text-light: #8a7a9a;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Jost', sans-serif;
  background: var(--off-white);
  color: var(--text-dark);
  overflow-x: hidden;
}

/* ── NAVIGATION ── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 2rem;
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
.site-header.scrolled {
  background: rgba(26, 16, 40, 0.97);
  box-shadow: 0 2px 30px rgba(0,0,0,0.3);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.site-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.05em;
  line-height: 1.2;
}
.site-logo span {
  display: block;
  font-size: 0.7rem;
  font-family: 'Jost', sans-serif;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.2em;
  font-weight: 300;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  background: var(--purple-dark);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 50%, rgba(78,42,142,0.5) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(201,168,76,0.12) 0%, transparent 50%),
    linear-gradient(135deg, #1a0a30 0%, #26134a 50%, #1a0a30 100%);
}
.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: repeating-linear-gradient(
    45deg,
    var(--gold) 0px, var(--gold) 1px,
    transparent 1px, transparent 60px
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}
.hero-text { padding-top: 80px; }
.hero-eyebrow {
  font-family: 'Jost', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 40px; height: 1px;
  background: var(--gold);
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 0.3rem;
}
.hero-title em { color: var(--gold); font-style: italic; }
.hero-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 2rem;
  font-weight: 300;
  letter-spacing: 0.05em;
}
.hero-desc {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.8;
  max-width: 480px;
  margin-bottom: 2.5rem;
  font-weight: 300;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--gold);
  color: var(--purple-dark);
  text-decoration: none;
  padding: 0.9rem 2rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: all 0.3s;
}
.hero-cta:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201,168,76,0.4);
}
.hero-cta svg { transition: transform 0.3s; }
.hero-cta:hover svg { transform: translateX(4px); }
.hero-cta-ghost {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(201,168,76,0.5);
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  padding: 0.9rem 1.8rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  transition: all 0.3s;
}
.hero-cta-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201,168,76,0.08);
}

/* Hero image frame - right side */
.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 80px;
  min-height: 500px;
}
.hero-image-frame {
  position: relative;
  width: 340px;
  height: 460px;
  overflow: visible;
  flex-shrink: 0;
}
.hero-image-frame::before {
  content: '';
  position: absolute;
  top: -12px; right: -12px;
  width: 100%; height: 100%;
  border: 2px solid var(--gold);
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}
.hero-image-frame::after {
  content: '';
  position: absolute;
  bottom: -12px; left: -12px;
  width: 55%; height: 55%;
  border: 2px solid var(--gold);
  opacity: 0.25;
  z-index: 0;
  pointer-events: none;
}

/* Photo slideshow inside frame */
.hero-img-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  z-index: 1;
}
.hero-img-slide.active { opacity: 1; }
.hero-img-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.hero-image-badge {
  position: absolute;
  bottom: -10px;
  left: -25px;
  z-index: 3;
  background: var(--gold);
  color: var(--purple-dark);
  padding: 1rem 1.5rem;
  font-family: 'Playfair Display', serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.4;
}
.hero-image-badge strong { display: block; font-size: 1.4rem; }

/* ── SECTION COMMONS ── */
.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 30px; height: 1px;
  background: var(--gold);
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: var(--purple-dark);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.section-title.light { color: var(--white); }

/* ── ABOUT ── */
.about {
  background: var(--white);
  padding: 6rem 2rem;
}
.about-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: center;
}
.about-image {
  position: relative;
}
.about-image img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.about-image-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 200px;
  height: 200px;
  background: var(--gold-pale);
  z-index: -1;
}
.about-text .section-title { margin-bottom: 1.5rem; }
.about-text p {
  color: var(--text-mid);
  line-height: 1.9;
  font-size: 0.97rem;
  margin-bottom: 1.2rem;
  font-weight: 300;
}
.about-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(59,31,110,0.1);
}
.stat-item { text-align: center; }
.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--purple);
  font-weight: 700;
  display: block;
}
.stat-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
}

/* ── SERMONS ── */
.sermons {
  background: var(--purple-dark);
  padding: 6rem 2rem;
  position: relative;
  overflow: hidden;
}
.sermons::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.sermons-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.sermons-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 3rem;
}
.view-all-link {
  color: var(--gold);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s;
}
.view-all-link:hover { gap: 1rem; }

.sermons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.sermon-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,168,76,0.15);
  transition: all 0.3s;
  text-decoration: none;
  color: inherit;
  display: block;
  overflow: hidden;
}
.sermon-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(201,168,76,0.4);
  transform: translateY(-4px);
}
.sermon-thumb {
  position: relative;
  padding-bottom: 56.25%;
  overflow: hidden;
}
.sermon-thumb img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.sermon-card:hover .sermon-thumb img { transform: scale(1.05); }
.sermon-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59,31,110,0.5);
  opacity: 0;
  transition: opacity 0.3s;
}
.sermon-card:hover .sermon-play { opacity: 1; }
.sermon-play-btn {
  width: 52px; height: 52px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sermon-info { padding: 1.25rem; }
.sermon-date {
  font-size: 0.72rem;
  color: var(--gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.sermon-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--white);
  line-height: 1.4;
}

/* Sermon loading state */
.sermons-loading {
  text-align: center;
  color: rgba(255,255,255,0.4);
  padding: 3rem;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
}

/* ── BOOKS ── */
.books {
  background: var(--off-white);
  padding: 7rem 2rem;
}
.books-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.books-header { margin-bottom: 3rem; }
.books-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  max-width: 800px;
}
.book-card {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: var(--white);
  padding: 2.5rem;
  border-left: 4px solid var(--gold);
  box-shadow: 0 4px 30px rgba(59,31,110,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}
.book-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(59,31,110,0.15);
}
.book-cover {
  width: 90px;
  flex-shrink: 0;
  height: 120px;
  background: linear-gradient(135deg, var(--purple), var(--purple-mid));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
}
.book-cover svg { opacity: 0.6; }
.book-info {}
.book-number {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.book-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--purple-dark);
  line-height: 1.4;
  margin-bottom: 0.75rem;
}
.book-author {
  font-size: 0.8rem;
  color: var(--text-light);
  letter-spacing: 0.05em;
}

/* ── CONTACT ── */
.contact {
  padding: 6rem 2rem;
  position: relative;
  background:
    linear-gradient(rgba(14,4,26,0.82), rgba(14,4,26,0.88)),
    url('assets/bishop-contact.jpg') center center / cover no-repeat fixed;
}
.contact::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.contact-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.contact-text .section-title.light { margin-bottom: 1.5rem; }
.contact-text p {
  color: rgba(255,255,255,0.6);
  line-height: 1.8;
  font-size: 0.95rem;
  font-weight: 300;
  margin-bottom: 2.5rem;
}
.contact-items { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-item { display: flex; align-items: flex-start; gap: 1rem; }
.contact-icon {
  width: 44px; height: 44px;
  border: 1px solid rgba(201,168,76,0.3);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
}
.contact-item-text {}
.contact-item-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.2rem;
}
.contact-item-value {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  margin-bottom: 0.1rem;
}
.contact-item-sub {
  color: rgba(255,255,255,0.4);
  font-size: 0.8rem;
  margin-top: 0.1rem;
}

.contact-socials { margin-top: 2.5rem; }
.contact-socials-label {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1rem;
}
.social-links { display: flex; gap: 0.75rem; }
.social-link {
  width: 44px; height: 44px;
  border: 1px solid rgba(201,168,76,0.3);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: all 0.3s;
}
.social-link:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201,168,76,0.1);
}

/* contact form side */
.contact-form-side {}
.contact-form-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 1.5rem;
}
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.contact-form input,
.contact-form textarea {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(201,168,76,0.2);
  color: var(--white);
  padding: 0.9rem 1.2rem;
  font-family: 'Jost', sans-serif;
  font-size: 0.9rem;
  width: 100%;
  transition: border-color 0.3s;
  outline: none;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.05em;
  font-size: 0.85rem;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--gold); }
.contact-form textarea { min-height: 130px; resize: vertical; }
.contact-submit {
  background: var(--gold);
  color: var(--purple-dark);
  border: none;
  padding: 1rem 2rem;
  font-family: 'Jost', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
  align-self: flex-start;
}
.contact-submit:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}

/* ── FOOTER ── */
.site-footer {
  background: #0e081a;
  padding: 2rem;
  text-align: center;
  border-top: 1px solid rgba(201,168,76,0.15);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.05em;
}
.footer-logo {
  font-family: 'Playfair Display', serif;
  color: var(--gold);
  font-size: 1rem;
  text-decoration: none;
}
.footer-nav { display: flex; gap: 1.5rem; }
.footer-nav a {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  text-decoration: none;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.3s;
}
.footer-nav a:hover { color: var(--gold); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero-content, .about-inner, .contact-inner {
    grid-template-columns: 1fr;
  }
  .hero-image { display: none; }
  .sermons-grid { grid-template-columns: 1fr 1fr; }
  .books-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 1rem; }
  .nav-links { display: none; }
  .sermons-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
}
@media (max-width: 600px) {
  .sermons-grid { grid-template-columns: 1fr; }
  .about-stats { flex-wrap: wrap; }
}

/* ── Hide Smash Balloon channel header ── */
.yt-feed-header, .ytfeed_header, .sby_header,
.sby_profile, .sby_follow_btn, .ctf-header,
[class*="yt-"][class*="header"],
[class*="ytf"][class*="header"] {
  display: none !important;
}
