/* ================================================================
   Supreme Plumbing Service — Option A: "Craftsman Navy"
   Brand-true: navy + royal blue + ribbon red from the SPS logo.
   ================================================================ */

:root {
  /* Palette derived from the Supreme Plumbing Service logo:
     royal-blue banner, red ribbon, chrome/steel, navy shading. */
  --navy-900: #0a1826;
  --navy-800: #0f2338;
  --navy-700: #16304a;
  --navy-600: #1f405f;
  --royal: #2456b0;
  --royal-deep: #1a3f85;
  --accent: #c8332b;        /* ribbon red — CTAs */
  --accent-strong: #a8241d; /* pressed / gradient end */
  --accent-soft: #e2564c;   /* red for text on navy */
  --steel: #cfdcf0;         /* chrome-inspired light blue-grey */
  --paper: #f6f4ee;
  --paper-warm: #efece2;
  --ink: #17242f;
  --ink-soft: #44566b;
  --white: #ffffff;
  --line: rgba(23, 36, 47, 0.12);
  --line-light: rgba(255, 255, 255, 0.14);
  --radius: 14px;
  --shadow: 0 18px 45px -18px rgba(10, 24, 38, 0.35);
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: var(--white);
  padding: 0.6rem 1rem; z-index: 100; font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ---------- Type ---------- */
h1, h2, h3, .steps-title {
  font-family: var(--font-display);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.015em;
  color: var(--navy-800);
}
h1 { font-size: clamp(2.6rem, 6.2vw, 4.4rem); font-weight: 800; }
h1 em { color: var(--accent-soft); font-style: normal; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: 0.03em; }

.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.lede { font-size: 1.12rem; color: var(--ink-soft); max-width: 34rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 700; font-size: 0.98rem;
  padding: 0.8rem 1.4rem;
  border-radius: 10px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent); color: var(--white);
  box-shadow: 0 10px 24px -10px rgba(200, 51, 43, 0.75);
}
.btn-primary:hover { background: var(--accent-strong); }
.btn-ghost {
  border-color: rgba(255, 255, 255, 0.35); color: var(--white);
}
.btn-ghost:hover { border-color: var(--steel); color: var(--steel); }
.btn-call {
  background: var(--navy-700); color: var(--white);
}
.btn-call:hover { background: var(--navy-600); }
.btn-lg { padding: 1rem 1.8rem; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 24, 38, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-light);
}
.header-inner {
  display: flex; align-items: center; gap: 1.5rem;
  padding-block: 0.7rem;
}
.brand {
  display: flex; align-items: center; gap: 0.6rem;
  text-decoration: none; color: var(--white);
  margin-right: auto;
}
.brand-mark { display: flex; align-items: center; }
.brand-mark img { height: 46px; width: auto; display: block; }
.brand-text { line-height: 1.15; }
.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.22rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.05em;
  display: block;
}
.brand-text small { color: rgba(255, 255, 255, 0.65); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
.site-nav { display: flex; gap: 1.4rem; }
.site-nav a {
  color: rgba(255, 255, 255, 0.82); text-decoration: none;
  font-weight: 600; font-size: 0.95rem;
}
.site-nav a:hover { color: var(--steel); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(36, 86, 176, 0.35), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(200, 51, 43, 0.14), transparent 55%),
    linear-gradient(165deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
  color: var(--white);
  padding-block: clamp(4rem, 9vw, 7.5rem);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M0 47.5h48M47.5 0v48' stroke='%23ffffff' stroke-opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.35fr 0.65fr;
  gap: 3rem; align-items: center;
}
.hero h1 { color: var(--white); margin: 0.4rem 0 1rem; }
.hero .eyebrow { color: var(--accent-soft); }
.hero .lede { color: rgba(255, 255, 255, 0.78); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.6rem; }
.hero-trust {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem;
  margin-top: 1.5rem; list-style: none;
  color: var(--steel); font-weight: 600; font-size: 0.92rem;
}

/* Dark glass card — the cleaned, transparent logo reads directly on navy. */
.badge-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
  backdrop-filter: blur(4px);
  overflow: hidden;
}
.badge-logo {
  width: min(84%, 320px);
  height: auto;
  margin: 1.8rem auto 1rem;
  filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.45));
}
.badge-body { padding: 0 1.6rem 1.8rem; }
.badge-title {
  font-family: var(--font-display); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  font-size: 1.15rem; color: var(--white);
}
.badge-sub { color: rgba(255, 255, 255, 0.66); font-size: 0.9rem; margin-top: 0.4rem; }
.badge-hours {
  margin-top: 1.2rem; padding-top: 1.2rem;
  border-top: 1px solid var(--line-light);
  display: flex; flex-direction: column; gap: 0.15rem;
  color: rgba(255, 255, 255, 0.66); font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.1em;
}
.badge-hours strong { color: var(--accent-soft); font-size: 1.05rem; }

