/* ============================================
   Calvary Chapel Augusta — v2 (CCPhilly Style)
   Dark, immersive, warm, sleek
   ============================================ */

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

:root {
  --bg-dark: #0e1117;
  --bg-section: #141820;
  --bg-card: #1a1f2b;
  --bg-card-hover: #1f2536;
  --bg-warm: #1c1714;
  --bg-warm-light: #231e19;

  --accent: #d4a84b;
  --accent-light: #e8c778;
  --accent-glow: rgba(212, 168, 75, 0.12);
  --accent-pale: #f0dca0;

  --white: #ffffff;
  --text-primary: #f0ece4;
  --text-secondary: #a8a199;
  --text-muted: #6d665e;
  --border: rgba(255, 255, 255, 0.06);
  --border-accent: rgba(212, 168, 75, 0.2);

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Lato', 'Helvetica Neue', sans-serif;

  --header-height: 72px;
  --max-width: 1100px;
}

/* === RESET === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--text-secondary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 28px; }

/* === TYPOGRAPHY === */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-primary);
  line-height: 1.15;
  font-weight: 600;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }

/* === HEADER === */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: transparent;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.site-header.scrolled {
  background: rgba(14, 17, 23, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo { display: flex; align-items: center; gap: 12px; }
.logo img { height: 40px; width: auto; }
.logo-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.01em;
}
.logo-text span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 1px;
}

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 400;
  color: rgba(255,255,255,0.7);
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.25s ease;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); background: rgba(255,255,255,0.06); }
.nav-links a.btn-give {
  background: var(--accent);
  color: var(--bg-dark);
  font-weight: 700;
  padding: 8px 24px;
  margin-left: 8px;
  border-radius: 6px;
}
.nav-links a.btn-give:hover { background: var(--accent-light); }

.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-toggle span {
  display: block; width: 22px; height: 1.5px;
  background: var(--white); margin: 5px 0;
  transition: all 0.3s ease; border-radius: 2px;
}
.menu-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(4px, 5px); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(4px, -5px); }

/* === HERO — Full screen, immersive === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg-dark);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 70%, rgba(212, 168, 75, 0.06) 0%, transparent 55%),
    radial-gradient(ellipse at 70% 30%, rgba(212, 168, 75, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(28, 23, 20, 0.8) 0%, var(--bg-dark) 80%);
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 120px 28px 80px;
  max-width: 780px;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  padding: 8px 20px;
  border-radius: 40px;
  margin-bottom: 28px;
}

.hero h1 {
  color: var(--white);
  font-weight: 700;
  margin-bottom: 24px;
}

.hero-scripture {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  font-style: italic;
  font-weight: 400;
  margin-bottom: 12px;
  line-height: 1.6;
}

.hero-ref {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 44px;
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--bg-dark);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 14px 32px;
  border-radius: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(212, 168, 75, 0.2);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 14px 32px;
  border-radius: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}

/* Scroll indicator */
.scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: gentleBounce 2.5s ease-in-out infinite;
}
.scroll-hint-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}

@keyframes gentleBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* === SECTIONS === */
.section { padding: 96px 0; }
.section-warm { background: var(--bg-warm); }
.section-card { background: var(--bg-section); }

.section-label {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header h2 { margin-bottom: 16px; }
.section-header p { max-width: 540px; margin: 0 auto; font-size: 1.05rem; }

/* === SERVICE TIMES === */
.times-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 660px;
  margin: 0 auto;
}
.time-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 28px;
  text-align: center;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.time-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.time-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.time-card:hover::before { opacity: 1; }

.time-card .day-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.time-card .time-big {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.time-card h3 { margin-bottom: 8px; font-size: 1.1rem; }
.time-card p { font-size: 0.88rem; color: var(--text-muted); }

/* === ICON GRID (CCPhilly style) === */
.icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}
.icon-item {
  text-align: center;
  padding: 20px;
}
.icon-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: all 0.35s ease;
}
.icon-circle svg {
  width: 28px;
  height: 28px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.5;
}
.icon-item:hover .icon-circle {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.08);
}
.icon-item:hover .icon-circle svg { stroke: var(--bg-dark); }
.icon-item h3 { margin-bottom: 8px; font-size: 1.15rem; }
.icon-item p { font-size: 0.9rem; line-height: 1.6; }
.icon-item a {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.icon-item a:hover { border-color: var(--accent); }

/* === SCRIPTURE DIVIDER === */
.scripture-divider {
  padding: 72px 28px;
  text-align: center;
  background: var(--bg-warm);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.scripture-divider blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  color: var(--text-primary);
  font-style: italic;
  font-weight: 400;
  max-width: 680px;
  margin: 0 auto 14px;
  line-height: 1.5;
}
.scripture-divider cite {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-style: normal;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
}

/* === ABOUT / PASTOR === */
.about-split {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 56px;
  align-items: center;
}
.about-photo {
  aspect-ratio: 3/4;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.about-text h2 { margin-bottom: 20px; }
.about-text p { margin-bottom: 14px; font-size: 1rem; line-height: 1.8; }
.about-signature {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--text-primary);
  margin-top: 20px;
}

/* === BELIEFS === */
.beliefs-list { max-width: 800px; margin: 0 auto; }
.belief-item {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  align-items: baseline;
}
.belief-item:first-child { border-top: 1px solid var(--border); }
.belief-item h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--accent);
  font-weight: 600;
}
.belief-item p { font-size: 0.95rem; line-height: 1.7; }
.belief-item .ref {
  display: block;
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
}

