/* servicelinked.net: light, gold, high-contrast. Shared by the ServiceLinked homepage and the PlumbersHub pages. */
:root {
  --paper: #fbf8f1; --card: #fff; --ink: #14161b; --ink-2: #353a45; --muted: #555b67;
  --line: #e6dfcd; --line-2: #d8ceb6; --gold: #c9a23a; --gold-ink: #6e540c; --gold-wash: #f7eed6;
  --blue: #2d5b9a; --good: #1f6b3d; --urgent: #9e2a1f; --urgent-wash: #fbe9e6;
  --shadow: 0 1px 2px rgba(20,22,27,.05), 0 10px 30px rgba(20,22,27,.07);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; --display: 'Cinzel', Georgia, serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 36px; align-items: center; }
.hero-grid .prices { margin-top: 0; }
.hero-mark img { width: 100%; max-width: 440px; height: auto; margin: 0 auto; filter: drop-shadow(0 12px 30px rgba(168,132,28,.18)); }
.side-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 22px; box-shadow: var(--shadow); }
.side-card .prices { border: 0; background: none; padding: 0; }
.side-card .prices .row { flex-direction: column; gap: 0; }
.side-card .prices .row span { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--line); padding: 8px 0; white-space: normal; gap: 12px; }
.side-card .free { margin-top: 14px; background: #e5f3ea; color: var(--good); border-radius: 12px; padding: 12px 14px; font-weight: 700; font-size: 16px; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/1.65 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--gold-ink); }
h1, h2, h3 { line-height: 1.18; margin: 0; letter-spacing: -.015em; }
p { margin: 0 0 14px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* header */
.hdr { position: sticky; top: 0; z-index: 30; background: rgba(251,248,241,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.hdr .wrap { display: flex; align-items: center; gap: 14px; min-height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { height: 34px; width: auto; }
.brand span { font-family: var(--display); font-weight: 700; letter-spacing: .08em; font-size: 17px; }
.brand small { display: block; font-family: var(--font); font-size: 11px; letter-spacing: .14em; color: var(--gold-ink); font-weight: 800; text-transform: uppercase; }
.hdr nav { margin-left: auto; display: flex; gap: 22px; align-items: center; }
.hdr nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 16px; }
.hdr nav a:hover { color: var(--gold-ink); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 26px; border-radius: 14px; border: 0; cursor: pointer;
  background: var(--ink); color: #fff; font: 700 18px var(--font); text-decoration: none; transition: transform .12s ease; }
.btn:active { transform: scale(.98); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn.gold { background: linear-gradient(180deg, #d7b14b, #b8901f); color: #1b1503; box-shadow: 0 8px 22px rgba(168,132,28,.3); }
.btn.urgent { background: var(--urgent); color: #fff; box-shadow: 0 8px 22px rgba(158,42,31,.25); }
.btn.ghost { background: var(--card); color: var(--ink); border: 1.5px solid var(--line-2); }
.btn.sm { min-height: 44px; padding: 0 18px; font-size: 16px; border-radius: 11px; }
.btn[disabled] { opacity: .55; pointer-events: none; }

/* sections */
.hero { padding: 64px 0 46px; background: radial-gradient(900px 480px at 75% -10%, #fff 0%, rgba(255,255,255,0) 65%); position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .45;
  background-image: linear-gradient(90deg, rgba(201,162,58,.13) 1px, transparent 1px), linear-gradient(0deg, rgba(201,162,58,.13) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(ellipse at 70% 30%, #000 5%, transparent 65%); }
.hero .wrap { position: relative; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-ink); background: var(--gold-wash); border: 1px solid #ecdcae; border-radius: 99px; padding: 6px 14px; }
.eyebrow.urgent { color: var(--urgent); background: var(--urgent-wash); border-color: #f2c9c2; }
.hero h1 { font-size: clamp(36px, 5.6vw, 64px); font-weight: 800; margin: 18px 0 14px; max-width: 900px; }
.hero h1 em { font-style: normal; background: linear-gradient(180deg, transparent 62%, rgba(201,162,58,.38) 62%); }
.hero .lede { font-size: clamp(19px, 2.2vw, 22px); color: var(--ink-2); max-width: 760px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.trust span::before { content: '✓'; color: var(--good); font-weight: 900; margin-right: 8px; }
.sec { padding: 56px 0; }
.sec.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; margin-bottom: 10px; }
.sec .sub { color: var(--muted); font-size: 19px; max-width: 760px; margin-bottom: 26px; }
.grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px; box-shadow: var(--shadow); }
.card.gold-top { border-top: 4px solid var(--gold); }
.card h3 { font-size: 21px; margin-bottom: 8px; }
.card .k { font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 6px; }
.card p:last-child { margin-bottom: 0; }
.ic { width: 52px; height: 52px; border-radius: 14px; background: var(--gold-wash); color: var(--gold-ink); display: grid; place-items: center; margin-bottom: 14px; }
.ic svg { width: 28px; height: 28px; }
.steps { counter-reset: s; display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps .card { position: relative; padding-top: 30px; }
.steps .card::before { counter-increment: s; content: counter(s); position: absolute; top: -18px; left: 22px; width: 40px; height: 40px; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 800; display: grid; place-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips span { background: var(--card); border: 1.5px solid var(--line-2); border-radius: 99px; padding: 8px 16px; font-weight: 600; font-size: 16px; }
.prices { border: 2px solid var(--gold); background: #fffdf6; border-radius: 16px; padding: 16px 18px; margin-top: 22px; max-width: 820px; font-size: 17px; }
.prices b { color: var(--ink); }
.prices .row { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 6px; }
.prices .row span { white-space: nowrap; }
.tip { border-left: 5px solid var(--urgent); background: var(--urgent-wash); border-radius: 12px; padding: 16px 18px; }
.tip b { color: var(--urgent); }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 18px; }
.faq details p { margin: 10px 0 0; color: var(--ink-2); }
.city-card { display: block; text-decoration: none; color: var(--ink); transition: transform .15s ease, box-shadow .2s ease; }
.city-card:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(20,22,27,.12); }
.city-card .go { color: var(--gold-ink); font-weight: 800; margin-top: 10px; display: inline-block; }

/* forms */
form .f { margin-bottom: 14px; }
form label { display: block; font-weight: 700; font-size: 16px; margin-bottom: 6px; }
form input, form textarea, form select { width: 100%; min-height: 54px; border: 2px solid var(--line-2); border-radius: 12px; padding: 12px 14px; font: 18px var(--font); background: #fff; }
form textarea { min-height: 110px; resize: vertical; }
form input:focus, form textarea:focus, form select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201,162,58,.2); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); line-height: 1.5; margin: 6px 0 14px; }
.consent input { width: 22px; height: 22px; min-height: 0; flex: none; margin-top: 2px; accent-color: var(--gold-ink); }
.hp { position: absolute; left: -9999px; }
.err { color: var(--urgent); font-weight: 600; min-height: 24px; font-size: 16px; }
.ok-msg { background: #e5f3ea; color: var(--good); border-radius: 12px; padding: 16px; font-weight: 700; }

/* footer */
.ftr { background: #14161b; color: #d8d4c8; padding: 46px 0 120px; font-size: 15px; }
.ftr a { color: #e8c867; }
.ftr .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.ftr h4 { color: #fff; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 10px; }
.ftr ul { list-style: none; padding: 0; margin: 0; }
.ftr li { margin: 6px 0; }
.ftr .disc { border-top: 1px solid rgba(255,255,255,.12); margin-top: 28px; padding-top: 18px; font-size: 13.5px; color: #b8b4a8; line-height: 1.6; }
.ftr .logo { height: 46px; width: auto; filter: brightness(1.15); margin-bottom: 10px; }

/* mobile sticky action bar (city pages) */
.actionbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: none; gap: 10px; padding: 10px 12px max(10px, env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(0,0,0,.08); }
.actionbar .btn { flex: 1; min-height: 54px; }

/* chat */
.chat-back { position: fixed; inset: 0; z-index: 60; background: rgba(20,22,27,.45); display: flex; align-items: flex-end; justify-content: center; }
.chat { width: 100%; max-width: 460px; height: min(88svh, 720px); background: var(--card); border-radius: 22px 22px 0 0; display: flex; flex-direction: column; box-shadow: 0 -10px 40px rgba(0,0,0,.2); animation: up .25s ease; overflow: hidden; }
@media (min-width: 700px) { .chat-back { align-items: flex-end; justify-content: flex-end; padding: 20px; background: rgba(20,22,27,.25); } .chat { border-radius: 22px; } }
@keyframes up { from { transform: translateY(24px); opacity: 0; } }
.chat-h { background: var(--ink); color: #fff; padding: 16px 18px; display: flex; align-items: center; gap: 12px; }
.chat-h img { width: 44px; height: 44px; border-radius: 12px; background: #fff; padding: 4px; object-fit: contain; }
.chat-h b { display: block; font-size: 17px; }
.chat-h small { color: #e8c867; font-size: 13px; font-weight: 600; }
.chat-h small::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 99px; background: #4cc27a; margin-right: 6px; }
.chat-h button { margin-left: auto; width: 42px; height: 42px; border: 0; border-radius: 11px; background: rgba(255,255,255,.12); color: #fff; font-size: 22px; cursor: pointer; }
.chat-body { flex: 1; overflow-y: auto; padding: 16px; background: #fbf8f1; }
.chat-body form { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.bub { max-width: 84%; padding: 10px 14px; border-radius: 16px; margin: 6px 0; font-size: 16.5px; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; }
.bub.in { margin-left: auto; background: var(--ink); color: #fff; border-bottom-right-radius: 4px; }
.bub.out { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.bub.sys { background: var(--gold-wash); border: 1px solid #ecdcae; color: var(--ink-2); font-size: 15px; max-width: 100%; }
.chat-f { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); background: #fff; }
.chat-f input { flex: 1; min-height: 50px; border: 2px solid var(--line-2); border-radius: 12px; padding: 0 14px; font: 17px var(--font); }
.chat-f input:focus { outline: none; border-color: var(--gold); }
.chat-f button { min-height: 50px; }
.fab { position: fixed; right: 18px; bottom: 18px; z-index: 35; }

@media (max-width: 900px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3, .steps { grid-template-columns: minmax(0, 1fr); }
  .steps { gap: 30px; }
  .ftr .cols { grid-template-columns: minmax(0, 1fr); }
  .hdr nav a.hide-m { display: none; }
}
@media (max-width: 680px) {
  body { font-size: 17.5px; }
  .g2, .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero { padding: 38px 0 30px; }
  .sec { padding: 42px 0; }
  .cta-row .btn { width: 100%; }
  .actionbar { display: flex; }
  .hero-mark { display: none; }
  .fab { display: none; }
  .hdr nav { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

@media (max-width: 680px) {
  .hdr nav a:not(.btn) { display: none; }
  .hdr nav .btn.sm { min-height: 40px; padding: 0 14px; font-size: 15px; }
  .brand span { font-size: 15px; }
}
@media (max-width: 680px) { .hdr nav .btn { white-space: nowrap; } .brand small { font-size: 10px; letter-spacing: .1em; } }
