/* Prime Plumbing & Services — site styles */
:root {
  --navy: #06365c;
  --navy-900: #04243f;
  --ink: #0f2231;
  --body: #44535f;
  --muted: #6b7a86;
  --sky: #2da1ea;
  --sky-600: #1683c9;
  --tint: #eef4f8;
  --panel: #dfe8ee;
  --line: #d4dee5;
  --white: #fff;
  --live: #1f9d55;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(6, 54, 92, .06), 0 8px 24px rgba(6, 54, 92, .08);
  --head: "Inter Tight", "Inter", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.6; color: var(--body); background: var(--white); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--head); color: var(--ink); line-height: 1.12; margin: 0; letter-spacing: -.02em; }
h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }

.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--white); padding: 8px 12px; }

.eyebrow { font: 700 13px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--sky-600); margin-bottom: 16px; }
.eyebrow--light { color: #8fd0f7; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 16px/1 var(--sans); padding: 16px 24px; border-radius: 8px; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.btn--primary { background: var(--sky); color: var(--white); }
.btn--primary:hover { background: var(--sky-600); }
.btn--ghost { border-color: rgba(255,255,255,.5); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn--sm { padding: 11px 18px; font-size: 15px; }
.btn--block { width: 100%; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav__in { display: flex; align-items: center; gap: 32px; height: 76px; }
.nav__logo img { height: 50px; width: auto; }
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a, .nav__phone { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--ink); }
.nav__links a:hover { color: var(--sky-600); }
.nav__cta { display: flex; align-items: center; gap: 20px; }
.nav__phone { font-weight: 600; }
.nav__toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 12px 10px; }
.nav__toggle span { display: block; height: 2px; background: var(--ink); margin: 6px 0; transition: transform .2s; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.mobile-menu { border-top: 1px solid var(--line); padding: 8px 20px 20px; background: var(--white); }
.mobile-menu a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 600; color: var(--ink); }
.mobile-menu .btn { margin-top: 16px; width: 100%; }

/* Hero */
.hero { position: relative; background: var(--navy-900); color: var(--white); overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 35%; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,36,63,.96) 0%, rgba(4,36,63,.88) 38%, rgba(4,36,63,.35) 72%, rgba(4,36,63,.15) 100%); }
.hero__in { position: relative; padding: clamp(72px, 10vw, 136px) 0 clamp(56px, 7vw, 96px); max-width: 1200px; }
.hero h1 { color: var(--white); font-size: clamp(40px, 6vw, 72px); font-weight: 800; max-width: 13ch; letter-spacing: -.03em; }
.hero h1 span { color: var(--sky); white-space: nowrap; }
.hero__lede { margin-top: 24px; font-size: clamp(17px, 1.6vw, 20px); max-width: 34em; color: rgba(255,255,255,.86); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 10px 28px; list-style: none; padding: 0; margin: 48px 0 0; font-size: 15px; color: rgba(255,255,255,.78); }
.hero__trust li { display: flex; align-items: center; gap: 8px; }
.hero__trust li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sky); }
.hero__trust strong { color: var(--white); font-weight: 600; }

