/* ──────────────────────────────────────────────────────────────────
   Total Plumbing Solutions — modern dev redesign
   Design tokens + components. No dependency on the legacy 2017 css.
   ────────────────────────────────────────────────────────────────── */

:root {
  --tps-orange: #ff6911;
  --tps-orange-deep: #e85a00;
  --tps-orange-soft: #ffb180;
  --ink: #0f0f0f;
  --ink-soft: #1b1b1b;
  --ink-line: #2a2a2a;
  --slate: #4a4a4a;
  --slate-soft: #6b6b6b;
  --mist: #f6f6f4;
  --mist-soft: #ecebe6;
  --white: #ffffff;

  --max-width: 1200px;
  --pad-section: clamp(4rem, 8vw, 7rem);
  --pad-container: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 6px;
  --radius-lg: 12px;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--tps-orange); text-decoration: none; transition: color 150ms ease; }
a:hover { color: var(--tps-orange-deep); }
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin: 0;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--pad-container);
  padding-right: var(--pad-container);
}

/* ── Buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.95rem 1.75rem;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 180ms ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--tps-orange);
  color: var(--white);
  box-shadow: 0 15px 40px rgba(255, 105, 17, 0.35);
}
.btn-primary:hover {
  background: var(--tps-orange-deep);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 18px 45px rgba(255, 105, 17, 0.4);
}
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}
.btn-ghost:hover {
  color: var(--white);
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}
.section-about .btn-ghost {
  color: var(--ink);
  border-color: var(--ink-line);
}
.section-about .btn-ghost:hover {
  color: var(--tps-orange);
  border-color: var(--tps-orange);
  background: transparent;
}
.btn-sm { padding: 0.7rem 1.2rem; font-size: 0.9rem; }
.btn-full { display: flex; width: 100%; padding: 1.05rem 1.5rem; }

/* ── Nav ───────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem var(--pad-container);
  background: rgba(15, 15, 15, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
}
.brand:hover { color: var(--white); }
.brand img { width: 56px; height: 56px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-serif); font-size: 1rem; font-weight: 600; color: var(--white); }
.brand-tag { font-size: 0.72rem; color: var(--tps-orange-soft); text-transform: uppercase; letter-spacing: 0.14em; }
.nav-right { display: flex; align-items: center; gap: 2rem; }
.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.nav-link:hover { color: var(--tps-orange-soft); }
.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  font-weight: 700;
  color: var(--white);
  background: var(--tps-orange);
  border-radius: var(--radius);
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}
.nav-phone:hover { background: var(--tps-orange-deep); color: var(--white); }
.nav-phone svg { flex: 0 0 auto; }

/* ── Hero ──────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55) saturate(0.9);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 15, 15, 0.82) 0%, rgba(15, 15, 15, 0.4) 55%, transparent 100%),
    linear-gradient(180deg, rgba(15, 15, 15, 0.6) 0%, transparent 30%, rgba(15, 15, 15, 0.7) 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 10rem var(--pad-container) 5rem;
  width: 100%;
}
.hero-eyebrow {
  display: inline-block;
  padding: 0.45rem 0.95rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tps-orange-soft);
  border: 1px solid rgba(255, 177, 128, 0.45);
  border-radius: 999px;
  margin-bottom: 1.75rem;
}
.hero-title {
  font-size: clamp(2.6rem, 6.5vw, 5.2rem);
  line-height: 1.02;
  color: var(--white);
  margin-bottom: 1.5rem;
  max-width: 18ch;
}
.hero-title .accent { color: var(--tps-orange); font-style: italic; }
.hero-lede {
  font-size: 1.1rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.85);
  max-width: 56ch;
  margin: 0 0 2.25rem;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.78);
  max-width: 54rem;
}
.hero-trust strong { color: var(--white); font-weight: 700; }
.trust-divider {
  width: 4px;
  height: 4px;
  background: var(--tps-orange);
  border-radius: 50%;
  display: inline-block;
}

/* ── Section scaffolding ───────────────────────────────────────── */
.section {
  padding-top: var(--pad-section);
  padding-bottom: var(--pad-section);
}
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--tps-orange);
  margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--ink);
  margin-bottom: 1.25rem;
  max-width: 22ch;
}
.section-lede {
  font-size: 1.08rem;
  color: var(--slate);
  max-width: 60ch;
  line-height: 1.65;
  margin: 0 0 2.5rem;
}

