/* ============================================================
   SERVICE AREA — Hub + City page shared styles
   ============================================================ */

/* ---- Breadcrumb ---- */
.sa-breadcrumb {
  margin-top: var(--nav-height);
  padding: 0.65rem 0;
  background: #07101f;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.sa-bc-list { display: flex; align-items: center; gap: 0.35rem; list-style: none; padding: 0; margin: 0; flex-wrap: nowrap; overflow-x: auto; font-size: 0.78rem; white-space: nowrap; }
.sa-bc-item { display: flex; align-items: center; gap: 0.35rem; color: rgba(255,255,255,0.62); }
.sa-bc-item a { color: rgba(255,255,255,0.72); text-decoration: none; transition: color 0.15s; }
.sa-bc-item a:hover { color: #64b5f6; }
.sa-bc-sep { color: rgba(255,255,255,0.35); }
.sa-bc-current { color: rgba(255,255,255,0.9); font-weight: 600; }

/* ---- Hero ---- */
.sa-hero {
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
  background: var(--navy);
  border-bottom: 1px solid rgba(33,150,243,0.12);
  position: relative;
  overflow: hidden;
}
.sa-hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -60px;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(21,101,192,0.13) 0%, transparent 65%);
  pointer-events: none;
}
.sa-hero-inner { position: relative; z-index: 1; max-width: 760px; }
.sa-hero h1 {
  font-size: clamp(1.75rem, 3.2vw, 2.55rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
  margin-top: 0.4rem;
}
.sa-hero-sub {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.74);
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 1.2rem;
}
.sa-hero-note {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.52);
  line-height: 1.55;
  max-width: 520px;
  margin-bottom: 1.2rem;
  font-style: italic;
}
.sa-hero-ctas { display: flex; gap: 0.7rem; flex-wrap: wrap; }

/* ---- Section base ---- */
/* body is dark (#07101f), so plain .sa-section needs an explicit white background */
.sa-section { padding: 3rem 0; background: #ffffff; }
.sa-section--alt { background: var(--gray-bg); }
.sa-section--dark {
  background: var(--navy);
  border-top: 1px solid rgba(33,150,243,0.07);
}
.sa-section-label {
  font-size: 0.6rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.13em; color: var(--blue);
  display: block; margin-bottom: 0.5rem;
}
.sa-section--dark .sa-section-label { color: rgba(33,150,243,0.65); }
.sa-section h2 {
  font-size: clamp(1.15rem, 2.3vw, 1.6rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.025em;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}
.sa-section--dark h2 { color: var(--white); }
.sa-section-sub {
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.68;
  max-width: 580px;
  margin-bottom: 1.4rem;
}
.sa-section--dark .sa-section-sub { color: rgba(255,255,255,0.62); }

/* ---- Overview text ---- */
.sa-overview-wrap { max-width: 740px; }
.sa-overview-p {
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 0.85rem;
}
.sa-overview-p:last-child { margin-bottom: 0; }

/* ---- Equipment grid ---- */
.sa-equip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.4rem;
}
.sa-equip-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-top: 2px solid rgba(33,150,243,0.38);
  border-radius: 0 0 5px 5px;
  padding: 1.15rem 1.05rem;
  transition: border-top-color 0.2s, background 0.2s;
}
.sa-equip-card:hover { border-top-color: var(--blue-bright); background: rgba(255,255,255,0.055); }
.sa-equip-brand { font-size: 0.78rem; font-weight: 800; color: var(--white); letter-spacing: 0.01em; margin-bottom: 0.3rem; }
.sa-equip-models { font-size: 0.68rem; color: rgba(255,255,255,0.65); line-height: 1.55; }

/* ---- Problems list ---- */
.sa-problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  margin-top: 1.25rem;
}
.sa-problem-item {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--text-body);
  padding: 0.42rem 0.55rem;
  background: #fff;
  border-radius: 3px;
  border-left: 2px solid rgba(33,150,243,0.28);
  line-height: 1.35;
}
.sa-problem-item::before { content: '—'; color: var(--blue); font-weight: 700; font-size: 0.62rem; flex-shrink: 0; margin-top: 0.12rem; }
.sa-problem-cta { margin-top: 1.1rem; }

