/* =========================================================
   Plumbing Rooter For You — site styles
   All colors, fonts and spacing live in the variables below,
   so the whole site can be restyled from this one block.
   ========================================================= */
:root {
  /* Brand palette (from the PRFY logo) */
  --navy: #0d1f4a;
  --navy-2: #0a1838;
  --royal: #1f5fbf;
  --royal-dark: #184c99;
  --red: #d92b2b;
  --red-dark: #b81f1f;
  --water: #3aa0e8;
  --water-deep: #1a73b8;      /* water blue darkened for text on white (AA) */
  --water-light: #8fcaf5;
  --white: #ffffff;
  --ice: #eef5fc;
  --ink: #14213d;
  --muted: #4a5875;
  --line: #d8e3f1;

  --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-display: "Arial Black", "Segoe UI Black", Impact, "Helvetica Neue", Arial, sans-serif;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(13, 31, 74, .12);
  --container: 1180px;
  --header-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body { margin: 0; font: 17px/1.6 var(--font); color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--royal); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; color: var(--navy); }
h2 { font: 900 clamp(1.75rem, 3.6vw, 2.5rem)/1.15 var(--font-display); letter-spacing: -.01em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
svg { width: 1.1em; height: 1.1em; fill: currentColor; flex-shrink: 0; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 10px; top: 10px; }
:focus-visible { outline: 3px solid var(--water); outline-offset: 3px; }

/* Placeholders the owner must fill in */
.placeholder-chip { display: inline-block; background: #fff4c2; color: #6b4e00; border: 1px dashed #c99a00; border-radius: 6px; padding: 1px 8px; font-size: .8rem; font-weight: 700; }

/* ---------- Buttons ---------- */
.btn { font: inherit; display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .8em 1.3em; border-radius: 10px; font-weight: 800; text-decoration: none; border: 0; cursor: pointer; font-size: 1rem; line-height: 1.1; transition: transform .15s, background .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); }
.btn--call { background: var(--royal); color: #fff; box-shadow: 0 4px 0 var(--royal-dark); }
.btn--call:hover { background: var(--royal-dark); }
.btn--book { background: var(--red); color: #fff; box-shadow: 0 4px 0 var(--red-dark); }
.btn--book:hover { background: var(--red-dark); }
.btn--lg { font-size: 1.1rem; padding: 1em 1.6em; }
.btn--block { width: 100%; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy); color: #fff; font-size: .9rem; }
.topbar__inner { display: flex; align-items: center; justify-content: center; gap: 8px 22px; flex-wrap: wrap; padding-top: 7px; padding-bottom: 7px; }
.topbar__item { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 7px; font-weight: 600; }
.topbar__item svg { color: var(--water); }
.topbar__item:hover { text-decoration: underline; }
.topbar__social { display: inline-flex; align-items: center; gap: 10px; }
.topbar__social a { color: #fff; display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,.12); }
.topbar__social a:hover { background: var(--red); }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 3px solid var(--royal); box-shadow: 0 2px 14px rgba(13,31,74,.08); }
.header__inner { display: flex; align-items: center; gap: 18px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; min-width: 0; }
.brand img { height: 62px; width: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand__name { font: 900 1.1rem/1.1 var(--font-display); color: var(--navy); letter-spacing: -.01em; white-space: nowrap; }
.brand__tag { color: var(--water-deep); font-size: .72rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; margin-top: 4px; }

.nav__menu { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav__menu a { display: block; white-space: nowrap; padding: 10px 11px; color: var(--navy); text-decoration: none; font-weight: 700; border-radius: 8px; }
.nav__menu a:hover { background: var(--ice); color: var(--royal); }
.nav__toggle { display: none; }
.header__call, .header__book { white-space: nowrap; padding: .7em 1em; }

/* Action row (mobile/tablet) */
.action-row { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; background: var(--navy) url("assets/img/work-water-heater-tech.jpg") center/cover no-repeat; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(10,24,56,.96) 0%, rgba(13,31,74,.9) 45%, rgba(31,95,191,.72) 100%); }
.hero__inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 40px; padding-top: 64px; padding-bottom: 72px; }
.hero__mascot { order: 2; justify-self: center; }
.hero__mascot img { width: 440px; max-width: 100%; filter: drop-shadow(0 18px 30px rgba(0,0,0,.45)); }
.hero__copy { order: 1; }
.hero__eyebrow { display: inline-block; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); padding: 5px 12px; border-radius: 999px; font-size: .85rem; font-weight: 700; letter-spacing: .03em; }
.hero__title { font: 900 clamp(2.3rem, 5.6vw, 4.1rem)/1.02 var(--font-display); color: #fff; text-transform: uppercase; letter-spacing: -.01em; margin: 18px 0 14px; text-shadow: 0 3px 0 var(--red), 0 8px 24px rgba(0,0,0,.4); }
.hero__title span { color: var(--water-light); }
.hero__name { font-size: clamp(1.2rem, 2.2vw, 1.5rem); font-weight: 800; margin-bottom: 10px; }
.hero__lead { font-size: 1.1rem; max-width: 40em; color: #e6eefb; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 24px 0 26px; }

.badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.badge, .badge a { display: grid; grid-template-columns: auto; gap: 0; text-decoration: none; color: var(--navy); }
.badge { background: #fff; border-radius: 12px; padding: 10px 16px; min-width: 150px; box-shadow: 0 6px 20px rgba(0,0,0,.25); border-top: 4px solid var(--royal); }
.badge strong { font-size: 1.05rem; }
.badge small { color: var(--muted); font-weight: 600; }
.badge__stars { color: #f5b301; letter-spacing: 2px; font-size: 1rem; }
.badge--google { border-top-color: var(--royal); }
.badge--yelp { border-top-color: var(--red); }
.badge--placeholder { border: 2px dashed #c99a00; border-top-width: 4px; background: #fff8dc; }
.badge--placeholder strong, .badge--placeholder small { color: #6b4e00; font-size: .85rem; }
.badge--estimate { background: var(--red); border-top-color: #fff; color: #fff; }
.badge--estimate strong, .badge--estimate small { color: #fff; }

/* ---------- Trust strip ---------- */
.trust { background: var(--royal); color: #fff; }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding-top: 18px; padding-bottom: 18px; text-align: center; }
.trust strong { display: block; font-size: 1.1rem; }
.trust span { font-size: .9rem; color: #dce9fb; }

/* ---------- Sections ---------- */
.section { padding: 76px 0; }
.section--alt { background: var(--ice); }
.section--dark { background: var(--navy); color: #fff; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section__head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.section__head p:last-child { color: var(--muted); }
.eyebrow { color: var(--red); font-weight: 800; text-transform: uppercase; letter-spacing: .14em; font-size: .82rem; margin-bottom: 8px; }
.eyebrow--light { color: var(--water-light); }

/* Services */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow); border-top: 5px solid var(--royal); }
.card__icon { width: 52px; height: 52px; border-radius: 12px; background: var(--ice); color: var(--royal); display: grid; place-items: center; margin-bottom: 14px; }
.card__icon svg { width: 28px; height: 28px; }
.card ul { margin: 0; padding: 0; list-style: none; }
.card li { padding: 6px 0 6px 26px; position: relative; border-bottom: 1px solid #eef2f8; color: var(--ink); }
.card li:last-child { border-bottom: 0; }
.card li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 10px; height: 10px; border-radius: 50% 0 50% 50%; transform: rotate(-45deg); background: var(--water); }

.emergency { margin-top: 34px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; background: linear-gradient(90deg, var(--navy), var(--royal)); color: #fff; border-radius: var(--radius); padding: 26px 30px; border-left: 8px solid var(--red); }
.emergency h3 { color: #fff; font-size: 1.5rem; margin-bottom: 4px; }
.emergency p { margin: 0; color: #e3ecfa; max-width: 48em; }

/* About */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about__media img { border-radius: var(--radius); box-shadow: var(--shadow); border: 6px solid #fff; }
.checks { list-style: none; padding: 0; margin: 0 0 24px; }
.checks li { padding: 8px 0 8px 34px; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 8px; width: 24px; height: 24px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 900; font-size: .8rem; display: grid; place-items: center; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery figure { margin: 0; position: relative; border-radius: 10px; overflow: hidden; background: var(--navy); aspect-ratio: 4 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 8px; color: #fff; font-weight: 700; font-size: .9rem; background: linear-gradient(transparent, rgba(10,24,56,.92)); }

/* Reviews */
.reviews { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.review { display: flex; flex-direction: column; }
.review p { flex: 1; }
.review-stars { color: #f5b301; letter-spacing: 2px; }
.reviews__more { text-align: center; margin-top: 26px; font-weight: 700; }
.review { margin: 0; background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); border-left: 5px solid var(--water); }
.review cite { font-style: normal; font-weight: 700; color: var(--muted); }
.review--placeholder { border: 2px dashed #c99a00; background: #fffbea; color: #6b4e00; }

/* Area + hours */
.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
.areas { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.areas li { background: var(--ice); border: 1px solid var(--line); color: var(--navy); font-weight: 700; padding: 8px 16px; border-radius: 999px; }
.areas li.placeholder-chip { background: #fff4c2; border: 1px dashed #c99a00; color: #6b4e00; }
.hours { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); border-top: 6px solid var(--red); }
.hours h2 { color: #fff; font-size: 1.6rem; }
.hours table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.hours th, .hours td { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.15); text-align: left; }
.hours td { text-align: right; font-weight: 800; color: var(--water-light); }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact__info p { color: #d8e4f7; }
.contact__list { list-style: none; padding: 0; margin: 0 0 20px; }
.contact__list li { display: grid; grid-template-columns: 90px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.contact__list span { color: var(--water-light); font-weight: 700; text-transform: uppercase; font-size: .8rem; letter-spacing: .08em; padding-top: 3px; }
.contact__list a { color: #fff; font-weight: 700; word-break: break-word; }
.contact__list address { font-style: normal; }
.map { border-radius: var(--radius); overflow: hidden; border: 4px solid rgba(255,255,255,.15); }
.map__link { margin-top: 10px; }
.map__link a { color: var(--water-light); font-weight: 700; }
.map iframe { width: 100%; height: 280px; border: 0; display: block; }
.form { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 28px; box-shadow: 0 20px 50px rgba(0,0,0,.3); border-top: 6px solid var(--red); }
.form label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 14px; color: var(--navy); }
.form label span { color: var(--red); }
.form input, .form select, .form textarea { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; font: inherit; color: var(--ink); border: 2px solid var(--line); border-radius: 8px; background: #fbfdff; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--royal); outline: none; box-shadow: 0 0 0 3px rgba(31,95,191,.2); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form__note { font-size: .85rem; color: var(--muted); margin: 12px 0 0; text-align: center; }

/* Footer */
.footer { background: var(--navy-2); color: #c9d6ee; padding: 50px 0 20px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.footer h3 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; }
.footer a { color: #fff; }
.brand--footer { margin-bottom: 12px; }
.brand--footer img { height: 80px; }
.brand--footer .brand__name { color: #fff; }
.brand--footer .brand__tag { color: var(--water); }
.footer__copy { border-top: 1px solid rgba(255,255,255,.12); margin-top: 30px; padding-top: 18px; font-size: .85rem; text-align: center; }

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

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav__menu a { padding: 10px 8px; font-size: .95rem; }
  .header__book { display: none; }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .nav__toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 48px; height: 48px; border: 0; border-radius: 10px; background: var(--royal); cursor: pointer; padding: 0 12px; flex-shrink: 0; }
  .nav__toggle span { display: block; height: 3px; background: #fff; border-radius: 2px; transition: transform .2s, opacity .2s; }
  .nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .nav { order: 3; }
  .nav__menu { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; background: #fff; padding: 8px 16px 16px; box-shadow: 0 16px 30px rgba(13,31,74,.18); border-bottom: 3px solid var(--royal); }
  .nav__menu.is-open { display: flex; }
  .nav__menu a { padding: 14px 8px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.05rem; }
  .header__call { display: none; }
  .brand img { height: 54px; }

  .action-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 12px 16px; background: #fff; }
  .action-row .btn { padding: .9em .6em; font-size: 1.02rem; }

  .hero__inner { grid-template-columns: 1fr; text-align: center; gap: 10px; padding-top: 30px; padding-bottom: 44px; }
  .hero__mascot { order: 0; }
  .hero__mascot img { width: 270px; }
  .hero__cta, .badges { justify-content: center; }
  .hero__lead { margin-left: auto; margin-right: auto; }

  .cards { grid-template-columns: repeat(2, 1fr); }
  .about, .split, .contact { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .reviews { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > div:first-child { grid-column: 1 / -1; }

  .callbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; align-items: center; justify-content: center; gap: 10px; background: var(--red); color: #fff; text-decoration: none; font-weight: 800; font-size: 1.15rem; padding: 15px 12px calc(15px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 20px rgba(0,0,0,.25); }
  .callbar svg { width: 1.4em; height: 1.4em; }
  body { padding-bottom: 62px; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .topbar { font-size: .82rem; }
  .topbar__inner { gap: 4px 14px; }
  .topbar__email { order: 3; flex-basis: 100%; justify-content: center; }
  .brand { gap: 8px; }
  .brand img { height: 48px; }
  .brand__name { font-size: .98rem; white-space: normal; }
  .brand__tag { font-size: .62rem; letter-spacing: .24em; }
  .section { padding: 56px 0; }
  .reviews { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; gap: 16px; }
  .card { display: grid; grid-template-columns: 46px 1fr; column-gap: 14px; align-items: center; padding: 20px 18px; }
  .card__icon { width: 46px; height: 46px; margin: 0; }
  .card h3 { margin: 0; }
  .card ul { grid-column: 1 / -1; margin-top: 10px; }
  .trust__grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .badges { gap: 8px; }
  .badge { min-width: 0; flex: 1 1 140px; padding: 8px 12px; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .form { padding: 22px 18px; }
  .emergency { padding: 22px; }
  .emergency .btn { width: 100%; }
  .footer__grid { grid-template-columns: 1fr; }
  .contact__list li { grid-template-columns: 76px 1fr; }
}

@media (max-width: 360px) {
  .brand__name { font-size: .88rem; }
  .brand img { height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .nav__toggle span { transition: none; }
}

.reviews__sub { text-align:center; margin: 28px 0 14px; color: var(--navy); }
.review--yelp { border-left-color: var(--red); }

/* ---------- People Love Us on Yelp 2026 badge (preview, original artwork) ---------- */
.ply-badge {
  --ply: #d32323;
  --ply-dark: #b11c1c;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(165deg, #e44545 0%, #d32323 48%, #b11c1c 100%);
  border-radius: 14px;
  padding: 14px 16px 14px 14px;
  box-shadow: 0 10px 24px rgba(211, 35, 35, .28), inset 0 1px 0 rgba(255,255,255,.22);
  flex: 0 0 auto;
  max-width: 100%;
  transition: transform .15s, box-shadow .15s;
}
.ply-badge:hover { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(211, 35, 35, .34), inset 0 1px 0 rgba(255,255,255,.22); }
.ply-badge__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,.16);
  border: 2px solid rgba(255,255,255,.5);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.ply-badge__icon svg { width: 26px; height: 26px; fill: #fff; }
.ply-badge__text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.ply-badge__title { font-weight: 800; font-size: 1.05rem; letter-spacing: .01em; color: #fff; }
.ply-badge__on { font-size: .88rem; font-weight: 600; color: rgba(255,255,255,.92); }
.ply-badge__year {
  margin-left: 6px;
  background: #fff;
  color: #d32323;
  font: 900 1.05rem/1 var(--font-display);
  padding: 8px 10px;
  border-radius: 8px;
  letter-spacing: .04em;
}
.reviews__head {
  max-width: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  text-align: left;
  margin: 0 0 40px;
}
.reviews__head-copy { flex: 1 1 auto; min-width: 0; }
.reviews__head-copy h2 { margin-bottom: .35em; }
.reviews__head-copy p:last-child { color: var(--muted); margin-bottom: 0; }
.ply-badge--compact {
  gap: 10px;
  padding: 8px 10px 8px 8px;
  border-radius: 12px;
  height: 100%;
  box-shadow: 0 6px 20px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.22);
}
.ply-badge--compact .ply-badge__icon { width: 38px; height: 38px; }
.ply-badge--compact .ply-badge__icon svg { width: 20px; height: 20px; }
.ply-badge--compact .ply-badge__title { font-size: .92rem; }
.ply-badge--compact .ply-badge__on { font-size: .78rem; }
.ply-badge--compact .ply-badge__year { font-size: .9rem; padding: 6px 8px; margin-left: 2px; }

@media (max-width: 720px) {
  .reviews__head { flex-direction: column; text-align: center; gap: 18px; }
  .reviews__head .ply-badge { margin: 0 auto; }
}

.badge-ply { display: flex; flex: 1 1 140px; min-width: 0; align-items: stretch; }
.badge-ply .ply-badge { width: 100%; box-sizing: border-box; }
@media (min-width: 601px) {
  .badge-ply { flex: 0 1 auto; }
}
@media (max-width: 600px) {
  .badge-ply { flex: 1 1 100%; }
}
