/* ============================================================
   STYLES.CSS — Calvary Tabernacle Demo
   Theme: Light on the Hill
   Fonts: Playfair Display (headings) / Inter (body)
   ============================================================ */

/* ============================
   CSS VARIABLES
   ============================ */

:root {
  --navy:      #102A43;
  --deep-blue: #0B1F33;
  --sky:       #EAF6FF;
  --cream:     #FFF8EC;
  --white:     #FFFFFF;
  --gold:      #D9A441;
  --gold-soft: #F3D58A;
  --sage:      #9FB8A3;
  --text:      #243447;
  --muted:     #6B7C8F;
  --border:    #E5ECF3;
  --shadow:    0 24px 70px rgba(16, 42, 67, 0.14);
}

/* ============================
   RESET & BASE
   ============================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

/* ============================
   HEADER
   ============================ */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  padding: 22px 0;
  transition: padding 0.35s ease, background 0.35s ease, box-shadow 0.35s ease, color 0.35s ease;
  color: var(--white);
}

.site-header.scrolled {
  padding: 13px 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(16, 42, 67, 0.1);
  color: var(--navy);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.logo span {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-weight: 700;
  color: var(--gold-soft);
  margin-top: 1px;
}

.site-header.scrolled .logo span {
  color: var(--gold);
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 0.94rem;
  font-weight: 600;
}

.nav a {
  transition: color 0.2s ease;
}

.nav a:not(.nav-btn):hover {
  color: var(--gold-soft);
}

.site-header.scrolled .nav a:not(.nav-btn):hover {
  color: var(--gold);
}

.nav-btn {
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--deep-blue) !important;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(217, 164, 65, 0.38);
}

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: inherit;
  gap: 5px;
  position: relative;
  z-index: 1002;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 24px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================
   HERO
   ============================ */

.hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 140px 0 90px;
  color: var(--white);
  background: var(--deep-blue); /* fallback while image loads */
}

/* Panoramic background image — slow left-to-right drift */
.hero-bg-pan {
  position: absolute;
  inset: 0;
  background:
    url('https://images.unsplash.com/photo-1507692049790-de58290a4334?auto=format&fit=crop&w=2400&q=80')
    center / cover no-repeat;
  animation: heroPan 32s ease-in-out infinite alternate;
  will-change: transform;
  z-index: 0;
}

@keyframes heroPan {
  from { transform: scale(1.1) translateX(-4%); }
  to   { transform: scale(1.1) translateX(4%);  }
}

/* Gradient overlay — sits above the bg pan */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    115deg,
    rgba(11, 31, 51, 0.92) 0%,
    rgba(16, 42, 67, 0.70) 50%,
    rgba(217, 164, 65, 0.20) 100%
  );
  pointer-events: none;
}

/* Light-ray texture + radial highlight — above gradient */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    repeating-linear-gradient(
      108deg,
      transparent,
      transparent 200px,
      rgba(255, 255, 255, 0.016) 200px,
      rgba(255, 255, 255, 0.016) 240px
    ),
    radial-gradient(
      ellipse 55% 55% at 15% 15%,
      rgba(255, 255, 255, 0.18),
      transparent
    );
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 52px;
  align-items: center;
}

/* Eyebrow labels */
.eyebrow {
  color: var(--gold-soft);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.76rem;
  font-weight: 800;
  margin-bottom: 18px;
  display: block;
}

.eyebrow.dark {
  color: var(--gold);
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 7vw, 6.8rem);
  line-height: 0.93;
  letter-spacing: -0.07em;
  max-width: 720px;
  margin-bottom: 28px;
}

.hero-text {
  font-size: 1.15rem;
  max-width: 600px;
  color: rgba(255, 255, 255, 0.87);
  margin-bottom: 36px;
  line-height: 1.7;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.95rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  cursor: pointer;
}

.btn.primary {
  background: var(--gold);
  color: var(--deep-blue);
  box-shadow: 0 14px 36px rgba(217, 164, 65, 0.36);
}

.btn.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 48px rgba(217, 164, 65, 0.48);
}

.btn.secondary {
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: var(--white);
}

.btn.secondary:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.08);
}

/* Hero info card */
.hero-card {
  background: rgba(255, 255, 255, 0.93);
  color: var(--navy);
  border-radius: 32px;
  padding: 38px;
  box-shadow: 0 40px 80px rgba(11, 31, 51, 0.32);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.card-label {
  display: block;
  color: var(--gold);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  margin-bottom: 10px;
}

.hero-card h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.85rem;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--navy);
  margin-bottom: 26px;
}

