/* Buchanan Church of Christ — Redesigned Stylesheet */

/* ── GOOGLE FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

/* ── VARIABLES ── */
:root {
  --navy:       #1a3a5c;
  --navy-dark:  #0f2236;
  --gold:       #b8902a;
  --gold-light: #d4a93e;
  --light-gold: #f5e6c8;
  --white:      #ffffff;
  --off-white:  #f8f7f4;
  --text:       #2c2c2c;
  --text-light: #555;
  --border:     #ddd;
  --shadow:     0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg:  0 8px 36px rgba(0,0,0,0.15);
  --max-width:  960px;
  --ease:       0.25s ease;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', Georgia, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
  background:
    radial-gradient(ellipse 120% 60% at 50% 0%, rgba(26,58,92,0.05), transparent 70%),
    var(--off-white);
}

/* ── STICKY NAV ── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  transition: background var(--ease), box-shadow var(--ease);
}

/* Nav always solid on all pages */
.site-nav {
  background: var(--navy-dark);
  box-shadow: 0 2px 16px rgba(0,0,0,0.35);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
}

.nav-logo {
  color: var(--white);
  text-decoration: none;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 15px 0;
  flex-shrink: 0;
  white-space: nowrap;
  transition: color var(--ease);
}

.nav-logo:hover { color: var(--light-gold); }

.nav-links {
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  margin-left: auto;
  gap: 2px;
}

.nav-links a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  padding: 0 10px;
  height: 52px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.25;
  transition: color var(--ease);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 7px;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--gold-light);
  transform: scaleX(0);
  transition: transform var(--ease);
}

.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-links a.active {
  color: var(--gold-light);
}
.nav-links a.active::after { transform: scaleX(1); }

/* Hamburger button */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px 4px;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease);
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1024px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--navy-dark);
    padding: 8px 0 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
    gap: 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 24px; font-size: 0.88rem; letter-spacing: 0.05em; }
  .nav-links a::after { display: none; }
}

/* ── HERO (home page only) ── */
.hero-full {
  position: relative;
  max-width: var(--max-width);
  margin: 56px auto 0;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: var(--shadow-lg);
}

.hero-img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(8, 20, 38, 0.70) 0%,
    rgba(8, 20, 38, 0.05) 28%,
    rgba(8, 20, 38, 0.05) 72%,
    rgba(8, 20, 38, 0.75) 100%
  );
}

.hero-title {
  position: absolute;
  top: 20px;
  left: 0; right: 0;
  z-index: 1;
  text-align: center;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.4rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
  animation: fadeUp 1s ease both;
}

.hero-tagline {
  position: absolute;
  bottom: 20px;
  left: 0; right: 0;
  z-index: 1;
  text-align: center;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(0.8rem, 1.8vw, 1rem);
  color: var(--light-gold);
  font-style: italic;
  text-shadow: 0 2px 8px rgba(0,0,0,0.7);
  animation: fadeUp 1s 0.2s ease both;
}

/* ── PAGE HEADER (inner pages) ── */
.page-header {
  background: linear-gradient(160deg, var(--navy-dark) 0%, #16324e 60%, var(--navy) 100%);
  color: var(--white);
  padding: 96px 20px 40px;
  text-align: center;
  border-bottom: 3px solid var(--gold);
}

.page-header h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.page-header h1::after {
  content: '';
  display: block;
  width: 52px;
  height: 2px;
  background: var(--gold-light);
  margin: 14px auto 0;
}

.page-header .tagline {
  font-size: 0.9rem;
  color: var(--light-gold);
  margin-top: 6px;
  font-style: italic;
}

/* ── MAIN CONTENT ── */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 52px 20px 72px;
}

/* ── WELCOME BLOCK (home page) ── */
.welcome {
  background: var(--white);
  border-left: 4px solid var(--gold);
  padding: 36px 40px;
  border-radius: 0 4px 4px 0;
  margin-bottom: 36px;
  box-shadow: var(--shadow);
}

.welcome .kicker {
  display: block;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.welcome h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.55rem;
  color: var(--navy);
  margin-bottom: 14px;
}

.welcome p {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.85;
}

