/*
Theme Name: RCCG Kingdom Breeds
Theme URI: https://rccgkingdombreedsmoosejaw.org
Author: RCCG Kingdom Breeds
Author URI: https://rccgkingdombreedsmoosejaw.org
Description: A beautiful church theme with a 5-image rotating hero carousel, custom post types for services and events, and an easy-to-use customizer for all content.
Version: 2.0.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rccg-kingdom-breeds
Tags: church, religion, one-column, custom-header, custom-menu, featured-images, full-width-template, theme-options
*/

/* ================================
   DESIGN TOKENS
================================ */
/** --gold:       #C9A84C; --cream:      #FAF7F0;**/
:root {
  --navy:       #06112A;
  --navy-mid:   #0D1F45;
  --navy-light: #162954;
  --gold:       #21cd4c;
  --gold-light: #E8C97A;
  --gold-pale:  #F5E9C8;
  --cream:      #f2f4f7;
  --white:      #FFFFFF;
  --text-dark:  #1A1A2E;
  --text-mid:   #4A4A6A;
  --text-light: #8888AA;
  --border:     rgba(201,168,76,0.2);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Jost', system-ui, sans-serif;

  --radius-sm:  6px;
  --radius-md:  14px;
  --radius-lg:  28px;
  --shadow-card: 0 8px 40px rgba(6,17,42,0.10);
  --shadow-lift: 0 20px 60px rgba(6,17,42,0.18);

  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ================================
   RESET & BASE
================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text-dark);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a { text-decoration: none; color: inherit; }

/* ================================
   TYPOGRAPHY SCALE
================================ */
.display-xl {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.display-lg {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 600;
  line-height: 1.15;
}

.label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* ================================
   HEADER
================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 5%;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  background: rgba(6, 17, 42, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(201,168,76,0.15), 0 4px 30px rgba(0,0,0,0.3);
}

.logo-box {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-box img {
  height: 46px;
  width: 46px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid #fff;
  box-shadow: 0 0 20px rgba(201,168,76,0.3);
}

.logo-text .site-title {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.logo-text .site-description {
  color: var(--gold-light);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.85;
}

/* Nav */
.main-navigation ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.main-navigation a,
.main-navigation ul li a {
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
  display: block;
}

.main-navigation a:hover,
.main-navigation ul li a:hover {
  color: var(--gold-light);
  background: rgba(201,168,76,0.08);
}

/* Fallback nav (no menu set) */
.rccg-fallback-nav a {
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
  display: inline-block;
}

.rccg-fallback-nav a:hover {
  color: var(--gold-light);
  background: rgba(201,168,76,0.08);
}

/* ================================
   HERO
================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 650px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-carousel {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.8s ease;
  will-change: opacity;
}

.hero-slide.active { opacity: 1; }

/* Multi-layer overlay for depth */
.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(6,17,42,0.80) 0%,
    rgba(13,31,69,0.65) 40%,
    rgba(6,17,42,0.88) 100%
  );
}

/* Subtle gold-tinted vignette at bottom */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 220px;
  background: linear-gradient(to top, rgba(6,17,42,0.9), transparent);
  z-index: 1;
  pointer-events: none;
}

/* Decorative cross watermark */
.hero-watermark {
  position: absolute;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  opacity: 0.04;
  pointer-events: none;
}

.hero-watermark svg {
  width: 380px;
  height: 380px;
  fill: var(--white);
}

/* Content */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 820px;
  padding: 0 24px;
  animation: heroReveal 1.4s ease both;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  color: var(--gold-light);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 600;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  display: block;
  width: 36px;
  height: 1px;
  background: var(--gold);
  opacity: 0.7;
}

.hero-content h2 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6.5vw, 5.2rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
  text-shadow: 0 4px 40px rgba(0,0,0,0.4);
}

.hero-content p {
  font-size: clamp(1rem, 2vw, 1.18rem);
  color: rgba(255,255,255,0.78);
  font-weight: 300;
  letter-spacing: 0.01em;
  line-height: 1.65;
  margin-bottom: 40px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ================================
   BUTTONS
================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-lg);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--navy);
  box-shadow: 0 4px 20px rgba(201,168,76,0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(201,168,76,0.5);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.45);
  color: var(--white);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
}

/* Carousel Dots */
.carousel-dots {
  position: absolute;
  bottom: 38px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: all 0.4s;
  border: 1px solid transparent;
}

.dot.active {
  background: var(--gold);
  width: 28px;
  border-radius: 4px;
  box-shadow: 0 0 8px rgba(201,168,76,0.5);
}

/* ================================
   SCROLL CUE
================================ */
.scroll-cue {
  position: absolute;
  bottom: 42px;
  right: 6%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.45);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: bobble 2.4s ease-in-out infinite;
}

.scroll-cue-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, rgba(201,168,76,0.6), transparent);
}

/* ================================
   SECTION COMMON
================================ */
.section-wrap {
  padding: 110px 5% 90px;
}

.section-wrap2 {
  padding: 25px 15% 25px;
}
.section-label {
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-label::after {
  content: '';
  display: block;
  height: 1px;
  width: 44px;
  background: var(--gold);
  opacity: 0.5;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-mid);
  line-height: 1.7;
  max-width: 600px;
}

/* Animate on scroll */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ================================
   ABOUT SECTION
================================ */
#about.section-wrap {
  background: var(--cream);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
  max-width: 1160px;
  margin: 0 auto;
}

.about-visual {
  position: relative;
}

.about-img-frame {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--navy-mid);
  position: relative;
}

.about-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

