/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, sans-serif; color: var(--off-white); line-height: 1.7; background: var(--black); }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

/* ===== VARIABLES ===== */
:root {
  --black: #0D0D0D;
  --charcoal: #1A1A1A;
  --dark-gray: #2A2A2A;
  --gold: #C9A84C;
  --gold-light: #E0C068;
  --gold-dark: #A68B3E;
  --white: #FFFFFF;
  --off-white: #E8E4DC;
  --muted: #888888;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', -apple-system, sans-serif;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.2; color: var(--white); }
h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.8rem); }
p { font-family: var(--sans); font-size: 1rem; line-height: 1.75; color: var(--off-white); }

/* ===== NAVIGATION ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(13, 13, 13, 0.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.2);
  transition: all 0.3s;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
}
.nav-logo img { height: 44px; width: auto; }
.nav-logo-text {
  font-family: var(--serif); font-size: 1.1rem; font-weight: 600;
  color: var(--white); letter-spacing: 1px;
  text-transform: uppercase;
}
.nav-logo-text span { color: var(--gold); }
.nav-links { display: none; }
.nav-links.open {
  display: flex; flex-direction: column; position: absolute;
  top: 100%; left: 0; right: 0; background: var(--charcoal);
  padding: 20px 24px; gap: 16px;
  border-bottom: 2px solid var(--gold);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.nav-links a {
  font-family: var(--sans); font-size: 0.9rem; font-weight: 500;
  color: #ccc; letter-spacing: 0.5px; text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold); }
.nav-toggle {
  background: none; border: none; cursor: pointer; padding: 8px;
  display: flex; flex-direction: column; gap: 5px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: var(--white);
  transition: all 0.3s;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 120px 24px 80px;
  background: linear-gradient(to bottom, rgba(13,13,13,0.7), rgba(13,13,13,0.5)),
    url('../images/st-peters-light-rays.jpg') center center / cover no-repeat;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, rgba(13,13,13,0.3) 0%, rgba(13,13,13,0.5) 60%, rgba(13,13,13,0.85) 100%);
  pointer-events: none;
}
.hero-content { max-width: 700px; position: relative; z-index: 1; }
.hero-logo {
  width: 180px; height: auto; margin: 0 auto 24px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}
.hero h1 { color: var(--white); margin-bottom: 16px; font-weight: 700; text-shadow: 0 2px 12px rgba(0,0,0,0.4); font-size: clamp(2.6rem, 7vw, 4.4rem); }
.hero-tagline {
  font-family: var(--serif); font-size: clamp(1.3rem, 3vw, 1.7rem);
  color: #ddd; font-style: italic; margin-bottom: 32px;
  line-height: 1.5;
}
.hero-pillars {
  display: flex; justify-content: center; gap: 24px; flex-wrap: wrap;
  margin-bottom: 40px;
}
.hero-pillar {
  font-family: var(--serif); font-size: 1.2rem; color: var(--gold);
  letter-spacing: 1px; text-transform: uppercase; font-weight: 600;
  position: relative; padding: 0 4px;
}
.hero-pillar::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 1px; background: var(--gold);
}
.hero-schedule {
  font-family: var(--serif); font-size: 1.3rem; color: #ccc;
  font-style: italic; margin-bottom: 36px; line-height: 1.6;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block; padding: 14px 36px;
  font-family: var(--sans); font-size: 0.9rem; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
  border-radius: 4px; transition: all 0.3s; cursor: pointer;
}
.btn-primary {
  background: var(--gold); color: var(--black);
  border: 2px solid var(--gold);
}
.btn-primary:hover { background: var(--gold-dark); border-color: var(--gold-dark); transform: translateY(-1px); }
.btn-outline {
  background: transparent; color: var(--gold);
  border: 2px solid var(--gold);
}
.btn-outline:hover { background: var(--gold); color: var(--black); }

/* ===== SECTIONS ===== */
.section { padding: 80px 24px; }
.section-inner { max-width: 1000px; margin: 0 auto; }
.section-label {
  font-family: var(--sans); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 3px; text-transform: uppercase; color: var(--gold);
  margin-bottom: 12px;
}
.section-title { margin-bottom: 20px; }
.section-subtitle {
  font-family: var(--serif); font-size: 1.15rem; color: var(--muted);
  font-style: italic; margin-bottom: 40px; max-width: 600px;
}
.bg-warm { background: var(--dark-gray); }

/* ===== ABOUT ===== */
.about-grid { display: grid; gap: 40px; }
.about-image {
  width: 100%; height: 300px; border-radius: 8px; overflow: hidden;
  border: 1px solid rgba(201,168,76,0.3);
}
.about-text p { margin-bottom: 16px; }
.about-quote {
  font-family: var(--serif); font-style: italic; color: var(--gold-light);
  font-size: 1.05rem; font-weight: 600;
}

/* ===== PILLARS ===== */
.pillars-grid {
  display: grid; grid-template-columns: 1fr; gap: 24px;
}
.pillar-card {
  background: var(--charcoal); border-radius: 8px; padding: 32px 28px;
  border: 1px solid rgba(201,168,76,0.2);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex; flex-direction: column;
}
.pillar-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(201,168,76,0.08); }
.pillar-icon {
  font-size: 2rem; margin-bottom: 16px; display: block;
  color: var(--gold);
}
.pillar-card h3 { color: var(--gold); margin-bottom: 10px; font-weight: 600; }
.pillar-card p { font-size: 0.95rem; flex-grow: 1; }

/* ===== QUOTE BANNER ===== */
.quote-banner {
  padding: 60px 24px; text-align: center;
  background: var(--charcoal);
}
.quote-banner blockquote {
  font-family: var(--serif); font-size: clamp(1.3rem, 3vw, 2rem);
  color: var(--off-white); font-style: italic; max-width: 800px;
  margin: 0 auto 16px; line-height: 1.5;
}
.quote-banner cite {
  font-family: var(--sans); font-size: 0.85rem; color: var(--gold-light);
  letter-spacing: 1px; text-transform: uppercase; font-style: normal;
}

/* ===== BLOG ===== */
.blog-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }

/* ===== EVENTS ===== */
.events-list { display: flex; flex-direction: column; gap: 20px; }
.event-card {
  display: flex; gap: 20px; background: var(--charcoal);
  border-radius: 8px; padding: 24px;
  border: 1px solid rgba(201,168,76,0.15);
  align-items: flex-start;
}
.event-date-box {
  min-width: 70px; text-align: center;
  background: var(--gold); border-radius: 6px; padding: 12px 8px;
  flex-shrink: 0;
}
.event-date-box .month {
  font-family: var(--sans); font-size: 0.7rem; font-weight: 600;
  color: var(--black); text-transform: uppercase; letter-spacing: 1px;
}
.event-date-box .day {
  font-family: var(--serif); font-size: 1.8rem; font-weight: 700;
  color: var(--black); line-height: 1;
}
/* Pillar-colored date boxes */
.event-date-box.worship { background: var(--gold); }
.event-date-box.worship .month,
.event-date-box.worship .day { color: var(--black); }
.event-date-box.fellowship { background: #8B7535; }
.event-date-box.fellowship .month,
.event-date-box.fellowship .day { color: var(--white); }
.event-date-box.service { background: var(--gold-light); }
.event-date-box.service .month,
.event-date-box.service .day { color: var(--black); }
.event-date-box.formation { background: var(--dark-gray); border: 1px solid var(--gold-dark); }
.event-date-box.formation .month { color: var(--gold); }
.event-date-box.formation .day { color: var(--gold); }
.event-info h3 { font-size: 1.2rem; margin-bottom: 4px; }
.event-info p { font-size: 0.9rem; margin-bottom: 2px; }
.event-info .event-loc { color: var(--muted); font-size: 0.85rem; }

/* ===== RESOURCES ===== */
.resources-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.resource-card {
  background: var(--charcoal); border-radius: 8px; padding: 28px;
  border-left: 4px solid var(--gold);
  border-top: 1px solid rgba(201,168,76,0.15);
  border-right: 1px solid rgba(201,168,76,0.15);
  border-bottom: 1px solid rgba(201,168,76,0.15);
}
.resource-card h3 { font-size: 1.2rem; color: var(--gold); margin-bottom: 8px; }
.resource-card p { font-size: 0.9rem; margin-bottom: 12px; }
.resource-link {
  font-size: 0.85rem; font-weight: 600; color: var(--gold-dark);
  text-transform: uppercase; letter-spacing: 1px;
}
.resource-link:hover { color: var(--gold-light); }

/* ===== CONTACT ===== */
.contact-section {
  background: var(--dark-gray);
  padding: 80px 24px;
}
.contact-section .section-inner { max-width: 1000px; margin: 0 auto; }
.contact-grid { display: grid; gap: 32px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--gold); display: flex;
  align-items: center; justify-content: center;
  font-size: 1.2rem; color: var(--black); flex-shrink: 0;
}
.contact-item h3 { font-size: 1.1rem; margin-bottom: 4px; }
.contact-item p { font-size: 0.9rem; }

/* ===== FOOTER ===== */
.footer {
  background: var(--charcoal); padding: 48px 24px 32px;
  text-align: center;
}
.footer img.footer-logo-img {
  width: 120px; height: auto; margin: 0 auto 12px;
  filter: brightness(1.2);
}
.footer-logo {
  font-family: var(--serif); font-size: 1.6rem; font-weight: 600;
  color: var(--gold); margin-bottom: 8px;
}
.footer-tagline {
  font-family: var(--serif); font-size: 1rem; color: var(--muted);
  font-style: italic; margin-bottom: 24px;
}
.footer-links { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.footer-links a {
  font-size: 0.8rem; color: #ccc; text-transform: uppercase;
  letter-spacing: 1px; font-weight: 500;
}
.footer-links a:hover { color: var(--gold); }
.footer-verse {
  font-family: var(--serif); font-style: italic; font-size: 0.95rem;
  color: var(--gold-light); margin-bottom: 20px; max-width: 500px;
  margin-left: auto; margin-right: auto;
}
.footer-copy { font-size: 0.75rem; color: #858585; }

/* ===== DESKTOP ===== */
@media (min-width: 768px) {
  .nav-links {
    display: flex !important; flex-direction: row; gap: 28px;
    position: static; background: none; padding: 0;
    border: none; box-shadow: none;
  }
  .nav-toggle { display: none; }
  .about-grid { grid-template-columns: 1fr 1fr; align-items: center; }
  .pillars-grid { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: 1fr 1fr 1fr; }
  .resources-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 100px 40px; }
  .contact-section { padding: 100px 40px; }
}
@media (min-width: 1024px) {
  .pillars-grid { grid-template-columns: 1fr 1fr 1fr 1fr; }
}
