/* ==========================================================================
   Appliance Care Co. — Master Rebuild Stylesheet (acc-rebuild.css)
   Fixes: Navbar layout, Color contrast, Brand pills, Card grid, Sticky CTA
   ========================================================================== */

:root {
  --acc-navy: #0F172A;
  --acc-navy-light: #1E293B;
  --acc-bg: #F8FAFC;
  --acc-card: #FFFFFF;
  --acc-border: #E2E8F0;
  --acc-cta: #EA580C;
  --acc-cta-hover: #C2410C;
  --acc-blue: #0284C7;
  --acc-green: #16A34A;
  --acc-text: #1E293B;
  --acc-muted: #475569;
  --acc-radius: 12px;
  --acc-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0 0 72px 0; /* clearance for mobile sticky call bar */
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--acc-bg);
  color: var(--acc-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 769px) {
  body {
    padding-bottom: 0;
  }
}

/* Top Utility Bar */
.acc-topbar {
  background-color: #020617;
  color: #E2E8F0;
  font-size: 0.85rem;
  padding: 8px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.acc-topbar-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.acc-topbar-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.acc-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #22C55E;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
  display: inline-block;
}

.acc-topbar-contact a {
  color: #38BDF8;
  text-decoration: none;
  font-weight: 600;
}

.acc-topbar-contact a:hover {
  text-decoration: underline;
}

/* Main Sticky Navbar */
.acc-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--acc-navy);
  box-shadow: 0 4px 20px rgba(2, 6, 23, 0.25);
  padding: 12px 16px;
}

.acc-navbar-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.acc-brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: #FFFFFF;
}

.acc-brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  line-height: 1.2;
}

.acc-brand-subtitle {
  font-size: 0.75rem;
  color: #94A3B8;
  font-weight: 500;
}

.acc-nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.acc-nav-links a {
  color: #E2E8F0;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 6px 4px;
  transition: color 0.15s ease;
}

.acc-nav-links a:hover {
  color: #38BDF8;
}

.acc-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--acc-cta);
  color: #FFFFFF !important;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 10px 18px;
  border-radius: 9999px;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(234, 88, 12, 0.35);
  transition: background-color 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}

.acc-nav-cta:hover {
  background-color: var(--acc-cta-hover);
  transform: translateY(-1px);
}

/* Primary Buttons & CTAs */
.acc-btn-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--acc-cta);
  color: #FFFFFF !important;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.acc-btn-call:hover {
  background-color: var(--acc-cta-hover);
}

/* Fix Concatenated Brand Pills (Sub-ZeroWolfViking...) */
.acc-brand-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
}

.acc-brand-pill {
  background-color: #FFFFFF;
  border: 1px solid #CBD5E1;
  color: var(--acc-navy);
  padding: 8px 14px;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

/* Clean Service Area Badge (Replaces Fake Depot Address Box) */
.acc-sab-box {
  background: linear-gradient(135deg, #EFF6FF 0%, #F8FAFC 100%);
  border: 1px solid #BFDBFE;
  border-left: 4px solid var(--acc-blue);
  border-radius: var(--acc-radius);
  padding: 18px 20px;
  margin: 20px 0;
}

.acc-sab-title {
  font-weight: 700;
  color: var(--acc-navy);
  font-size: 1rem;
  margin: 0 0 6px 0;
}

.acc-sab-text {
  margin: 0 0 12px 0;
  color: var(--acc-muted);
  font-size: 0.92rem;
}

/* Geographic Nearby Hubs Pill Row */
.acc-nearby-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}

.acc-nearby-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #FFFFFF;
  border: 1px solid var(--acc-border);
  color: var(--acc-navy);
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.acc-nearby-link:hover {
  border-color: var(--acc-blue);
  color: var(--acc-blue);
}

/* Unified Footer */
.acc-footer {
  background-color: var(--acc-navy);
  color: #CBD5E1;
  padding: 48px 16px 32px;
  margin-top: 64px;
  border-top: 4px solid var(--acc-cta);
}

.acc-footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}

.acc-footer h4 {
  color: #FFFFFF;
  font-size: 1.05rem;
  margin: 0 0 14px 0;
}

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

.acc-footer ul li {
  margin-bottom: 8px;
}

.acc-footer a {
  color: #CBD5E1;
  text-decoration: none;
  font-size: 0.92rem;
}

.acc-footer a:hover {
  color: #38BDF8;
}

.acc-footer-bottom {
  max-width: 1240px;
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  color: #94A3B8;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

/* Mobile Sticky Bottom Call Bar */
.acc-mobile-sticky-bar {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background-color: var(--acc-navy);
  padding: 10px 14px;
  border-top: 2px solid var(--acc-cta);
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 -4px 16px rgba(2, 6, 23, 0.35);
}

.acc-mobile-sticky-text {
  color: #FFFFFF;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.25;
}

.acc-mobile-sticky-text span {
  display: block;
  color: #94A3B8;
  font-size: 0.72rem;
  font-weight: 400;
}

.acc-mobile-sticky-btn {
  background-color: var(--acc-cta);
  color: #FFFFFF !important;
  font-weight: 800;
  font-size: 0.92rem;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
}

@media (min-width: 769px) {
  .acc-mobile-sticky-bar {
    display: none;
  }
}