/* ── Services ──────────────────────────────────────────────────── */
.section-services { background: var(--mist); border-top: 1px solid var(--mist-soft); border-bottom: 1px solid var(--mist-soft); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
  margin-top: 2.5rem;
}
.service-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--mist-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: var(--ink);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.service-card:hover {
  color: var(--ink);
  transform: translateY(-3px);
  border-color: var(--tps-orange);
  box-shadow: 0 40px 80px rgba(15, 15, 15, 0.12);
}
.service-img {
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  background-color: var(--ink-line);
  border-bottom: 3px solid var(--tps-orange);
}
.service-body { padding: 1.75rem 1.75rem 2rem; }
.service-body h3 {
  font-size: 1.4rem;
  color: var(--ink);
  margin: 0 0 0.75rem;
}
.service-body p {
  font-size: 0.98rem;
  color: var(--slate);
  line-height: 1.6;
  margin: 0;
}

/* ── About ─────────────────────────────────────────────────────── */
.section-about { background: var(--white); }
.about-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 4rem;
  align-items: start;
}
.about-copy p {
  font-size: 1.05rem;
  color: var(--slate);
  line-height: 1.7;
  margin: 0 0 1.25rem;
  max-width: 56ch;
}
.about-copy strong { color: var(--ink); }
.about-copy .btn { margin-top: 0.5rem; }
.about-card {
  position: sticky;
  top: 6rem;
  padding: 2rem 2rem 2.25rem;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 80px rgba(15, 15, 15, 0.18);
}
.about-card-number {
  font-family: var(--font-serif);
  font-size: 4.5rem;
  line-height: 1;
  color: var(--tps-orange);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.about-card-label {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 1.75rem;
}
.about-card-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.about-card-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
}
.about-card-list li::before {
  content: "▸ ";
  color: var(--tps-orange);
  font-weight: 600;
}

/* ── Contact ───────────────────────────────────────────────────── */
.section-contact { background: var(--mist); border-top: 1px solid var(--mist-soft); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  margin-top: 2rem;
  align-items: start;
}
.contact-direct {
  padding: 2rem;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-lg);
}
.contact-row {
  display: block;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.contact-row:last-child { border-bottom: none; }
.contact-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tps-orange-soft);
  margin-bottom: 0.35rem;
}
.contact-value { color: rgba(255, 255, 255, 0.9); font-size: 0.98rem; }
.contact-value a { color: var(--tps-orange-soft); }
.contact-value a:hover { color: var(--white); }
.contact-phone {
  font-family: var(--font-serif);
  font-size: 1.8rem !important;
  font-weight: 600;
  color: var(--white) !important;
}
.contact-phone:hover { color: var(--tps-orange-soft) !important; }
.contact-form {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--mist-soft);
  box-shadow: 0 20px 60px rgba(15, 15, 15, 0.06);
}
.contact-form label {
  display: block;
  margin-bottom: 1.1rem;
}
.contact-form label span {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 0.4rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--mist);
  border: 1px solid var(--mist-soft);
  border-radius: var(--radius);
  transition: border-color 180ms ease, background 180ms ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--tps-orange);
  background: var(--white);
}
.contact-form textarea { resize: vertical; min-height: 100px; }

/* ── Footer ────────────────────────────────────────────────────── */
.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 0 2.5rem;
  border-top: 3px solid var(--tps-orange);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr;
  gap: 2rem;
  align-items: start;
}
.footer-brand {
  font-family: var(--font-serif);
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
}
.footer-sub { margin: 0; font-size: 0.88rem; }
.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
}
.footer-links a:hover { color: var(--tps-orange-soft); }
.footer-meta {
  font-size: 0.82rem;
  text-align: right;
  color: rgba(255, 255, 255, 0.55);
}

/* ── Mobile ────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav { padding: 0.75rem var(--pad-container); }
  .nav-right { gap: 1rem; }
  .nav-link { display: none; }
  .brand-tag { display: none; }
  .brand img { width: 44px; height: 44px; }
  .brand-name { font-size: 0.88rem; }
  .nav-phone { padding: 0.5rem 0.85rem; font-size: 0.82rem; }
  .nav-phone svg { width: 14px; height: 14px; }

  .hero { min-height: auto; }
  .hero-inner { padding: 7.5rem var(--pad-container) 4rem; }
  .hero-title { font-size: clamp(2.1rem, 9vw, 3.2rem); max-width: none; }
  .hero-lede { font-size: 1rem; }
  .hero-ctas .btn { width: 100%; }

  .services-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-card { position: static; }
  .contact-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .contact-phone { font-size: 1.5rem !important; }
  .footer-grid { grid-template-columns: 1fr; text-align: left; gap: 1.5rem; }
  .footer-meta { text-align: left; }
}
