/* ==========================================================================
   Roto-Rooter — conversion site
   Palette: navy #2C387C (trust/water) · red #D32C36 (emergency/urgency)
   Mobile-first. Fonts: Inter (body) + Barlow Condensed (display).
   ========================================================================== */

:root {
  --navy: #2C387C;
  --navy-700: #232d63;
  --navy-900: #171e45;
  --red: #D32C36;
  --red-600: #b8232d;
  --ink: #16213e;
  --body: #4a5169;
  --muted: #7a8199;
  --line: #e6e9f2;
  --bg: #ffffff;
  --bg-alt: #f4f6fb;
  --bg-navy: #1c2455;
  --white: #ffffff;
  --gold: #ffb400;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(23,30,69,.06);
  --shadow: 0 12px 34px rgba(23,30,69,.12);
  --shadow-lg: 0 24px 60px rgba(23,30,69,.20);
  --container: 1180px;
  --ff-body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --ff-display: 'Barlow Condensed', 'Inter', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--ff-body);
  color: var(--body);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 820px; }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.12; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 4.4vw, 2.5rem); }
h3 { font-size: 1.18rem; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--ff-body); font-weight: 700; font-size: .98rem;
  padding: 13px 22px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap; text-align: center; line-height: 1;
}
.btn svg { flex: 0 0 auto; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-lg { padding: 16px 28px; font-size: 1.05rem; }
.btn-block { display: flex; width: 100%; }
.btn-emergency { background: var(--red); color: #fff; box-shadow: 0 8px 20px rgba(211,44,54,.32); }
.btn-emergency:hover { background: var(--red-600); }
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 8px 20px rgba(44,56,124,.28); }
.btn-primary:hover { background: var(--navy-700); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-white { background: #fff; color: var(--navy); box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.btn-white:hover { background: #f0f2fa; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand-mark { flex: 0 0 auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-family: var(--ff-display); font-size: 1.35rem; color: var(--navy); letter-spacing: .3px; }
.brand-text em { font-style: normal; font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

.main-nav { display: none; align-items: center; gap: 22px; }
.main-nav a { font-weight: 600; font-size: .95rem; color: var(--ink); transition: color .15s; }
.main-nav a:hover { color: var(--navy); }
.main-nav .nav-cta { background: var(--navy); color: #fff; padding: 9px 16px; border-radius: 999px; }
.main-nav .nav-cta:hover { background: var(--navy-700); color:#fff; }

.header-phone { display: none; align-items: center; gap: 9px; color: var(--red); }
.header-phone svg { background: rgba(211,44,54,.1); padding: 8px; width: 34px; height: 34px; border-radius: 50%; }
.header-phone-txt { display: flex; flex-direction: column; line-height: 1.1; }
.header-phone-txt em { font-style: normal; font-size: .62rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.header-phone-txt strong { font-size: 1.02rem; color: var(--ink); }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; background: transparent; border: 0; cursor: pointer; padding: 10px;
}
.nav-toggle span { height: 2.5px; background: var(--navy); border-radius: 2px; transition: transform .25s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* mobile nav panel */
@media (max-width: 899px) {
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .32s ease;
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; max-height: 460px; }
  .main-nav a { padding: 15px 22px; border-top: 1px solid var(--line); }
  .main-nav .nav-cta { margin: 12px 20px 16px; border-radius: 999px; text-align: center; }
}
@media (min-width: 900px) {
  .main-nav { display: flex; }
  .header-phone { display: flex; }
  .nav-toggle { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(1100px 500px at 15% -10%, rgba(255,255,255,.10), transparent 60%),
    linear-gradient(155deg, var(--navy) 0%, var(--navy-900) 62%, #101538 100%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 82% 78%, rgba(211,44,54,.28), transparent 42%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M0 30h60M30 0v60' stroke='%23ffffff' stroke-opacity='0.04' stroke-width='1'/%3E%3C/svg%3E");
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr; gap: 34px;
  padding: 44px 20px 56px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  color: #cdd5f5; background: rgba(255,255,255,.08); padding: 7px 14px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14); width: fit-content;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(255,180,0,.25); }
.hero-copy h1 { color: #fff; margin: 16px 0 14px; }
.hero-copy h1 .hl { color: #ffd36b; }
.hero-sub { color: #d7ddf3; font-size: 1.08rem; max-width: 560px; }
.hero-sub strong { color: #fff; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 20px; }
.hero-badges { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.hero-badges li { display: flex; align-items: center; gap: 9px; font-size: .95rem; color: #e4e8f7; font-weight: 500; }
.hero-badges svg { width: 20px; height: 20px; fill: #4fd08a; flex: 0 0 auto; background: rgba(79,208,138,.14); border-radius: 50%; padding: 3px; }

/* hero card / quick form */
.hero-card {
  background: #fff; color: var(--ink); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 24px; border: 1px solid rgba(255,255,255,.5);
}
.hero-card-head h2 { font-size: 1.4rem; margin: 10px 0 6px; }
.hero-card-head p { color: var(--body); font-size: .95rem; }
.live-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  color: #128a4e; background: #e7f7ee; padding: 5px 11px; border-radius: 999px;
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #17a95d; position: relative; }
.live-dot::after { content:""; position:absolute; inset:0; border-radius:50%; background:#17a95d; animation: pulse 1.8s infinite; }
@keyframes pulse { 0%{ box-shadow:0 0 0 0 rgba(23,169,93,.5);} 70%{ box-shadow:0 0 0 8px rgba(23,169,93,0);} 100%{ box-shadow:0 0 0 0 rgba(23,169,93,0);} }

.quick-form { margin-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: .82rem; font-weight: 600; color: var(--ink); }
.field .opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  font-family: var(--ff-body); font-size: 1rem; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 11px; background: #fbfcff;
  transition: border-color .15s, box-shadow .15s; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(44,56,124,.14);
}
.field textarea { resize: vertical; }
.form-alt { text-align: center; font-size: .88rem; color: var(--muted); margin-top: 2px; }
.form-alt a { color: var(--red); font-weight: 700; }

@media (min-width: 980px) {
  .hero-inner { grid-template-columns: 1.15fr .85fr; align-items: center; padding: 64px 20px 76px; gap: 48px; }
  .hero-card { padding: 30px; }
}

/* ---------- Trust bar ---------- */
.trustbar { background: var(--bg-navy); color: #fff; }
.trustbar-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 12px; padding: 26px 20px; }
.trust-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; }
.trust-item strong { font-family: var(--ff-display); font-size: 2rem; color: #ffd36b; line-height: 1; }
.trust-item span { font-size: .8rem; color: #c3caea; max-width: 190px; }
@media (min-width: 760px) { .trustbar-inner { grid-template-columns: repeat(4,1fr); padding: 30px 20px; } }

/* ---------- Sections ---------- */
.section { padding: 62px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.kicker {
  display: inline-block; font-weight: 700; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--red); margin-bottom: 12px;
}
.kicker-light { color: #ffd36b; }
.section-lead { color: var(--body); font-size: 1.05rem; margin-top: 12px; }

/* ---------- Service cards ---------- */
.cards { display: grid; grid-template-columns: 1fr; gap: 18px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cfd6ee; }
.card-icon {
  width: 54px; height: 54px; display: grid; place-items: center; font-size: 1.7rem;
  background: linear-gradient(140deg, #eef1fb, #e2e7f8); border-radius: 14px; margin-bottom: 16px;
}
.card h3 { margin-bottom: 8px; }
.card p { font-size: .95rem; margin-bottom: 16px; }
.card-link { font-weight: 700; color: var(--navy); font-size: .92rem; }
.card-link:hover { color: var(--red); }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .cards { grid-template-columns: repeat(3,1fr); gap: 22px; } }

/* ---------- Emergency ---------- */
.emergency { background: linear-gradient(135deg, var(--red) 0%, #a31c25 100%); color: #fff; }
.emergency-inner { display: grid; grid-template-columns: 1fr; gap: 30px; padding: 54px 20px; align-items: center; }
.emergency-copy h2 { color: #fff; margin-bottom: 14px; }
.emergency-copy p { color: #ffe0e2; margin-bottom: 18px; }
.emergency-list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.emergency-list li { position: relative; padding-left: 30px; font-weight: 500; }
.emergency-list li::before {
  content: "✓"; position: absolute; left: 0; top: -1px;
  width: 22px; height: 22px; background: rgba(255,255,255,.2); border-radius: 50%;
  display: grid; place-items: center; font-size: .8rem; font-weight: 800;
}
.emergency-badge { display: none; }
@media (min-width: 860px) {
  .emergency-inner { grid-template-columns: 1.4fr .6fr; padding: 66px 20px; }
  .emergency-badge { display: grid; place-items: center; position: relative; height: 230px; }
  .pulse-ring { position: absolute; width: 190px; height: 190px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); animation: ring 2.4s infinite; }
  @keyframes ring { 0%{ transform: scale(.7); opacity: 1;} 100%{ transform: scale(1.25); opacity: 0;} }
  .badge-core {
    width: 150px; height: 150px; border-radius: 50%; background: rgba(255,255,255,.14);
    border: 2px solid rgba(255,255,255,.5); display: grid; place-content: center; text-align: center;
    backdrop-filter: blur(4px);
  }
  .badge-core strong { font-family: var(--ff-display); font-size: 2.8rem; color: #fff; line-height: 1; }
  .badge-core span { font-size: .8rem; color: #ffe0e2; letter-spacing: .05em; text-transform: uppercase; }
}

/* ---------- Steps ---------- */
.steps { list-style: none; display: grid; grid-template-columns: 1fr; gap: 22px; counter-reset: s; }
.step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 24px 26px; text-align: center; position: relative; box-shadow: var(--shadow-sm);
}
.step-num {
  width: 48px; height: 48px; margin: 0 auto 14px; border-radius: 50%;
  background: var(--navy); color: #fff; font-family: var(--ff-display); font-size: 1.5rem; font-weight: 800;
  display: grid; place-items: center;
}
.step h3 { margin-bottom: 8px; }
.step p { font-size: .95rem; }
@media (min-width: 780px) { .steps { grid-template-columns: repeat(3,1fr); gap: 24px; } }

/* ---------- Offers ---------- */
.offers { display: grid; grid-template-columns: 1fr; gap: 20px; max-width: 880px; margin: 0 auto; }
.offer-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
.offer-card::before { content:""; position:absolute; left:0; top:0; bottom:0; width:5px; background: var(--red); }
.offer-tag {
  display: inline-block; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
  color: var(--red); background: #fdeaeb; padding: 5px 11px; border-radius: 999px; margin-bottom: 14px;
}
.offer-card h3 { margin-bottom: 8px; }
.offer-card p { font-size: .95rem; margin-bottom: 18px; }
@media (min-width: 720px) { .offers { grid-template-columns: 1fr 1fr; } }

/* ---------- Reviews ---------- */
.stars-lg { font-size: 1.5rem; color: var(--gold); letter-spacing: 2px; margin-top: 10px; }
.stars-lg span { display: block; font-size: .9rem; color: var(--body); letter-spacing: normal; margin-top: 4px; }
.reviews { display: grid; grid-template-columns: 1fr; gap: 20px; }
.review {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow-sm);
}
.review .stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 12px; }
.review p { color: var(--ink); font-size: 1rem; margin-bottom: 14px; }
.review cite { font-style: normal; font-size: .88rem; color: var(--muted); font-weight: 600; }
@media (min-width: 860px) { .reviews { grid-template-columns: repeat(3,1fr); } }

/* ---------- Schedule ---------- */
.schedule { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-900) 100%); color: #fff; padding: 62px 0; }
.schedule-inner { display: grid; grid-template-columns: 1fr; gap: 34px; align-items: start; }
.schedule-copy h2 { color: #fff; margin-bottom: 14px; }
.schedule-copy p { color: #d7ddf3; margin-bottom: 22px; }
.big-phone {
  display: inline-flex; align-items: center; gap: 12px; font-family: var(--ff-display);
  font-size: 2rem; font-weight: 800; color: #fff; letter-spacing: .5px;
}
.big-phone svg { background: var(--red); padding: 10px; border-radius: 50%; width: 46px; height: 46px; }
.schedule-fineprint { font-size: .88rem; color: #aeb6df; margin-top: 16px; }
.schedule-form {
  background: #fff; color: var(--ink); border-radius: var(--radius-lg);
  padding: 26px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 14px;
}
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-note { font-size: .9rem; text-align: center; min-height: 1em; }
.form-note.ok { color: #128a4e; font-weight: 600; }
@media (min-width: 900px) { .schedule-inner { grid-template-columns: 1fr 1fr; gap: 48px; } .schedule-form { padding: 32px; } }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  transition: box-shadow .2s, border-color .2s;
}
.faq-item[open] { box-shadow: var(--shadow-sm); border-color: #cfd6ee; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 18px 52px 18px 20px; position: relative;
  font-weight: 700; color: var(--ink); font-size: 1.02rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; color: var(--navy); transition: transform .2s;
}
.faq-item[open] summary::after { content: "−"; }
.faq-a { padding: 0 20px 20px; }
.faq-a p { color: var(--body); font-size: .97rem; }
.faq-a a { color: var(--red); font-weight: 700; }
.faq-disclaimer { text-align: center; font-size: .82rem; color: var(--muted); margin-top: 22px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #c3caea; }
.footer-inner { display: grid; grid-template-columns: 1fr; gap: 34px; padding: 52px 20px 34px; }
.brand-footer .brand-text strong { color: #fff; }
.footer-brand > p { margin: 16px 0 20px; font-size: .95rem; max-width: 360px; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.footer-col h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; letter-spacing: .04em; }
.footer-col a { display: block; padding: 5px 0; font-size: .92rem; color: #b3bbe0; transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-col p { font-size: .92rem; margin-bottom: 12px; }
.foot-phone a { font-family: var(--ff-display); font-size: 1.5rem; font-weight: 800; color: #ffd36b; }
.footer-bottom {
  display: flex; flex-direction: column; gap: 12px; padding: 20px; border-top: 1px solid rgba(255,255,255,.1);
  font-size: .82rem;
}
.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-legal a:hover { color: #fff; }
@media (min-width: 860px) {
  .footer-inner { grid-template-columns: 1.3fr 2fr; gap: 48px; }
  .footer-cols { grid-template-columns: repeat(3,1fr); }
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* ---------- Floating call widget ---------- */
.call-widget { position: fixed; right: 18px; bottom: 18px; z-index: 120; }
.cw-fab {
  position: relative; width: 62px; height: 62px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--red); color: #fff; box-shadow: 0 10px 26px rgba(211,44,54,.45);
  display: grid; place-items: center; transition: transform .18s;
}
.cw-fab:hover { transform: scale(1.06); }
.cw-fab-pulse { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(211,44,54,.5); animation: fab 2s infinite; }
@keyframes fab { 0%{ box-shadow:0 0 0 0 rgba(211,44,54,.5);} 70%{ box-shadow:0 0 0 16px rgba(211,44,54,0);} 100%{ box-shadow:0 0 0 0 rgba(211,44,54,0);} }
.cw-panel {
  position: absolute; right: 0; bottom: 74px; width: 280px;
  background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); padding: 18px;
  border: 1px solid var(--line); animation: cw-in .2s ease;
}
@keyframes cw-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.cw-head { font-weight: 700; color: var(--ink); font-size: .92rem; display: flex; align-items: center; gap: 8px; padding-right: 20px; }
.cw-close { position: absolute; top: 12px; right: 14px; background: none; border: 0; font-size: 1.4rem; line-height: 1; color: var(--muted); cursor: pointer; }
.cw-text { font-size: .88rem; color: var(--body); margin: 10px 0 14px; }
.cw-panel .btn { margin-bottom: 8px; }
.cw-schedule { margin-bottom: 0; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