/* Stats */
.stats { background: var(--navy); color: var(--white); border-top: 4px solid var(--sky); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 32px 24px; border-left: 1px solid rgba(255,255,255,.12); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__n { display: block; font: 800 clamp(32px, 3.4vw, 44px)/1 var(--head); letter-spacing: -.02em; }
.stat__l { display: block; margin-top: 8px; font-size: 14px; color: rgba(255,255,255,.72); max-width: 22ch; line-height: 1.45; }

/* Sections */
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section--tint { background: var(--tint); }
.section--navy { background: var(--navy-900); color: rgba(255,255,255,.8); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section__head { max-width: 760px; margin-bottom: 48px; }
.section__head--split { max-width: none; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end; }
.section__head--split h2 { max-width: 18ch; }
.section__lede { font-size: 18px; color: var(--muted); }
.section--navy .section__lede { color: rgba(255,255,255,.7); }

/* Markets */
.markets__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.market { background: var(--tint); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.market--dark { background: var(--navy); color: rgba(255,255,255,.82); }
.market--dark h3 { color: var(--white); }
.market__img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--panel); }
.market__img img { width: 100%; height: 100%; object-fit: cover; }
.market__body { padding: 32px; }
.market h3 { font-size: 26px; margin: 10px 0 12px; }
.tag { display: inline-block; font: 700 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--navy); background: var(--white); padding: 7px 10px; border-radius: 4px; }
.tag--light { background: var(--sky); color: var(--white); }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 26px; font-weight: 500; color: var(--ink); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 12px; height: 7px; border-left: 2.5px solid var(--sky); border-bottom: 2.5px solid var(--sky); transform: rotate(-45deg); }
.ticks--light li { color: var(--white); }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc { background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); border-top: 3px solid transparent; transition: border-color .2s, transform .2s; }
.svc:hover { border-top-color: var(--sky); transform: translateY(-2px); }
.svc__n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: var(--white); font: 700 14px/1 var(--sans); }
.svc h3 { margin: 18px 0 10px; }
.svc ul { list-style: none; padding: 0; margin: 0; color: var(--muted); font-size: 15px; display: grid; gap: 4px; }

/* Process */
.process__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.process__media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
.process__media img { width: 100%; height: 100%; object-fit: cover; }
.process h2 { font-size: clamp(26px, 2.8vw, 34px); }
.steps { list-style: none; padding: 0; margin: 36px 0 0; counter-reset: s; display: grid; gap: 4px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 48px 1fr; column-gap: 12px; padding: 18px 0; border-top: 1px solid var(--line); }
.steps li::before { content: "0" counter(s); grid-row: span 2; font: 800 22px/1.1 var(--head); color: var(--sky); }
.steps strong { color: var(--ink); font-size: 18px; }
.steps span { color: var(--muted); font-size: 15px; }

