/* Apex Plumbing Repair LLC: one stylesheet, system fonts, no external requests. */
:root {
  --ink: #12243a;
  --ink-soft: #52627a;
  --navy: #12304f;
  --navy-dark: #0b2038;
  --sky: #eaf2fa;
  --line: #d9e3ee;
  --accent: #e8611a;
  --accent-dark: #c74f10;
  --radius: 14px;
  --shadow: 0 18px 40px -22px rgba(18, 36, 58, .5);
  --wrap: 1140px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.6 var(--font); color: var(--ink); background: #fff; overflow-x: clip; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 850; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.16rem; font-weight: 750; }
p { margin: 0 0 1em; }
a { color: var(--navy); }
svg { width: 1em; height: 1em; flex: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; }
.skip:focus { left: 10px; top: 10px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.eyebrow { font-size: .8rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-dark); margin-bottom: 10px; }
.eyebrow--light { color: #ffb489; }
.todo { background: #fff3c4; color: #6b5200; padding: 0 6px; border-radius: 5px; font-weight: 600; }
.demo-note { background: #fff3c4; color: #6b5200; font-size: .85rem; text-align: center; padding: 6px 16px; }

/* Top bar */
.topbar { background: var(--navy-dark); color: #fff; font-size: .92rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 40px; }
.topbar span { display: inline-flex; align-items: center; gap: 8px; }
.topbar svg { width: 18px; height: 18px; color: #ffb489; }
.topbar a { color: #fff; font-weight: 700; }
@media (max-width: 640px) { .topbar-links { display: none !important; } }

/* Header */
.header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header .wrap { display: flex; align-items: center; gap: 24px; min-height: 74px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.logo-mark { width: 40px; height: 40px; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text strong { font-size: 1.5rem; font-weight: 900; letter-spacing: .08em; }
.logo-text span { font-size: .68rem; font-weight: 750; letter-spacing: .16em; color: var(--accent-dark); margin-top: 3px; }
.logo--light .logo-text span { color: #ffb489; }
.logo--light { color: #fff; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; }
.nav a:hover { color: var(--accent-dark); }
.header-call { white-space: nowrap; }
.call-word { display: none; }
@media (max-width: 880px) { .nav { display: none; } .header-call { margin-left: auto; } }
@media (max-width: 520px) {
  .logo-mark { width: 34px; height: 34px; }
  .logo-text strong { font-size: 1.25rem; }
  .logo-text span { font-size: .6rem; letter-spacing: .12em; }
  .header-call { padding: 11px 16px; font-size: .95rem; }
  .call-num { display: none; }
  .call-word { display: inline; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 13px 22px; border-radius: 12px; border: 2px solid transparent; font: 750 1rem/1 var(--font); text-decoration: none; cursor: pointer; transition: background .15s, transform .15s; }
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 19px; height: 19px; }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-dark); }
.btn--light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn--light:hover { background: rgba(255, 255, 255, .1); }
.btn--big { padding: 17px 26px; font-size: 1.08rem; }
.btn--wide { width: 100%; }

/* Hero */
.hero { background: radial-gradient(1200px 500px at 85% -10%, #1f4d7a 0%, transparent 60%), var(--navy); color: #fff; padding: clamp(44px, 7vw, 92px) 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero .eyebrow { color: #ffb489; }
.hero .todo { font-size: .9em; letter-spacing: 0; text-transform: none; }
.lede { font-size: 1.16rem; color: #cfdbe8; max-width: 580px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; color: #dfe8f2; font-weight: 600; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points svg { width: 20px; height: 20px; color: #ffb489; }
.card-form { background: #fff; color: var(--ink); border-radius: 18px; padding: clamp(22px, 3.6vw, 32px); box-shadow: 0 28px 60px -24px rgba(0, 0, 0, .55); }
.card-form h2 { font-size: 1.5rem; margin-bottom: 6px; }
.card-form > p { color: var(--ink-soft); font-size: .96rem; }
@media (max-width: 880px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }

/* Sections */
.section { padding: clamp(52px, 7vw, 92px) 0; }
.section--tint { background: var(--sky); }
.section--navy { background: var(--navy-dark); color: #fff; }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head p:last-child { color: var(--ink-soft); }

.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 18px; }
.service { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.service:hover { border-color: #b9cbe0; box-shadow: var(--shadow); }
.service svg { width: 34px; height: 34px; color: var(--accent); margin-bottom: 12px; }
.service p { color: var(--ink-soft); margin: 0; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: s; }
.steps li { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius); padding: 26px; }
.steps li::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--accent); font-weight: 850; margin-bottom: 14px; }
.steps p { color: #c3d1e0; margin: 0; }
@media (max-width: 800px) { .steps { grid-template-columns: minmax(0, 1fr); } }

.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.review { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.review--placeholder { border-style: dashed; }
.review--placeholder blockquote, .review--placeholder figcaption { color: #8a6d00; }
.stars { display: flex; gap: 3px; color: #f2a516; margin-bottom: 12px; }
.stars svg { width: 20px; height: 20px; }
.review blockquote { margin: 0 0 14px; font-size: 1.04rem; }
.review figcaption { font-weight: 700; font-size: .93rem; color: var(--ink-soft); }

.areas { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 56px); align-items: center; }
.areas p { color: var(--ink-soft); }
.towns { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; font-weight: 650; }
.towns li { justify-self: start; }
@media (max-width: 880px) { .areas { grid-template-columns: minmax(0, 1fr); } }

.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact > div > p { color: var(--ink-soft); }
.contact-list { list-style: none; padding: 0; margin: 22px 0 0; }
.contact-list li { display: flex; gap: 12px; align-items: center; padding: 9px 0; font-weight: 600; overflow-wrap: anywhere; }
.contact-list svg { width: 22px; height: 22px; color: var(--accent); }
.form { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: clamp(20px, 4vw, 32px); box-shadow: var(--shadow); }
@media (max-width: 880px) { .contact { grid-template-columns: minmax(0, 1fr); } }

.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 650; font-size: .94rem; margin-bottom: 6px; }
.field label span { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea { width: 100%; padding: 13px 14px; border: 2px solid var(--line); border-radius: 11px; font: inherit; color: var(--ink); background: #fff; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(18, 48, 79, .15); }
.form-msg { min-height: 1.4em; margin: 12px 0 0; font-weight: 650; font-size: .95rem; }
.form-msg.is-error { color: #b3261e; }
.form-msg.is-ok { color: #1d7a44; }

.promise { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.promise p { color: #c3d1e0; }
.promise-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.promise-list li { display: flex; align-items: center; gap: 18px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius); padding: 16px 20px; }
.promise-list strong { font-size: 1.9rem; font-weight: 850; color: #ffb489; min-width: 84px; }
.promise-list span { color: #dfe8f2; font-weight: 600; }
@media (max-width: 880px) { .promise { grid-template-columns: minmax(0, 1fr); } }

.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.person { display: flex; gap: 18px; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.avatar { width: 58px; height: 58px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; display: grid; place-items: center; flex: none; letter-spacing: .04em; }
.person h3 span { display: block; font-size: .85rem; font-weight: 650; color: var(--accent-dark); margin-top: 4px; letter-spacing: 0; }
.person p { color: var(--ink-soft); margin: 0; }

.faq-wrap { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative; font-weight: 700; font-size: 1.06rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--ink-soft); padding-right: 30px; }

/* Footer */
.footer { background: var(--navy-dark); color: #b8c7d8; padding: 36px 0 44px; font-size: .94rem; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 36px; align-items: center; }
.footer a { color: #fff; }
.footer p { margin: 0; }
.footer .copy { margin-left: auto; color: #8193a8; }

/* Sticky call bar on phones */
.callbar { display: none; }
@media (max-width: 700px) {
  .callbar { display: grid; grid-template-columns: 2fr 1fr; gap: 8px; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30; }
  .callbar a { display: flex; justify-content: center; align-items: center; gap: 9px; color: #fff; font-weight: 800; font-size: 1.05rem; text-decoration: none; padding: 16px; border-radius: 14px; box-shadow: 0 10px 28px -8px rgba(0, 0, 0, .45); background: var(--accent); }
  .callbar a + a { background: var(--navy); }
  .callbar svg { width: 20px; height: 20px; }
  .footer { padding-bottom: 100px; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