.service-line {
  padding: 15px 0;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.service-line strong {
  font-size: 0.93rem;
  color: var(--text);
  font-weight: 700;
}

.service-line span {
  background: var(--sky);
  color: var(--navy);
  font-weight: 800;
  font-size: 0.84rem;
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.small-link {
  display: inline-block;
  margin-top: 22px;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--gold);
  transition: letter-spacing 0.25s ease;
}

.small-link:hover {
  letter-spacing: 0.04em;
}

/* Animated glow orbs */
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.26;
  animation: floatGlow 9s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 2;
}

.glow-one {
  width: 420px;
  height: 420px;
  background: var(--gold-soft);
  top: 12%;
  right: 8%;
}

.glow-two {
  width: 320px;
  height: 320px;
  background: var(--sky);
  bottom: 10%;
  left: 4%;
  animation-delay: 2.5s;
}

@keyframes floatGlow {
  from { transform: translateY(0)    scale(1);   }
  to   { transform: translateY(-32px) scale(1.1); }
}

/* ============================
   REVEAL ANIMATION
   ============================ */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

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

/* ============================
   SHARED SECTION STYLES
   ============================ */

.section {
  padding: 104px 0;
}

.section-heading {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 68px;
}

.section-heading h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.05em;
  color: var(--navy);
  margin-bottom: 16px;
}

.section-heading p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.card-grid {
  display: grid;
  gap: 28px;
}

.card-grid.three {
  grid-template-columns: repeat(3, 1fr);
}

/* ============================
   WELCOME SECTION
   ============================ */

.welcome {
  background: var(--sky);
}

.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 68px;
  align-items: center;
}

.section-copy h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.05em;
  color: var(--navy);
  margin-bottom: 22px;
}

.section-copy p {
  color: var(--muted);
  margin-bottom: 18px;
  font-size: 1.04rem;
  line-height: 1.78;
}

.section-copy p:last-child {
  margin-bottom: 0;
}

/* Decorative image panel (CSS-only) */
.image-panel {
  position: relative;
  height: 460px;
  border-radius: 32px;
  overflow: hidden;
  background: linear-gradient(
    148deg,
    var(--deep-blue) 0%,
    var(--navy)      45%,
    rgba(217, 164, 65, 0.55) 100%
  );
  display: flex;
  align-items: flex-end;
  padding: 32px;
}

/* Warm light beam effect */
.image-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 85% at 75% -5%, rgba(243, 213, 138, 0.42), transparent 60%),
    radial-gradient(ellipse 50% 60% at 20% 110%, rgba(159, 184, 163, 0.22), transparent 60%);
  pointer-events: none;
}

/* Subtle cross silhouette */
.image-panel::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -62%);
  width: 36px;
  height: 90px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  box-shadow:
    -52px 28px 0 0 rgba(255, 255, 255, 0.1),
     52px 28px 0 0 rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

.image-overlay-card {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 20px;
  padding: 22px 28px;
  width: 100%;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.image-overlay-card strong {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 6px;
  letter-spacing: -0.03em;
}

.image-overlay-card span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ============================
   SERVICE TIMES SECTION
   ============================ */

.services {
  background: var(--cream);
}

.info-card {
  background: var(--white);
  border-radius: 26px;
  padding: 38px 30px;
  box-shadow: 0 8px 36px rgba(16, 42, 67, 0.07);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 56px rgba(16, 42, 67, 0.13);
}

.info-card .icon {
  font-size: 2.4rem;
  display: block;
  margin-bottom: 4px;
}

.info-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.45rem;
  color: var(--navy);
  letter-spacing: -0.03em;
}

.info-card p {
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.68;
  flex: 1;
}

.info-card strong {
  color: var(--gold);
  font-size: 1.18rem;
  font-weight: 900;
  display: block;
  margin-top: 8px;
}

/* ============================
   MISSION SECTION
   ============================ */

.mission {
  background: var(--white);
}

.feature-card {
  background: var(--sky);
  border-radius: 28px;
  padding: 48px 38px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 54px rgba(16, 42, 67, 0.1);
}

/* Gold accent orb */
.feature-card::before {
  content: '';
  position: absolute;
  top: -36px;
  right: -36px;
  width: 130px;
  height: 130px;
  background: var(--gold-soft);
  border-radius: 50%;
  opacity: 0.38;
}

.feature-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 2.1rem;
  letter-spacing: -0.05em;
  margin-bottom: 16px;
  color: var(--navy);
  position: relative;
}

.feature-card p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.72;
  position: relative;
}

/* ============================
   MINISTRIES SECTION
   ============================ */

.ministries {
  background: var(--cream);
}

