/* ============================================================
   UM Plumbing — Unlimited Master Plumbing · San Jose, CA
   navy #102a52 · water blue #1763c6 · red #d72631 · mist #f3f6fb
   ============================================================ */

:root {
  --navy: #102a52;
  --navy-deep: #0a1c39;
  --blue: #1763c6;
  --blue-deep: #114e9e;
  --blue-soft: #dbe8fa;
  --red: #d72631;
  --red-deep: #b51f29;
  --ink: #18222f;
  --slate: #3c4858;
  --muted: #5c6878;
  --paper: #ffffff;
  --mist: #f3f6fb;
  --mist-2: #e9eef6;
  --line: #dde4ee;
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --wrap: 75rem;
  --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.7;
  color: var(--slate); background: var(--paper); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; line-height: 1.08; color: var(--navy); letter-spacing: -0.01em; }
h1 em, h2 em { font-style: normal; color: var(--blue); }
p { max-width: 64ch; }
a { color: var(--blue); }
.wrap { width: min(var(--wrap), 100% - 3rem); margin-inline: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-display); font-weight: 700; font-size: .82rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--blue);
}
.eyebrow::before { content: ""; width: 1.8rem; height: 3px; background: var(--red); border-radius: 2px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem; letter-spacing: .01em;
  text-decoration: none; color: #fff; background: var(--blue); padding: .82rem 1.7rem;
  border: 2px solid var(--blue); border-radius: 8px;
  transition: background .16s, border-color .16s, transform .16s;
}
.btn:hover { background: var(--blue-deep); border-color: var(--blue-deep); transform: translateY(-2px); }
.btn.btn-red { background: var(--red); border-color: var(--red); }
.btn.btn-red:hover { background: var(--red-deep); border-color: var(--red-deep); }
.btn.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn.btn-ghost:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn.btn-small { padding: .55rem 1.1rem; font-size: .92rem; }

/* ============================================================
   HEADER
   ============================================================ */
.topbar { background: var(--navy-deep); color: #cfe0f5; font-size: .9rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .45rem 0; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar .tb-right { display: flex; gap: 1.4rem; align-items: center; flex-wrap: wrap; }
.topbar .tb-phone { font-family: var(--font-display); font-weight: 800; }
@media (max-width: 620px) { .topbar { display: none; } }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: .55rem 0; }
.brand img { height: 52px; width: auto; }
.site-nav { display: flex; align-items: center; gap: .25rem; }
.site-nav > a:not(.btn), .nav-drop > a {
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; text-decoration: none;
  color: var(--navy); padding: .45rem .8rem; border-radius: 7px; transition: background .15s; cursor: pointer;
}
.site-nav > a:not(.btn):hover, .nav-drop > a:hover { background: var(--mist-2); }
.site-nav > a[aria-current="page"], .nav-drop > a[aria-current="page"] { color: var(--blue); }
.site-nav .btn { margin-left: .5rem; }

