/* ============================================================
   Calvary Community Church — Design System & Styles
   ============================================================ */

/* --- Google Fonts --- */
@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=Inter:wght@300;400;500;600;700&display=swap');

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
  /* Color Palette */
  --color-primary: #2B4C7E;
  --color-primary-dark: #1A3356;
  --color-primary-light: #3D6BA8;
  --color-accent: #D4A574;
  --color-accent-dark: #B8895A;
  --color-accent-light: #E8D5B7;
  --color-accent-glow: rgba(212, 165, 116, 0.15);
  --color-warm-bg: #FAF6F1;
  --color-warm-bg-alt: #F5EDE3;
  --color-white: #FFFFFF;
  --color-text: #2D3748;
  --color-text-light: #718096;
  --color-text-muted: #A0AEC0;
  --color-border: #E2D8CC;
  --color-success: #48BB78;
  --color-error: #E53E3E;

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing Scale */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(45, 55, 72, 0.06), 0 1px 2px rgba(45, 55, 72, 0.04);
  --shadow-md: 0 4px 12px rgba(45, 55, 72, 0.08), 0 2px 4px rgba(45, 55, 72, 0.04);
  --shadow-lg: 0 10px 30px rgba(45, 55, 72, 0.10), 0 4px 8px rgba(45, 55, 72, 0.05);
  --shadow-xl: 0 20px 50px rgba(45, 55, 72, 0.12), 0 8px 16px rgba(45, 55, 72, 0.06);
  --shadow-warm: 0 4px 20px rgba(212, 165, 116, 0.15);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --max-width: 1200px;
  --nav-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-warm-bg);
  line-height: 1.7;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul, ol {
  list-style: none;
}

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

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-primary-dark);
  line-height: 1.2;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
}

h4 {
  font-size: 1.15rem;
  font-family: var(--font-body);
  font-weight: 600;
}

p {
  font-size: 1.05rem;
  color: var(--color-text);
  max-width: 70ch;
}

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

.text-light {
  color: var(--color-text-light);
}

.text-center {
  text-align: center;
}

/* --- Layout Utilities --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-4xl) 0;
}

.section--warm {
  background-color: var(--color-warm-bg-alt);
}

.section--primary {
  background-color: var(--color-primary-dark);
  color: var(--color-white);
}

.section--primary h2,
.section--primary h3,
.section--primary h4 {
  color: var(--color-white);
}

.section--primary p {
  color: rgba(255, 255, 255, 0.85);
}

.grid {
  display: grid;
  gap: var(--space-xl);
}

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

@media (max-width: 768px) {
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .grid--3,
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- Section Headers --- */
.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-header h2 {
  margin-bottom: var(--space-md);
}

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

.section-header .accent-line {
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
  border-radius: var(--radius-full);
  margin: var(--space-md) auto 0;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  transition: box-shadow var(--transition-base), background var(--transition-base);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.97);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.navbar__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  border-radius: var(--radius-md);
  color: white;
  font-size: 1.1rem;
}

.navbar__name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  line-height: 1.2;
}

.navbar__name small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--color-text-light);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.navbar__link {
  padding: var(--space-sm) var(--space-md);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-text);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  position: relative;
}

.navbar__link:hover {
  color: var(--color-primary);
  background: rgba(43, 76, 126, 0.06);
}

.navbar__link.active {
  color: var(--color-primary);
  background: rgba(43, 76, 126, 0.08);
}

.navbar__link.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--color-accent);
  border-radius: var(--radius-full);
}

.navbar__cta {
  margin-left: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-white);
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  box-shadow: 0 2px 8px rgba(43, 76, 126, 0.25);
}

.navbar__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(43, 76, 126, 0.35);
}

/* Hamburger */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.navbar__hamburger:hover {
  background: rgba(43, 76, 126, 0.06);
}

.navbar__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

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

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

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

