/* Better Plumbing — site styles
   Palette taken from the original site's theme (Blocksy palette). */
:root {
  --sky: #35c7f4;
  --blue: #0d49b5;
  --blue-dark: #0a3a91;
  --green: #39d11a;
  --green-dark: #2bab10;
  --navy: #152a4a;
  --navy-deep: #0d1c33;
  --white: #ffffff;
  --mist: #f7f9fb;
  --line: #e6ecf2;
  --text: #2c3a4f;
  --muted: #5d6b80;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(21, 42, 74, 0.10);
  --shadow-lg: 0 20px 50px rgba(21, 42, 74, 0.18);
  --wrap: 1180px;
  --header-h: 76px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Montserrat", var(--font);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  overflow-x: clip;
}
html { overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--mist { background: var(--mist); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .8em;
}
.eyebrow::before { content: ""; display: inline-block; width: 22px; height: 3px; background: var(--green); border-radius: 2px; vertical-align: middle; margin-right: 10px; }
.lead { font-size: 1.12rem; color: var(--muted); }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 1000; }
.skip-link:focus { left: 10px; top: 10px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .15s ease, background .2s ease, box-shadow .2s ease, color .2s;
  line-height: 1.2; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--green { background: var(--green); color: var(--navy-deep); box-shadow: 0 8px 20px rgba(57, 209, 26, .35); }
.btn--green:hover { background: var(--green-dark); color: #fff; }
.btn--blue { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(13, 73, 181, .3); }
.btn--blue:hover { background: var(--blue-dark); }
.btn--ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--navy); }
.btn--outline { border-color: var(--blue); color: var(--blue); }
.btn--outline:hover { background: var(--blue); color: #fff; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.topbar { background: var(--navy-deep); color: #c9d6ea; font-size: .88rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 8px; padding-bottom: 8px; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar a:hover { color: var(--green); }
.topbar__links { display: flex; gap: 22px; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 20px; }
.brand img { height: 64px; width: auto; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) {
  font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  color: var(--navy); text-decoration: none; padding: 10px 14px; border-radius: var(--radius-sm);
  position: relative;
}
.nav a:not(.btn):hover { color: var(--blue); }
.nav a[aria-current="page"]:not(.btn) { color: var(--blue); }
.nav a[aria-current="page"]:not(.btn)::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 3px; border-radius: 2px; background: var(--green);
}
.nav .btn { margin-left: 10px; padding: 11px 20px; }

