/* Shipman Waterworks — clean, bold, mobile-first */
:root {
  --navy: #0F2A5A;
  --navy-dark: #0A1E42;
  --navy-deep: #071633;
  --sky: #4FB6D9;
  --sky-bright: #38BDF8;
  --white: #FFFFFF;
  --off-white: #F4F7FB;
  --gray: #8A8A8A;
  --text-dark: #1A2436;
  --radius: 12px;
  --shadow: 0 8px 24px rgba(7, 22, 51, .18);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sky-bright); }

.container { width: min(1100px, 92%); margin: 0 auto; }
.section { padding: 64px 0; }
.section-dark { background: var(--navy-deep); color: var(--white); }
.section-dark .section-sub { color: #B9C6DE; }
.section-tint { background: var(--off-white); }
.section-title { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 800; margin-bottom: 8px; }
.section-sub { color: #55607A; margin-bottom: 32px; font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 700; font-size: 1rem; text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  min-height: 52px;
}
.btn:active { transform: scale(.97); }
.btn .icon { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--sky-bright); color: var(--navy-deep); box-shadow: var(--shadow); }
.btn-primary:hover { background: #7DD3FC; }
.btn-ghost { border-color: var(--white); color: var(--white); background: rgba(255,255,255,.08); }
.btn-ghost:hover { background: rgba(255,255,255,.18); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-lg { padding: 16px 32px; font-size: 1.1rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(7, 22, 51, .96);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--sky);
}
.header-inner {
  width: min(1200px, 94%); margin: 0 auto;
  display: flex; align-items: center; gap: 16px;
  padding: 10px 0;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand-logo { width: 52px; height: 52px; object-fit: contain; filter: drop-shadow(0 0 8px rgba(56,189,248,.55)); }
.brand-name { color: var(--white); font-weight: 800; font-size: 1.15rem; line-height: 1.1; }
.brand-accent { color: var(--sky-bright); }
.main-nav { display: flex; gap: 22px; }
.main-nav a { color: #DCE6F7; text-decoration: none; font-weight: 600; font-size: .98rem; }
.main-nav a:hover { color: var(--sky-bright); }
.header-call { padding: 10px 20px; min-height: 44px; font-size: .95rem; white-space: nowrap; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--white); border-radius: 2px; margin: 5px 0; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; overflow: hidden; color: var(--white); }
.hero-bg {
  position: absolute; inset: 0;
  background: url("../images/hero-after.jpg") center/cover no-repeat;
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,22,51,.55) 0%, rgba(7,22,51,.38) 45%, rgba(7,22,51,.68) 100%); }
.hero-content { position: relative; z-index: 1; width: min(900px, 92%); margin: 0 auto; text-align: center; padding: 80px 0 60px; }
.promo-banner {
  display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center;
  background: rgba(255,255,255,.1); border: 2px dashed var(--sky-bright);
  border-radius: var(--radius); padding: 10px 18px; margin-bottom: 24px;
}
.promo-badge { background: #F59E0B; color: var(--navy-deep); font-weight: 800; font-size: .75rem; padding: 4px 10px; border-radius: 999px; letter-spacing: .05em; }
.promo-text { font-size: 1rem; }
.promo-text strong { color: #FCD34D; }
.tagline { font-size: clamp(1.9rem, 5.5vw, 3.4rem); font-weight: 900; line-height: 1.15; margin-bottom: 16px; text-shadow: 0 2px 12px rgba(0,0,0,.4); }
.hero-sub { font-size: clamp(1.05rem, 2.5vw, 1.3rem); color: #DCE6F7; max-width: 640px; margin: 0 auto 32px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }
.hero-hours { color: #B9C6DE; font-size: .95rem; }

/* ---------- Services ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 24px; }
.card {
  background: var(--white); border-radius: var(--radius);
  padding: 32px 28px; box-shadow: var(--shadow);
  border-top: 5px solid var(--sky);
}
.card-icon { font-size: 2.6rem; margin-bottom: 12px; }
.card h3 { font-size: 1.45rem; color: var(--navy); margin-bottom: 8px; }
.card p { color: #55607A; margin-bottom: 16px; }
.card ul { list-style: none; }
.card li { padding: 7px 0 7px 28px; position: relative; border-bottom: 1px solid #EDF1F7; }
.card li:last-child { border-bottom: none; }
.card li::before { content: "✓"; position: absolute; left: 4px; color: var(--sky-bright); font-weight: 800; }

/* ---------- Before / After ---------- */
.ba-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 24px; margin-bottom: 24px; }
.ba-pair { background: rgba(255,255,255,.05); border-radius: var(--radius); overflow: hidden; }
.ba-pair figcaption { padding: 14px 18px; font-weight: 600; color: #DCE6F7; font-size: .95rem; }
.ba-static { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.ba-compare { position: relative; aspect-ratio: 4/3; overflow: hidden; user-select: none; -webkit-user-select: none; touch-action: pan-y; cursor: ew-resize; }
.ba-compare .ba-after { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba-before-wrap { position: absolute; top: 0; left: 0; bottom: 0; overflow: hidden; }
.ba-before-wrap .ba-before { position: absolute; top: 0; left: 0; height: 100%; max-width: none; pointer-events: none; }
.ba-label {
  position: absolute; top: 12px; font-size: .75rem; font-weight: 800; letter-spacing: .06em;
  background: rgba(7,22,51,.75); color: var(--white); padding: 5px 12px; border-radius: 999px;
  pointer-events: none; z-index: 2;
}
.ba-label-before { left: 12px; }
.ba-label-after { right: 12px; }
.ba-handle {
  position: absolute; top: 0; bottom: 0; width: 3px; margin-left: -1.5px;
  background: var(--sky-bright); z-index: 2; pointer-events: none;
}
.ba-handle span {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--sky-bright); color: var(--navy-deep);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; box-shadow: 0 2px 10px rgba(0,0,0,.4);
}
.ba-handle span::before { content: "◀ ▶"; font-size: .7rem; letter-spacing: -1px; }
.ba-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.ba-gallery img { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; width: 100%; }

/* ---------- Why us ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; }
.feature { text-align: center; padding: 12px; }
.feature-icon { font-size: 2.4rem; margin-bottom: 10px; }
.feature h3 { color: var(--navy); margin-bottom: 8px; font-size: 1.2rem; }
.feature p { color: #55607A; }

/* ---------- Areas ---------- */
.areas { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.areas li {
  background: var(--navy); color: var(--white); font-weight: 700;
  padding: 12px 24px; border-radius: 999px; font-size: 1.02rem;
}

/* ---------- Reviews ---------- */
.reviews-box { text-align: center; max-width: 700px; }
.review-links { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.contact-cards { display: flex; flex-direction: column; gap: 16px; }
.contact-card {
  display: flex; align-items: center; gap: 16px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius); padding: 18px 20px;
  text-decoration: none; color: var(--white);
  transition: background .15s ease;
}
a.contact-card:hover { background: rgba(255,255,255,.12); }
.contact-card-static { cursor: default; }
.contact-icon { font-size: 1.8rem; flex: none; }
.contact-label { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: #B9C6DE; }
.contact-value { display: block; font-weight: 700; font-size: 1.1rem; word-break: break-all; }

.quote-form {
  background: var(--white); color: var(--text-dark);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
}
.quote-form h3 { color: var(--navy); margin-bottom: 18px; font-size: 1.3rem; }
.quote-form label { display: block; margin-bottom: 14px; }
.quote-form label span { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; color: var(--navy); }
.quote-form input, .quote-form select, .quote-form textarea {
  width: 100%; padding: 14px; font-size: 1rem; font-family: inherit;
  border: 2px solid #D5DCE8; border-radius: 8px; background: var(--white);
}
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus {
  outline: none; border-color: var(--sky-bright); box-shadow: 0 0 0 3px rgba(56,189,248,.2);
}
.form-note { font-size: .88rem; color: var(--gray); margin-top: 12px; }
.form-error { color: #DC2626; font-weight: 700; margin-top: 10px; font-size: .95rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #B9C6DE; padding: 48px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 36px; }
.footer-logo { width: 90px; margin-bottom: 12px; }
.footer-tagline { color: var(--white); font-weight: 700; font-style: italic; margin-bottom: 6px; }
.footer-est { font-size: .9rem; }
.footer-col h4 { color: var(--white); margin-bottom: 12px; font-size: 1rem; text-transform: uppercase; letter-spacing: .05em; }
.footer-col a { display: block; color: #B9C6DE; text-decoration: none; margin-bottom: 8px; word-break: break-all; }
.footer-col a:hover { color: var(--sky-bright); }
.footer-col p { margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; text-align: center; font-size: .88rem; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--navy-deep); flex-direction: column; gap: 0;
    border-bottom: 2px solid var(--sky);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 16px 5%; border-top: 1px solid rgba(255,255,255,.08); }
  .nav-toggle { display: block; }
  .header-call span { display: none; }
  .header-call { padding: 10px 14px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 48px 0; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
}