@media (max-width: 768px) {
  .navbar__hamburger {
    display: flex;
  }

  .navbar__links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--color-white);
    padding: var(--space-lg);
    gap: var(--space-xs);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
    transform: translateY(-120%);
    opacity: 0;
    transition: all var(--transition-base);
    pointer-events: none;
  }

  .navbar__links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .navbar__link {
    width: 100%;
    padding: var(--space-md);
    font-size: 1rem;
  }

  .navbar__cta {
    width: 100%;
    text-align: center;
    margin-left: 0;
    margin-top: var(--space-sm);
    padding: var(--space-md);
  }
}

/* Main content offset for fixed navbar */
main {
  padding-top: var(--nav-height);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--color-primary-dark) 0%,
    var(--color-primary) 40%,
    #3a6298 100%
  );
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(212, 165, 116, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(61, 107, 168, 0.2) 0%, transparent 50%);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--color-warm-bg);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--space-3xl) var(--space-lg);
  max-width: 800px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-full);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  margin-bottom: var(--space-xl);
  backdrop-filter: blur(8px);
}

.hero__title {
  color: var(--color-white);
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-lg);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.hero__title em {
  font-style: normal;
  color: var(--color-accent);
}

.hero__subtitle {
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.7;
  margin-bottom: var(--space-2xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* --- Floating Decorations --- */
.hero__decor {
  position: absolute;
  border-radius: 50%;
  opacity: 0.07;
  background: white;
  animation: float 8s ease-in-out infinite;
}

.hero__decor--1 {
  width: 300px;
  height: 300px;
  top: -80px;
  right: -60px;
  animation-delay: 0s;
}

.hero__decor--2 {
  width: 200px;
  height: 200px;
  bottom: 80px;
  left: -40px;
  animation-delay: -3s;
}

.hero__decor--3 {
  width: 120px;
  height: 120px;
  top: 30%;
  right: 15%;
  animation-delay: -5s;
  opacity: 0.05;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.03); }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  color: var(--color-white);
  box-shadow: 0 4px 15px rgba(212, 165, 116, 0.35);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(212, 165, 116, 0.45);
}

.btn--outline {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255, 255, 255, 0.35);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

.btn--secondary {
  background: var(--color-white);
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.btn--secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--small {
  padding: 10px 22px;
  font-size: 0.9rem;
}

.btn__icon {
  font-size: 1.1em;
}

/* ============================================================
   SERVICE DASHBOARD (Home Page)
   ============================================================ */
.dashboard {
  margin-top: calc(-1 * var(--space-3xl));
  position: relative;
  z-index: 10;
  padding-bottom: var(--space-3xl);
}

.dashboard__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.dashboard__card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  text-align: center;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(226, 216, 204, 0.5);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.dashboard__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
  opacity: 0;
  transition: opacity var(--transition-base);
}

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

.dashboard__card:hover::before {
  opacity: 1;
}

.dashboard__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--color-accent-glow), rgba(212, 165, 116, 0.08));
  border-radius: var(--radius-md);
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
  color: var(--color-accent-dark);
}

.dashboard__label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent-dark);
  margin-bottom: var(--space-sm);
}

.dashboard__value {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: var(--space-xs);
}

.dashboard__detail {
  font-size: 0.92rem;
  color: var(--color-text-light);
}

@media (max-width: 768px) {
  .dashboard__grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .dashboard__card {
    padding: var(--space-xl);
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .dashboard__grid {
    grid-template-columns: 1fr 1fr;
  }

  .dashboard__card:last-child {
    grid-column: span 2;
    max-width: 50%;
    justify-self: center;
  }
}

/* ============================================================
   WELCOME SECTION
   ============================================================ */
.welcome {
  padding: var(--space-3xl) 0 var(--space-4xl);
}

.welcome__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.welcome__content h2 {
  margin-bottom: var(--space-lg);
}

.welcome__content p {
  margin-bottom: var(--space-md);
  color: var(--color-text);
  line-height: 1.8;
}

.welcome__content p:last-of-type {
  margin-bottom: var(--space-xl);
}

.welcome__features {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.welcome__feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.welcome__feature-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-glow);
  border-radius: var(--radius-md);
  font-size: 1.2rem;
  color: var(--color-accent-dark);
}

