/* Walter Hill Plumbing East — B2B construction marketing site
   Brand accent: logo orange #f86000 */

:root {
  --orange: #f86000;
  --orange-hover: #e55500;
  --orange-dim: rgba(248, 96, 0, 0.12);
  --orange-line: rgba(248, 96, 0, 0.4);
  --bg: #ffffff;
  --bg-elevated: #f4f5f7;
  --bg-panel: #ffffff;
  --bg-soft: #eef0f3;
  --text: #0c0e10;
  --text-muted: #4a5560;
  --text-dim: #6b7580;
  --border: #dde1e6;
  --border-strong: #c5ccd4;
  --success-tint: #e8f5ee;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
  --max: 1120px;
  --header-h: 72px;
  --focus: 0 0 0 3px rgba(248, 96, 0, 0.45);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--orange);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--orange-hover);
}

a:focus-visible,
button:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  background: var(--orange);
  color: #111;
  font-weight: 700;
  padding: 0.75rem 1rem;
  border-radius: 6px;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: var(--header-h);
}

.logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.logo img {
  width: clamp(140px, 28vw, 200px);
  height: auto;
}

.nav {
  display: none;
  margin-left: auto;
  gap: 0.15rem 1.1rem;
  align-items: center;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--text);
  border-bottom-color: var(--orange);
}

.header-phone {
  display: none;
  margin-left: 0.5rem;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  white-space: nowrap;
}

.header-phone:hover {
  color: var(--orange);
}

.nav-toggle {
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--bg-panel);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.site-header.is-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.site-header.is-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.site-header.is-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 899px) {
  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1rem 1rem;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
  }

  .site-header.is-open .nav {
    display: flex;
  }

  .nav a {
    padding: 0.85rem 0.5rem;
    border-bottom: 1px solid var(--border);
  }
}

@media (min-width: 900px) {
  .nav {
    display: flex;
  }
  .header-phone {
    display: inline-flex;
  }
  .nav-toggle {
    display: none;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.7rem 1.25rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--orange);
  color: #111;
  border-color: var(--orange);
}

.btn-primary:hover {
  background: var(--orange-hover);
  border-color: var(--orange-hover);
  color: #111;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  border-color: var(--orange);
  color: var(--orange);
}

/* Hero */
.hero {
  position: relative;
  padding: 4.5rem 0 3.5rem;
  background:
    radial-gradient(ellipse 80% 60% at 90% 10%, rgba(248, 96, 0, 0.12), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, var(--bg-elevated) 100%);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 85%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.35fr 0.9fr;
    align-items: stretch;
    gap: 2.5rem;
  }
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--orange);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 4.5vw, 2.85rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.lead {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: 1.08rem;
  max-width: 38rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hero-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 28rem;
}

.hero-stats li {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.hero-stats strong {
  color: var(--orange);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.1;
}

.hero-stats span {
  color: var(--text-dim);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.3;
}

.hero-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-top: 3px solid var(--orange);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.35rem;
  box-shadow: var(--shadow);
  align-self: start;
}

.hero-card-title {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  font-weight: 800;
}

.checklist {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.checklist li {
  position: relative;
  padding-left: 1.7rem;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  background: var(--orange-dim);
  border: 2px solid var(--orange);
  box-sizing: border-box;
}

.checklist li::after {
  content: "";
  position: absolute;
  left: 0.28rem;
  top: 0.52rem;
  width: 0.35rem;
  height: 0.2rem;
  border-left: 2px solid var(--orange);
  border-bottom: 2px solid var(--orange);
  transform: rotate(-45deg);
}

.hero-card-note {
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.9rem;
  font-weight: 600;
}

/* Sections */
.section {
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.section-head {
  margin-bottom: 2rem;
  max-width: 40rem;
}

.section-head-center {
  margin-inline: auto;
  text-align: center;
}

.section-head h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.section-intro {
  margin: 0;
  color: var(--text-muted);
}

.card-grid {
  display: grid;
  gap: 1.15rem;
}

@media (min-width: 720px) {
  .cards-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.25rem 1.5rem;
  transition: border-color 0.15s, transform 0.15s;
}

.card:hover {
  border-color: var(--orange-line);
}

.card-icon {
  width: 48px;
  height: 48px;
  color: var(--orange);
  margin-bottom: 1rem;
}

.card-icon svg {
  width: 100%;
  height: 100%;
}

.card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.12rem;
  font-weight: 800;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* Why */
.why {
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
}

.why-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .why-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3rem;
    align-items: start;
  }
}

.why-points {
  display: grid;
  gap: 1rem;
}

.why-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.1rem 1.15rem;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.why-num {
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.04em;
  padding-top: 0.15rem;
}

.why-item h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 800;
}

.why-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Builders */
.builders {
  background:
    linear-gradient(180deg, transparent, rgba(248, 96, 0, 0.04)),
    var(--bg);
}

.builder-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}

.builder-list li {
  padding: 0.7rem 1.1rem;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}

/* Area */
.area-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .area-grid {
    grid-template-columns: 1.3fr 0.85fr;
    align-items: start;
  }
}

.pill-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.pill-list li {
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  background: var(--orange-dim);
  color: var(--orange-hover);
  font-size: 0.88rem;
  font-weight: 700;
  border: 1px solid var(--orange-line);
}

.area-panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.area-panel h3 {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--orange);
}

.area-panel address {
  font-style: normal;
  margin: 0 0 1rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.area-panel p {
  margin: 0 0 0.5rem;
}

.area-panel a {
  font-weight: 700;
  text-decoration: none;
}

.area-panel a:hover {
  text-decoration: underline;
}

.muted {
  color: var(--text-dim) !important;
  font-size: 0.92rem;
}

/* Warranty */
.warranty {
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
}

.warranty-box {
  max-width: 46rem;
  margin-inline: auto;
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background:
    linear-gradient(135deg, rgba(248, 96, 0, 0.08), transparent 45%),
    var(--bg-panel);
}

.warranty-box h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.35rem, 2.8vw, 1.75rem);
  font-weight: 800;
}

.warranty-box > p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.warranty-aside {
  margin: 0 !important;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--text-dim) !important;
  font-size: 0.95rem;
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .contact-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2.5rem;
    align-items: start;
  }
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.contact-dl {
  margin: 0;
  display: grid;
  gap: 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.25rem;
}

.contact-dl div {
  display: grid;
  gap: 0.2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.contact-dl div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.contact-dl dt {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.contact-dl dd {
  margin: 0;
  font-weight: 600;
  color: var(--text);
}

.contact-dl a {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.contact-dl a:hover {
  color: var(--orange);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: #080a0c;
  padding: 2.5rem 0 2rem;
}

.footer-inner {
  display: grid;
  gap: 1.5rem;
}

.footer-brand img {
  width: 140px;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.92rem;
  max-width: 22rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.15rem;
}

.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.footer-nav a:hover {
  color: var(--orange);
}

.footer-copy {
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* 404 page */
.page-404 {
  min-height: calc(100vh - var(--header-h));
  display: grid;
  place-items: center;
  padding: 3rem 0;
  text-align: center;
}

.page-404 .code {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  background: var(--orange-dim);
  color: var(--orange);
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.page-404 h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  font-weight: 800;
}

.page-404 p {
  margin: 0 auto 1.5rem;
  max-width: 28rem;
  color: var(--text-muted);
}

.page-404 .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
