/* ==========================================================================
   GBFC PAKISTAN - CORE DESIGN SYSTEM & STYLES
   Colors based on official GBFC Logo (Crimson Maroon, Flame Gold, White, Slate)
   ========================================================================== */

:root {
  /* Logo Derived Color Tokens */
  --primary: #7A141A;          /* Deep Crimson Maroon */
  --primary-dark: #500A0E;     /* Dark Burgundy */
  --primary-light: #9E1F27;    /* Rich Crimson */
  --primary-glow: rgba(122, 20, 26, 0.15);

  --accent: #FFB800;           /* Flame Gold / Amber */
  --accent-hover: #E6A100;
  --accent-light: #FFF4D6;
  --flame-orange: #FF5500;      /* Logo Flame Accent */

  --pk-green: #005A20;         /* National Green Accent */
  --pk-green-light: #E6F4EA;

  --neutral-dark: #1A1A1E;     /* Primary Text */
  --neutral-body: #3B3B42;     /* Body Text */
  --neutral-muted: #6C6C75;    /* Muted Text */
  --neutral-border: #E2E2E8;   /* Borders */
  --neutral-light: #F8F9FB;    /* Section Light BG */
  --white: #FFFFFF;

  /* Elevation Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);
  --shadow-primary: 0 8px 24px rgba(122, 20, 26, 0.25);
  --shadow-accent: 0 8px 24px rgba(255, 184, 0, 0.3);

  /* Layout & Transitions */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-scripture: 'Merriweather', Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--neutral-body);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.2rem; }

p {
  margin-bottom: 1rem;
}

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

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

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

/* Container & Layout Helpers */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
  position: relative;
}

.section-light {
  background-color: var(--neutral-light);
}

.section-primary {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
}

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

/* Section Header Component */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem auto;
}

.section-subtitle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary);
  background-color: var(--primary-glow);
  padding: 0.4rem 1.2rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.section-primary .section-subtitle {
  color: var(--accent);
  background-color: rgba(255, 184, 0, 0.15);
}

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

.section-description {
  font-size: 1.1rem;
  color: var(--neutral-muted);
}

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

/* Buttons & UI Controls */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.8rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  white-space: nowrap;
}

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

.btn-primary:hover {
  background-color: var(--primary-light);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(122, 20, 26, 0.35);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--flame-orange));
  color: var(--neutral-dark);
  font-weight: 700;
  box-shadow: var(--shadow-accent);
}

.btn-accent:hover {
  background: linear-gradient(135deg, #FFC72C, #FF6A00);
  color: var(--neutral-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(255, 184, 0, 0.4);
}

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

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

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

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

.btn-sm {
  padding: 0.55rem 1.2rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1.1rem 2.4rem;
  font-size: 1.1rem;
}

/* Scripture Highlight Card */
.scripture-box {
  background: rgba(255, 255, 255, 0.95);
  border-left: 5px solid var(--accent);
  padding: 1.5rem 2rem;
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.scripture-text {
  font-family: var(--font-scripture);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--neutral-dark);
  margin-bottom: 0.5rem;
}

.scripture-ref {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Grid System Utility */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* Dynamic Page View Router Display */
.page-view {
  display: none;
  animation: fadeIn 0.4s ease-in-out forwards;
}

.page-view.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Utility Animations */
.hover-lift {
  transition: var(--transition);
}

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

/* Badge System */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.badge-pk {
  background-color: var(--pk-green-light);
  color: var(--pk-green);
}

.badge-accent {
  background-color: var(--accent-light);
  color: #B38200;
}

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

/* Responsive Media Queries */
@media (max-width: 768px) {
  .section { padding: 3.5rem 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .btn { width: 100%; }
}
