/* Carter Plumbing (sample site): clean, trustworthy, navy and teal */
@font-face { font-family: "Manrope"; font-weight: 400; font-display: swap; src: url(fonts/manrope-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 600; font-display: swap; src: url(fonts/manrope-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 800; font-display: swap; src: url(fonts/manrope-latin-800-normal.woff2) format("woff2"); }

:root {
  --navy: #0E2A47;
  --navy-2: #163A5F;
  --teal: #0B7A7C;
  --teal-hover: #096466;
  --teal-soft: #E3F3F2;
  --bg: #F6F8FA;
  --card: #FFFFFF;
  --text: #13222F;
  --muted: #4E5D6B;
  --line: #DCE3EA;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.55 var(--font); -webkit-font-smoothing: antialiased; padding-bottom: 76px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin: 0; color: var(--navy); }
h2 { font-size: clamp(28px, 7.4vw, 42px); }
h3 { font-size: 19px; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.section { padding: 64px 0 0; }
.kicker { font-weight: 800; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin-bottom: 10px; }
.intro { margin-top: 12px; color: var(--muted); max-width: 60ch; }
.small { font-size: 14px; color: var(--muted); }

.sample-bar { display: block; background: var(--navy); color: #DDE8F2; font-size: 13px; line-height: 1.4; text-align: center; padding: 8px 14px; text-decoration: none; }
.sample-bar:hover { text-decoration: underline; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px; border-radius: 12px; border: 2px solid transparent; font: 800 16px/1 var(--font); text-decoration: none; cursor: pointer; transition: background-color .15s, transform .15s; }
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.btn:active { transform: scale(.98); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-hover); }
.btn-line { border-color: var(--navy); color: var(--navy); background: #fff; }
.btn-line:hover { background: var(--navy); color: #fff; }
.btn-white { background: #fff; color: var(--navy); }
.btn-sm { min-height: 44px; padding: 0 18px; }
.btn-block { width: 100%; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 20px; background: rgba(255, 255, 255, .95); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.logo { display: flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; font-size: 19px; font-weight: 600; color: var(--navy); }
.logo b { font-weight: 800; color: var(--teal); }
.logo-mark { width: 28px; height: 28px; fill: var(--teal); }

/* Hero */
.hero { background: #fff; border-bottom: 1px solid var(--line); padding: 28px 0 32px; }
.hero-grid { display: grid; gap: 24px; }
.hero h1 { font-size: clamp(34px, 9.4vw, 58px); }
.hero h1 span { color: var(--teal); }
.lead { margin-top: 16px; font-size: 18px; color: var(--muted); max-width: 42ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero-actions .btn { flex: 1 1 150px; }
.ticks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7' fill='none' stroke='%230B7A7C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.hero-img { margin: 0; }
.hero-img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 18px; }

/* Services */
.services { display: grid; gap: 14px; margin-top: 24px; }
.svc { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: grid; grid-template-columns: 120px 1fr; }
.svc img { width: 100%; height: 100%; object-fit: cover; }
.svc-body { padding: 14px 16px; }
.svc-body p { font-size: 15px; color: var(--muted); margin-top: 4px; }
.svc-body .from { margin-top: 8px; color: var(--navy); }
.svc-body .from b { font-size: 20px; font-weight: 800; }
.emergency { display: grid; gap: 14px; margin-top: 18px; padding: 20px; border-radius: 16px; background: var(--navy); color: #fff; }
.emergency b { font-size: 18px; }
.emergency p { color: #C8D6E3; margin-top: 4px; font-size: 15px; }

/* Areas */
.areas { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.areas li { padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: 15px; }

/* Request form */
.req-sec { margin-top: 64px; padding-bottom: 64px; background: var(--teal-soft); }
.req-grid { display: grid; gap: 24px; }
.req-sec .kicker { color: #075E60; }
.how { margin: 18px 0 0; padding-left: 22px; display: grid; gap: 8px; color: var(--muted); }
.how b { color: var(--navy); }
.req, .done { background: #fff; border-radius: 18px; padding: 20px 18px; box-shadow: 0 10px 30px rgba(14, 42, 71, .08); display: grid; gap: 16px; }
.field { display: grid; gap: 6px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field label, .field legend { font-weight: 800; font-size: 15px; color: var(--navy); padding: 0; margin-bottom: 6px; }
input, select, textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid #B9C5D1; border-radius: 12px; background: #fff; color: var(--text); font: inherit; }
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
[aria-invalid="true"] { border-color: #C2412D; background: #FFF6F4; }
.chips { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.chip { flex: 1 1 90px; min-height: 46px; border-radius: 999px; border: 1.5px solid #B9C5D1; background: #fff; color: var(--navy); font: 600 15px/1 var(--font); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.err { color: #A33421; font-weight: 600; }
.err[hidden], .done[hidden], .req[hidden] { display: none; }
.done { text-align: center; padding: 30px 22px; }
.done:focus { outline: none; }
.done-tick { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto; border-radius: 50%; background: var(--teal); color: #fff; font-size: 28px; font-weight: 800; }
.done h3 { font-size: 26px; }
.done .btn { justify-self: center; }

/* FAQ */
.faq { margin-top: 20px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 14px; min-height: 58px; padding: 14px 0; font-weight: 800; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--teal-soft); color: var(--teal); font-size: 20px; }
.faq details[open] summary::after { content: "−"; }
.faq p { padding: 0 0 16px; color: var(--muted); }

/* Contact and footer */
.contact { display: grid; gap: 18px; padding-bottom: 8px; }
.contact-btns { display: grid; gap: 10px; }
.foot { margin-top: 56px; padding: 28px 20px 30px; background: var(--navy); color: #C8D6E3; text-align: center; font-size: 14px; display: grid; gap: 6px; }
.foot a { display: inline-block; padding: 12px 4px; color: #fff; }

/* Sticky call bar on phones */
.callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); }

/* Credits page */
.credits { padding: 36px 20px 10px; max-width: 760px; margin: 0 auto; }
.credits ul { padding-left: 18px; color: var(--muted); }
.credits li { margin: 12px 0; }
.credits a { color: var(--teal); font-weight: 600; }

@media (min-width: 560px) {
  .services { grid-template-columns: 1fr 1fr; }
  .svc { grid-template-columns: 1fr; }
  .svc img { aspect-ratio: 4 / 3; height: auto; }
}
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .callbar { display: none; }
  .hero { padding: 56px 0; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; align-items: center; gap: 48px; }
  .services { grid-template-columns: repeat(4, 1fr); }
  .emergency { grid-template-columns: 1fr auto; align-items: center; }
  .req-grid { grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
  .contact { grid-template-columns: 1fr auto; align-items: center; }
  .contact-btns { grid-template-columns: auto auto; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
