/* Ridgeview Heating & Air — demo site styles (multi-page) */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --orange: #f26b1d;
  --orange-dark: #d95a10;
  --orange-bright: #f26b1d;
  --navy: #13283d;
  --navy-2: #1c3a57;
  --ink: #26333f;
  --muted: #64707d;
  --bg: #ffffff;
  --bg-soft: #f5f7f9;
  --line: #e3e8ed;
  --ok: #157347;
  --no: #5a6572;
  --club-bg: #fdf1e6;
}
html { scroll-behavior: smooth; scroll-padding-top: 120px; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--orange-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Top bar */
.topbar { background: var(--navy); color: #dbe6f0; font-size: 13px; text-align: center; padding: 7px 12px; }
.topbar a { color: #fff; font-weight: 600; }

/* Header */
.header { background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-inner { max-width: 1120px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { font-weight: 800; font-size: 20px; letter-spacing: .5px; color: var(--navy); text-decoration: none; }
.logo span { color: var(--orange); }
.logo:hover { text-decoration: none; }
.nav { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.nav a { color: var(--ink); font-size: 14px; font-weight: 500; }
.nav a:hover { color: var(--orange-dark); text-decoration: none; }
.nav .cta { background: var(--orange); color: var(--navy); padding: 9px 16px; border-radius: 6px; font-weight: 600; }
.nav .cta:hover { background: var(--navy); color: #fff; text-decoration: none; }
.nav-toggle { display: none; align-items: center; justify-content: center; background: none; border: 1px solid var(--line); border-radius: 6px; padding: 6px 10px; cursor: pointer; color: inherit; }
.nav-toggle svg { display: block; }

/* Hero */
.hero { background: linear-gradient(180deg, #eef4f9, #ffffff); padding: 56px 0 40px; }
.hero-inner { max-width: 800px; margin: 0 auto; padding: 0 20px; }
.kicker { color: var(--orange-dark); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
h1 { font-size: 40px; line-height: 1.15; color: var(--navy); margin-bottom: 14px; }
.lede { font-size: 17px; color: var(--muted); margin-bottom: 20px; max-width: 54ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.btn-orange { display: inline-block; background: var(--orange); color: var(--navy); font-weight: 700; padding: 13px 22px; border-radius: 6px; }
.btn-orange:hover { background: var(--navy); color: #fff; text-decoration: none; }
.btn-ghost { display: inline-block; border: 1.5px solid var(--navy); color: var(--navy); font-weight: 600; padding: 12px 20px; border-radius: 6px; }
.btn-ghost:hover { background: var(--navy); color: #fff; text-decoration: none; }
.hero-trust { list-style: none; display: flex; gap: 8px; flex-wrap: wrap; }
.hero-trust li { display: inline-flex; align-items: center; gap: 7px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px; font-size: 13px; font-weight: 600; color: var(--ink); }
.hero-trust li svg { width: 15px; height: 15px; color: var(--orange-dark); flex-shrink: 0; }

/* Quote card / forms */
.quote-card { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 24px; box-shadow: 0 12px 30px rgba(19,40,61,.08); }
.quote-card h3 { color: var(--navy); margin-bottom: 6px; }
.fine { font-size: 13px; color: var(--muted); margin: 8px 0; }
.fine a { color: var(--orange-dark); font-weight: 600; text-decoration: underline; }
.quote-card input, .quote-card select, .quote-card textarea { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 6px; margin-bottom: 10px; font-size: 15px; font-family: inherit; }
.quote-card button { width: 100%; background: var(--orange); color: var(--navy); font-weight: 700; font-size: 16px; padding: 13px; border: 0; border-radius: 6px; cursor: pointer; }
.quote-card button:hover { background: var(--navy); color: #fff; }
label.field { display: block; font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.quote-card.submitted > *:not(.form-status) { display: none; }

/* Stats band */
.stats { background: var(--navy); color: #fff; padding: 26px 0; }
.stats-inner { max-width: 1120px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: center; }
.stats strong { display: block; font-size: 28px; color: var(--orange-bright); }
.stats span { font-size: 13px; color: #b9c8d6; }

/* Sections */
.section { padding: 56px 0; }
.section h2 { font-size: 30px; color: var(--navy); margin-bottom: 10px; }
.section .sub { color: var(--muted); max-width: 60ch; margin-bottom: 28px; }
.section.alt { background: var(--bg-soft); }
.page-hero { background: var(--navy); color: #fff; padding: 44px 0 38px; }
.page-hero h1 { color: #fff; margin-bottom: 8px; }
.page-hero .crumb { color: #9fb2c4; font-size: 13px; margin-bottom: 10px; }
.page-hero .crumb a { color: #cfe0ef; }
.page-hero p { color: #c3d3e2; max-width: 60ch; }

/* Service rows */
.service-list { display: grid; gap: 14px; }
.service-row { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: start; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; }
.service-row .mark { width: 44px; height: 44px; border-radius: 10px; margin-bottom: 0; }
.service-row .mark svg { width: 22px; height: 22px; }
.service-row h3 { color: var(--navy); font-size: 18px; margin-bottom: 4px; }
.service-row p { color: var(--muted); font-size: 15px; }
.service-row .price { color: var(--orange-dark); font-weight: 700; font-size: 14px; white-space: nowrap; }
.service-row a { font-size: 14px; font-weight: 600; }
.price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 14px; flex-wrap: wrap; margin-top: 10px; }
.price-row.price-end { justify-content: flex-end; }
.badge-247 { display: inline-block; background: var(--orange); color: var(--navy); font-weight: 800; font-size: 11px; padding: 5px 7px; border-radius: 6px; }

/* Cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 22px; }
.card h3 { color: var(--navy); margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }
.mark { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; background: var(--club-bg); color: var(--orange-dark); margin-bottom: 12px; flex-shrink: 0; }
.mark svg { width: 20px; height: 20px; }
.card a.link { font-weight: 600; font-size: 14px; }
.cred-number { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }

/* Why grid */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.why-item { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 22px; }
.why-item h3 { color: var(--navy); margin-bottom: 8px; }
.why-item p { color: var(--muted); font-size: 15px; }

/* Testimonials */
.testimonial { border-left: 3px solid var(--orange); background: var(--bg); padding: 16px 18px; border-radius: 0 8px 8px 0; margin-bottom: 14px; }
.testimonial p { font-size: 15px; }
.testimonial .who { font-size: 13px; color: var(--muted); margin-top: 6px; font-weight: 600; }

/* Service areas */
.areas-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; list-style: none; }
.areas-list li { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; font-size: 14.5px; font-weight: 500; white-space: nowrap; }

/* About short version + service-area map */
.short-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 36px; }
.short-list p { padding: 10px 0; border-bottom: 1px solid var(--line); }
.map-frame { position: relative; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #eef2f4; box-shadow: 0 12px 30px rgba(19,40,61,.08); }
.map-frame svg { display: block; width: 100%; height: auto; }
.map-credit { font-size: 11px; color: var(--muted); text-align: right; margin-top: 6px; }
.map-credit a { color: var(--muted); text-decoration: underline; }

/* Tables (maintenance plans) */
.plan-table { width: 100%; border-collapse: collapse; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.plan-table th, .plan-table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.plan-table th { background: var(--navy); color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; }
.plan-table tr:last-child td { border-bottom: 0; }
.plan-table th:nth-child(2), .plan-table td:nth-child(2) { background: var(--club-bg); }
.plan-table th:nth-child(2) { background: var(--navy-2); box-shadow: inset 0 3px 0 var(--orange); }
.plan-table th:nth-child(3) { background: var(--bg-soft); color: var(--muted); font-size: 12px; }
.plan-table td:nth-child(3) { font-size: 13px; color: var(--muted); }
.plan-table .yes { color: var(--ink); font-weight: 600; }
.feature { display: inline-flex; align-items: center; gap: 8px; }
.feature svg { width: 18px; height: 18px; color: var(--ok); flex-shrink: 0; }
.plan-table .badge { margin-left: 8px; vertical-align: 2px; }
.badge { display: inline-block; background: var(--orange); color: var(--navy); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; padding: 3px 7px; border-radius: 999px; }
.club-price { font-size: 30px; font-weight: 800; color: var(--navy); line-height: 1.15; margin-top: 18px; }
.club-price .unit { font-size: 15px; font-weight: 600; color: var(--muted); }
.badge-mobile-only { display: none; vertical-align: middle; margin-left: 6px; }

/* CTA band */
.cta-band { background: var(--orange); color: var(--navy); text-align: center; padding: 44px 20px; }
.cta-band h2 { color: var(--navy); margin-bottom: 14px; }
.cta-band .btn-orange { background: var(--navy); color: #fff; }
.cta-band .btn-orange:hover { background: var(--navy-2); }
.cta-band .fine { color: var(--navy); }
.cta-band .fine a { color: var(--navy); text-decoration: underline; }

/* Footer */
.footer { background: var(--navy); color: #a9bac9; font-size: 13.5px; padding: 34px 0 26px; }
.footer-inner { max-width: 1120px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.footer h4 { color: #fff; font-size: 14px; margin-bottom: 10px; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 6px; }
.footer a { color: #c9d7e4; }
.footer a:hover { color: #fff; }
.footer .legal { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.12); padding-top: 16px; font-size: 12.5px; color: #7f93a6; }

/* Footer credentials line */
.footer .creds { grid-column: 1 / -1; font-size: 12.5px; color: #9db0c2; padding: 14px 0; }
.footer .creds .creds-seg { white-space: nowrap; }

/* Separators: small orange diamond between non-wrapping segments.
   The ::before attaches to the following segment, so a wrapped line
   starts with the diamond — it can never dangle at a line end. */
.tb-seg, .k-seg, .w-seg, .f-seg, .lg-seg, .creds-seg {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}
.tb-seg + .tb-seg::before, .k-seg + .k-seg::before, .w-seg + .w-seg::before,
.f-seg + .f-seg::before, .creds-seg + .creds-seg::before, .lg-seg + .lg-seg::before {
  content: "";
  display: block;
  flex: none;
  width: 0.3em;
  height: 0.3em;
  margin: 0 0.45em;
  background: var(--orange);
  transform: rotate(45deg);
}
/* Price rows: alternatives separated by a muted slash.
   No white-space override here: the existing `.service-row .price`
   nowrap/normal rules (normal at ≤640px) keep the line wrapping
   exactly as before, and the boundary between segments offers no
   break opportunity, so the slash can never dangle. */
.px-seg + .px-seg::before { content: "/"; margin: 0 0.45em; color: var(--muted); font-weight: 600; }

/* Mobile call button */
.mobile-call { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: var(--orange); color: var(--navy); text-align: center; font-weight: 700; padding: 14px; padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 30; box-shadow: 0 -3px 10px rgba(19,40,61,.18); }
.mobile-call:hover { background: var(--navy); color: #fff; text-decoration: none; }
body.form-active .mobile-call, body.bar-deferred .mobile-call { display: none; }

@media (max-width: 900px) {
  .header-inner { flex-wrap: wrap; }
  .hero-inner { grid-template-columns: 1fr; }
  .grid-3, .why-grid { grid-template-columns: 1fr; }
  .areas-list { grid-template-columns: repeat(3, 1fr); }
  .areas-list li { padding: 10px 12px; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
  .nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; padding: 12px 0; }
  .nav.open { display: flex; }
  .nav-toggle { display: inline-flex; }
  .mobile-call { display: block; }
  .section:has(.quote-card) { padding-bottom: 72px; }
  .footer { padding-bottom: calc(26px + 60px + env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 640px) {
  .badge-mobile-only { display: inline-block; }
  .service-row { grid-template-columns: 44px 1fr; }
  .service-row .price { white-space: normal; }
  .price-row.price-end { justify-content: flex-start; }
  .areas-list { grid-template-columns: repeat(2, 1fr); }
  .plan-table, .plan-table tbody, .plan-table tr, .plan-table td { display: block; }
  .plan-table thead { display: none; }
  .plan-table { border: 0; background: transparent; }
  .plan-table tr { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 12px; padding: 14px 16px; }
  .plan-table td { border: 0; padding: 4px 0; }
  .plan-table td:first-child { font-weight: 700; color: var(--navy); font-size: 15px; padding-bottom: 8px; }
  .plan-table td[data-label]::before { content: attr(data-label) ": "; font-weight: 600; color: var(--muted); }
  .plan-table td:nth-child(2), .plan-table td:nth-child(3) { background: transparent; }
  .short-list { grid-template-columns: 1fr; }
}

@media (max-width: 360px) {
  .areas-list { grid-template-columns: 1fr; }
}

/* iOS landscape (viewport-fit=cover): keep content clear of the notch/home
   indicator while full-bleed backgrounds stay edge-to-edge. */
@media (orientation: landscape) {
  .container, .header-inner, .hero-inner, .footer-inner, .cta-band, .page-hero {
    padding-left: calc(20px + env(safe-area-inset-left, 0px));
    padding-right: calc(20px + env(safe-area-inset-right, 0px));
  }
  .mobile-call {
    padding-left: calc(14px + env(safe-area-inset-left, 0px));
    padding-right: calc(14px + env(safe-area-inset-right, 0px));
  }
}