.welcome__feature h4 {
  color: var(--color-primary-dark);
  margin-bottom: 2px;
}

.welcome__feature p {
  font-size: 0.92rem;
  color: var(--color-text-light);
  margin-bottom: 0;
}

.welcome__visual {
  position: relative;
}

.welcome__image-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
}

.welcome__image-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--color-accent-light), var(--color-warm-bg-alt));
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-accent-dark);
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}

.welcome__image-placeholder span {
  font-size: 1rem;
  font-weight: 500;
  margin-top: var(--space-sm);
  color: var(--color-text-light);
}

.welcome__floating-badge {
  position: absolute;
  bottom: -16px;
  right: -16px;
  background: var(--color-primary);
  color: var(--color-white);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.welcome__floating-badge .number {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
}

.welcome__floating-badge .label {
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  .welcome__inner {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .welcome__visual {
    order: -1;
  }
}

/* ============================================================
   SCHEDULE RIBBON
   ============================================================ */
.schedule-ribbon {
  background: var(--color-primary-dark);
  padding: var(--space-2xl) 0;
  position: relative;
  overflow: hidden;
}

.schedule-ribbon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}

.schedule-ribbon__title {
  text-align: center;
  color: var(--color-white);
  font-size: 0.8rem;
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-lg);
  opacity: 0.7;
}

.schedule-ribbon__grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.schedule-ribbon__item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.schedule-ribbon__item:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.schedule-ribbon__day {
  font-weight: 700;
  color: var(--color-accent);
}

/* ============================================================
   CARDS (Generic)
   ============================================================ */
.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: all var(--transition-base);
}

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

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--color-accent-glow), rgba(212, 165, 116, 0.1));
  border-radius: var(--radius-md);
  font-size: 1.4rem;
  margin-bottom: var(--space-md);
}

.card h3 {
  margin-bottom: var(--space-sm);
}

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

.card--accent-border {
  border-left: 4px solid var(--color-accent);
}

.card--centered {
  text-align: center;
}

/* ============================================================
   BELIEFS PAGE
   ============================================================ */
.page-header {
  padding: var(--space-4xl) 0 var(--space-2xl);
  text-align: center;
  background: linear-gradient(
    180deg,
    var(--color-warm-bg) 0%,
    var(--color-warm-bg-alt) 100%
  );
  position: relative;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
  border-radius: var(--radius-full);
}

.page-header h1 {
  margin-bottom: var(--space-md);
}

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

/* Belief Cards */
.belief-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl) var(--space-2xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.belief-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--color-accent), var(--color-accent-light));
  border-radius: var(--radius-full);
}

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

.belief-card__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--color-accent-glow);
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-accent-dark);
  margin-bottom: var(--space-md);
}

.belief-card h3 {
  margin-bottom: var(--space-sm);
  color: var(--color-primary-dark);
}

.belief-card p {
  color: var(--color-text);
  font-size: 0.98rem;
  line-height: 1.7;
}

.belief-card .scripture-ref {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  margin-top: var(--space-md);
  padding: var(--space-xs) var(--space-md);
  background: rgba(43, 76, 126, 0.04);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-primary);
}

/* ============================================================
   MINISTRIES PAGE
   ============================================================ */
.ministry-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-2xl);
}

.ministry-tab {
  padding: var(--space-sm) var(--space-xl);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-text-light);
  border-radius: var(--radius-full);
  border: 2px solid var(--color-border);
  background: var(--color-white);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.ministry-tab:hover {
  border-color: var(--color-accent);
  color: var(--color-accent-dark);
}

.ministry-tab.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

.ministry-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  transition: all var(--transition-base);
}

.ministry-card:hover {
  box-shadow: var(--shadow-lg);
}

.ministry-card__header {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  padding: var(--space-xl) var(--space-2xl);
  color: white;
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.ministry-card__header-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  font-size: 1.3rem;
  flex-shrink: 0;
}

