/* ==========================================================================
   LOCAL REFRIGERATOR REPAIR - CORE RESPONSIVE STYLESHEET
   Engineered for Core Web Vitals (<1.0s LCP, 0.00 CLS), Accessibility (WCAG AAA),
   and High-Urgency Emergency Mobile Conversion
   ========================================================================== */

:root {
  --primary: #0f4c81;        /* Trusted Deep Professional Blue */
  --primary-dark: #0a3258;
  --primary-light: #e8f1f8;
  --emergency: #c92a2a;      /* Immediate Crisis Red */
  --emergency-hover: #a61e1e;
  --emergency-bg: #fff5f5;
  --accent: #2b8a3e;         /* Operational Status Green */
  --accent-light: #ebfbee;
  --text-main: #1f2937;      /* High-contrast neutral text */
  --text-muted: #4b5563;
  --bg-page: #f9fafb;
  --bg-surface: #ffffff;
  --border: #e5e7eb;
  --border-focus: #3b82f6;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  --container-max: 1200px;
}

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  padding-bottom: 75px; /* Clearance for mobile sticky call bar */
  overflow-x: hidden;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

a:hover, a:focus-visible {
  color: var(--primary-dark);
  text-decoration: underline;
}

button, input, select {
  font-family: inherit;
  font-size: inherit;
}

/* Accessibility Focus States */
:focus-visible {
  outline: 3px solid var(--border-focus);
  outline-offset: 2px;
}

.skip-to-content {
  position: absolute;
  top: -40px;
  left: 10px;
  background: var(--emergency);
  color: #fff;
  padding: 8px 16px;
  z-index: 10000;
  font-weight: bold;
  border-radius: var(--radius-sm);
  transition: top 0.2s ease;
}
.skip-to-content:focus {
  top: 10px;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* --- Header & Navigation --- */
.site-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.top-bar {
  background: var(--primary-dark);
  color: #ffffff;
  padding: 6px 0;
  font-size: 0.85rem;
  font-weight: 500;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.status-pulse {
  width: 9px;
  height: 9px;
  background-color: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.4);
}

.header-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--primary);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.5px;
  text-decoration: none !important;
}

.brand-logo svg {
  width: 36px;
  height: 36px;
  color: var(--primary);
}

.brand-logo span {
  color: var(--emergency);
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 20px;
}

.nav-link {
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none !important;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Desktop Dropdown Menus */
.nav-item-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-chevron {
  width: 13px;
  height: 13px;
  color: var(--text-muted);
  transition: transform 0.2s ease, color 0.2s ease;
  pointer-events: none;
}

.nav-item-dropdown:hover .nav-chevron,
.nav-item-dropdown:focus-within .nav-chevron {
  transform: rotate(180deg);
  color: var(--primary);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 28px -4px rgba(11, 37, 69, 0.12), 0 6px 12px -2px rgba(11, 37, 69, 0.06);
  min-width: 260px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s;
  z-index: 1100;
}

.nav-item-dropdown:hover .nav-dropdown-menu,
.nav-item-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(2px);
}

.dropdown-item {
  display: block;
  padding: 9px 18px;
  color: #334155;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none !important;
  transition: background-color 0.15s ease, color 0.15s ease, padding-left 0.15s ease;
  border-left: 3px solid transparent;
}

.dropdown-item:hover, .dropdown-item:focus-visible {
  background-color: #f8fafc;
  color: var(--primary);
  border-left-color: var(--primary);
  padding-left: 21px;
}

.dropdown-item strong {
  color: var(--primary-dark);
  font-size: 0.92rem;
  display: block;
  margin-bottom: 2px;
}

.dropdown-divider {
  height: 1px;
  background-color: var(--border);
  margin: 6px 0;
}

.header-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--emergency);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-decoration: none !important;
  transition: background-color 0.2s ease, transform 0.1s ease;
  white-space: nowrap;
}

.header-cta-btn:hover {
  background: var(--emergency-hover);
  transform: translateY(-1px);
}