/* Projects */
.featured { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 20px; }
.feat { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.feat__img { aspect-ratio: 16 / 10; overflow: hidden; }
.feat:first-child .feat__img { aspect-ratio: auto; flex: 1; min-height: 240px; position: relative; }
.feat:first-child .feat__img img { position: absolute; inset: 0; object-position: 50% 35%; }
.feat__img img { width: 100%; height: 100%; object-fit: cover; }
.feat__body { padding: 24px; }
.feat__status { font: 600 12px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: #6fe3a1; margin-bottom: 10px; }
.feat__status--done { color: #8fd0f7; }
.feat h3 { font-size: 22px; }
.feat__meta { margin-top: 6px; color: var(--white); font-weight: 500; }
.feat__scope { margin-top: 10px; font-size: 14px; color: rgba(255,255,255,.6); }

.gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 20px; }
.gallery figure { margin: 0; position: relative; border-radius: 8px; overflow: hidden; aspect-ratio: 1; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 10px 8px; font-size: 13px; font-weight: 600; color: #fff; background: linear-gradient(transparent, rgba(4,36,63,.85)); }
.refs { margin-top: 56px; }
.refs__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,.15); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font: 500 14px/1 var(--sans); padding: 10px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); background: none; color: rgba(255,255,255,.85); cursor: pointer; }
.chip:hover { border-color: var(--white); }
.chip.is-on { background: var(--white); color: var(--navy); border-color: var(--white); }
.ref-list { list-style: none; padding: 0; margin: 0; }
.ref-list li { display: grid; grid-template-columns: 2fr 1.3fr 1.6fr 110px; gap: 16px; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.1); align-items: baseline; font-size: 15px; }
.ref-list li[hidden] { display: none; }
.r-name { color: var(--white); font-weight: 600; font-size: 16px; }
.r-name em { font-style: normal; font-weight: 400; color: rgba(255,255,255,.55); margin-left: 8px; font-size: 14px; }
.r-type { color: var(--white); }
.r-scope { color: rgba(255,255,255,.6); }
.r-when { text-align: right; color: rgba(255,255,255,.6); font-variant-numeric: tabular-nums; }
.r-when--live { color: #6fe3a1; font-weight: 600; }
.refs__note { margin-top: 20px; font-size: 14px; color: rgba(255,255,255,.55); }

/* Compliance */
.creds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cred { background: var(--tint); border-radius: var(--radius); padding: 28px 24px; }
.cred--dark { background: var(--navy); }
.cred__n { display: block; font: 800 34px/1.05 var(--head); color: var(--navy); letter-spacing: -.02em; }
.cred--dark .cred__n { color: var(--white); font-size: 24px; }
.cred__l { display: block; margin-top: 10px; font-size: 15px; color: var(--muted); }
.cred--dark .cred__l { color: rgba(255,255,255,.75); }
.creds__std { margin-top: 24px; font-size: 15px; color: var(--muted); }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact__info > p:not(.eyebrow) { margin-top: 16px; font-size: 18px; }
.contact__list { margin: 32px 0 0; display: grid; gap: 0; }
.contact__list div { display: grid; grid-template-columns: 90px 1fr; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.contact__list dt { font-weight: 600; color: var(--muted); font-size: 14px; line-height: 1.4; }
.contact__list dd { margin: 0; color: var(--ink); font-weight: 500; line-height: 1.4; overflow-wrap: anywhere; }
.contact__list a { text-decoration: none; }
.contact__list a:hover { color: var(--sky-600); }
.form { background: var(--white); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); box-shadow: var(--shadow); display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
.form small { font-weight: 400; color: var(--muted); }
.form input:not([type=radio]), .form textarea { font: 400 16px/1.4 var(--sans); padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--white); width: 100%; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 3px rgba(45,161,234,.2); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--tint); border-radius: 8px; padding: 4px; }
.form__seg label { display: block; }
.form__seg input { position: absolute; opacity: 0; }
.form__seg span { display: block; text-align: center; padding: 10px; border-radius: 6px; cursor: pointer; color: var(--muted); }
.form__seg input:checked + span { background: var(--white); color: var(--navy); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.form__seg input:focus-visible + span { outline: 3px solid var(--sky); }
.form__note { font-size: 13px; color: var(--muted); text-align: center; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__note.is-ok { color: #1f7a45; font-weight: 600; }
.form .is-invalid { border-color: #d64545 !important; }

/* Footer */
.foot { background: var(--navy-900); color: rgba(255,255,255,.7); padding: 64px 0 28px; font-size: 15px; }
.foot__in { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.foot__brand img { height: 56px; width: auto; margin-bottom: 18px; }
.foot__col { display: grid; gap: 10px; align-content: start; }
.foot h4 { color: var(--white); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 6px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--white); }
.foot__legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; color: rgba(255,255,255,.5); }

/* Responsive */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav__cta { margin-left: auto; }
  .featured { grid-template-columns: 1fr 1fr; }
  .feat:first-child { grid-column: 1 / -1; }
  .feat:first-child .feat__img { aspect-ratio: 16 / 8; flex: none; }
  .creds { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stat { padding: 24px 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.12); }
  .stat:nth-child(-n+2) { border-top: 0; }
  .stat:nth-child(even) { padding-left: 20px; border-left: 1px solid rgba(255,255,255,.12); }
  .section__head--split { grid-template-columns: 1fr; gap: 16px; }
  .markets__grid, .services, .process__grid, .contact, .featured { grid-template-columns: 1fr; }
  .services { gap: 14px; }
  .process__media { aspect-ratio: 4 / 3; }
  .ref-list li { grid-template-columns: 1fr auto; gap: 4px 12px; }
  .r-name { grid-column: 1; }
  .r-when { grid-column: 2; grid-row: 1; }
  .r-type, .r-scope { grid-column: 1 / -1; }
  .r-name em { display: block; margin: 2px 0 0; }
  .foot__in { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
  .hero__media::after { background: linear-gradient(180deg, rgba(4,36,63,.75) 0%, rgba(4,36,63,.92) 60%, rgba(4,36,63,.97) 100%); }
}
@media (max-width: 520px) {
  .wrap { width: calc(100% - 32px); }
  .nav__in { height: 64px; }
  .nav__logo img { height: 42px; }
  .creds { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .form__row { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1 1 100%; }
  .market__body { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
