:root {
  --navy: #0d2843;
  --navy-2: #173e63;
  --green: #7bbb24;
  --ink: #14202b;
  --muted: #61717f;
  --line: #dfe6eb;
  --soft: #f5f8fa;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(14, 40, 67, .12);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.container { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.eyebrow { color: var(--green); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: .82rem; }
.section { padding: 88px 0; }
.section.soft { background: var(--soft); }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head h2 { margin: 8px 0 14px; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.05; color: var(--navy); }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(13,40,67,.08);
}
.nav-wrap { min-height: 82px; display: flex; align-items: center; gap: 34px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img { width: 70px; height: 70px; object-fit: contain; }
.brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand-name strong { color: var(--navy); font-size: 1.2rem; letter-spacing: .03em; }
.brand-name span { color: var(--green); font-size: .72rem; font-weight: 800; letter-spacing: .13em; margin-top: 5px; }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { text-decoration: none; font-weight: 700; color: var(--navy); font-size: .95rem; }
.nav-links a:hover { color: var(--green); }
.nav-actions { display: flex; gap: 10px; }
.btn { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 0 20px; border-radius: 999px; text-decoration: none; font-weight: 800; border: 1px solid transparent; transition: .2s ease; }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 10px 25px rgba(123,187,36,.25); }
.btn-primary:hover { transform: translateY(-2px); filter: brightness(.96); }
.btn-secondary { background: #fff; color: var(--navy); border-color: #cad5de; }
.btn-secondary:hover { border-color: var(--navy); }
.menu-button { display: none; border: 0; background: none; font-size: 1.6rem; color: var(--navy); }

.hero { position: relative; overflow: hidden; background: linear-gradient(135deg, #eff6f7 0%, #fff 55%, #f1f8e9 100%); }
.hero-grid { min-height: 690px; display: grid; grid-template-columns: 1.06fr .94fr; align-items: center; gap: 56px; padding: 70px 0; }
.hero h1 { font-size: clamp(2.9rem, 5vw, 5.6rem); line-height: .98; letter-spacing: -.045em; margin: 12px 0 22px; color: var(--navy); }
.hero h1 span { color: var(--green); }
.hero-copy { font-size: 1.18rem; color: var(--muted); max-width: 650px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.trust-row { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px 22px; color: var(--navy); font-weight: 750; }
.trust-row span::before { content: "✓"; color: var(--green); margin-right: 8px; font-weight: 900; }
.hero-media { position: relative; }
.hero-media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 32px; box-shadow: var(--shadow); }

.stats { background: var(--navy); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 28px 22px; border-right: 1px solid rgba(255,255,255,.12); text-align: center; }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-size: 1.15rem; }
.stat span { color: #c7d7e5; font-size: .92rem; }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; text-decoration: none; min-height: 250px; transition: .22s ease; }
.service-card:hover { transform: translateY(-5px); border-color: rgba(123,187,36,.55); box-shadow: var(--shadow); }
.service-icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; background: #eff8e7; color: var(--green); font-size: 1.6rem; margin-bottom: 28px; }
.service-card h3 { color: var(--navy); font-size: 1.28rem; margin: 0 0 10px; }
.service-card p { color: var(--muted); margin: 0; }

.split { display: grid; grid-template-columns: .92fr 1.08fr; gap: 64px; align-items: center; }
.split-media { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.split-media img { width: 100%; height: 260px; object-fit: cover; border-radius: 20px; }
.split-media img:first-child { grid-row: span 2; height: 534px; }
.checks { margin: 26px 0 0; display: grid; gap: 13px; padding: 0; list-style: none; }
.checks li { padding-left: 30px; position: relative; color: var(--navy); font-weight: 700; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--green); font-weight: 900; }

.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.project { position: relative; border-radius: 22px; overflow: hidden; min-height: 340px; background: #ddd; }
.project img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.project::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(6,24,40,.78), transparent 58%); }
.project-info { position: absolute; z-index: 2; left: 22px; right: 22px; bottom: 20px; color: #fff; }
.project-info strong { font-size: 1.12rem; display: block; }
.project-info span { color: #dbe7ef; font-size: .92rem; }

.turnover { background: var(--navy); color: #fff; border-radius: 32px; padding: 52px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 30px; align-items: center; }
.turnover h2 { color: #fff; font-size: clamp(2rem,4vw,3.5rem); line-height: 1.05; margin: 8px 0 14px; }
.turnover p { color: #ccdae5; max-width: 710px; }
.turnover .eyebrow { color: #a8db64; }
.turnover-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }

.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 54px; align-items: start; }
.contact-box { background: var(--soft); border-radius: 24px; padding: 30px; }
.contact-box h3 { margin-top: 0; color: var(--navy); }
.contact-list { display: grid; gap: 15px; }
.contact-list a, .contact-list span { color: var(--navy); text-decoration: none; font-weight: 700; }
.contact-note { color: var(--muted); font-size: .95rem; margin-top: 20px; }
.estimate-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.estimate-form label { display: grid; gap: 7px; font-weight: 750; color: var(--navy); font-size: .92rem; }
.estimate-form label.full { grid-column: 1 / -1; }
.estimate-form input, .estimate-form textarea, .estimate-form select { width: 100%; border: 1px solid #cfd9e0; border-radius: 12px; padding: 14px 15px; font: inherit; background: #fff; }
.estimate-form textarea { min-height: 130px; resize: vertical; }
.estimate-form button { grid-column: 1 / -1; cursor: pointer; }

.site-footer { background: #081d31; color: #d6e2ea; padding: 42px 0; }
.footer-grid { display: flex; justify-content: space-between; gap: 30px; align-items: center; flex-wrap: wrap; }
.footer-brand strong { color: #fff; font-size: 1.1rem; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: #d6e2ea; text-decoration: none; }
.footer-small { color: #8fa6b8; font-size: .88rem; }

@media (max-width: 980px) {
  .nav-links, .nav-actions { display: none; }
  .menu-button { display: block; margin-left: auto; }
  .nav-wrap.open { align-items: flex-start; flex-wrap: wrap; padding-bottom: 18px; }
  .nav-wrap.open .nav-links { display: flex; width: 100%; flex-direction: column; align-items: flex-start; gap: 14px; }
  .nav-wrap.open .nav-actions { display: flex; width: 100%; }
  .hero-grid, .split, .contact-grid, .turnover { grid-template-columns: 1fr; }
  .hero-grid { padding-top: 46px; }
  .hero-media { max-width: 700px; }
  .hero-media img { aspect-ratio: 16/11; }
  .services-grid, .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .turnover-actions { justify-content: flex-start; }
}

@media (max-width: 680px) {
  .container { width: min(100% - 28px, 1160px); }
  .section { padding: 64px 0; }
  .brand-name { display: none; }
  .brand img { width: 58px; height: 58px; }
  .nav-wrap { min-height: 68px; }
  .hero-grid { min-height: auto; gap: 34px; }
  .hero h1 { font-size: clamp(2.65rem, 13vw, 4.2rem); }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.12); }
  .services-grid, .projects-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 0; }
  .split-media { grid-template-columns: 1fr; }
  .split-media img, .split-media img:first-child { height: 280px; grid-row: auto; }
  .turnover { padding: 32px 24px; border-radius: 24px; }
  .estimate-form { grid-template-columns: 1fr; }
  .estimate-form label.full, .estimate-form button { grid-column: 1; }
  .hero-actions .btn, .turnover-actions .btn { width: 100%; }
}

.upload-field input[type="file"] { padding: 12px; background: var(--soft); border-style: dashed; cursor: pointer; }
.upload-field span, .form-note { color: var(--muted); font-size: .84rem; font-weight: 500; line-height: 1.5; }
.form-note { margin: 0; }

/* V3: service directory and plumbing detail page */
.why-eyebrow { font-size: .95rem; line-height: 1.4; letter-spacing: .14em; margin-bottom: 10px; display: inline-block; }
.nav-links a.active { color: var(--green); }
.narrow { max-width: 900px; }
.page-hero { padding: 105px 0 72px; background: linear-gradient(135deg,#eff6f7 0%,#fff 62%,#f1f8e9 100%); }
.page-hero h1, .service-hero h1 { color: var(--navy); font-size: clamp(2.8rem,5vw,5rem); line-height: 1; letter-spacing: -.04em; margin: 12px 0 20px; }
.page-hero p, .service-hero p { color: var(--muted); font-size: 1.15rem; max-width: 760px; }
.services-directory .service-card { min-height: 310px; display: flex; flex-direction: column; }
.services-directory .service-card h2 { color: var(--navy); font-size: 1.45rem; line-height: 1.15; margin: 0 0 12px; }
.card-link { margin-top: auto; padding-top: 28px; color: var(--navy); font-weight: 850; }
.featured-service { border-color: rgba(123,187,36,.55); background: linear-gradient(145deg,#fff,#f5faef); }
.cta-strip { display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 30px; }
.cta-strip h2 { color: var(--navy); font-size: clamp(2rem,4vw,3.2rem); line-height: 1.05; margin: 8px 0 10px; }
.cta-strip p { color: var(--muted); }
.service-hero { padding: 74px 0 80px; background: linear-gradient(135deg,#f5f9fb,#fff 58%,#f3f9eb); }
.service-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
.service-hero-photo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 30px; box-shadow: var(--shadow); }
.back-link { display: inline-block; margin-bottom: 30px; color: var(--navy); text-decoration: none; font-weight: 800; }
.work-list { display: grid; grid-template-columns: repeat(3,1fr); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.work-list > div { padding: 30px; min-height: 165px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.work-list > div:nth-child(3n) { border-right: 0; }
.work-list > div:nth-last-child(-n+3) { border-bottom: 0; }
.work-list strong { display: block; color: var(--navy); font-size: 1.15rem; margin-bottom: 8px; }
.work-list span { color: var(--muted); }
.plumbing-gallery { display: grid; grid-template-columns: 1.35fr 1fr 1fr; grid-template-rows: 250px 250px; gap: 16px; }
.plumbing-gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: 22px; background:#ddd; }
.plumbing-gallery figure:first-child { grid-row: 1 / 3; }
.plumbing-gallery img { width:100%; height:100%; object-fit:cover; }
.plumbing-gallery figcaption { position:absolute; left:14px; bottom:14px; background:rgba(8,29,49,.86); color:#fff; padding:8px 12px; border-radius:999px; font-weight:750; font-size:.86rem; }
.material-card { background: var(--navy); color:#fff; border-radius:32px; padding:52px; display:grid; grid-template-columns:.9fr 1.1fr; gap:50px; }
.material-card h2 { color:#fff; font-size:clamp(2rem,4vw,3.2rem); line-height:1.05; margin:8px 0 0; }
.material-card p { color:#d4e0e9; font-size:1.05rem; margin-top:0; }
.material-card .eyebrow { color:#a8db64; }
.steps { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
.steps > div { background:#fff; border:1px solid var(--line); border-radius:20px; padding:26px; }
.steps span { color:var(--green); font-size:.85rem; font-weight:900; letter-spacing:.12em; }
.steps h3 { color:var(--navy); margin:16px 0 8px; }
.steps p { color:var(--muted); margin:0; }
.faq-grid { display:grid; grid-template-columns:.75fr 1.25fr; gap:60px; }
.faq-grid h2 { color:var(--navy); font-size:clamp(2rem,4vw,3.2rem); line-height:1.05; margin:8px 0; }
.faq-list { border-top:1px solid var(--line); }
.faq-list details { border-bottom:1px solid var(--line); padding:20px 0; }
.faq-list summary { color:var(--navy); font-weight:850; cursor:pointer; font-size:1.05rem; }
.faq-list p { color:var(--muted); margin:12px 0 0; max-width:700px; }
@media(max-width:980px){.service-hero-grid,.cta-strip,.material-card,.faq-grid{grid-template-columns:1fr}.work-list{grid-template-columns:repeat(2,1fr)}.work-list>div,.work-list>div:nth-child(3n),.work-list>div:nth-last-child(-n+3){border-right:1px solid var(--line);border-bottom:1px solid var(--line)}.work-list>div:nth-child(2n){border-right:0}.work-list>div:nth-last-child(-n+2){border-bottom:0}.steps{grid-template-columns:repeat(2,1fr)}.plumbing-gallery{grid-template-columns:1fr 1fr;grid-template-rows:320px 240px 240px}.plumbing-gallery figure:first-child{grid-column:1/3;grid-row:auto}}
@media(max-width:680px){.page-hero{padding:72px 0 52px}.service-hero{padding:44px 0 58px}.work-list,.steps{grid-template-columns:1fr}.work-list>div,.work-list>div:nth-child(2n),.work-list>div:nth-last-child(-n+2){border-right:0;border-bottom:1px solid var(--line)}.work-list>div:last-child{border-bottom:0}.plumbing-gallery{display:grid;grid-template-columns:1fr;grid-template-rows:none}.plumbing-gallery figure,.plumbing-gallery figure:first-child{grid-column:auto;height:280px}.material-card{padding:32px 24px}.services-directory .service-card{min-height:0}}

/* V4: stronger section label + real-project plumbing carousel */
.why-eyebrow { font-size: 1.08rem; font-weight: 900; letter-spacing: .16em; line-height: 1.25; margin-bottom: 16px; }
.plumbing-work-section .section-head { margin-bottom: 34px; }
.work-carousel { position: relative; }
.carousel-track { display:flex; gap:18px; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:none; padding:2px 2px 12px; }
.carousel-track::-webkit-scrollbar { display:none; }
.carousel-track figure { flex:0 0 min(380px,78vw); height:430px; margin:0; border-radius:24px; overflow:hidden; position:relative; scroll-snap-align:start; background:#dfe7eb; box-shadow:0 12px 32px rgba(8,29,49,.08); cursor:grab; }
.carousel-track img { width:100%; height:100%; object-fit:cover; display:block; transition:transform .25s ease; }
.carousel-track figure:hover img { transform:scale(1.025); }
.carousel-track figcaption { position:absolute; left:16px; bottom:16px; padding:9px 13px; border-radius:999px; background:rgba(8,29,49,.9); color:#fff; font-weight:800; font-size:.9rem; }
.carousel-btn { position:absolute; z-index:3; top:50%; transform:translateY(-50%); width:48px; height:48px; border:0; border-radius:50%; background:#fff; color:var(--navy); box-shadow:0 8px 26px rgba(8,29,49,.2); font-size:2rem; line-height:1; cursor:pointer; }
.carousel-btn.prev { left:-22px; }.carousel-btn.next { right:-22px; }
.before-after-block { margin-top:72px; display:grid; grid-template-columns:.65fr 1.35fr; gap:48px; align-items:center; }
.before-after-copy h3 { color:var(--navy); font-size:clamp(2rem,3vw,3rem); line-height:1.06; margin:8px 0 14px; }
.before-after-copy p { color:var(--muted); }
.before-after-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.before-after-grid figure { margin:0; position:relative; height:430px; overflow:hidden; border-radius:24px; background:#e8edef; }
.before-after-grid img { width:100%; height:100%; object-fit:cover; }
.before-after-grid span { position:absolute; z-index:2; top:14px; left:14px; background:var(--navy); color:#fff; padding:8px 12px; border-radius:999px; font-weight:850; font-size:.82rem; text-transform:uppercase; letter-spacing:.08em; }
@media(max-width:980px){.before-after-block{grid-template-columns:1fr}.carousel-btn.prev{left:8px}.carousel-btn.next{right:8px}}
@media(max-width:680px){.why-eyebrow{font-size:1rem}.carousel-track figure{height:360px;flex-basis:86vw}.carousel-btn{width:42px;height:42px}.before-after-block{margin-top:52px;gap:24px}.before-after-grid{gap:8px}.before-after-grid figure{height:300px;border-radius:18px}}

/* V5: compact hero project gallery */
.hero-mini-gallery{position:relative;min-width:0}
.hero-gallery-stage{position:relative;aspect-ratio:4/3;border-radius:30px;overflow:hidden;box-shadow:var(--shadow);background:#e9eef0}
.hero-gallery-stage img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transform:scale(1.015);transition:opacity .35s ease,transform .45s ease}
.hero-gallery-stage img.active{opacity:1;transform:scale(1)}
.hero-gallery-btn{position:absolute;z-index:3;top:50%;transform:translateY(-50%);width:42px;height:42px;border:0;border-radius:50%;background:rgba(8,48,83,.88);color:#fff;font-size:28px;cursor:pointer;box-shadow:0 6px 18px rgba(0,0,0,.16)}
.hero-gallery-btn.prev{left:14px}.hero-gallery-btn.next{right:14px}
.hero-gallery-dots{display:flex;justify-content:center;gap:7px;margin-top:12px}
.hero-gallery-dots button{width:8px;height:8px;padding:0;border:0;border-radius:50%;background:#cbd7de;cursor:pointer}
.hero-gallery-dots button.active{background:var(--green);transform:scale(1.25)}
@media(max-width:680px){.hero-gallery-btn{width:38px;height:38px}.hero-gallery-stage{border-radius:22px}}

/* V10: mobile/readability polish */
@media (max-width: 980px) {
  .nav-wrap.open .nav-links a { width: 100%; padding: 5px 0; }
  .nav-wrap.open .nav-actions { gap: 10px; flex-wrap: wrap; }
  .nav-wrap.open .nav-actions .btn { flex: 1 1 220px; }
  .service-hero-grid { gap: 34px; }
  .page-hero, .service-hero { overflow: hidden; }
}
@media (max-width: 680px) {
  body { overflow-x: hidden; }
  .site-header { backdrop-filter: blur(10px); }
  .nav-wrap.open { gap: 14px; }
  .nav-wrap.open .nav-actions { flex-direction: column; }
  .nav-wrap.open .nav-actions .btn { width: 100%; flex-basis: auto; }
  .hero { background: linear-gradient(155deg,#eff6f7 0%,#fff 62%,#f1f8e9 100%); }
  .hero-grid { padding: 42px 0 48px; }
  .hero-copy, .section-head p, .page-hero p, .service-hero p { font-size: 1rem; line-height: 1.65; }
  .hero-media img { aspect-ratio: 4/3; border-radius: 22px; }
  .trust-row { margin-top: 24px; gap: 9px 16px; font-size: .92rem; }
  .section-head { margin-bottom: 28px; }
  .section-head h2 { font-size: clamp(2rem,10vw,2.75rem); }
  .service-card { padding: 23px; }
  .service-icon { margin-bottom: 20px; }
  .project { min-height: 300px; }
  .contact-grid { gap: 30px; }
  .contact-box { padding: 24px; }
  .contact-list a, .contact-list span { overflow-wrap: anywhere; }
  .site-footer { padding: 34px 0; }
  .footer-grid { align-items: flex-start; flex-direction: column; gap: 18px; }
  .footer-links { flex-direction: column; gap: 10px; }
  .page-hero h1, .service-hero h1 { font-size: clamp(2.55rem,12vw,3.55rem); overflow-wrap: anywhere; }
  .service-hero-grid { gap: 28px; }
  .back-link { margin-bottom: 20px; }
  .work-list > div { min-height: 0; padding: 24px; }
  .cta-strip { gap: 20px; }
  .material-card h2, .faq-grid h2, .cta-strip h2 { font-size: clamp(2rem,10vw,2.7rem); }
  .carousel-track figure { flex-basis: 88vw; max-width: calc(100vw - 44px); }
  .carousel-btn.prev { left: 6px; }
  .carousel-btn.next { right: 6px; }
  .before-after-grid { grid-template-columns: 1fr; }
  .before-after-grid figure { height: 360px; }
  .estimate-form input, .estimate-form textarea, .estimate-form select { font-size: 16px; }
}

/* V11: live estimate request form */
.form-honeypot{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important}
.estimate-form input[type="file"]{padding:11px;background:#fff;cursor:pointer}
.estimate-form input[type="file"]::file-selector-button{border:0;border-radius:9px;padding:10px 13px;margin-right:12px;background:var(--navy);color:#fff;font:inherit;font-weight:800;cursor:pointer}
.form-note a{color:var(--navy);font-weight:800;text-decoration:none}
.form-note a:hover{text-decoration:underline}

/* V12 final audit fixes */
html, body { max-width: 100%; }
body { overflow-x: hidden; }
.page-hero, .service-hero, .page-hero .container, .service-hero-grid, .service-hero-grid > *, .hero-grid > * { min-width: 0; }
button, input, select, textarea { max-width: 100%; }
:focus-visible { outline: 3px solid rgba(123,187,36,.7); outline-offset: 3px; }
@media (max-width: 680px) {
  .page-hero h1, .service-hero h1 { font-size: clamp(2.3rem, 10.5vw, 3.35rem); overflow-wrap: normal; word-break: normal; }
  .page-hero .container, .service-hero .container { min-width: 0; }
  .service-card { overflow: hidden; }
}
