/* ==========================================================================
   VICTORY ALL SEASON CONSTRUCTION - MASTER STYLESHEET
   Color Strategy: Light clean base, warm adjacent accents (Terracotta/Rust/Coral),
   controlled brand red (#E31B23) reserved strictly for emergency CTAs & badges.
   ========================================================================== */

:root {
  /* Brand Red (Strictly for Emergency Badges & Primary Call Actions) */
  --brand-red: #d32f2f;
  --brand-red-hover: #b71c1c;

  /* Red-Adjacent Accent Palette (Warm Rust / Terracotta / Burnt Sienna / Coral) */
  --accent-rust: #c85a32;
  --accent-terracotta: #d96b43;
  --accent-warm-orange: #e07a5f;
  --accent-coral: #ef6f6c;
  --accent-soft-bg: #fdf6f0;

  /* Base Light Palette */
  --bg-main: #ffffff;
  --bg-subtle: #f8f9fa;
  --bg-card: #ffffff;

  /* Typography Colors */
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --text-light: #f8fafc;

  /* UI Borders & Shadows */
  --border-light: #e2e8f0;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.04);
  --shadow-md: 0 8px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 20px 30px rgba(0,0,0,0.1);
  --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.08);

  /* Fonts */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Roboto', sans-serif;
}

/* Base Resets */
body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-main);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-dark);
}

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

/* Header & Navigation */
.navbar {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  padding: 1rem 0;
  box-shadow: var(--shadow-sm);
}

.navbar-brand img {
  max-height: 52px;
  width: auto;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--text-dark) !important;
  font-size: 0.95rem;
  margin: 0 0.8rem;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-rust) !important;
}

.btn-emergency-nav {
  background-color: var(--brand-red);
  color: #fff !important;
  font-weight: 700;
  border-radius: 6px;
  padding: 0.6rem 1.4rem;
  box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
}

.btn-emergency-nav:hover {
  background-color: var(--brand-red-hover);
  transform: translateY(-2px);
}

/* Hero Section */

.hero-section {
  position: relative;
  padding: 120px 0 120px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.95) 100%), 
  url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;  border-bottom: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--accent-soft-bg);
  border: 1px solid var(--accent-warm-orange);
  color: var(--accent-rust);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 2.8rem;
  line-height: 1.2;
  margin-bottom: 1.2rem;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* Card Lead Forms */
.lead-form-card {
  background: #ffffff;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
}

.lead-form-card .form-control, .lead-form-card .form-select {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-light);
  border-radius: 6px;
}

/* Accent Buttons */
.btn-accent {
  background-color: var(--accent-rust);
  color: #ffffff;
  font-weight: 600;
  padding: 0.8rem 1.8rem;
  border-radius: 6px;
  border: none;
}

.btn-accent:hover {
  background-color: var(--accent-terracotta);
  color: #ffffff;
}

/* Image Wrapper & Overlay Info Cards */
.img-overlay-wrapper {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.img-overlay-wrapper img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.overlay-info-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 12px 18px;
  border-radius: 8px;
  box-shadow: var(--shadow-glass);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  z-index: 2;
}

.overlay-info-card.top-left { top: 20px; left: 20px; }
.overlay-info-card.bottom-right { bottom: 20px; right: 20px; }
.overlay-info-card.top-right { top: 20px; right: 20px; }
.overlay-info-card.bottom-left { bottom: 20px; left: 20px; }

.overlay-info-card i {
  color: var(--accent-rust);
  margin-right: 6px;
}

/* UI Layout 1: Depth Grid Cards (Eagan) */
.depth-grid-card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  height: 100%;
}

.depth-grid-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-warm-orange);
}

/* UI Layout 2: Alternating Split-Rows (Mendota Heights) */
.split-row-item {
  padding: 4rem 0;
  border-bottom: 1px solid var(--border-light);
}

.split-row-item:nth-child(even) {
  background-color: var(--bg-subtle);
}

/* UI Layout 3: Tabbed Accordion Hybrid (Inver Grove Heights) */
.custom-tab-btn {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  color: var(--text-dark);
  font-weight: 600;
  padding: 1.5rem 1.5rem;
  border-radius: 10px;
  width: 100%;
  text-align: left;
  margin-bottom: 24px;
  font-size: 22px;
}

.custom-tab-btn.active {
  background: var(--accent-rust);
  color: #fff;
  border-color: var(--accent-rust);
}

/* UI Layout 4: Bento Grid (West St Paul) */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.bento-col-8 { grid-column: span 8; }
.bento-col-4 { grid-column: span 4; }
.bento-col-6 { grid-column: span 6; }
.bento-col-12 { grid-column: span 12; }

@media (max-width: 991px) {
  .bento-col-8, .bento-col-4, .bento-col-6 { grid-column: span 12; }
}

.bento-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

/* UI Layout 5: Timeline Cards (Burnsville) */
.timeline-card {
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 2.5rem;
  border-left: 3px solid var(--accent-terracotta);
}

.timeline-step {
  position: absolute;
  left: -15px;
  top: 0;
  width: 28px;
  height: 28px;
  background: var(--accent-rust);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
}

/* Emergency Stats Section */
.emergency-section {
  background: #1e293b;
  color: #ffffff;
  padding: 80px 0;
}

.stat-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-warm-orange);
}

/* Map Section */
.map-container {
  height: 450px;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

/* Testimonial Cards */
.testimonial-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  height: 100%;
}

.star-rating {
  color: #f59e0b;
  margin-bottom: 1rem;
}

/* FAQ Accordion */
.accordion-item {
  border: 1px solid var(--border-light);
  margin-bottom: 0.8rem;
  border-radius: 8px !important;
  overflow: hidden;
}

.accordion-button:not(.collapsed) {
  background-color: var(--accent-soft-bg);
  color: var(--accent-rust);
}

/* Footer Styling */
footer {
  background-color: #0f172a;
  color: #94a3b8;
  padding: 70px 0 30px;
  font-size: 0.9rem;
}

footer a {
  color: #cbd5e1;
}

footer a:hover {
  color: #ffffff;
}

footer h5 {
  color: #ffffff;
  margin-bottom: 1.2rem;
}