/* ---- Dispatch steps ---- */
.sa-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.4rem;
}
.sa-step {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 6px;
  padding: 1.2rem 1.05rem;
}
.sa-step-num {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(33,150,243,0.15);
  border: 1.5px solid rgba(33,150,243,0.38);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.68rem; font-weight: 700; color: #90caf9;
  margin-bottom: 0.6rem;
}
.sa-step-title { font-size: 0.8rem; font-weight: 700; color: var(--white); margin-bottom: 0.3rem; line-height: 1.3; }
.sa-step-desc { font-size: 0.72rem; color: rgba(255,255,255,0.62); line-height: 1.55; }
.sa-dispatch-note {
  margin-top: 1.15rem;
  padding: 0.8rem 0.95rem;
  background: rgba(33,150,243,0.06);
  border: 1px solid rgba(33,150,243,0.14);
  border-radius: 5px;
  font-size: 0.76rem;
  color: rgba(255,255,255,0.62);
  line-height: 1.65;
}
.sa-dispatch-note strong { color: rgba(255,255,255,0.88); }

/* ---- Pricing box ---- */
.sa-pricing-box {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.sa-pricing-text { flex: 1; min-width: 240px; }
.sa-pricing-text p { font-size: 0.82rem; color: rgba(255,255,255,0.62); line-height: 1.68; margin: 0; }
.sa-pricing-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex-shrink: 0;
  min-width: 210px;
}
.sa-pricing-actions .btn {
  min-height: 44px;
  width: 100%;
  justify-content: center;
  text-align: center;
}
/* Pricing box on white-bg sections (plain .sa-section, not .sa-section--dark) */
.sa-section:not(.sa-section--dark) .sa-pricing-box {
  background: #ffffff;
  border: 1px solid rgba(15,23,42,0.09);
  border-left: 3px solid var(--blue);
  box-shadow: 0 4px 20px rgba(15,23,42,0.07);
}
.sa-section:not(.sa-section--dark) .sa-pricing-text p { color: #374151; }
/* Fix: btn-outline-white in light-bg card = white text on white bg = invisible */
.sa-section:not(.sa-section--dark) .sa-pricing-actions .btn-outline-white {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.sa-section:not(.sa-section--dark) .sa-pricing-actions .btn-outline-white:hover {
  background: #0d2748;
  border-color: #0d2748;
  color: var(--white);
}
/* Desktop: add right clearance so floating buttons don't visually collide with actions */
@media (min-width: 769px) {
  .sa-section:not(.sa-section--dark) .sa-pricing-box {
    padding-right: calc(1.5rem + 72px);
  }
}

/* ---- FAQ (city pages) ---- */
.sa-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 1.25rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  overflow: hidden;
}
.sa-faq-item { border-bottom: 1px solid rgba(255,255,255,0.06); }
.sa-faq-item:last-child { border-bottom: none; }
.sa-faq-q {
  width: 100%; text-align: left;
  background: rgba(255,255,255,0.03);
  border: none;
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem; font-weight: 600;
  padding: 0.88rem 1rem;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 0.75rem;
  font-family: var(--font-sans);
  transition: background 0.15s;
  line-height: 1.4;
}
.sa-faq-q:hover { background: rgba(255,255,255,0.05); }
.sa-faq-icon { font-size: 1rem; color: rgba(33,150,243,0.55); flex-shrink: 0; transition: transform 0.2s; }
.sa-faq-q[aria-expanded="true"] { color: rgba(255,255,255,0.92); background: rgba(255,255,255,0.045); }
.sa-faq-q[aria-expanded="true"] .sa-faq-icon { transform: rotate(45deg); color: #90caf9; }
.sa-faq-a { display: none; padding: 0 1rem 0.88rem; font-size: 0.8rem; color: rgba(255,255,255,0.62); line-height: 1.7; }
.sa-faq-a.open { display: block; }

/* ---- Nearby cities ---- */
.sa-nearby-grid { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.9rem; }
.sa-nearby-link {
  display: inline-block;
  padding: 0.36rem 0.8rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 3px;
  font-size: 0.74rem;
  color: rgba(255,255,255,0.62);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.sa-nearby-link:hover { background: rgba(33,150,243,0.1); border-color: rgba(33,150,243,0.35); color: #90caf9; }
/* Nearby links on white-bg sections */
.sa-section:not(.sa-section--dark) .sa-nearby-link {
  background: #f1f5f9;
  border-color: rgba(15,23,42,0.12);
  color: #374151;
}
.sa-section:not(.sa-section--dark) .sa-nearby-link:hover {
  background: rgba(21,101,192,0.07);
  border-color: rgba(21,101,192,0.4);
  color: #1565c0;
}

/* ---- Hub page: Region cards ---- */
.sa-region-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.sa-region-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 7px;
  padding: 1.4rem 1.3rem;
}
.sa-region-name {
  font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: rgba(33,150,243,0.7);
  display: block; margin-bottom: 0.45rem;
}
.sa-region-desc { font-size: 0.76rem; color: rgba(255,255,255,0.60); line-height: 1.6; margin-bottom: 0.85rem; }
.sa-city-chips { display: flex; flex-wrap: wrap; gap: 0.38rem; }
.sa-city-chip {
  display: inline-block;
  padding: 0.3rem 0.65rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 3px;
  font-size: 0.71rem;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
  opacity: 0.55;
  cursor: default;
}
.sa-city-chip--live {
  opacity: 1;
  cursor: pointer;
  border-color: rgba(33,150,243,0.55);
  color: rgba(255,255,255,0.88);
}
.sa-city-chip--live:hover {
  background: rgba(33,150,243,0.12);
  border-color: rgba(33,150,243,0.7);
  color: #90caf9;
  transform: translateY(-1px);
}

/* ---- Hub: Region cards on light background override ---- */
.sa-section--alt .sa-region-card {
  background: #ffffff;
  border: 1px solid rgba(15,23,42,0.08);
}
.sa-section--alt .sa-region-name {
  color: #0b1f3a;
}
.sa-section--alt .sa-region-desc {
  color: #374151;
}
.sa-section--alt .sa-city-chip {
  color: #64748b;
  background: #f8fafc;
  border: 1px solid rgba(15,23,42,0.12);
  opacity: 1;
  cursor: default;
}
.sa-section--alt .sa-city-chip--live {
  color: #1565c0;
  background: rgba(21,101,192,0.04);
  border-color: rgba(21,101,192,0.45);
  opacity: 1;
  cursor: pointer;
}
.sa-section--alt .sa-city-chip--live:hover {
  color: #0d47a1;
  background: rgba(21,101,192,0.10);
  border-color: rgba(21,101,192,0.7);
  transform: translateY(-1px);
}

/* ---- Hub: How dispatch works ---- */
.sa-coverage-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.4rem;
}
.sa-coverage-card {
  background: #fff;
  border: 1px solid var(--gray-3);
  border-top: 2px solid rgba(33,150,243,0.3);
  border-radius: 0 0 5px 5px;
  padding: 1.2rem 1.05rem;
}
.sa-coverage-num {
  font-size: 1.4rem;
  font-weight: 900;
  color: rgba(33,150,243,0.2);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.4rem;
  font-family: 'Courier New', monospace;
}
.sa-coverage-title { font-size: 0.82rem; font-weight: 700; color: var(--navy); margin-bottom: 0.3rem; }
.sa-coverage-desc { font-size: 0.73rem; color: var(--text-muted); line-height: 1.58; }

/* ---- State grid (hub page) ---- */
.sa-state-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  margin-top: 1.2rem;
}
.sa-state-card {
  background: #ffffff;
  border: 1px solid rgba(15,23,42,0.09);
  border-top: 2px solid rgba(21,101,192,0.38);
  border-radius: 0 0 5px 5px;
  padding: 1rem 0.95rem;
  transition: border-top-color 0.18s, box-shadow 0.18s;
}
.sa-state-card:hover { border-top-color: var(--blue); box-shadow: 0 2px 10px rgba(15,23,42,0.07); }
.sa-state-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #0b1f3a;
  margin-bottom: 0.18rem;
  line-height: 1.3;
}
.sa-state-meta {
  font-size: 0.67rem;
  color: #6b7280;
  line-height: 1.45;
  margin-bottom: 0.6rem;
}
.sa-state-link {
  display: inline-block;
  font-size: 0.67rem;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.15s;
}
.sa-state-link:hover { color: var(--blue-dk); text-decoration: underline; }
/* Expansion states — dimmer treatment */
.sa-state-card--expansion {
  border-top-color: rgba(15,23,42,0.1);
  background: #fafbfc;
}
.sa-state-card--expansion .sa-state-name { color: #475569; }
.sa-state-card--expansion .sa-state-meta { color: #9ca3af; }
.sa-state-link--soon { color: #94a3b8; cursor: default; pointer-events: none; }
/* Sub-labels within state grid */
.sa-state-sub-label {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #94a3b8;
  margin-top: 1.2rem;
  margin-bottom: 0.5rem;
  display: block;
}

/* ---- Responsive ---- */
@media (max-width: 1100px) {
  .sa-equip-grid { grid-template-columns: repeat(2, 1fr); }
  .sa-state-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .sa-steps-grid { grid-template-columns: repeat(2, 1fr); }
  .sa-coverage-grid { grid-template-columns: repeat(2, 1fr); }
  .sa-region-grid { grid-template-columns: 1fr; }
  .sa-problem-grid { grid-template-columns: repeat(2, 1fr); }
  .sa-state-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .sa-hero { padding-top: 1.25rem; padding-bottom: 1.8rem; }
}
@media (max-width: 640px) {
  .sa-hero h1 { font-size: clamp(1.5rem, 7vw, 1.9rem); line-height: 1.05; }
  .sa-hero-ctas { flex-direction: column; }
  .sa-hero-ctas .btn { width: 100%; text-align: center; justify-content: center; }
  .sa-problem-grid { grid-template-columns: 1fr; }
  .sa-steps-grid { grid-template-columns: 1fr; }
  .sa-coverage-grid { grid-template-columns: 1fr 1fr; }
  .sa-equip-grid { grid-template-columns: 1fr; }
  .sa-section { padding: 2rem 0; }
  .sa-pricing-box { flex-direction: column; gap: 1.1rem; }
  .sa-pricing-actions { width: 100%; flex-direction: row; flex-wrap: wrap; }
  .sa-pricing-actions .btn { flex: 1; min-width: 140px; text-align: center; justify-content: center; }
}
@media (max-width: 480px) {
  .sa-state-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 400px) {
  .sa-coverage-grid { grid-template-columns: 1fr; }
  .sa-state-grid { grid-template-columns: 1fr; }
}

/* ---- Mobile text readability ---- */
@media (max-width: 768px) {
  .sa-section-sub {
    line-height: 1.78;
    margin-bottom: 1.3rem;
  }
  .sa-pricing-text p {
    font-size: 0.85rem;
    line-height: 1.75;
  }
  .sa-step-desc {
    font-size: 0.75rem;
    line-height: 1.65;
  }
  .sa-faq-a {
    font-size: 0.82rem;
    line-height: 1.75;
  }
}

/* ---- Service Overview card grid ---- */
.sa-ov-intro {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #374151;
  margin-bottom: 1.5rem;
  max-width: 660px;
}

.sa-ov-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.sa-ov-card {
  background: #f8fafc;
  border: 1px solid rgba(15,23,42,0.09);
  border-left: 3px solid var(--blue);
  border-radius: 6px;
  padding: 1.1rem 1.25rem;
  transition: border-left-color var(--transition), box-shadow var(--transition);
}

.sa-ov-card:hover {
  border-left-color: var(--blue);
  box-shadow: -2px 0 0 var(--blue), 0 4px 12px rgba(15,23,42,0.08);
}

.sa-ov-card-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--blue);
  margin-bottom: 0.55rem;
}

.sa-ov-card-body {
  font-size: 0.86rem;
  line-height: 1.7;
  color: #374151;
}

@media (max-width: 640px) {
  .sa-ov-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem; }
  .sa-ov-card { padding: 0.8rem; min-height: auto; }
  .sa-ov-card-title { font-size: 0.68rem; line-height: 1.25; margin-bottom: 0.45rem; }
  .sa-ov-card-body { font-size: 0.7rem; line-height: 1.35; }
  .sa-ov-intro { font-size: 0.88rem; margin-bottom: 1.1rem; }
  .sa-section-label { font-size: 0.68rem; }
}

/* ---- Mobile CTA button fix (320px–480px) ---- */
@media (max-width: 480px) {
  .sa-pricing-actions {
    flex-direction: column !important;
    width: 100%;
    gap: 0.6rem;
  }
  .sa-pricing-actions .btn {
    width: 100%;
    flex: none;
    min-width: 0;
    min-height: 48px;
    text-align: center;
    justify-content: center;
    white-space: nowrap;
  }
}
