/* =====================================================
   DISTRICT NUMBER TEN VOLUNTEER FIRE DEPARTMENT
   Custom Design System - Fire Engine Red & Golden Amber
   ===================================================== */

/* ----- CSS VARIABLES ----- */
:root {
  /* Primary Colors */
  --fire-red: #D32F2F;
  --fire-red-dark: #B71C1C;
  --fire-red-light: #EF5350;
  --golden-amber: #FFA000;
  --golden-amber-dark: #FF8F00;
  --golden-amber-light: #FFB300;
  
  /* Neutral Colors */
  --white: #FFFFFF;
  --light-gray: #F5F5F5;
  --medium-gray: #9E9E9E;
  --dark-gray: #424242;
  --charcoal: #212121;
  
  /* Semantic Colors */
  --emergency-red: #C62828;
  --success-green: #2E7D32;
  --warning-orange: #EF6C00;
  
  /* Typography */
  --font-primary: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Crimson Text', Georgia, serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 4rem;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.15);
  --shadow-lg: 0 8px 16px rgba(0,0,0,0.2);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

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

body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.6;
  color: var(--charcoal);
  background-color: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
  color: var(--fire-red-dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: var(--spacing-sm);
}

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

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

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

/* ----- UTILITY BAR ----- */
.utility-bar {
  background: linear-gradient(135deg, var(--fire-red-dark), var(--fire-red));
  color: var(--white);
  padding: var(--spacing-xs) 0;
  font-size: 0.875rem;
}

.utility-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.utility-contact {
  display: flex;
  gap: var(--spacing-md);
  align-items: center;
}

.utility-contact a {
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: opacity var(--transition-fast);
}

.utility-contact a:hover {
  opacity: 0.8;
}

.utility-emergency {
  background: var(--golden-amber);
  color: var(--charcoal);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

/* ----- HEADER & NAVIGATION ----- */
.main-header {
  background: var(--white);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.logo-img {
  height: 60px;
  width: auto;
}

.org-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--fire-red-dark);
  line-height: 1.2;
  margin: 0;
}

.navbar-nav .nav-link {
  color: var(--dark-gray);
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: all var(--transition-fast);
  border-bottom: 3px solid transparent;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--fire-red);
  border-bottom-color: var(--golden-amber);
}

.btn-volunteer {
  background: linear-gradient(135deg, var(--fire-red), var(--fire-red-light));
  color: var(--white);
  padding: 0.625rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  border: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

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

/* ----- HERO SECTIONS ----- */
.hero-section {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  overflow: hidden;
  background: linear-gradient(135deg, var(--fire-red-dark), var(--fire-red));
}

.hero-home {
  min-height: 600px;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(183, 28, 28, 0.85), rgba(211, 47, 47, 0.75));
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: var(--spacing-xl) var(--spacing-md);
}

.hero-content h1 {
  color: var(--white);
  font-size: 3rem;
  margin-bottom: var(--spacing-md);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-lg);
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.page-hero {
  min-height: 250px;
  background: linear-gradient(135deg, var(--fire-red-dark), var(--fire-red));
}

.page-hero h1 {
  color: var(--white);
  font-size: 2.5rem;
  position: relative;
  z-index: 3;
}

/* ----- BUTTONS ----- */
.btn-primary-custom {
  background: linear-gradient(135deg, var(--fire-red), var(--fire-red-light));
  color: var(--white);
  padding: 0.875rem 2rem;
  font-size: 1.125rem;
  font-weight: 600;
  border: none;
  border-radius: 30px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: var(--shadow-md);
  display: inline-block;
}

.btn-primary-custom:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  color: var(--white);
}

.btn-secondary-custom {
  background: linear-gradient(135deg, var(--golden-amber), var(--golden-amber-light));
  color: var(--white);
  padding: 0.875rem 2rem;
  font-size: 1.125rem;
  font-weight: 600;
  border: none;
  border-radius: 30px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: var(--shadow-md);
  display: inline-block;
}

.btn-secondary-custom:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  color: var(--white);
}

.btn-outline-custom {
  background: transparent;
  color: var(--fire-red);
  padding: 0.875rem 2rem;
  font-size: 1.125rem;
  font-weight: 600;
  border: 2px solid var(--fire-red);
  border-radius: 30px;
  transition: all var(--transition-fast);
  display: inline-block;
}

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

/* ----- SECTIONS ----- */
.section-padding {
  padding: var(--spacing-xxl) 0;
}

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

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--fire-red-dark);
  margin-bottom: var(--spacing-sm);
}

.section-title p {
  font-size: 1.125rem;
  color: var(--medium-gray);
  max-width: 700px;
  margin: 0 auto;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--fire-red), var(--golden-amber));
  margin: var(--spacing-md) auto 0;
  border-radius: 2px;
}

/* ----- CARDS ----- */
.card-custom {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  border: none;
  height: 100%;
}

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

.card-icon {
  background: linear-gradient(135deg, var(--fire-red), var(--fire-red-light));
  color: var(--white);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-md);
  font-size: 2rem;
}

.card-custom .card-title {
  color: var(--fire-red-dark);
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
}