/* ── TWO-COL GRID ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}

@media (max-width: 640px) {
  .two-col { grid-template-columns: 1fr; }
}

/* ── CARDS ── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: 4px;
  padding: 28px;
  box-shadow: var(--shadow);
  transition: box-shadow var(--ease), transform var(--ease);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.card h3 {
  position: relative;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  color: var(--navy);
  padding-bottom: 10px;
  margin-bottom: 16px;
}

.card h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 38px;
  height: 2px;
  background: var(--gold);
}

.card p, .card li {
  font-size: 0.95rem;
  color: var(--text-light);
}

.card ul { list-style: none; padding: 0; }

.card ul li {
  padding: 5px 0;
  border-bottom: 1px solid #f0f0f0;
}

.card ul li:last-child { border-bottom: none; }

.card .time {
  font-weight: 600;
  color: var(--navy);
}

/* ── PAGE TITLE ── */
h2.page-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.6rem;
  color: var(--navy);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 10px;
  margin-bottom: 32px;
  font-weight: 700;
}

/* ── SECTION HEADINGS ── */
h3.section-heading {
  font-size: 0.75rem;
  font-family: 'Inter', Arial, sans-serif;
  font-weight: 700;
  color: var(--white);
  background: linear-gradient(90deg, var(--navy) 0%, #2a5580 100%);
  border-left: 4px solid var(--gold);
  border-radius: 0 3px 3px 0;
  padding: 10px 16px;
  margin: 36px 0 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ── LINK LISTS ── */
.link-list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.link-list li {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  font-size: 0.95rem;
}

.link-list li:last-child { border-bottom: none; }

.link-list a {
  color: var(--navy);
  text-decoration: none;
  transition: color var(--ease);
}

.link-list a:hover {
  color: var(--gold);
  text-decoration: underline;
}

/* ── AUDIO ENTRIES ── */
.audio-entry {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid transparent;
  border-radius: 4px;
  padding: 16px 18px;
  margin-bottom: 12px;
  transition: box-shadow var(--ease), transform var(--ease), border-color var(--ease);
}

.audio-entry:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  border-left-color: var(--gold);
}

.audio-entry .sermon-title {
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.audio-entry .sermon-meta {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 8px;
}

.audio-entry audio {
  width: 100%;
  height: 36px;
}

/* ── EXTERNAL LINKS ── */
.ext-link-list {
  list-style: none;
  padding: 0;
}

.ext-link-list li {
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.ext-link-list li:last-child { border-bottom: none; margin-bottom: 0; }

.ext-link-list a {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  font-family: 'Inter', Arial, sans-serif;
  transition: color var(--ease);
}

.ext-link-list a:hover { color: var(--gold); }

.ext-link-list .desc {
  font-size: 0.88rem;
  color: var(--text-light);
  margin-top: 3px;
}

/* ── ADDRESS BLOCK ── */
.address-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: 4px;
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: box-shadow var(--ease), transform var(--ease);
}

.address-block:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.address-block h3 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--navy);
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.address-block p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.9;
}

/* ── MAP EMBED ── */
.map-container {
  margin: 0 0 28px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.map-container iframe {
  display: block;
  width: 100%;
  height: 340px;
  border: none;
}

/* ── VIDEO BUTTONS ── */
.video-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0 4px;
}

.video-btn {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 3px;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: background var(--ease), transform var(--ease), box-shadow var(--ease);
}

.video-btn:hover {
  background: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}

/* ── MEDIA TILES (home page) ── */
.media-tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 18px 0 4px;
}

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

.media-tile {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  text-decoration: none;
  padding: 18px 20px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}

.media-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(15,34,54,0.35);
  border-color: var(--gold-light);
}

.media-tile .tile-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(212,169,62,0.16);
  color: var(--gold-light);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background var(--ease);
}

.media-tile:hover .tile-icon { background: rgba(212,169,62,0.3); }

.media-tile .tile-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.media-tile .tile-title {
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.35;
}

.media-tile .tile-sub {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.65);
  margin-top: 2px;
}

/* ── VERSE BAND ── */
.verse-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  text-align: center;
  padding: 52px 20px;
  border-top: 3px solid var(--gold);
}

.verse-band blockquote {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  color: var(--light-gold);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

.verse-band + footer { border-top: 1px solid rgba(255,255,255,0.1); }

.verse-band cite {
  display: block;
  margin-top: 12px;
  font-family: 'Inter', Arial, sans-serif;
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

/* ── FOOTER ── */
footer {
  background: var(--navy-dark);
  color: #8899aa;
  text-align: center;
  padding: 34px 20px;
  font-size: 0.85rem;
  font-family: 'Inter', Arial, sans-serif;
  border-top: 3px solid var(--gold);
}

footer p:first-child {
  font-family: 'Playfair Display', Georgia, serif;
  color: #b9c5d1;
  font-size: 0.95rem;
}

footer a {
  color: var(--light-gold);
  text-decoration: none;
  transition: color var(--ease);
}

footer a:hover { color: var(--white); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Scroll-reveal: elements start invisible, JS adds .visible */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }
