/* ============================================================
   ZION EVANGELICAL LUTHERAN CHURCH — Design System
   Premium Church Website CSS
   ============================================================ */

/* --- CSS Reset / Normalize --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul, ol {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  line-height: 1.25;
  color: var(--primary);
}

/* --- CSS Custom Properties --- */
:root {
  --primary: #1a3a5c;
  --primary-light: #2a5a8c;
  --primary-dark: #0f2440;
  --accent: #c8a84b;
  --accent-light: #dfc574;
  --accent-dark: #a68a30;
  --bg: #f9f6f1;
  --bg-alt: #f0ebe3;
  --white: #ffffff;
  --text: #2c2c2c;
  --text-light: #6b6b6b;
  --text-muted: #999999;
  --footer-bg: #111827;
  --footer-text: #d1d5db;
  --border: #e0dbd3;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.15);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Open Sans', Arial, sans-serif;
  --header-height: 85px;
  --max-width: 1280px;
}

/* --- Utility --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section-padding {
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 650px;
  margin: 0 auto;
}

.btn-primary {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  background: var(--accent);
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 50px;
  letter-spacing: 0.5px;
  transition: all var(--transition);
  border: 2px solid var(--accent);
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(200, 168, 75, 0.35);
}

.btn-secondary {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  background: transparent;
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 50px;
  letter-spacing: 0.5px;
  transition: all var(--transition);
  border: 2px solid var(--white);
  cursor: pointer;
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 255, 255, 0.2);
}

/* ============================================================
   HEADER
   ============================================================ */
#main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  transition: all var(--transition);
  padding: 0.5rem 0;
}

#main-header.scrolled {
  background: rgba(26, 58, 92, 0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 30px rgba(0, 0, 0, 0.15);
  padding: 0;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.brand a {
  display: flex;
  align-items: center;
}

.logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 6px;
  transition: transform var(--transition);
}

.brand:hover .logo {
  transform: scale(1.05);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.church-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.5px;
  line-height: 1.2;
  white-space: nowrap;
}

.church-location {
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 1px;
  text-transform: uppercase;
}

#main-nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.nav-links li a {
  display: inline-block;
  padding: 0.5rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  transition: all var(--transition);
  position: relative;
  letter-spacing: 0.3px;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
  border-radius: 2px;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: var(--white);
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
  width: 70%;
}

.nav-links li a.nav-cta {
  background: var(--accent);
  color: var(--primary-dark);
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-weight: 600;
  margin-left: 0.5rem;
}

.nav-links li a.nav-cta::after {
  display: none;
}

.nav-links li a.nav-cta:hover {
  background: var(--accent-dark);
  color: var(--white);
  transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  z-index: 1010;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background: var(--primary-dark);
  z-index: 999;
  transition: right 0.4s ease;
  padding: 6rem 2rem 2rem;
  overflow-y: auto;
}

.mobile-nav.open {
  right: 0;
}

.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.mobile-nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav ul li a {
  display: block;
  padding: 0.85rem 1rem;
  color: var(--white);
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: background 0.3s ease;
}

.mobile-nav ul li a:hover,
.mobile-nav ul li a.active {
  background: rgba(200, 168, 75, 0.15);
  color: var(--accent);
}

.mobile-nav ul li a.nav-cta {
  background: var(--accent);
  color: var(--primary-dark);
  text-align: center;
  font-weight: 600;
  margin-top: 1rem;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 36, 64, 0.75) 0%,
    rgba(26, 58, 92, 0.65) 50%,
    rgba(15, 36, 64, 0.85) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 2rem;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.25rem;
  letter-spacing: 1px;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

.hero-content h1 .accent-text {
  color: var(--accent);
}

.hero-content p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Page Hero (smaller, for inner pages) */
.page-hero {
  position: relative;
  min-height: 45vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.page-hero .hero-content h1 {
  font-size: 3rem;
}

.page-hero .hero-content p {
  font-size: 1.1rem;
}

/* ============================================================
   WELCOME / INTRO SECTION
   ============================================================ */
.welcome-section {
  background: var(--white);
}

.welcome-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.welcome-text h2 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}

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

.welcome-text .pastor-name {
  font-family: var(--font-heading);
  font-style: italic;
  color: var(--accent-dark);
  font-size: 1.1rem;
}

.welcome-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}

.welcome-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.welcome-image:hover img {
  transform: scale(1.03);
}

.welcome-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--accent);
}

/* ============================================================
   SERVICE TIMES CARD
   ============================================================ */
.service-times-section {
  background: var(--bg-alt);
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  border-top: 4px solid var(--accent);
}

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

.service-card .service-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  color: var(--primary);
}

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

.service-card .time {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-dark);
  font-family: var(--font-heading);
  margin-top: 0.5rem;
}

/* ============================================================
   CARD GRID (General)
   ============================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

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

.card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card-body {
  padding: 1.75rem;
}

.card-body h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--primary);
}

.card-body p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

.card-body .card-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--accent-dark);
  font-weight: 600;
  font-size: 0.9rem;
  transition: color var(--transition);
}

.card-body .card-link:hover {
  color: var(--primary);
}

.card-body .card-link::after {
  content: ' →';
}

/* Ministry Cards */
.ministry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
}

.ministry-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  border-left: 4px solid var(--accent);
  position: relative;
}

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

.ministry-card .ministry-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: inline-block;
}

.ministry-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  color: var(--primary);
}

.ministry-card p {
  color: var(--text-light);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ============================================================
   STATS / COUNTER SECTION
   ============================================================ */
.stats-section {
  background: var(--primary);
  color: var(--white);
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.stat-item {
  padding: 2rem;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.5px;
}

/* ============================================================
   CTA STRIP
   ============================================================ */
.cta-strip {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  text-align: center;
  padding: 4rem 2rem;
}

.cta-strip h2 {
  font-size: 2rem;
  color: var(--primary-dark);
  margin-bottom: 1rem;
}

.cta-strip p {
  font-size: 1.1rem;
  color: var(--primary-dark);
  margin-bottom: 1.5rem;
  opacity: 0.85;
}

.cta-strip .btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.cta-strip .btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

/* ============================================================
   TIMELINE (About page)
   ============================================================ */
.timeline-section {
  background: var(--white);
  overflow: hidden;
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 100%;
  background: linear-gradient(to bottom, var(--accent), var(--primary));
  border-radius: 2px;
}

.timeline-item {
  display: flex;
  justify-content: flex-end;
  padding: 0 1.5rem 3rem;
  width: 50%;
  position: relative;
}

.timeline-item:nth-child(even) {
  justify-content: flex-start;
  margin-left: 50%;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  background: var(--accent);
  border: 3px solid var(--white);
  border-radius: 50%;
  top: 0;
  right: -8px;
  box-shadow: 0 0 0 4px rgba(200, 168, 75, 0.2);
}

.timeline-item:nth-child(even)::after {
  left: -8px;
  right: auto;
}

.timeline-card {
  background: var(--bg);
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  max-width: 380px;
  transition: all var(--transition);
}

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

.timeline-year {
  display: inline-block;
  background: var(--accent);
  color: var(--primary-dark);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  font-family: var(--font-heading);
}

.timeline-card h3 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.timeline-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ============================================================
   MISSION & VISION
   ============================================================ */
.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.mission-card {
  background: var(--white);
  padding: 3rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: all var(--transition);
  border-bottom: 4px solid var(--accent);
}

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

.mission-card .mission-icon {
  font-size: 3rem;
  margin-bottom: 1.25rem;
}

.mission-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.mission-card p {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.8;
  font-style: italic;
}

/* ============================================================
   BELIEFS
   ============================================================ */
.beliefs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.belief-card {
  background: var(--primary);
  color: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  text-align: center;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.belief-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(200, 168, 75, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--transition);
}

.belief-card:hover {
  transform: translateY(-3px);
}

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

.belief-card .belief-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.belief-card h3 {
  font-size: 1.15rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.belief-card p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* ============================================================
   LEADERSHIP
   ============================================================ */
.leader-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3rem;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  align-items: center;
}

.leader-card img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.leader-info {
  padding: 2rem 2rem 2rem 0;
}

.leader-info h3 {
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.leader-info .leader-title {
  color: var(--accent-dark);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

.leader-info p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ============================================================
   WORSHIP PAGE — Schedule, Sacraments
   ============================================================ */
.schedule-table {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  border-collapse: collapse;
}

.schedule-table tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease;
}

.schedule-table tr:hover {
  background: var(--bg-alt);
}

.schedule-table td {
  padding: 1.25rem 1rem;
  font-size: 1rem;
}

.schedule-table td:first-child {
  font-weight: 600;
  color: var(--primary);
  width: 55%;
}

.schedule-table td:last-child {
  color: var(--accent-dark);
  font-weight: 700;
  font-family: var(--font-heading);
  font-size: 1.1rem;
}

.schedule-table .schedule-icon {
  margin-right: 0.5rem;
}

/* Sacraments grid */
.sacraments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}

.sacrament-card {
  background: var(--white);
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

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

.sacrament-card .sacrament-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.sacrament-card h3 {
  font-size: 1.05rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.sacrament-card p {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* Steps list */
.steps-list {
  max-width: 700px;
  margin: 0 auto;
  counter-reset: step-counter;
}

.step-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  align-items: flex-start;
}

.step-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
}

.step-content h3 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 0.4rem;
}

.step-content p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ============================================================
   EVENTS PAGE
   ============================================================ */
.event-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  display: flex;
}

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

.event-date-badge {
  background: var(--primary);
  color: var(--white);
  min-width: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  text-align: center;
}

.event-date-badge .event-month {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  font-weight: 600;
}

.event-date-badge .event-day {
  font-size: 2rem;
  font-weight: 700;
  font-family: var(--font-heading);
  line-height: 1;
  margin: 0.25rem 0;
}

.event-date-badge .event-year {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.6);
}

.event-details {
  padding: 1.5rem;
  flex: 1;
}

.event-details h3 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 0.4rem;
}

.event-details .event-time {
  color: var(--accent-dark);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.event-details p {
  color: var(--text-light);
  font-size: 0.9rem;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 1.5rem;
}

.recurring-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.recurring-table thead {
  background: var(--primary);
  color: var(--white);
}

.recurring-table th {
  padding: 1rem 1.25rem;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
}

.recurring-table td {
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--text);
}

.recurring-table tbody tr:hover {
  background: var(--bg-alt);
}

.recurring-table tbody tr:last-child td {
  border-bottom: none;
}

/* ============================================================
   SERMONS PAGE
   ============================================================ */
.featured-sermon {
  background: var(--white);
  border-radius: var(--radius);
  padding: 3rem;
  box-shadow: var(--shadow);
  border-left: 5px solid var(--accent);
  margin-bottom: 3rem;
}

.featured-sermon .sermon-label {
  display: inline-block;
  background: var(--accent);
  color: var(--primary-dark);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.featured-sermon h2 {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.featured-sermon .sermon-meta {
  color: var(--accent-dark);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.featured-sermon p {
  color: var(--text-light);
  font-size: 1.05rem;
  line-height: 1.8;
}

.sermon-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

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

.sermon-card h3 {
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.sermon-card .sermon-meta {
  color: var(--accent-dark);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.sermon-card p {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.7;
}

.sermon-card .sermon-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1.25rem;
  background: var(--bg-alt);
  color: var(--primary);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition);
}

.sermon-card .sermon-btn:hover {
  background: var(--primary);
  color: var(--white);
}

.sermons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.75rem;
}

/* Tag Cloud */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.tag {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: var(--white);
  color: var(--primary);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  border: 1px solid var(--border);
}

.tag:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

.contact-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

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

.contact-card .contact-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.contact-card h3 {
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

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

.contact-card a {
  color: var(--accent-dark);
  font-weight: 600;
  transition: color var(--transition);
}

.contact-card a:hover {
  color: var(--primary);
}

/* Contact Form */
.contact-form-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-form {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-form h3 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200, 168, 75, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.form-submit {
  margin-top: 0.5rem;
}

.form-submit .btn-primary {
  width: 100%;
  text-align: center;
  font-size: 1rem;
  padding: 1rem;
}

/* Map */
.map-container {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 100%;
  min-height: 450px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  min-height: 450px;
  border: none;
}

/* Office hours  */
.office-hours {
  background: var(--primary);
  color: var(--white);
  padding: 2rem 2.5rem;
  border-radius: var(--radius);
  margin-bottom: 2rem;
}

.office-hours h3 {
  color: var(--accent);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.office-hours p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
}

/* ============================================================
   OUTREACH PAGE
   ============================================================ */
.outreach-list {
  max-width: 850px;
  margin: 0 auto;
}

.outreach-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  padding: 2rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

.outreach-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.outreach-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.outreach-content h3 {
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.outreach-content p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ============================================================
   IMAGE GALLERY
   ============================================================ */
.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Photo with caption */
.photo-feature {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  max-width: 700px;
  margin: 2rem auto;
}

.photo-feature img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.photo-feature .caption {
  padding: 1.25rem 1.5rem;
  background: var(--white);
  font-size: 0.95rem;
  color: var(--text-light);
  font-style: italic;
  text-align: center;
}

/* ============================================================
   YOUTH SECTION
   ============================================================ */
.youth-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-top: 3rem;
}

.youth-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.youth-image img {
  width: 100%;
  height: 350px;
  object-fit: cover;
}

.youth-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.youth-content p {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

/* ============================================================
   ELCIC AFFILIATION
   ============================================================ */
.affiliation-section {
  background: var(--primary);
  color: var(--white);
  text-align: center;
}

.affiliation-section h2 {
  color: var(--accent);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.affiliation-section p {
  max-width: 700px;
  margin: 0 auto 1.5rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  line-height: 1.8;
}

.affiliation-section .btn-secondary {
  border-color: var(--accent);
  color: var(--accent);
}

.affiliation-section .btn-secondary:hover {
  background: var(--accent);
  color: var(--primary-dark);
}

/* ============================================================
   LIVESTREAM SECTION
   ============================================================ */
.livestream-section {
  background: var(--primary);
  color: var(--white);
  text-align: center;
}

.livestream-section h2 {
  color: var(--accent);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.livestream-section p {
  max-width: 650px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  line-height: 1.8;
}

/* ============================================================
   CRA NOTE
   ============================================================ */
.cra-section {
  text-align: center;
  padding: 2rem;
  background: var(--bg-alt);
}

.cra-section p {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ============================================================
   FOOTER
   ============================================================ */
#main-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding-top: 4rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
}

.footer-col h3 {
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.footer-col h4 {
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}

.footer-col p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--footer-text);
}

.footer-col a {
  color: var(--footer-text);
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-brand .footer-logo {
  width: 55px;
  height: 55px;
  object-fit: contain;
  margin-bottom: 1rem;
  border-radius: 6px;
}

.footer-brand .cra-reg {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: rgba(209, 213, 219, 0.6);
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links ul li a {
  font-size: 0.9rem;
  position: relative;
  padding-left: 0;
  transition: all var(--transition);
}

.footer-links ul li a:hover {
  padding-left: 5px;
  color: var(--accent);
}

.footer-services ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-services ul li {
  font-size: 0.9rem;
}

.footer-services .affiliation-text {
  margin-top: 1.5rem;
}

.footer-bottom {
  margin-top: 3rem;
  padding: 1.5rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: rgba(209, 213, 219, 0.6);
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger animations for grid children */
.animate-on-scroll.animated:nth-child(1) { transition-delay: 0s; }
.animate-on-scroll.animated:nth-child(2) { transition-delay: 0.1s; }
.animate-on-scroll.animated:nth-child(3) { transition-delay: 0.2s; }
.animate-on-scroll.animated:nth-child(4) { transition-delay: 0.3s; }
.animate-on-scroll.animated:nth-child(5) { transition-delay: 0.4s; }
.animate-on-scroll.animated:nth-child(6) { transition-delay: 0.5s; }
.animate-on-scroll.animated:nth-child(7) { transition-delay: 0.6s; }
.animate-on-scroll.animated:nth-child(8) { transition-delay: 0.7s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

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

  .leader-card img {
    height: 300px;
  }

  .leader-info {
    padding: 2rem;
  }

  .welcome-grid {
    gap: 2.5rem;
  }

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

  .events-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

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

  .hero-content p {
    font-size: 1rem;
  }

  .page-hero .hero-content h1 {
    font-size: 2.2rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .section-padding {
    padding: 4rem 0;
  }

  .welcome-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .service-cards {
    grid-template-columns: 1fr;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .ministry-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .mission-grid {
    grid-template-columns: 1fr;
  }

  .beliefs-grid {
    grid-template-columns: 1fr;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 50px;
    padding-right: 0;
  }

  .timeline-item:nth-child(even) {
    margin-left: 0;
    padding-left: 50px;
  }

  .timeline-item::after {
    left: 12px;
    right: auto;
  }

  .timeline-item:nth-child(even)::after {
    left: 12px;
  }

  .timeline-card {
    max-width: 100%;
  }

  .youth-section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

  .sermons-grid {
    grid-template-columns: 1fr;
  }

  .image-gallery {
    grid-template-columns: 1fr;
  }

  .event-card {
    flex-direction: column;
  }

  .event-date-badge {
    flex-direction: row;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.8rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .church-name {
    font-size: 0.85rem;
  }

  .church-location {
    font-size: 0.6rem;
  }

  .logo {
    width: 40px;
    height: 40px;
  }

  .container {
    padding: 0 1rem;
  }

  .sacraments-grid {
    grid-template-columns: 1fr;
  }

  .featured-sermon {
    padding: 1.5rem;
  }
}