/* Gold accent stripe */
.about-img-frame::before {
  content: '';
  position: absolute;
  top: 20px;
  left: -18px;
  width: 6px;
  height: 70%;
  background: linear-gradient(to bottom, var(--gold), transparent);
  border-radius: 3px;
  z-index: 1;
}

.about-badge {
  position: absolute;
  bottom: -24px;
  right: -24px;
  background: var(--navy);
  border: 2px solid var(--gold);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  text-align: center;
  box-shadow: var(--shadow-lift);
}

.about-badge .badge-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
}

.about-badge .badge-label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-top: 4px;
}

.about-copy .body-text {
  font-size: 1.05rem;
  color: var(--text-mid);
  line-height: 1.8;
  margin-top: 24px;
  margin-bottom: 36px;
}

.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.value-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: rgba(201,168,76,0.06);
  border: 1px solid var(--border);
}

.value-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.value-item p {
  font-size: 0.82rem;
  color: var(--text-mid);
  line-height: 1.4;
}

.value-item strong {
  display: block;
  color: var(--navy);
  font-weight: 600;
  margin-bottom: 2px;
  font-size: 0.88rem;
}

/* ================================
   SERVICES SECTION
================================ */
#services.section-wrap {
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

#services.section-wrap::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,0.07) 0%, transparent 70%);
  pointer-events: none;
}

#services .section-label { color: var(--gold-light); }
#services .section-title { color: var(--white); }

.services-intro {
  max-width: 1160px;
  margin: 0 auto 60px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
}

.services-intro .section-subtitle {
  color: rgba(255,255,255,0.6);
}

.services-grid {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.service-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,168,76,0.18);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.service-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(201,168,76,0.4);
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.service-card:hover::before {
  opacity: 1;
}

.service-day {
  display: inline-block;
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.service-card h3 {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.service-card .time {
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 22px;
}

/* ================================
   EVENTS SECTION
================================ */
#events.section-wrap {
  background: var(--cream);
}

.events-inner {
  max-width: 1160px;
  margin: 0 auto;
}

.events-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 50px;
  flex-wrap: wrap;
  gap: 20px;
}

.events-list {
  display: grid;
  gap: 18px;
}

.event-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  gap: 28px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(6,17,42,0.06);
  transition: var(--transition);
}

.event-card:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-lift);
  border-color: var(--border);
}

.event-date-block {
  min-width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
  flex-shrink: 0;
}

.event-date-block .month {
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.event-date-block .day {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1;
}

.event-body { flex: 1; }

.event-body h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 4px;
}

.event-body p {
  font-size: 0.85rem;
  color: var(--text-mid);
}

.event-arrow {
  color: var(--gold);
  opacity: 0.5;
  font-size: 1.2rem;
  transition: opacity 0.2s, transform 0.2s;
}

.event-card:hover .event-arrow {
  opacity: 1;
  transform: translateX(4px);
}

/* ================================
   VERSE / QUOTE BAND
================================ */
.verse-band {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  padding: 70px 5%;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.verse-band::before {
  content: '\201C';
  position: absolute;
  top: -30px;
  left: 5%;
  font-family: var(--font-display);
  font-size: 18rem;
  color: rgba(6,17,42,0.07);
  line-height: 1;
  pointer-events: none;
}

.verse-band blockquote {
  max-width: 780px;
  margin: 0 auto;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.45;
  font-style: italic;
  position: relative;
  z-index: 1;
}

.verse-band cite {
  display: block;
  margin-top: 18px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy-mid);
  opacity: 0.7;
  font-style: normal;
}

/* ================================
   CONTACT SECTION
================================ */
#contact.section-wrap {
  background: var(--navy);
  position: relative;
}

#contact .section-label { color: var(--gold-light); }
#contact .section-title { color: var(--white); }

.contact-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}

.contact-info-list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.contact-item-text .label-sm {
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 3px;
}

.contact-item-text p,
.contact-item-text a {
  color: rgba(255,255,255,0.82);
  font-size: 0.95rem;
  line-height: 1.5;
  transition: color 0.2s;
}

.contact-item-text a:hover { color: var(--gold-light); }

.contact-map-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(201,168,76,0.2);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.contact-map-wrap iframe {
  width: 100%;
  height: 420px;
  border: none;
  display: block;
  filter: grayscale(0.2) contrast(1.05);
}

/* ================================
   FOOTER
================================ */
.site-footer {
  background: #040D1E;
  padding: 50px 5% 30px;
  color: rgba(255,255,255,0.55);
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 24px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo .site-title {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: rgba(255,255,255,0.45);
  font-size: 0.82rem;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--gold-light); }

.footer-bottom {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p,
.footer-bottom a {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
}

.footer-bottom a:hover { color: var(--gold); }

/* ================================
   ANIMATIONS
================================ */
@keyframes heroReveal {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes bobble {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ================================
   MOBILE RESPONSIVE
================================ */
@media (max-width: 960px) {
  .about-inner {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .about-visual { max-width: 420px; margin: 0 auto; }
  .about-badge { right: 0; }

  .contact-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 0 6%;
    height: 68px;
  }

  .main-navigation { display: none; }
  .rccg-fallback-nav { display: none; }

  .hero-content h2 { font-size: 2.4rem; }

  .section-wrap { padding: 80px 6% 70px; }

  .about-values { grid-template-columns: 1fr; }

  .services-intro {
    flex-direction: column;
    align-items: flex-start;
  }

  .event-card { flex-wrap: wrap; gap: 16px; }

  .footer-inner { flex-direction: column; align-items: flex-start; }

  .hero-watermark { display: none; }

  .scroll-cue { display: none; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 260px; justify-content: center; }
}
