/* Cobalt Creek Heating & Plumbing (sample). Layout: phone number is the hero; photo-backed hero, dense service grid, upfront price table, area list. */
:root {
  --bg: #f3f4f2;
  --paper: #ffffff;
  --navy: #0e2238;
  --navy-2: #16314f;
  --cobalt: #1f5bd6;
  --amber: #f2a614;
  --amber-deep: #d48c00;
  --ink: #0e1a26;
  --muted: #56616c;
  --line: #dde1e4;
  --display: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  --body: 'Public Sans', -apple-system, 'Helvetica Neue', Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.narrow { max-width: 780px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1; letter-spacing: -.005em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(50px, 7.6vw, 92px); }
h2 { font-size: clamp(38px, 5vw, 60px); }
h3 { font-size: 27px; }
p { margin: 0; }
.lede { font-size: 19px; color: var(--muted); max-width: 54ch; }
.eyebrow { font-size: 15px; font-weight: 700; color: var(--cobalt); }

.sample { background: #000; color: #c9d1d9; font-size: 13.5px; text-align: center; padding: 9px 16px; }
.sample a { color: #fff; font-weight: 600; }
.emerg { background: var(--amber); color: var(--navy); font-weight: 700; font-size: 15px; text-align: center; padding: 8px 16px; }
.emerg a { color: var(--navy); }

.head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: var(--navy); color: #fff; }
.head .wrap { display: flex; align-items: center; gap: 22px; min-height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; font: 700 24px/1 var(--display); letter-spacing: .01em; }
.logo i { width: 34px; height: 34px; border-radius: 8px; background: var(--cobalt); display: inline-flex; align-items: center; justify-content: center; }
.logo small { display: block; font: 600 11px/1 var(--body); letter-spacing: .12em; color: #9fb3c8; margin-top: 3px; }
.nav { display: flex; gap: 22px; font-size: 15px; }
.nav a { color: #c6d3e0; text-decoration: none; }
.nav a:hover { color: #fff; }
@media (max-width: 960px) { .nav { display: none; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 24px; border-radius: 10px; border: 0; background: var(--amber); color: var(--navy); font: 700 17px var(--body); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s; }
.btn:hover { background: var(--amber-deep); }
.btn.blue { background: var(--cobalt); color: #fff; }
.btn.blue:hover { background: #1a4db5; }
.btn.ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .7); }
.btn.ghost:hover { background: rgba(255, 255, 255, .1); }
.btn.sm { min-height: 46px; padding: 0 18px; font-size: 16px; }
@media (max-width: 520px) { .head .btn.sm span { display: none; } }

/* Hero */
.hero { position: relative; color: #fff; background: var(--navy); overflow: hidden; }
.hero .bgimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 34, 56, .96) 0%, rgba(14, 34, 56, .86) 45%, rgba(14, 34, 56, .35) 100%); }
@media (max-width: 760px) { .hero::after { background: linear-gradient(180deg, rgba(14, 34, 56, .7) 0%, rgba(14, 34, 56, .93) 55%); } }
.hero .wrap { position: relative; z-index: 1; padding-top: 80px; padding-bottom: 84px; }
.hero h1 { max-width: 15ch; }
.hero .lede { color: #c6d3e0; margin-top: 20px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.call-big { display: inline-flex; flex-direction: column; gap: 2px; text-decoration: none; }
.trustrow { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 30px; font-size: 15px; color: #dbe5ef; }
.trustrow span { display: inline-flex; align-items: center; gap: 8px; }
.trustrow svg { color: var(--amber); }

/* Sections */
.sec { padding: 84px 0; }
.sec.white { background: var(--paper); }
.sec.dark { background: var(--navy); color: #fff; }
.sec.dark .lede { color: #c6d3e0; }
.sec.dark .eyebrow { color: var(--amber); }
.sec-head { display: grid; gap: 14px; margin-bottom: 40px; max-width: 680px; }

.svcs { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.svc { display: grid; grid-template-rows: auto 1fr; background: var(--paper); border-radius: 14px; overflow: hidden; border: 1px solid var(--line); text-decoration: none; }
.svc img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.svc div { display: grid; gap: 8px; align-content: start; padding: 20px 20px 22px; }
.svc p { color: var(--muted); font-size: 15.5px; }
.svc .more { font-weight: 700; color: var(--cobalt); font-size: 15px; }
.svc:hover h3 { color: var(--cobalt); }
.svc.plain { background: var(--navy); color: #fff; border-color: var(--navy); }
.svc.plain div { padding: 26px; }
.svc.plain p { color: #c6d3e0; }
.svc.plain ul { margin: 6px 0 0; padding-left: 18px; color: #dbe5ef; font-size: 15.5px; }

/* Why us */
.why { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
@media (min-width: 900px) { .why { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; } }
.why img { width: 100%; border-radius: 16px; aspect-ratio: 4 / 3; object-fit: cover; }
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.points li { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 4px 14px; }
.points i { grid-row: span 2; width: 42px; height: 42px; border-radius: 10px; background: #e7eefb; color: var(--cobalt); display: inline-flex; align-items: center; justify-content: center; }
.points b { font-size: 18px; }
.points span { color: var(--muted); font-size: 15.5px; }

/* Price table */
.ptable { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: 14px; overflow: hidden; font-size: 16px; }
.ptable th, .ptable td { text-align: left; padding: 16px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ptable th { background: #e9edf1; font-size: 14px; font-weight: 700; color: var(--muted); }
.ptable td:last-child, .ptable th:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 700; }
.ptable small { display: block; color: var(--muted); font-size: 14px; }
.tablewrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--line); }
.fine { font-size: 13.5px; color: var(--muted); margin-top: 14px; }

/* Area */
.areas { display: flex; flex-wrap: wrap; gap: 10px; }
.areas span { padding: 10px 16px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); font-weight: 600; }

/* Reviews */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.review { display: grid; gap: 12px; align-content: start; padding: 24px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); }
.stars { color: var(--amber-deep); letter-spacing: 3px; }
.review p { font-size: 17px; }
.review small { color: var(--muted); font-size: 14px; }
.tag { display: inline-block; font-size: 12.5px; font-weight: 700; color: var(--muted); background: #e9edf1; padding: 3px 10px; border-radius: 999px; }

.faq details { border-top: 1px solid var(--line); padding: 18px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; font-weight: 700; font-size: 17.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--cobalt); }
.faq details[open] summary::after { content: "\2013"; }
.faq p { margin-top: 10px; color: var(--muted); max-width: 66ch; }

/* Quote form */
.quote { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
@media (min-width: 900px) { .quote { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 60px; } }
.callcard { display: grid; gap: 14px; align-content: start; }
.callcard .num { font: 700 clamp(40px, 5vw, 54px)/1 var(--display); color: var(--amber); text-decoration: none; }
.form { display: grid; gap: 16px; padding: 28px; border-radius: 16px; background: var(--paper); color: var(--ink); }
@media (max-width: 560px) { .form { padding: 22px 18px; } }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.f { display: grid; gap: 6px; font-size: 14px; font-weight: 700; min-width: 0; }
.f input, .f select, .f textarea { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 10px; border: 1px solid #c9d0d6; background: var(--bg); color: var(--ink); font: 400 16px var(--body); }
.f textarea { min-height: 90px; resize: vertical; }
.f input:focus, .f select:focus, .f textarea:focus { outline: 3px solid var(--amber); outline-offset: 1px; border-color: transparent; }
.urgent { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.urgent legend { font-size: 14px; font-weight: 700; margin-bottom: 8px; padding: 0; }
.urgent label { position: relative; }
.urgent input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.urgent span { display: inline-flex; min-height: 44px; align-items: center; padding: 0 16px; border-radius: 10px; border: 1px solid #c9d0d6; font-weight: 600; font-size: 15px; }
.urgent input:checked + span { background: var(--navy); color: #fff; border-color: var(--navy); }
.urgent input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: 2px; }
.err { color: #b4232a; font-size: 14px; }
.done { display: grid; gap: 10px; padding: 28px; border-radius: 16px; background: var(--paper); color: var(--ink); }
.done h3 { font-size: 34px; }

.foot { background: #081626; color: #9fb3c8; padding: 54px 0 120px; font-size: 15px; }
.foot .wrap { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.foot b { color: #fff; display: block; margin-bottom: 8px; }
.foot a { color: #fff; }
.foot .note { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 22px; font-size: 13.5px; color: #8296ab; }
@media (min-width: 900px) { .foot { padding-bottom: 54px; } }

.mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; padding: 10px max(14px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(14px, env(safe-area-inset-left, 0px)); background: var(--navy); border-top: 1px solid var(--navy-2); }
.mbar .btn { min-height: 50px; padding: 0 12px; }
@media (min-width: 900px) { .mbar { display: none; } }

.crumbs { font-size: 14px; color: #9fb3c8; margin-bottom: 16px; }
.crumbs a { color: #c6d3e0; }
.signs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.sign { padding: 22px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); display: grid; gap: 6px; }
.sign b { font-size: 18px; }
.sign span { color: var(--muted); font-size: 15.5px; }
@media (max-width: 360px) { .svcs { grid-template-columns: minmax(0, 1fr); } }