.nav-drop { position: relative; }
.nav-drop > a::after { content: " ▾"; font-size: .7em; }
.drop-menu {
  position: absolute; top: calc(100% + .3rem); left: 0; min-width: 14rem; background: #fff;
  border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 18px 38px -18px rgba(16,42,82,.4);
  padding: .4rem; display: grid; gap: .1rem; opacity: 0; visibility: hidden; translate: 0 .4rem;
  transition: opacity .16s, translate .16s, visibility .16s;
}
.nav-drop:hover .drop-menu, .nav-drop:focus-within .drop-menu { opacity: 1; visibility: visible; translate: 0 0; }
.drop-menu a { font-family: var(--font-display); font-weight: 600; font-size: .98rem; text-decoration: none; color: var(--navy); padding: .5rem .8rem; border-radius: 6px; }
.drop-menu a:hover { background: var(--blue); color: #fff; }

.nav-toggle { display: none; }
.nav-burger { display: none; width: 44px; height: 44px; border: 2px solid var(--line); border-radius: 8px; cursor: pointer; position: relative; flex-shrink: 0; background: transparent; }
.nav-burger span, .nav-burger span::before, .nav-burger span::after { content: ""; position: absolute; left: 50%; width: 19px; height: 2.5px; background: var(--navy); translate: -50% 0; transition: rotate .2s, top .2s, background .2s; }
.nav-burger span { top: 20px; } .nav-burger span::before { top: -6px; } .nav-burger span::after { top: 6px; }

@media (max-width: 900px) {
  .nav-burger { display: block; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 4px solid var(--blue); flex-direction: column; align-items: stretch; padding: .8rem 1.5rem 1.4rem; display: none; }
  .nav-toggle:checked ~ .site-nav { display: flex; }
  .nav-toggle:checked ~ .nav-burger span { background: transparent; }
  .nav-toggle:checked ~ .nav-burger span::before { top: 0; rotate: 45deg; }
  .nav-toggle:checked ~ .nav-burger span::after { top: 0; rotate: -45deg; }
  .nav-drop > a { display: block; }
  .drop-menu { position: static; opacity: 1; visibility: visible; translate: 0; box-shadow: none; border: none; padding: 0 0 0 1rem; }
  .site-nav .btn { margin: .6rem 0 0; justify-content: center; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding: 4.5rem 0 5rem; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3.5rem; align-items: center; }
.hero h1 { font-size: clamp(2.7rem, 6vw, 4.6rem); margin: 1.1rem 0 1.1rem; }
.hero .lede { font-size: 1.2rem; color: var(--muted); margin-bottom: 2rem; max-width: 50ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-meta { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: 2.2rem; }
.hero-meta .m-num { font-family: var(--font-display); font-weight: 800; font-size: 2.2rem; color: var(--navy); line-height: 1; }
.hero-meta .m-num span { color: var(--blue); }
.hero-meta .m-lab { font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-top: .3rem; }
.hero-figure { position: relative; }
.hero-figure img { width: 100%; aspect-ratio: 4/4.2; object-fit: cover; border-radius: var(--radius); }
.hero-figure::before { content: ""; position: absolute; left: -1.1rem; bottom: -1.1rem; width: 58%; height: 58%; background: var(--blue-soft); border-radius: 10px; z-index: -1; }
.hero-figure .stamp { position: absolute; left: 1rem; bottom: 1rem; background: var(--navy); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: .9rem; padding: .5rem 1rem; border-radius: 7px; border-left: 4px solid var(--red); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 2.6rem; } }

/* ============================================================
   STAT STRIP
   ============================================================ */
.strip { background: var(--navy); color: #fff; }
.strip-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; padding: 2.2rem 0; }
.strip .s-item { padding-left: 1rem; border-left: 3px solid var(--blue); }
.strip .s-top { font-family: var(--font-display); font-weight: 800; font-size: 1.65rem; color: #fff; line-height: 1.05; display: block; }
.strip .s-sub { font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; color: #9fb4d4; }
@media (max-width: 760px) { .strip-inner { grid-template-columns: repeat(2, 1fr); gap: 1.6rem; } }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 5.5rem 0; }
.section.mist { background: var(--mist); }
.section.navy { background: var(--navy); color: #c9d6e8; }
.section.navy h2 { color: #fff; }

.sec-head { max-width: 52rem; margin-bottom: 3rem; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head h2 { font-size: clamp(2.1rem, 4.2vw, 3.2rem); margin-top: 1rem; }
.sec-head .sub { margin-top: 1rem; font-size: 1.12rem; color: var(--muted); }
.sec-head.center .sub { margin-inline: auto; }
.section.navy .sec-head .sub { color: #9fb4d4; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.split.rev > .split-media { order: 2; }
.split h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); margin: 1rem 0 1.1rem; }
.split p + p { margin-top: 1rem; }
.split .btn { margin-top: 1.6rem; }
.split-media { position: relative; }
.split-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); }
.split-media::before { content: ""; position: absolute; right: -1rem; top: -1rem; width: 48%; height: 48%; background: var(--blue-soft); border-radius: 10px; z-index: -1; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 2.4rem; } .split.rev > .split-media { order: 0; } }

.checklist { list-style: none; margin-top: 1.4rem; display: grid; gap: .8rem; }
.checklist li { display: flex; gap: .7rem; align-items: baseline; }
.checklist li::before { content: "✓"; color: #fff; background: var(--blue); width: 20px; height: 20px; border-radius: 50%; display: inline-grid; place-items: center; font-size: .72rem; font-weight: 700; flex-shrink: 0; position: relative; top: 3px; }
.checklist strong { color: var(--ink); font-weight: 600; }

/* ---------- service cards ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.svc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem 1.6rem; transition: transform .2s, box-shadow .2s, border-color .2s; text-decoration: none; display: block; }
.svc:hover { transform: translateY(-5px); box-shadow: 0 22px 44px -26px rgba(16,42,82,.35); border-color: var(--blue); }
.svc .ico { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 10px; background: var(--blue-soft); color: var(--blue); margin-bottom: 1rem; }
.svc .ico svg { width: 26px; height: 26px; }
.svc h3 { font-size: 1.3rem; margin-bottom: .4rem; }
.svc p { font-size: .97rem; color: var(--muted); }
.svc .go { display: inline-block; margin-top: .8rem; font-family: var(--font-display); font-weight: 700; font-size: .92rem; color: var(--blue); }
@media (max-width: 900px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .svc-grid { grid-template-columns: 1fr; } }

/* image service cards (with photo) */
.svc-photo { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s, box-shadow .2s; text-decoration: none; display: block; }
.svc-photo:hover { transform: translateY(-5px); box-shadow: 0 22px 44px -26px rgba(16,42,82,.35); }
.svc-photo figure { overflow: hidden; border-bottom: 3px solid var(--blue); }
.svc-photo img { width: 100%; aspect-ratio: 3/2; object-fit: cover; transition: scale .5s; }
.svc-photo:hover img { scale: 1.05; }
.svc-photo .body { padding: 1.3rem 1.5rem 1.6rem; }
.svc-photo h3 { font-size: 1.25rem; margin-bottom: .4rem; }
.svc-photo p { font-size: .96rem; color: var(--muted); }

/* ---------- tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.5rem; }
.section.mist .tile { background: #fff; }
.tile .ico { width: 38px; height: 38px; color: var(--blue); margin-bottom: .8rem; }
.tile h3 { font-size: 1.2rem; margin-bottom: .35rem; }
.tile p { font-size: .95rem; color: var(--muted); }
@media (max-width: 900px) { .tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } }

/* ---------- why / feature row ---------- */
.feature-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; text-align: center; }
.feature-3 .f { padding: 1.6rem; }
.feature-3 .fi { width: 56px; height: 56px; margin: 0 auto 1rem; display: grid; place-items: center; border-radius: 50%; background: var(--red); color: #fff; }
.feature-3 .fi svg { width: 28px; height: 28px; }
.feature-3 h3 { font-size: 1.4rem; }
@media (max-width: 760px) { .feature-3 { grid-template-columns: 1fr; } }

/* ---------- quote / testimonial ---------- */
.quote-band { background: var(--blue); color: #fff; text-align: center; padding: 4rem 0; position: relative; }
.quote-band blockquote { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.25; max-width: 40ch; margin: 0 auto 1rem; }
.quote-band cite { font-style: normal; font-weight: 600; color: #cfe0f5; }

/* ---------- prose ---------- */
.prose { max-width: 44rem; }
.prose h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 2.2rem 0 1rem; }
.prose h3 { font-size: 1.3rem; margin: 1.7rem 0 .5rem; }
.prose p { margin-bottom: 1rem; }
.prose ul { list-style: none; margin: 1rem 0 1.4rem; display: grid; gap: .65rem; }
.prose ul li { display: flex; gap: .7rem; align-items: baseline; }
.prose ul li::before { content: "✓"; color: #fff; background: var(--blue); width: 20px; height: 20px; border-radius: 50%; display: inline-grid; place-items: center; font-size: .72rem; font-weight: 700; flex-shrink: 0; position: relative; top: 3px; }

/* two-column list */
.cols-2 { columns: 2; column-gap: 2.5rem; }
.cols-2 ul { list-style: none; }
.cols-2 li { break-inside: avoid; display: flex; gap: .6rem; align-items: baseline; margin-bottom: .6rem; }
.cols-2 li::before { content: "✓"; color: var(--blue); font-weight: 800; flex-shrink: 0; }
@media (max-width: 640px) { .cols-2 { columns: 1; } }

/* FAQ */
.faq { max-width: 48rem; margin-inline: auto; display: grid; gap: .8rem; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .2rem 1.3rem; }
.section.mist .faq details { background: #fff; }
.faq summary { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--navy); cursor: pointer; padding: 1rem 0; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--blue); font-weight: 800; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 1.1rem; color: var(--muted); }

/* ============================================================
   INTERIOR PAGE HERO
   ============================================================ */
.page-hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; padding: 3.2rem 0 3.4rem; }
.page-hero.img { padding: 0; }
.page-hero.img .ph-media { position: relative; }
.page-hero.img .ph-media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.page-hero.img .ph-inner { position: relative; padding: 5rem 0; background: linear-gradient(90deg, rgba(10,28,57,.92) 0%, rgba(10,28,57,.72) 55%, rgba(10,28,57,.4) 100%); }
.page-hero h1 { color: #fff; font-size: clamp(2.4rem, 5vw, 3.9rem); margin: .7rem 0 .5rem; }
.page-hero p { color: #c9d6e8; font-size: 1.12rem; max-width: 56ch; }
.crumbs { font-family: var(--font-display); font-weight: 600; font-size: .9rem; letter-spacing: .04em; text-transform: uppercase; color: #8ba3c4; margin-bottom: .3rem; }
.crumbs a { color: #b9cae3; text-decoration: none; }
.crumbs a:hover { color: #fff; }
.crumbs span { color: #5b8ee0; }

/* ---------- contact ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.25fr; gap: 2.2rem; align-items: start; }
.contact-info { display: grid; gap: 1.2rem; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.6rem; border-left: 4px solid var(--blue); }
.contact-card .role { font-family: var(--font-display); font-weight: 700; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
.contact-card h3 { font-size: 1.2rem; margin: .25rem 0 .5rem; }
.contact-card address { font-style: normal; color: var(--muted); line-height: 1.7; }
.contact-card address a { color: var(--slate); text-decoration: none; }
.contact-card address a:hover { color: var(--blue); }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: 0 24px 50px -32px rgba(16,42,82,.35); }
.contact-form h3 { font-size: 1.5rem; }
.req { color: var(--red); font-weight: 700; }
.req-legend { font-family: var(--font-display); font-weight: 500; font-size: .85rem; color: var(--muted); margin: .3rem 0 1.4rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-family: var(--font-display); font-weight: 600; font-size: .9rem; color: var(--navy); margin-bottom: .35rem; }
.field input, .field select, .field textarea { width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink); background: var(--mist); border: 1.5px solid var(--line); border-radius: 8px; padding: .7rem .9rem; transition: border-color .15s, box-shadow .15s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); background: #fff; }
.field textarea { min-height: 8rem; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 1rem; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; max-width: 34rem; margin-inline: auto; } .field-row { grid-template-columns: 1fr; } }

/* areas list */
.areas { display: flex; flex-wrap: wrap; gap: .6rem; }
.areas span { font-family: var(--font-display); font-weight: 600; font-size: .95rem; color: var(--navy); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .4rem 1rem; }

/* ---------- CTA ---------- */
.cta-band { position: relative; background: var(--red); color: #fff; text-align: center; padding: 4.2rem 0; }
.cta-band h2 { color: #fff; font-size: clamp(2.1rem, 4.2vw, 3.2rem); margin-bottom: .6rem; }
.cta-band p { color: #ffe3e5; font-size: 1.15rem; margin: 0 auto 2rem; }
.cta-band .btn { background: #fff; color: var(--red-deep); border-color: #fff; }
.cta-band .btn:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--navy-deep); color: #9fb4d4; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.3fr; gap: 2.5rem; padding: 3.6rem 0 2.6rem; }
.footer-grid .f-brand img { height: 54px; width: auto; }
.footer-grid p { font-size: .94rem; margin-top: 1.1rem; max-width: 38ch; color: #8da3c0; }
.footer-grid h4 { color: #fff; font-size: 1.05rem; letter-spacing: .03em; margin-bottom: 1rem; }
.footer-grid ul { list-style: none; display: grid; gap: .5rem; }
.footer-grid ul a { color: #9fb4d4; text-decoration: none; font-size: .95rem; }
.footer-grid ul a:hover { color: #fff; }
.footer-grid address { font-style: normal; font-size: .94rem; line-height: 1.8; }
.footer-grid address a { color: #9fb4d4; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.3rem 0; font-size: .83rem; display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between; color: #7e93b0; }
.footer-bottom a { color: #9fb4d4; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* reveal */
.reveal { opacity: 0; translate: 0 1.4rem; transition: opacity .7s ease, translate .7s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .reveal { opacity: 1; translate: 0 0; } }