.ministry-card__header h3 {
  color: white;
  margin-bottom: 2px;
}

.ministry-card__header .ministry-time {
  font-size: 0.88rem;
  color: var(--color-accent-light);
  font-weight: 500;
}

.ministry-card__body {
  padding: var(--space-2xl);
}

.ministry-card__body p {
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.ministry-card__body p:last-child {
  margin-bottom: 0;
}

/* Youth/Children cards variant */
.ministry-card--youth .ministry-card__header {
  background: linear-gradient(135deg, var(--color-accent-dark), var(--color-accent));
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
}

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

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.contact-info__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-glow);
  border-radius: var(--radius-md);
  font-size: 1.2rem;
  color: var(--color-accent-dark);
}

.contact-info__text h4 {
  color: var(--color-primary-dark);
  margin-bottom: 2px;
}

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

/* Map */
.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  aspect-ratio: 16 / 10;
  background: var(--color-warm-bg-alt);
}

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

/* Schedule Table */
.schedule-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.schedule-table thead th {
  background: var(--color-primary-dark);
  color: var(--color-white);
  padding: var(--space-md) var(--space-lg);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: left;
}

.schedule-table tbody tr {
  transition: background var(--transition-fast);
}

.schedule-table tbody tr:hover {
  background: var(--color-accent-glow);
}

.schedule-table tbody td {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem;
}

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

.schedule-table .day-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: rgba(43, 76, 126, 0.08);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--color-primary);
}

/* Contact Form */
.form {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.form h3 {
  margin-bottom: var(--space-lg);
}

.form__group {
  margin-bottom: var(--space-lg);
}

.form__label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.form__label .optional {
  font-weight: 400;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.form__input,
.form__textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-warm-bg);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  outline: none;
}

.form__input:focus,
.form__textarea:focus {
  border-color: var(--color-accent);
  background: var(--color-white);
  box-shadow: 0 0 0 4px var(--color-accent-glow);
}

.form__input::placeholder,
.form__textarea::placeholder {
  color: var(--color-text-muted);
}

.form__textarea {
  min-height: 140px;
  resize: vertical;
}

.form__submit {
  width: 100%;
}

.form__status {
  margin-top: var(--space-md);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 500;
  text-align: center;
  display: none;
}

.form__status--success {
  display: block;
  background: rgba(72, 187, 120, 0.1);
  color: var(--color-success);
  border: 1px solid rgba(72, 187, 120, 0.2);
}

.form__status--error {
  display: block;
  background: rgba(229, 62, 62, 0.1);
  color: var(--color-error);
  border: 1px solid rgba(229, 62, 62, 0.2);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: var(--space-xl);
}

.footer__brand h3 {
  color: var(--color-white);
  font-size: 1.4rem;
  margin-bottom: var(--space-sm);
}

.footer__brand p {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  max-width: 350px;
}

.footer__heading {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: var(--space-lg);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__link {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.65);
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: var(--color-white);
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: var(--space-sm);
}

.footer__contact-item span:first-child {
  flex-shrink: 0;
  color: var(--color-accent);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer__copyright {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer__verse {
  font-size: 0.82rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.35);
}

@media (max-width: 768px) {
  .footer__inner {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* ============================================================
   RESPONSIVE FINE-TUNING
   ============================================================ */
@media (max-width: 480px) {
  :root {
    --space-lg: 1rem;
    --space-xl: 1.5rem;
    --space-2xl: 2rem;
    --space-3xl: 2.5rem;
    --space-4xl: 3.5rem;
  }

  .hero {
    min-height: 75vh;
  }

  .hero__title {
    font-size: 2rem;
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .dashboard__card {
    padding: var(--space-lg);
  }

  .belief-card,
  .ministry-card__body,
  .form {
    padding: var(--space-lg);
  }
}

/* Print styles */
@media print {
  .navbar,
  .hero__decor,
  .btn {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .section {
    padding: 1rem 0;
  }
}