.header-cta-btn svg {
  width: 18px;
  height: 18px;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: space-around;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-nav-toggle span {
  width: 100%;
  height: 3px;
  background: var(--text-main);
  border-radius: 2px;
  transition: all 0.2s ease;
}

.mobile-menu-drawer {
  display: none;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: 16px 20px 24px;
  box-shadow: var(--shadow-lg);
}

.mobile-menu-drawer.open {
  display: block;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav-list a.mobile-link {
  display: block;
  padding: 11px 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  border-bottom: 1px solid var(--border);
  text-decoration: none !important;
}

.mobile-dropdown-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: none;
  border: none;
  padding: 11px 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  text-align: left;
}

.mobile-dropdown-toggle .nav-chevron,
.mobile-chevron {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.mobile-dropdown.open .nav-chevron,
.mobile-dropdown.open .mobile-chevron {
  transform: rotate(180deg);
  color: var(--primary);
}

.mobile-submenu {
  display: none;
  list-style: none;
  padding-left: 14px;
  margin: 6px 0 10px;
  border-left: 2px solid #cbd5e1;
}

.mobile-dropdown.open .mobile-submenu {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-submenu a {
  display: block;
  padding: 6px 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: #475569;
  text-decoration: none !important;
}

.mobile-submenu a:hover {
  color: var(--primary);
}

/* --- Hero Section --- */
.hero {
  background: linear-gradient(135deg, #f0f7fc 0%, #ffffff 100%);
  padding: 48px 0 56px;
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--emergency-bg);
  color: var(--emergency);
  border: 1px solid rgba(201, 42, 42, 0.2);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.2;
  color: #0b2545;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}

.btn-emergency-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--emergency);
  color: #ffffff !important;
  font-size: 1.25rem;
  font-weight: 800;
  padding: 16px 28px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px rgba(201, 42, 42, 0.39);
  text-decoration: none !important;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-emergency-call:hover {
  background: var(--emergency-hover);
  transform: translateY(-2px);
}

.btn-emergency-call svg {
  width: 24px;
  height: 24px;
}

.zip-quick-lookup {
  display: flex;
  max-width: 480px;
  background: var(--bg-surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.zip-quick-lookup:focus-within {
  border-color: var(--primary);
}

.zip-quick-lookup input {
  flex: 1;
  padding: 12px 16px;
  border: none;
  outline: none;
  font-size: 1rem;
}

.zip-quick-lookup button {
  background: var(--primary);
  color: #ffffff;
  border: none;
  padding: 12px 20px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
  white-space: nowrap;
}

.zip-quick-lookup button:hover {
  background: var(--primary-dark);
}

.hero-trust-bullets {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
}

.hero-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-trust-item svg {
  color: var(--accent);
  width: 18px;
  height: 18px;
}

.hero-visual {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
}

.hero-feature-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 28px -6px rgba(11, 37, 69, 0.18), 0 4px 10px -2px rgba(11, 37, 69, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.9);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: block;
}

.hero-feature-img:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -6px rgba(11, 37, 69, 0.22), 0 6px 14px -2px rgba(11, 37, 69, 0.1);
}

.hero-feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px;
  box-shadow: var(--shadow-md);
  margin-top: 16px;
}

/* --- Section Formatting --- */
.section {
  padding: 56px 0;
}

.section-alt {
  background: #f3f4f6;
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 44px;
}

.section-kicker {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.section-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: #0b2545;
  margin-bottom: 12px;
  line-height: 1.25;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* --- Card Grids --- */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.card-icon svg {
  width: 26px;
  height: 26px;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #0b2545;
}

.card-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  flex-grow: 1;
}

.card-link {
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
}

/* --- Diagnostic / Technical Visual Blocks --- */
.diagnostic-block {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 32px 0;
  box-shadow: var(--shadow-sm);
}

.diagnostic-block img,
.diagnostic-block svg {
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
  height: auto;
  display: block;
}

.diagnostic-figure {
  margin-bottom: 18px;
  text-align: center;
}

.diagnostic-caption {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 8px;
  text-align: center;
  font-style: italic;
}

/* --- Triage & Process Steps --- */
.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.process-step {
  display: flex;
  gap: 16px;
}

.step-num {
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.step-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.step-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* --- FAQs Accordion --- */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 18px 20px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0b2545;
}

.faq-question:hover {
  background: #f8fafc;
}

.faq-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.2s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 20px 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
  border-top: 1px solid #f1f5f9;
  padding-top: 14px;
}

.faq-item.open .faq-answer {
  display: block;
}

/* --- Location Coverage Grid --- */
.geo-directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.geo-dir-item {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
}

.geo-dir-item:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.zip-badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.zip-badge {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-dark);
}

/* --- Breadcrumbs --- */
.breadcrumb-nav {
  padding: 14px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  background: #ffffff;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  gap: 6px;
}

.breadcrumb-item a {
  color: var(--text-muted);
}
.breadcrumb-item a:hover {
  color: var(--primary);
}

.breadcrumb-separator {
  color: #9ca3af;
}

.breadcrumb-item.active {
  color: var(--primary-dark);
  font-weight: 600;
}

/* --- Emergency Sticky Mobile Call Bar --- */
.sticky-mobile-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 2px solid var(--emergency);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 9999;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.12);
}

.sticky-cta-info {
  display: flex;
  flex-direction: column;
}

.sticky-status {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--emergency);
  letter-spacing: 0.5px;
}

.sticky-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #0b2545;
}

.sticky-call-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--emergency);
  color: #ffffff !important;
  font-weight: 800;
  font-size: 1rem;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  text-decoration: none !important;
  box-shadow: 0 2px 8px rgba(201, 42, 42, 0.4);
  white-space: nowrap;
}

/* --- Footer --- */
.site-footer {
  background: #0b2545;
  color: #d1d5db;
  padding: 56px 0 24px;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  margin-bottom: 44px;
}

.footer-col-title {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.2px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #9ca3af;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-legal-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  font-size: 0.8rem;
  color: #6b7280;
  line-height: 1.5;
}

/* --- Media Queries --- */
@media (min-width: 640px) {
  .hero-title {
    font-size: 2.85rem;
  }
  .hero-actions {
    flex-direction: row;
    align-items: center;
  }
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
  .nav-desktop {
    display: flex;
  }
  .mobile-nav-toggle {
    display: none;
  }
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .process-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
  .sticky-mobile-cta {
    display: none; /* Hide bottom sticky bar on large desktop viewports */
  }
  body {
    padding-bottom: 0;
  }
}

@media (max-width: 640px) {
  .diagnostic-block {
    padding: 16px;
    margin: 20px 0;
  }
  .hero-visual {
    padding: 14px;
  }
}

@media (max-width: 480px) {
  .btn-emergency-call {
    font-size: 1.05rem;
    padding: 14px 18px;
    width: 100%;
    text-align: center;
  }
  .zip-quick-lookup {
    flex-direction: column;
  }
  .zip-quick-lookup button {
    padding: 12px;
    width: 100%;
  }
}