/* ---------- Trust bar ---------- */
.trustbar { background: var(--navy-800); border-top: 1px solid var(--line-light); }
.trustbar-inner {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1rem; padding-block: 1.4rem;
}
.trust-item { color: var(--white); padding-inline: 0.4rem; }
.trust-item strong {
  display: block; font-family: var(--font-display);
  text-transform: uppercase; letter-spacing: 0.06em; font-size: 1.02rem;
  color: var(--steel);
}
.trust-item span { color: rgba(255, 255, 255, 0.6); font-size: 0.85rem; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.5rem, 7vw, 5.5rem); }

/* ---------- Services ---------- */
.services h2 { max-width: 28ch; }
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem; margin-top: 2.2rem;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-icon {
  width: 52px; height: 52px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--royal), var(--royal-deep));
  color: var(--white);
  margin-bottom: 1rem;
}
.service-card h3 { margin-bottom: 0.4rem; }
.service-card p { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Banner ---------- */
.banner {
  background: linear-gradient(120deg, var(--accent-strong), var(--accent) 65%, #d94a40);
  color: var(--white);
}
.banner-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; padding-block: 2.6rem; flex-wrap: wrap;
}
.banner h2 { color: var(--white); }
.banner p { font-weight: 500; max-width: 46ch; color: rgba(255, 255, 255, 0.88); }
.banner .btn-primary {
  background: var(--navy-900); color: var(--white);
  box-shadow: 0 12px 28px -12px rgba(10, 24, 38, 0.6);
}
.banner .btn-primary:hover { background: var(--navy-700); }

/* ---------- Why / steps ---------- */
.why { background: var(--paper-warm); }
.why-inner {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem; align-items: start;
}
.why-copy p { margin-block: 0.8rem 1.2rem; color: var(--ink-soft); }
.check-list { list-style: none; margin-bottom: 1.6rem; }
.check-list li {
  padding: 0.55rem 0 0.55rem 2rem; position: relative;
  color: var(--ink-soft);
}
.check-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 0.5rem;
  width: 1.35rem; height: 1.35rem;
  display: grid; place-items: center;
  background: var(--accent); color: var(--white);
  border-radius: 50%; font-size: 0.8rem; font-weight: 800;
}
.check-list strong { color: var(--ink); }

.why-side { display: grid; gap: 1.2rem; align-content: start; }
.steps {
  background: var(--navy-800); color: var(--white);
  border-radius: var(--radius); padding: 2rem 1.8rem;
  box-shadow: var(--shadow);
}
.steps-title { color: var(--steel); margin-bottom: 1.4rem; font-size: 1.4rem; }
.steps-list { list-style: none; display: grid; gap: 1.3rem; }
.steps-list li { display: flex; gap: 1rem; align-items: flex-start; }
.step-num {
  flex: 0 0 auto;
  width: 2.2rem; height: 2.2rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: var(--white);
  font-family: var(--font-display); font-weight: 800; font-size: 1.15rem;
}
.fleet-photo {
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); background: var(--white);
}
.fleet-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.fleet-photo figcaption {
  padding: 0.8rem 1.2rem; font-size: 0.88rem; font-weight: 600;
  color: var(--ink-soft); border-top: 3px solid var(--accent);
}
.steps-list strong { display: block; font-size: 1.02rem; }
.steps-list p { color: rgba(255, 255, 255, 0.65); font-size: 0.9rem; }

/* ---------- Area ---------- */
.area-lede { color: var(--ink-soft); margin-top: 0.5rem; }
.city-chips {
  list-style: none; display: flex; flex-wrap: wrap;
  gap: 0.6rem; margin-top: 1.4rem;
}
.city-chips li {
  background: var(--white); border: 1px solid var(--line);
  padding: 0.5rem 1.1rem; border-radius: 999px;
  font-weight: 600; font-size: 0.92rem; color: var(--navy-700);
}

