/* Superior Plumbing Heating & A/C — site styles (no framework) */
:root {
  --green: #8cc540;        /* logo green */
  --green-dark: #2e5c10;   /* readable green for text and buttons */
  --green-deep: #1d3d09;
  --blue: #12b6f8;         /* logo blue */
  --red: #e5343a;          /* logo red, slightly deepened */
  --ink: #18212b;
  --muted: #55606c;
  --line: #e3e8dc;
  --soft: #f4f8ee;
  --white: #fff;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 32, .06), 0 6px 20px rgba(16, 24, 32, .06);
  --wrap: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
[id] { scroll-margin-top: 96px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-dark); }
a:hover { color: var(--green-deep); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 750; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--white); padding: 8px 12px; }

/* ---------- Top bar ---------- */
.topbar { background: var(--green-deep); color: #e8f3da; font-size: .875rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 12px; padding-top: 6px; padding-bottom: 6px; flex-wrap: wrap; }
.topbar a { color: var(--white); text-decoration: none; font-weight: 600; }

/* ---------- Header ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand img { width: 52px; height: auto; }
.brand-name { font-weight: 800; font-size: 1.15rem; line-height: 1.1; }
.brand-name small { display: block; font-weight: 600; font-size: .8rem; color: var(--muted); letter-spacing: .02em; }
.nav { display: flex; gap: 4px; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 600; padding: 8px 12px; border-radius: 8px; }
.nav a:hover { background: var(--soft); }
.nav a[aria-current="page"] { color: var(--green-dark); box-shadow: inset 0 -3px 0 var(--green); border-radius: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 10px; font-weight: 700; text-decoration: none;
  border: 2px solid transparent; transition: background .15s, transform .15s; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-call { background: var(--red); color: var(--white); }
.btn-call:hover { background: #c92a30; color: var(--white); }
.btn-primary { background: var(--green-dark); color: var(--white); }
.btn-primary:hover { background: var(--green-deep); color: var(--white); }
.btn-ghost { border-color: currentColor; color: var(--green-dark); background: transparent; }
.btn-ghost:hover { background: var(--soft); }
.btn-lg { padding: 15px 26px; font-size: 1.1rem; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1000px 400px at 90% -10%, rgba(18, 182, 248, .14), transparent 60%),
    radial-gradient(800px 400px at -10% 110%, rgba(140, 197, 64, .22), transparent 60%),
    var(--soft);
  padding: 72px 0 64px;
}
.hero .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--green-dark); margin-bottom: 12px; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 36em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 0; }
.trust-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; border-top: 5px solid var(--green); }
.trust-card h2 { font-size: 1.15rem; margin-bottom: 14px; }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { position: relative; padding: 7px 0 7px 32px; font-weight: 600; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 10px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
}
.license { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }

/* ---------- Sections ---------- */
section.block { padding: 72px 0; }
section.block.alt { background: var(--soft); }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }

/* Service cards */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card.accent-blue { border-top: 5px solid var(--blue); }
.card.accent-red { border-top: 5px solid var(--red); }
.card.accent-green { border-top: 5px solid var(--green); }
.card-icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px; }
.card-icon svg { width: 26px; height: 26px; }
.icon-blue { background: rgba(18, 182, 248, .14); color: #0784b8; }
.icon-red { background: rgba(229, 52, 58, .12); color: var(--red); }
.icon-green { background: rgba(140, 197, 64, .2); color: var(--green-dark); }
.list { margin: 0 0 20px; padding: 0; list-style: none; columns: 2; column-gap: 24px; }
.list li { padding: 5px 0 5px 18px; position: relative; break-inside: avoid; }
.list li::before { content: ""; position: absolute; left: 0; top: 14px; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.list.one-col { columns: 1; }
.more { font-weight: 700; text-decoration: none; }
.more::after { content: " →"; }

/* Reviews */
.review { margin: 0; display: flex; flex-direction: column; }
.review blockquote { margin: 0 0 16px; padding-left: 16px; border-left: 3px solid var(--green); color: var(--ink); flex: 1; }
.review figcaption { font-weight: 700; color: var(--muted); }

/* Brands */
.brands { display: flex; justify-content: center; align-items: center; gap: 56px; flex-wrap: wrap; }
.brands img { height: 64px; width: auto; }

/* Service area */
.areas { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: start; }
.cities { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cities li { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: .95rem; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--green-deep), var(--green-dark)); color: var(--white); padding: 56px 0; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 4px; }
.cta-band p { margin: 0; color: #d7ebc0; }

/* Page header (inner pages) */
.page-head { background: var(--soft); padding: 56px 0 40px; border-bottom: 1px solid var(--line); }
.page-head p { color: var(--muted); font-size: 1.15rem; max-width: 40em; margin: 0; }
.crumbs { font-size: .9rem; margin-bottom: 10px; color: var(--muted); }
.crumbs a { color: var(--muted); }

/* Prose */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; }
.two-col { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: start; }
.aside { position: sticky; top: 100px; }

/* Contact */
.contact-items { display: grid; gap: 16px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-item .card-icon { margin: 0; flex: none; }
.contact-item strong { display: block; }
.contact-item a.big { font-size: 1.5rem; font-weight: 800; text-decoration: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c5ccd4; padding: 56px 0 28px; font-size: .95rem; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h3 { color: var(--white); font-size: 1rem; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 3px 0; }
.site-footer address { font-style: normal; }
.footer-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; color: var(--white); font-weight: 800; }
.footer-brand img { width: 44px; background: var(--white); border-radius: 8px; padding: 4px; }
.legal { border-top: 1px solid #2c3743; margin-top: 36px; padding-top: 20px; font-size: .85rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Sticky mobile call bar */
.callbar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .wrap, .areas, .two-col { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .aside { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
.nav a, .brand-name { white-space: nowrap; }
.brand picture, .brand img { flex: none; }
@media (max-width: 1080px) {
  .site-header .wrap { flex-wrap: wrap; gap: 8px; padding-top: 10px; padding-bottom: 0; min-height: 0; }
  .nav { order: 3; width: 100%; flex-wrap: wrap; gap: 0 2px; margin: 0 -10px; padding: 0 0 4px; }
  .nav a { padding: 8px 10px; font-size: .95rem; }
}
@media (max-width: 720px) {
  body { padding-bottom: 68px; }
  .topbar .hide-sm { display: none; }
  .header-call { display: none; }
  .hero { padding: 44px 0 40px; }
  .hero-actions .btn { flex: 1 1 100%; }
  section.block { padding: 52px 0; }
  .grid-2 { grid-template-columns: 1fr; }
  .list { columns: 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .brands { gap: 32px; }
  .brands img { height: 48px; }
  .callbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, .08);
  }
  .callbar .btn { flex: 1; padding: 13px 10px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
