:root {
  --bg: #f8f5f1;
  --panel: #ffffff;
  --panel-alt: #f1ece6;
  --primary: #d97706;
  --primary-strong: #b45309;
  --secondary: #0f172a;
  --text: #1f2937;
  --muted: #5d6978;
  --line: #e9dfd2;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
}

.top-strip {
  background: var(--secondary);
  color: white;
  font-size: 0.82rem;
}

.top-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 38px;
}

.top-strip a {
  color: #fbbf24;
  font-weight: 700;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(248, 245, 241, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(17, 24, 39, 0.06);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), #f59e0b);
  color: white;
  border-radius: 14px;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.brand-name {
  display: block;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 1rem;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-weight: 600;
  color: var(--muted);
}

.main-nav a:hover {
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  padding: 0.9rem 1.5rem;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #f59e0b);
  color: white;
  box-shadow: 0 15px 28px rgba(217, 119, 6, 0.25);
}

.btn-secondary {
  background: transparent;
  border: 1px solid rgba(17, 24, 39, 0.14);
  color: var(--text);
}

.menu-toggle {
  display: none;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.55rem 0.8rem;
  font-size: 1.2rem;
}

.hero {
  padding: 4.5rem 0 3rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 2.5rem;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  color: var(--primary-strong);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.73rem;
  font-weight: 800;
}

.eyebrow.light {
  color: #f9c784;
}

h1, h2, h3 {
  margin: 0 0 1rem;
  line-height: 1.08;
  letter-spacing: -0.05em;
}

h1 {
  font-size: clamp(2.8rem, 5vw, 4.8rem);
}

h2 {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
}

h3 {
  font-size: 1.45rem;
}

.lead {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.08rem;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.trust-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  color: var(--muted);
  font-weight: 600;
}

.hero-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 1rem;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.panel-head {
  padding: 0.4rem 0.2rem 1rem;
}

.chip {
  background: #fff7ed;
  color: var(--primary-strong);
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.rating {
  color: #d97706;
  font-weight: 700;
}

.hero-panel img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 20px;
}

.panel-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.panel-stats {
  padding: 1.2rem 0.25rem 0.2rem;
}

.panel-stats div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.panel-stats strong {
  font-size: 1.7rem;
}

.panel-stats span {
  color: var(--muted);
  font-size: 0.8rem;
}

.stats {
  padding-bottom: 1rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.stats-grid div {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  text-align: center;
  padding: 1.4rem 1rem;
}

.stats-grid strong {
  display: block;
  font-size: 1.7rem;
  margin-bottom: 0.2rem;
}

.stats-grid span {
  color: var(--muted);
}

.section {
  padding: 5rem 0;
}

.alt-bg {
  background: var(--panel-alt);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2.2rem;
}

.section-heading.center {
  margin-inline: auto;
  text-align: center;
}

.service-grid,
.project-grid,
.testimonial-grid,
.footer-grid,
.process-grid {
  display: grid;
  gap: 1.5rem;
}

.service-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card,
.project-card,
.testimonial-grid blockquote,
.process-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 12px 25px rgba(17, 24, 39, 0.04);
}

.service-card {
  display: block;
  padding: 2rem 1.3rem;
  transition: transform 180ms ease, border-color 180ms ease;
}

.icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  background: #fff7ed;
  border-radius: 16px;
  font-size: 1.7rem;
  margin-bottom: 1rem;
}

.service-card p,
.about-copy p,
.project-body p,
.site-footer p,
.site-footer li,
.process-card p {
  color: var(--muted);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
}

.about-image img {
  min-height: 520px;
  width: 100%;
  object-fit: cover;
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.check-list {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.5rem;
  font-weight: 600;
}

.process-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.process-card {
  padding: 2rem 1.5rem;
}

.process-card span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff7ed;
  color: var(--primary-strong);
  font-weight: 800;
  margin-bottom: 0.8rem;
}

.project-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-card img,
.project-card video {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 22px 22px 0 0;
}

.project-grid img {
  cursor: zoom-in;
}

.project-grid img:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: -3px;
}

.photo-viewer {
  position: fixed;
  width: min(94vw, 1200px);
  max-width: none;
  max-height: 92vh;
  padding: 3.5rem 1rem 1rem;
  overflow: visible;
  border: 0;
  border-radius: 18px;
  background: #111827;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.photo-viewer::backdrop {
  background: rgba(15, 23, 42, 0.86);
}

.photo-viewer img {
  display: block;
  width: 100%;
  max-height: calc(92vh - 4.5rem);
  object-fit: contain;
  border-radius: 8px;
}

.photo-viewer-close {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: #fff;
  color: #111827;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.project-body {
  padding: 1.2rem 1.3rem 1.5rem;
}

#owner-upload-link[hidden] {
  display: none;
}

.gallery-status {
  margin: 0;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  color: var(--muted);
  text-align: center;
}

.gallery-status-error {
  color: #b91c1c;
}

.testimonial-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.testimonial-grid blockquote {
  margin: 0;
  padding: 1.6rem 1.3rem;
  color: var(--text);
  font-size: 1rem;
}

.testimonial-grid footer {
  margin-top: 1rem;
  font-weight: 700;
  color: var(--primary-strong);
}

