/* ==========================================================================
   FAITH BAPTIST CHURCH - CORE DESIGN SYSTEM & STYLES
   Theme: Patriotic Red, White, & Blue (USA Brand Edition)
   Inspired by Grace Church Religion Theme Architecture
   ========================================================================== */

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

:root {
  /* ==========================================================================
     COLOR PALETTE - PATRIOTIC RED, WHITE, AND BLUE
     ========================================================================== */
  /* Patriotic Freedom Blues */
  --navy-deepest: #061120;
  --navy-dark: #0a192f;
  --navy-primary: #0f2744;
  --navy-medium: #16365c;
  --navy-light: #1e4b82;
  --blue-royal: #1d4ed8;
  --blue-accent: #2563eb;
  --blue-sky: #3b82f6;
  --blue-soft: #eff6ff;
  --blue-badge-bg: #dbeafe;

  /* Liberty Crimson & Patriotic Reds */
  --red-dark: #7f1d1d;
  --red-crimson: #991b1b;
  --red-primary: #b91c1c;
  --red-vibrant: #dc2626;
  --red-light: #ef4444;
  --red-soft: #fef2f2;
  --red-badge-bg: #fee2e2;

  /* Pure White & Clean Surfaces */
  --white-pure: #ffffff;
  --white-soft: #f8fafc;
  --white-smoke: #f1f5f9;
  --gray-100: #f3f4f6;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  /* Scripture Gold / Warm Amber Accents (Traditional Church Elements) */
  --gold-primary: #d97706;
  --gold-vibrant: #f59e0b;
  --gold-light: #fbbf24;
  --gold-soft: #fef3c7;
  --gold-border: #fde68a;

  /* Semantic Variables */
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-dark-section: var(--navy-primary);
  --bg-dark-card: var(--navy-dark);
  
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #f8fafc;
  --text-light-muted: #94a3b8;
  --text-headings: #0f2744;

  --border-subtle: #e2e8f0;
  --border-navy: #1e3a5f;
  --border-red: #f87171;

  /* ==========================================================================
     TYPOGRAPHY & FONTS
     ========================================================================== */
  --font-serif: 'Cinzel', 'Playfair Display', Georgia, serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Shadows & Elevations */
  --shadow-sm: 0 1px 2px 0 rgba(10, 25, 47, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(10, 25, 47, 0.08), 0 2px 4px -2px rgba(10, 25, 47, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(10, 25, 47, 0.1), 0 4px 6px -4px rgba(10, 25, 47, 0.08);
  --shadow-xl: 0 20px 25px -5px rgba(10, 25, 47, 0.12), 0 8px 10px -6px rgba(10, 25, 47, 0.08);
  --shadow-red: 0 10px 25px -5px rgba(185, 28, 28, 0.25);
  --shadow-blue: 0 10px 25px -5px rgba(15, 39, 68, 0.35);

  /* Transitions */
  --transition-fast: 0.15s ease-in-out;
  --transition-normal: 0.25s ease-in-out;
  --transition-slow: 0.4s cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --container-max: 1360px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--bg-body);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input, button, textarea, select {
  font: inherit;
}

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

a:hover {
  color: var(--red-primary);
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--text-headings);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 0.95rem; }

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   LAYOUT CONTAINERS & GRIDS
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-narrow {
  max-width: 960px;
}

.container-wide {
  max-width: 1400px;
}

.section {
  padding-top: clamp(4rem, 7vw, 6.5rem);
  padding-bottom: clamp(4rem, 7vw, 6.5rem);
  position: relative;
}

.section-sm {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

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

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

.section-dark p {
  color: var(--gray-300);
}

.section-pattern {
  background-image: radial-gradient(rgba(29, 78, 216, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
}

.section-patriotic-strip {
  position: relative;
}

.section-patriotic-strip::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--red-primary) 0%, var(--red-primary) 40%, var(--white-pure) 40%, var(--white-pure) 60%, var(--navy-light) 60%, var(--navy-light) 100%);
}

/* ==========================================================================
   SECTION HEADERS & LABELS
   ========================================================================== */
.section-header {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-header.text-center {
  text-align: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--red-primary);
  margin-bottom: 0.75rem;
  background: var(--red-soft);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--red-badge-bg);
}

.section-dark .section-eyebrow {
  background: rgba(220, 38, 38, 0.2);
  color: #fca5a5;
  border-color: rgba(220, 38, 38, 0.4);
}