/* === TEACHINGS === */
.teaching-entry {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 12px;
  transition: all 0.3s ease;
  cursor: pointer;
}
.teaching-entry:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  transform: translateX(4px);
}
.play-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}
.teaching-entry:hover .play-icon {
  background: var(--accent);
  border-color: var(--accent);
}
.play-icon svg { width: 18px; height: 18px; fill: var(--accent); }
.teaching-entry:hover .play-icon svg { fill: var(--bg-dark); }
.teaching-info { flex: 1; }
.teaching-info .series-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}
.teaching-info h3 { font-size: 1.05rem; margin-bottom: 4px; }
.teaching-info .meta { font-size: 0.82rem; color: var(--text-muted); }
.teaching-info .meta span { margin: 0 6px; opacity: 0.3; }

/* === GIVE === */
.give-center { text-align: center; max-width: 580px; margin: 0 auto; }
.give-center p { font-size: 1.05rem; margin-bottom: 20px; }
.give-methods-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.give-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px 24px;
  text-align: center;
  transition: all 0.3s ease;
}
.give-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}
.give-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.give-card-icon svg { width: 22px; height: 22px; stroke: var(--accent); fill: none; stroke-width: 1.5; }
.give-card h3 { font-size: 1rem; margin-bottom: 6px; }
.give-card p { font-size: 0.85rem; color: var(--text-muted); }

/* === CONTACT === */
.contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
.contact-items { display: flex; flex-direction: column; gap: 24px; }
.c-item { display: flex; gap: 16px; align-items: flex-start; }
.c-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.c-icon svg { width: 18px; height: 18px; stroke: var(--accent); fill: none; stroke-width: 1.5; }
.c-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 3px;
}
.c-value { font-size: 0.95rem; color: var(--text-primary); font-weight: 400; }
.c-value a { color: var(--accent); border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.c-value a:hover { border-color: var(--accent); }

.contact-form form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.form-group input, .form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text-primary);
  transition: border-color 0.25s ease;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-group textarea { min-height: 110px; resize: vertical; }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-muted); }

.btn-submit {
  align-self: flex-start;
  background: var(--accent);
  color: var(--bg-dark);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 14px 36px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.3s ease;
}
.btn-submit:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(212, 168, 75, 0.2);
}

/* === MAP === */
.map-wrap {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 21/9;
  margin-top: 56px;
}
.map-wrap iframe { width: 100%; height: 100%; border: none; filter: grayscale(0.6) brightness(0.8); }

/* === FOOTER === */
.site-footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
  padding: 56px 0 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .logo-text { color: var(--white); font-size: 1rem; margin-bottom: 10px; }
.footer-brand .logo-text span { color: var(--accent); }
.footer-brand p { font-size: 0.85rem; line-height: 1.6; color: var(--text-muted); }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 3px 0;
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* === PAGE HEADER (inner pages) === */
.page-hero {
  padding: 160px 28px 80px;
  text-align: center;
  background: var(--bg-dark);
  position: relative;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-accent), transparent);
}
.page-hero h1 { margin-bottom: 10px; }
.page-hero p { color: var(--text-muted); font-size: 1.05rem; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0; right: 0;
    background: rgba(14, 17, 23, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; width: 100%; }
  .nav-links a.btn-give { margin-left: 0; text-align: center; }
  .menu-toggle { display: block; }

  .hero { min-height: 90vh; }
  .section { padding: 64px 0; }
  .about-split, .contact-split { grid-template-columns: 1fr; }
  .about-split { gap: 32px; }
  .belief-item { grid-template-columns: 1fr; gap: 8px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .form-row { grid-template-columns: 1fr; }
  .times-row { grid-template-columns: 1fr; }
  .give-methods-row { grid-template-columns: 1fr; }
  .scroll-hint { display: none; }
}

/* === ANIMATIONS === */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-anim { animation: heroFadeIn 0.9s cubic-bezier(0.4, 0, 0.2, 1) forwards; opacity: 0; }
.hero-anim.ha1 { animation-delay: 0.1s; }
.hero-anim.ha2 { animation-delay: 0.25s; }
.hero-anim.ha3 { animation-delay: 0.4s; }
.hero-anim.ha4 { animation-delay: 0.55s; }
.hero-anim.ha5 { animation-delay: 0.7s; }