.nav-toggle {
  display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; color: var(--navy);
}
.nav-toggle svg { width: 28px; height: 28px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: var(--navy) center/cover no-repeat;
  min-height: min(88vh, 760px);
  display: flex; align-items: center;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(13,28,51,.92) 0%, rgba(13,28,51,.78) 45%, rgba(13,73,181,.35) 100%);
}
.hero .wrap { position: relative; padding-top: 80px; padding-bottom: 80px; }
.hero__content { max-width: 680px; }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero h1 span { color: var(--green); }
.hero__tags { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 0 0 1.6em; padding: 0; list-style: none; }
.hero__tags li {
  font-size: .9rem; font-weight: 600; padding: 6px 14px; border-radius: 999px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
}
.hero__text { font-size: 1.12rem; color: #dbe5f3; margin-bottom: 2em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 44px; font-size: .95rem; color: #dbe5f3; }
.hero__badges div { display: flex; align-items: center; gap: 10px; }
.hero__badges svg { width: 22px; height: 22px; color: var(--green); flex: none; }

.page-hero {
  position: relative; color: #fff; text-align: center;
  background: var(--navy) center/cover no-repeat;
  padding: clamp(70px, 12vw, 130px) 0;
}
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,28,51,.85), rgba(13,28,51,.7)); }
.page-hero .wrap { position: relative; }
.page-hero h1 { color: #fff; margin-bottom: .3em; }
.page-hero p { color: #dbe5f3; font-size: 1.1rem; max-width: 640px; margin: 0 auto; }
.page-hero--plain { background: linear-gradient(135deg, var(--navy-deep), var(--blue)); }
.page-hero--plain::before { display: none; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); margin: 0; }
.icon-circle {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 20px;
  background: linear-gradient(135deg, var(--sky), var(--blue)); color: #fff;
}
.icon-circle svg { width: 28px; height: 28px; }

.service-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.service-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.service-card__body { padding: 26px; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/4; background: var(--line); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery figure:hover img { transform: scale(1.05); }

/* ---------- Split layouts ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; }
.checklist { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.checklist li {
  display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 700; color: var(--navy);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px;
}
.checklist svg { width: 24px; height: 24px; color: var(--green); flex: none; }

/* ---------- Quote form ---------- */
.quote { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.quote__info h2 { margin-bottom: .4em; }
.info-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.info-list li { display: flex; gap: 16px; align-items: flex-start; }
.info-list .icon-circle { width: 46px; height: 46px; border-radius: 12px; margin: 0; flex: none; }
.info-list .icon-circle svg { width: 22px; height: 22px; }
.info-list strong { display: block; font-family: var(--font-head); color: var(--navy); }
.info-list a { color: var(--text); text-decoration: none; }
.info-list a:hover { color: var(--blue); }
.info-list small { color: var(--muted); font-size: .9rem; }

.form-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: clamp(24px, 4vw, 40px); border-top: 5px solid var(--green); }
.form-card h3 { font-size: 1.45rem; margin-bottom: .2em; }
.form-card > p { color: var(--muted); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; color: var(--navy); font-size: .95rem; margin-bottom: 6px; }
.field label .req { color: #d23b3b; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; /* 16px prevents iOS zoom */
  color: var(--text); background: var(--mist); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 13px 14px; transition: border-color .2s, box-shadow .2s, background .2s;
  -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23152a4a' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; padding-right: 40px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(13,73,181,.12); }
.field input:user-invalid, .field textarea:user-invalid { border-color: #d23b3b; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .85rem; color: var(--muted); margin: 12px 0 0; text-align: center; }
.form-status { display: none; border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 16px; font-weight: 600; }
.form-status.is-success { display: block; background: #e9f9e4; color: #1f6b0d; border: 1px solid #b9ebab; }
.form-status.is-error { display: block; background: #fdecec; color: #9b1c1c; border: 1px solid #f5c2c2; }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; }

.section-link { text-align: center; margin: 36px 0 0; }

/* ---------- FAQ ---------- */
.faq__list { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; position: relative;
  font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--mist); color: var(--blue); font-size: 1.3rem; line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; background: var(--blue); color: #fff; }
.faq summary:focus-visible { outline: 3px solid rgba(13,73,181,.35); outline-offset: 2px; border-radius: var(--radius-sm); }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--muted); }

/* ---------- Testimonial ---------- */
.testimonial {
  background: linear-gradient(135deg, var(--navy-deep), var(--blue)); color: #fff; border-radius: calc(var(--radius) * 1.4);
  padding: clamp(32px, 6vw, 64px); position: relative; overflow: hidden;
}
.testimonial::after {
  content: "\201C"; position: absolute; right: 30px; top: -40px; font-size: 16rem; line-height: 1; font-family: Georgia, serif; color: rgba(255,255,255,.08);
}
.testimonial blockquote { margin: 0; font-size: clamp(1.1rem, 2.2vw, 1.4rem); line-height: 1.6; position: relative; }
.testimonial cite { display: block; margin-top: 20px; font-style: normal; font-weight: 700; font-family: var(--font-head); color: var(--green); }
.stars { color: #ffc93c; letter-spacing: 3px; font-size: 1.2rem; margin-bottom: 14px; }

/* ---------- Values strip ---------- */
.values { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.values span {
  font-family: var(--font-head); font-weight: 700; color: var(--navy); background: #fff;
  border: 1px solid var(--line); border-radius: 999px; padding: 10px 20px; box-shadow: var(--shadow);
}
.values span::before { content: "\2714"; color: var(--green); margin-right: 8px; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; color: #fff; background: var(--navy) center/cover no-repeat; text-align: center; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: rgba(13, 28, 51, .84); }
.cta-band .wrap { position: relative; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #dbe5f3; max-width: 640px; margin: 0 auto 1.8em; font-size: 1.1rem; }
.cta-band .hero__actions { justify-content: center; }

/* ---------- Hours table ---------- */
.hours { margin-top: 26px; background: var(--mist); border-radius: var(--radius); padding: 22px 24px; border: 1px solid var(--line); }
.hours h3 { font-size: 1.05rem; margin-bottom: .6em; }
.hours dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; margin: 0; }
.hours dt { font-weight: 600; color: var(--navy); }
.hours dd { margin: 0; color: var(--muted); }

/* ---------- Terms ---------- */
.doc-card { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.doc-card .icon-circle { margin: 0; width: 64px; height: 64px; }
.doc-card__text { flex: 1 1 260px; }
.doc-card__text h3 { margin-bottom: .2em; }
.doc-card__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.pdf-frame { width: 100%; height: 80vh; min-height: 520px; border: 1px solid var(--line); border-radius: var(--radius); margin-top: 32px; background: var(--mist); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #b7c4d8; padding-top: 64px; font-size: .96rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-brand img { width: 84px; border-radius: 50%; background: #fff; padding: 4px; margin-bottom: 16px; }
.footer-brand .tagline { font-family: var(--font-head); font-weight: 700; color: #fff; font-size: 1.1rem; }
.site-footer h4 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: #b7c4d8; text-decoration: none; }
.site-footer a:hover { color: var(--green); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; font-size: .88rem; }
.footer-bottom .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Mobile call bar ---------- */
.mobile-cta { display: none; }

/* ---------- Reveal animation ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover { transform: none; }
}

/* ================= Responsive ================= */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  :root { --header-h: 66px; }
  .brand img { height: 44px; }
  .nav-toggle { display: inline-flex; }
  /* No backdrop-filter on phones: it turns the header into the containing block
     for the menu, which squashed the open menu into a tiny scrolling box. */
  .site-header { backdrop-filter: none; background: #fff; }
  /* Drop-down under the header. Hidden with display:none (not slid off-screen),
     so it never widens the page and causes sideways scrolling. */
  .nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 8px 20px 24px;
    border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(21, 42, 74, .15);
    max-height: calc(100vh - var(--header-h)); max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  .nav.is-open { display: flex; animation: nav-in .2s ease; }
  @keyframes nav-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
  .nav a:not(.btn) { font-size: 1.15rem; padding: 16px 6px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a[aria-current="page"]:not(.btn)::after { display: none; }
  .nav .btn { margin: 22px 0 0; padding: 16px; }
  body.nav-open { overflow: hidden; }

  .split, .quote { grid-template-columns: 1fr; }
  .split__media { order: -1; }
  .split__media--art img { max-width: 300px; margin: 0 auto; }
  .grid--3 { grid-template-columns: 1fr; }
  .grid--2 { grid-template-columns: 1fr; }
  .topbar__hours { display: none; }
  .topbar .wrap { justify-content: center; }

  /* sticky call / quote bar on phones */
  .mobile-cta {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    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 -6px 20px rgba(21,42,74,.12);
  }
  .mobile-cta .btn { padding: 13px 10px; font-size: .95rem; box-shadow: none; }
  body { padding-bottom: 74px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .grid--4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .checklist { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero .wrap { padding-top: 64px; padding-bottom: 64px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__badges { gap: 14px 22px; margin-top: 32px; }
  .gallery { gap: 10px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .topbar__links { gap: 16px; }
  .topbar .topbar__email { display: none; }
  .doc-card__actions .btn { flex: 1 1 100%; }
  .pdf-frame { display: none; }
}