.cta-band {
  padding: 0 0 4rem;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 2.2rem 2.4rem;
  border-radius: 28px;
  background: linear-gradient(135deg, #111827, #0f172a);
  color: white;
}

.site-footer {
  background: #111827;
  color: white;
  padding-top: 4rem;
}

.footer-grid {
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  align-items: start;
}

.footer-brand {
  margin-bottom: 1rem;
}

.site-footer h3 {
  margin-bottom: 1rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.site-footer a {
  color: inherit;
}

.quote-form {
  display: grid;
  gap: 0.8rem;
}

.quote-form input,
.quote-form textarea,
.quote-form select {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
  color: white;
  padding: 0.85rem 1rem;
}

.quote-form label {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: -0.55rem;
}

.quote-form select option {
  background: #111827;
  color: white;
}

.quote-form input:focus,
.quote-form textarea:focus,
.quote-form select:focus {
  outline: 2px solid #fbbf24;
  outline-offset: 2px;
}

.quote-form input::placeholder,
.quote-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.form-note,
.form-status {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
}

.service-card:hover {
  border-color: rgba(217, 119, 6, 0.45);
  transform: translateY(-2px);
}

.service-card:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 4px;
}

.quote-form textarea {
  min-height: 110px;
  resize: vertical;
}

.bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 2.5rem;
}

.bottom-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 0;
  color: rgba(255, 255, 255, 0.7);
}

.service-page {
  padding-bottom: 4rem;
}

.page-hero {
  padding: 4rem 0 2rem;
}

.page-hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 2rem;
}

.page-badge {
  display: inline-block;
  background: #fff7ed;
  color: var(--primary-strong);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.page-hero-copy p {
  color: var(--muted);
  max-width: 650px;
  font-size: 1.06rem;
}

.page-hero-image img {
  width: 100%;
  min-height: 420px;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.content-section {
  padding: 2rem 0;
}

.plumbing-overview {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: 2rem;
}

.plumbing-overview h2,
.plumbing-overview p {
  margin-bottom: 0;
}

.plumbing-overview > p {
  color: var(--muted);
  font-size: 1.06rem;
}

.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.feature-list,
.benefit-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}

.feature-list li,
.benefit-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: var(--muted);
  font-weight: 500;
}

.feature-list li::before,
.benefit-list li::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff7ed;
  color: var(--primary-strong);
  font-weight: 800;
  flex-shrink: 0;
}

.info-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 2rem 1.5rem;
  box-shadow: 0 12px 25px rgba(17, 24, 39, 0.04);
}

.service-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.plumbing-needs-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

.plumbing-needs-grid .service-mini-card {
  display: block;
  padding: 0 0 1.3rem;
  overflow: hidden;
}

.plumbing-card-link {
  color: inherit;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.plumbing-card-link:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.plumbing-card-link:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 4px;
}

.plumbing-card-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin-bottom: 1.1rem;
}

.plumbing-needs-grid .service-mini-card h3,
.plumbing-needs-grid .service-mini-card p {
  margin-right: 1.3rem;
  margin-left: 1.3rem;
}

.service-mini-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.5rem 1.3rem;
  box-shadow: 0 12px 25px rgba(17, 24, 39, 0.04);
}

.service-mini-card .icon {
  margin-bottom: 0.8rem;
}

.service-mini-card p {
  color: var(--muted);
  margin: 0;
}

.quote-panel {
  background: linear-gradient(135deg, #111827, #0f172a);
  color: white;
  border-radius: 28px;
  padding: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.quote-panel h3 {
  margin-bottom: 0.3rem;
}

.quote-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
}

@media (max-width: 960px) {
  .stats-grid,
  .service-grid,
  .project-grid,
  .process-grid,
  .testimonial-grid,
  .footer-grid,
  .service-mini-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-grid,
  .hero-inner,
  .footer-grid,
  .page-hero-inner,
  .two-column,
  .plumbing-overview {
    grid-template-columns: 1fr;
  }

  .main-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .show-menu {
    display: flex;
    position: absolute;
    top: 84px;
    left: 1rem;
    right: 1rem;
    flex-direction: column;
    background: white;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 1rem;
    box-shadow: var(--shadow);
  }
}

@media (max-width: 640px) {
  .top-strip-inner,
  .cta-inner,
  .bottom-bar-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .service-grid,
  .project-grid,
  .process-grid,
  .testimonial-grid,
  .service-mini-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 2.5rem 0 2rem;
  }

  h1 {
    font-size: clamp(2.15rem, 9vw, 2.8rem);
  }

  h2 {
    font-size: clamp(1.75rem, 7vw, 2.1rem);
  }

  .section {
    padding: 3.5rem 0;
  }

  .nav-wrap {
    min-height: 72px;
    gap: 0.5rem;
  }

  .brand {
    gap: 0.5rem;
    min-width: 0;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
  }

  .brand-name {
    font-size: 0.88rem;
  }

  .brand small {
    display: none;
  }

  .nav-wrap > .btn {
    width: auto;
    padding: 0.65rem 0.8rem;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .menu-toggle {
    flex-shrink: 0;
    min-width: 44px;
    min-height: 44px;
  }

  .show-menu {
    top: 100%;
  }

  .show-menu a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .hero-panel img {
    height: min(65vw, 320px);
  }

  .panel-stats {
    gap: 0.5rem;
  }

  .panel-stats strong {
    font-size: 1.35rem;
  }

  .trust-list {
    gap: 0.65rem 1rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn,
  .cta-inner .btn,
  .quote-form .btn {
    width: 100%;
  }
}

@media (max-width: 380px) {
  .container {
    width: min(100% - 1.25rem, 1160px);
  }

  .top-strip {
    font-size: 0.75rem;
  }

  .top-strip-inner {
    min-height: auto;
    padding-block: 0.45rem;
  }

  .nav-wrap > .btn {
    padding: 0.6rem;
    font-size: 0.76rem;
  }
}