.ministry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.ministry-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 22px;
  padding: 38px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  cursor: default;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.ministry-card:hover {
  border-color: var(--gold);
  background: var(--sky);
  transform: translateY(-5px);
  box-shadow: 0 18px 42px rgba(217, 164, 65, 0.18);
}

.ministry-icon {
  font-size: 2.2rem;
  display: block;
}

.ministry-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  letter-spacing: -0.02em;
}

/* ============================
   EVENTS SECTION
   ============================ */

.events {
  background: var(--white);
}

.event-card {
  border-radius: 28px;
  padding: 38px 34px;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: 0 8px 36px rgba(16, 42, 67, 0.07);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 60px rgba(16, 42, 67, 0.13);
}

.event-date {
  display: inline-block;
  background: var(--gold-soft);
  color: var(--deep-blue);
  font-weight: 900;
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: 999px;
  width: fit-content;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.event-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--navy);
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.event-card p {
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.68;
}

/* ============================
   SCRIPTURE / CTA SECTION
   ============================ */

.scripture-cta {
  padding: 128px 0;
  background:
    linear-gradient(
      138deg,
      var(--deep-blue) 0%,
      var(--navy)      58%,
      rgba(217, 164, 65, 0.22) 100%
    );
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.scripture-cta::before {
  content: '';
  position: absolute;
  top: -90px;
  right: -70px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(243, 213, 138, 0.13), transparent 68%);
  pointer-events: none;
}

.scripture-cta::after {
  content: '';
  position: absolute;
  bottom: -70px;
  left: -50px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(159, 184, 163, 0.1), transparent 68%);
  pointer-events: none;
}

.scripture-cta .container {
  position: relative;
  z-index: 1;
  max-width: 860px;
}

.scripture {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(1.55rem, 3.6vw, 2.85rem);
  line-height: 1.38;
  letter-spacing: -0.03em;
  color: var(--gold-soft);
  margin-bottom: 14px;
}

.verse-ref {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 800;
  margin-bottom: 52px;
}

.scripture-cta h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  letter-spacing: -0.05em;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 16px;
}

.cta-sub {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 44px;
}

/* ============================
   FOOTER
   ============================ */

.footer {
  background: var(--deep-blue);
  color: rgba(255, 255, 255, 0.7);
  padding: 76px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.9fr 1fr 1fr 1fr;
  gap: 52px;
  padding-bottom: 64px;
}

.footer h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem;
  color: var(--white);
  margin-bottom: 14px;
  letter-spacing: -0.04em;
}

.footer h4 {
  color: var(--gold-soft);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-weight: 800;
  margin-bottom: 16px;
}

.footer p {
  font-size: 0.93rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.6);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 18px;
}

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

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 22px 0;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom-inner p {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.35);
}

.designed-by a {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
  transition: color 0.2s ease;
}

.designed-by a:hover {
  color: var(--gold-soft);
}

/* ============================
   RESPONSIVE — TABLET
   ============================ */

@media (max-width: 940px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    display: none;
  }

  .two-column {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .image-panel {
    height: 300px;
    order: -1;
  }

  .card-grid.three {
    grid-template-columns: repeat(2, 1fr);
  }

  .ministry-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

/* ============================
   RESPONSIVE — MOBILE
   ============================ */

@media (max-width: 640px) {
  .section {
    padding: 76px 0;
  }

  .section-heading {
    margin-bottom: 48px;
  }

  /* Mobile nav full-screen overlay */
  .nav {
    position: fixed;
    inset: 0;
    background: var(--deep-blue);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 38px;
    font-size: 1.2rem;
    color: var(--white);
    z-index: 1001;
    display: none;
  }

  .nav.open {
    display: flex;
  }

  .nav a:not(.nav-btn):hover {
    color: var(--gold-soft);
  }

  .nav-btn {
    padding: 14px 36px;
    font-size: 1rem;
  }

  .menu-toggle {
    display: flex;
    color: var(--white);
  }

  .site-header.scrolled .menu-toggle {
    color: var(--navy);
  }

  /* Keep toggle white when menu is open */
  .menu-toggle.active {
    color: var(--white) !important;
  }

  .hero {
    padding: 110px 0 70px;
  }

  .hero h1 {
    letter-spacing: -0.04em;
  }

  .hero-text {
    font-size: 1rem;
  }

  .card-grid.three {
    grid-template-columns: 1fr;
  }

  .ministry-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }

  .scripture {
    font-size: 1.4rem;
  }

  .scripture-cta h2 {
    font-size: 2rem;
  }

  .scripture-cta {
    padding: 88px 0;
  }
}