.card-custom .card-text {
  color: var(--dark-gray);
  line-height: 1.7;
}

/* ----- STATISTICS ----- */
.stats-section {
  background: linear-gradient(135deg, var(--fire-red-dark), var(--fire-red));
  color: var(--white);
  padding: var(--spacing-xxl) 0;
}

.stat-item {
  text-align: center;
  padding: var(--spacing-md);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--golden-amber);
  display: block;
  margin-bottom: var(--spacing-xs);
}

.stat-label {
  font-size: 1.125rem;
  font-weight: 500;
  opacity: 0.95;
}

/* ----- GALLERY ----- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  height: 250px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  padding: var(--spacing-md);
  color: var(--white);
  transform: translateY(100%);
  transition: transform var(--transition-normal);
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

/* ----- FORMS ----- */
.form-custom {
  background: var(--white);
  padding: var(--spacing-xl);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

.form-custom .form-label {
  font-weight: 600;
  color: var(--dark-gray);
  margin-bottom: var(--spacing-xs);
}

.form-custom .form-control,
.form-custom .form-select {
  border: 2px solid #E0E0E0;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  transition: border-color var(--transition-fast);
}

.form-custom .form-control:focus,
.form-custom .form-select:focus {
  border-color: var(--fire-red);
  box-shadow: 0 0 0 0.2rem rgba(211, 47, 47, 0.15);
}

.form-custom textarea.form-control {
  min-height: 150px;
}

/* ----- CONTACT INFO CARDS ----- */
.contact-card {
  background: var(--white);
  padding: var(--spacing-lg);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: transform var(--transition-normal);
  border-left: 4px solid var(--fire-red);
}

.contact-card:hover {
  transform: translateY(-5px);
}

.contact-card-icon {
  background: linear-gradient(135deg, var(--fire-red), var(--fire-red-light));
  color: var(--white);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-md);
  font-size: 1.5rem;
}

.contact-card h4 {
  color: var(--fire-red-dark);
  margin-bottom: var(--spacing-sm);
}

.contact-card p {
  color: var(--dark-gray);
  margin-bottom: 0;
}

.contact-card a {
  color: var(--fire-red);
  font-weight: 500;
}

/* ----- EMERGENCY NOTICE ----- */
.emergency-notice {
  background: linear-gradient(135deg, var(--emergency-red), #D32F2F);
  color: var(--white);
  padding: var(--spacing-lg);
  border-radius: 12px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  margin-bottom: var(--spacing-lg);
}

.emergency-notice h3 {
  color: var(--white);
  font-size: 2rem;
  margin-bottom: var(--spacing-sm);
}

.emergency-notice p {
  font-size: 1.125rem;
  margin-bottom: 0;
}

/* ----- FOOTER ----- */
.main-footer {
  background: linear-gradient(180deg, var(--charcoal), var(--dark-gray));
  color: var(--white);
  padding: var(--spacing-xxl) 0 var(--spacing-md);
}

.footer-section {
  margin-bottom: var(--spacing-lg);
}

.footer-section h5 {
  color: var(--golden-amber);
  font-size: 1.25rem;
  margin-bottom: var(--spacing-md);
  font-family: var(--font-heading);
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: var(--spacing-xs);
}

.footer-section a {
  color: #E0E0E0;
  transition: color var(--transition-fast);
}

.footer-section a:hover {
  color: var(--golden-amber);
}

.footer-contact-info p {
  margin-bottom: var(--spacing-xs);
  color: #E0E0E0;
}

.footer-emergency {
  background: rgba(211, 47, 47, 0.2);
  padding: var(--spacing-md);
  border-radius: 8px;
  border-left: 4px solid var(--fire-red);
  margin-top: var(--spacing-md);
}

.registry-info {
  background: rgba(255, 160, 0, 0.1);
  padding: var(--spacing-md);
  border-radius: 8px;
  margin-top: var(--spacing-md);
  text-align: center;
}

.registry-info strong {
  color: var(--golden-amber);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--spacing-md);
  margin-top: var(--spacing-lg);
  text-align: center;
  color: #9E9E9E;
}

/* ----- RESPONSIVE ----- */
@media (max-width: 991px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  
  .hero-content h1 { font-size: 2.25rem; }
  .section-title h2 { font-size: 2rem; }
  .stat-number { font-size: 2.5rem; }
  
  .navbar-brand .org-name { font-size: 1.1rem; }
  .logo-img { height: 50px; }
}

@media (max-width: 767px) {
  :root {
    --spacing-xl: 2rem;
    --spacing-xxl: 2.5rem;
  }
  
  h1 { font-size: 1.75rem; }
  .hero-content h1 { font-size: 1.875rem; }
  .hero-section { min-height: 300px; }
  .hero-home { min-height: 450px; }
  
  .utility-bar .container {
    flex-direction: column;
    text-align: center;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .btn-primary-custom,
  .btn-secondary-custom,
  .btn-outline-custom {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
}

@media (max-width: 575px) {
  .stat-number { font-size: 2rem; }
  .navbar-brand .org-name { font-size: 0.95rem; }
}