.section-eyebrow-gold {
  color: var(--gold-primary);
  background: var(--gold-soft);
  border-color: var(--gold-border);
}

.section-title {
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--gray-600);
  line-height: 1.6;
}

.section-dark .section-subtitle {
  color: var(--gray-300);
}

/* Red / Blue Accent underline for headers */
.title-accent-line {
  position: relative;
  display: inline-block;
  padding-bottom: 0.75rem;
}

.title-accent-line::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--red-primary), var(--navy-light));
  border-radius: var(--radius-full);
}

.text-center .title-accent-line::after {
  left: 50%;
  transform: translateX(-50%);
}

/* ==========================================================================
   BUTTONS & CTA STYLES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0.9rem 1.75rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  white-space: nowrap;
}

.btn-sm {
  padding: 0.6rem 1.15rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 1.1rem 2.25rem;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

/* Crimson Red (Primary Action) */
.btn-red {
  background-color: var(--red-primary);
  color: var(--white-pure);
  border-color: var(--red-primary);
  box-shadow: 0 4px 12px rgba(185, 28, 28, 0.25);
}

.btn-red:hover {
  background-color: var(--red-vibrant);
  border-color: var(--red-vibrant);
  color: var(--white-pure);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(185, 28, 28, 0.35);
}

/* Freedom Navy (Secondary Action) */
.btn-navy {
  background-color: var(--navy-primary);
  color: var(--white-pure);
  border-color: var(--navy-primary);
  box-shadow: 0 4px 12px rgba(15, 39, 68, 0.2);
}

.btn-navy:hover {
  background-color: var(--navy-medium);
  border-color: var(--navy-medium);
  color: var(--white-pure);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(15, 39, 68, 0.3);
}

/* Outline White (For Hero & Dark Sections) */
.btn-outline-white {
  background-color: transparent;
  color: var(--white-pure);
  border-color: var(--white-pure);
}

.btn-outline-white:hover {
  background-color: var(--white-pure);
  color: var(--navy-primary);
  transform: translateY(-2px);
}

/* Outline Navy / Red */
.btn-outline-navy {
  background-color: transparent;
  color: var(--navy-primary);
  border-color: var(--navy-primary);
}

.btn-outline-navy:hover {
  background-color: var(--navy-primary);
  color: var(--white-pure);
}

.btn-outline-red {
  background-color: transparent;
  color: var(--red-primary);
  border-color: var(--red-primary);
}

.btn-outline-red:hover {
  background-color: var(--red-primary);
  color: var(--white-pure);
}

/* Gold Badge / Accent Button */
.btn-gold {
  background: linear-gradient(135deg, #d97706, #b45309);
  color: var(--white-pure);
  border-color: #d97706;
}

.btn-gold:hover {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: var(--white-pure);
  transform: translateY(-2px);
}

/* Button with play icon pulse */
.btn-play-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--red-primary);
  color: var(--white-pure);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-normal);
}

.btn:hover .btn-play-icon {
  transform: scale(1.1);
}

/* ==========================================================================
   BADGES & TAGS
   ========================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1;
}

.badge-red {
  background-color: var(--red-badge-bg);
  color: var(--red-primary);
}

.badge-blue {
  background-color: var(--blue-badge-bg);
  color: var(--navy-medium);
}

.badge-kjv {
  background: linear-gradient(135deg, #1e3a5f, #0f2744);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.4);
}

.badge-gold {
  background-color: var(--gold-soft);
  color: var(--gold-primary);
  border: 1px solid var(--gold-border);
}

.badge-live {
  background-color: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #dc2626;
  border-radius: 50%;
  animation: pulse-live 1.5s infinite;
}

@keyframes pulse-live {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(220, 38, 38, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

/* ==========================================================================
   CARDS & GRIDS
   ========================================================================== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

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

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

.card {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(29, 78, 216, 0.2);
}

.card-dark {
  background-color: var(--navy-dark);
  border-color: var(--border-navy);
  color: var(--white-pure);
}

.card-dark:hover {
  border-color: var(--blue-royal);
  box-shadow: var(--shadow-blue);
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.font-serif { font-family: var(--font-serif); }
.font-sans { font-family: var(--font-sans); }

.color-red { color: var(--red-primary); }
.color-blue { color: var(--navy-primary); }
.color-gold { color: var(--gold-primary); }

.bg-white { background-color: var(--white-pure); }
.bg-light { background-color: var(--white-soft); }
.bg-navy { background-color: var(--navy-primary); }
.bg-navy-dark { background-color: var(--navy-deepest); }

.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