/* ---------- Blog teaser ---------- */
.blog-teaser { background: var(--paper-warm); }
.teaser-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem; margin-top: 2rem;
}
.teaser-card {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 0; overflow: hidden;
  text-decoration: none; color: var(--ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.teaser-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.teaser-thumb {
  display: block; aspect-ratio: 16 / 9;
  background-color: var(--royal-deep);
  background-image: var(--thumb, none);
  background-size: cover; background-position: center;
}
.teaser-body {
  padding: 0 1.4rem 1.5rem; display: flex; flex-direction: column;
  gap: 0.5rem; flex: 1;
}
.teaser-tag {
  align-self: flex-start; margin-top: 1.2rem;
  font-family: var(--font-display); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.72rem;
  color: var(--royal); background: rgba(36, 86, 176, 0.1);
  padding: 0.25rem 0.7rem; border-radius: 999px;
}
.teaser-card h3 { font-size: 1.12rem; line-height: 1.25; }
.teaser-card p { color: var(--ink-soft); font-size: 0.92rem; flex: 1; }
.teaser-more { color: var(--accent); font-weight: 700; font-size: 0.92rem; }
.teaser-all { margin-top: 1.6rem; }
.teaser-all a { color: var(--royal); font-weight: 700; text-decoration: none; }
.teaser-all a:hover { text-decoration: underline; }

/* ---------- Contact ---------- */
.contact { background: var(--navy-900); color: var(--white); }
.contact-inner {
  display: grid; grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem; align-items: start;
}
.contact h2 { color: var(--white); }
.contact-info > p { color: rgba(255, 255, 255, 0.72); margin-block: 0.8rem 1.6rem; }
.contact-list { display: grid; gap: 0.9rem; }
.contact-list div {
  display: grid; grid-template-columns: 5.2rem 1fr; gap: 0.6rem;
  border-bottom: 1px solid var(--line-light); padding-bottom: 0.9rem;
}
.contact-list dt {
  text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 0.72rem; font-weight: 700; color: var(--steel);
  padding-top: 0.2rem;
}
.contact-list dd a { color: var(--white); text-decoration: none; font-weight: 600; }
.contact-list dd a:hover { color: var(--accent-soft); }

.lead-form {
  background: var(--white); color: var(--ink);
  border-radius: var(--radius); padding: 2rem 1.8rem;
  box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.form-row { margin-bottom: 1rem; }
.form-row label {
  display: block; font-weight: 700; font-size: 0.88rem;
  margin-bottom: 0.35rem; color: var(--navy-800);
}
.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  font: inherit; color: var(--ink);
  padding: 0.7rem 0.85rem;
  border: 1.5px solid var(--line);
  border-radius: 9px; background: var(--paper);
}
.form-row textarea {
  resize: vertical;
  min-height: 110px;
  max-height: 320px;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: 2px solid var(--royal); outline-offset: 1px;
  border-color: var(--royal); background: var(--white);
}
.form-hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-note { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 1rem; }
.lead-form .btn { width: 100%; }
.form-status { margin-top: 0.9rem; font-weight: 600; min-height: 1.4em; }
.form-status.ok { color: #1d7a3e; }
.form-status.err { color: #b3261e; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-800); color: rgba(255, 255, 255, 0.7); }
.footer-inner {
  display: flex; justify-content: space-between; flex-wrap: wrap;
  gap: 2rem; padding-block: 2.6rem;
}
.footer-brand {
  font-family: var(--font-display); font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.08em;
  font-size: 1.3rem; color: var(--white);
}
.footer-inner p { font-size: 0.92rem; }
.footer-links { display: grid; gap: 0.5rem; }
.footer-links a { color: rgba(255, 255, 255, 0.8); text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--accent-soft); }
.footer-legal {
  border-top: 1px solid var(--line-light);
  padding-block: 1.1rem; font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
}

/* ---------- Mobile call bar ---------- */
.callbar {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  padding: 0.6rem 0.8rem calc(0.6rem + env(safe-area-inset-bottom));
  background: rgba(10, 24, 38, 0.95);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line-light);
  gap: 0.6rem;
}
.callbar .btn {
  flex: 1; min-width: 0;
  padding: 0.9rem 0.6rem;
  font-size: 1rem;
}

/* ---------- Reveal animation (JS-gated: no JS = fully visible) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ================= Responsive ================= */
@media (max-width: 960px) {
  .hero-inner, .why-inner, .contact-inner { grid-template-columns: 1fr; }
  .hero-card { max-width: 420px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .trustbar-inner { grid-template-columns: 1fr 1fr; row-gap: 1.2rem; }
  .site-nav { display: none; }
}
@media (max-width: 960px) and (min-width: 621px) {
  .teaser-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .services-grid, .form-grid, .teaser-grid { grid-template-columns: 1fr; }
  .header-inner .btn-call { display: none; }
  .callbar { display: flex; }
  body { padding-bottom: 4.6rem; }
  .banner-inner { flex-direction: column; align-items: flex-start; }
  .trustbar-inner { grid-template-columns: 1fr; }
}
