/* =================================================================
   Batts Plumbing & Air — bright, clean home-services theme
   ================================================================= */

:root {
  --blue: #0e6ba8;
  --blue-dark: #0a4d7a;
  --blue-light: #1789d6;
  --red: #e8462a;
  --red-dark: #c8371d;
  --navy: #0a2b4a;
  --ink: #1f2d3a;
  --muted: #5c6b7a;
  --line: #e2e8ef;
  --tint: #f2f7fb;
  --white: #ffffff;

  --head: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --body: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1160px;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 14px 34px -18px rgba(10, 43, 74, .35);
  --shadow-sm: 0 6px 18px -10px rgba(10, 43, 74, .3);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--white);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }

h1, h2, h3, h4 { font-family: var(--head); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; color: var(--navy); }
h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); letter-spacing: -.01em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.section--tint { background: var(--tint); }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--red); color: #fff; padding: .6rem 1rem; z-index: 300; }
.skip-link:focus { left: 1rem; top: 1rem; }

.eyebrow { font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; color: var(--blue); margin: 0 0 .7rem; }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto clamp(2rem, 4vw, 3rem); }
.sec-head__lead { color: var(--muted); font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--head); font-weight: 600; font-size: .98rem;
  padding: .8rem 1.5rem; border-radius: 999px; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
  white-space: nowrap;
}
.btn-lg { padding: 1rem 1.9rem; font-size: 1.05rem; }
.btn-block { display: flex; width: 100%; margin-top: 1.2rem; }
.btn-primary { background: var(--red); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { background: rgba(255,255,255,.24); }
.btn-white { background: #fff; color: var(--blue-dark); box-shadow: var(--shadow-sm); }
.btn-white:hover { transform: translateY(-2px); }
.btn-outline-white { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-outline-white:hover { background: rgba(255,255,255,.15); }

/* ---------- Utility bar ---------- */
.utilbar { background: var(--blue-dark); color: #dbe9f4; font-size: .85rem; }
.utilbar__row { display: flex; align-items: center; gap: 1.4rem; padding: .5rem 0; }
.utilbar__spacer { flex: 1; }
.utilbar__phone { color: #fff; font-weight: 700; text-decoration: none; }
.utilbar__phone:hover { color: #fff; text-decoration: underline; }
.utilbar__item strong { color: #ffd7cd; }

/* ---------- Header ---------- */
.siteheader { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--line); }
.siteheader__row { display: flex; align-items: center; gap: 1.5rem; padding: .6rem 0; }
.brand { margin-right: auto; display: block; }
.brand img { height: 54px; width: auto; }
.mainnav ul { display: flex; gap: 1.7rem; list-style: none; margin: 0; padding: 0; }
.mainnav a { font-family: var(--head); font-weight: 600; font-size: .96rem; color: var(--navy); text-decoration: none; padding-bottom: 3px; border-bottom: 2px solid transparent; transition: border-color .16s, color .16s; }
.mainnav a:hover { color: var(--blue); border-color: var(--blue); }

.btn-call { flex-direction: column; align-items: flex-end; gap: 0; background: var(--red); color: #fff; padding: .45rem 1.2rem; border-radius: var(--radius-sm); line-height: 1.1; }
.btn-call:hover { background: var(--red-dark); }
.btn-call__label { font-family: var(--head); font-weight: 600; font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; opacity: .9; }
.btn-call__num { font-family: var(--head); font-weight: 700; font-size: 1.05rem; }

.navtoggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.navtoggle span { width: 26px; height: 2px; background: var(--navy); transition: .25s; border-radius: 2px; }
.navtoggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navtoggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.navtoggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%); color: #fff; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: rgba(255,255,255,.06); }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; padding: clamp(3rem, 7vw, 5rem) 0; position: relative; z-index: 1; }
.hero h1 { color: #fff; }
.hl-blue { color: #9fd4ff; }
.hl-red { color: #ffb0a0; }
.tagpill { display: inline-block; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); color: #eaf4fc; font-family: var(--head); font-weight: 600; font-size: .82rem; padding: .4rem 1rem; border-radius: 999px; margin-bottom: 1.2rem; }
.hero__lead { font-size: 1.15rem; color: #e2eef8; max-width: 46ch; margin-bottom: 1.8rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.6rem; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 1.2rem; list-style: none; padding: 0; margin: 0; font-family: var(--head); font-weight: 600; font-size: .92rem; color: #d3e6f4; }
.hero__media img { width: 100%; height: 460px; object-fit: cover; object-position: center; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Services ---------- */
.cardgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.scard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease; }
.scard:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.scard__media img { width: 100%; height: 180px; object-fit: cover; }
.scard__body { padding: 1.6rem 1.6rem 1.8rem; position: relative; }
.scard__icon { position: absolute; top: -28px; left: 1.6rem; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: var(--shadow-sm); }
.scard__icon--blue { background: var(--blue); }
.scard__icon--red { background: var(--red); }
.scard h3 { margin-top: 1rem; }
.scard p { color: var(--muted); }
.ticklist { list-style: none; padding: 0; margin: 1rem 0 0; }
.ticklist li { position: relative; padding-left: 1.6rem; margin-bottom: .35rem; color: var(--ink); font-size: .96rem; }
.ticklist li::before { content: "\2713"; position: absolute; left: 0; color: var(--blue); font-weight: 700; }
.services__foot { text-align: center; margin-top: 2.2rem; color: var(--muted); }

/* ---------- Why ---------- */
.whygrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.why { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem 1.5rem; text-align: center; }
.why__icon { width: 58px; height: 58px; margin: 0 auto 1rem; border-radius: 50%; display: grid; place-items: center; background: var(--tint); color: var(--blue); }
.why h3 { font-size: 1.1rem; }
.why p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- Service area ---------- */
.area__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
.chiplist { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; margin: 1.4rem 0 0; }
.chiplist li { background: var(--tint); border: 1px solid var(--line); color: var(--navy); font-family: var(--head); font-weight: 600; font-size: .88rem; padding: .45rem 1rem; border-radius: 999px; }
.area__card { background: var(--navy); color: #dbe9f4; border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.area__card h3 { color: #fff; }
.area__card-line { display: grid; grid-template-columns: 84px 1fr; gap: .5rem; align-items: start; margin: 0 0 .9rem; font-size: .96rem; }
.area__card-line span { font-family: var(--head); font-weight: 600; font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: #8fb6d6; padding-top: .15rem; }
.area__card-line a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(159,212,255,.5); word-break: break-word; }

/* ---------- Reviews ---------- */
.reviewgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.review { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem 1.6rem; box-shadow: var(--shadow-sm); }
.stars { color: #f6a821; letter-spacing: 2px; margin-bottom: .7rem; }
.review p { color: var(--ink); }
.review footer { font-family: var(--head); font-weight: 600; font-size: .9rem; color: var(--blue-dark); }
.review footer span { color: var(--muted); font-weight: 400; }

/* ---------- CTA band ---------- */
.ctaband { background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%); color: #fff; padding: clamp(2.6rem, 6vw, 4rem) 0; }
.ctaband__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.ctaband h2 { color: #fff; margin: 0; }
.ctaband p { margin: .3rem 0 0; color: #ffe4dd; }
.ctaband__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.sitefooter { background: var(--navy); color: #a9c1d6; padding: clamp(3rem, 6vw, 4rem) 0 1.8rem; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 2.2rem; margin-bottom: 2.5rem; }
.footer__logo { height: 58px; width: auto; background: #fff; padding: 6px 10px; border-radius: var(--radius-sm); margin-bottom: 1rem; }
.footer__brand p { max-width: 34ch; font-size: .95rem; }
.sitefooter h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 1rem; }
.footer__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer__col a { color: #a9c1d6; text-decoration: none; }
.footer__col a:hover { color: #fff; }
.footer__col address { font-style: normal; line-height: 1.9; font-size: .95rem; }
.footer__col address a { color: #a9c1d6; text-decoration: none; }
.footer__col address a:hover { color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; color: #7d97ad; }
.footer__bottom p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .hero__media img { height: 280px; }
  .cardgrid, .reviewgrid { grid-template-columns: 1fr; }
  .whygrid { grid-template-columns: 1fr 1fr; }
  .area__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .mainnav { position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px); background: #fff; box-shadow: -10px 0 40px -20px rgba(0,0,0,.4); transform: translateX(100%); transition: transform .28s ease; padding: 5rem 1.5rem 2rem; z-index: 90; }
  .mainnav.open { transform: translateX(0); }
  .mainnav ul { flex-direction: column; gap: 0; }
  .mainnav li { border-bottom: 1px solid var(--line); }
  .mainnav a { display: block; padding: 1rem 0; }
  .navtoggle { display: flex; order: 3; position: relative; z-index: 95; }
  .btn-call__label { display: none; }
  .btn-call { flex-direction: row; padding: .55rem 1rem; }
  .utilbar__area, .utilbar__hours { display: none; }
  .utilbar__spacer { flex: 1; }
}
@media (max-width: 560px) {
  .whygrid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .ctaband__inner { flex-direction: column; align-items: flex-start; }
  .brand img { height: 46px; }
}
