:root {
  color-scheme: light;
  --ink: #17211f;
  --muted: #5e6a66;
  --line: #dce5e1;
  --paper: #ffffff;
  --soft: #f4f8f6;
  --wash: #eef4f8;
  --brand: #0f6f6a;
  --brand-dark: #0a4b49;
  --blue: #2368a2;
  --green: #357a4f;
  --amber: #b96f18;
  --stone: #766c60;
  --accent: #d98624;
  --shadow: 0 18px 50px rgba(23, 33, 31, 0.09);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

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

a {
  color: inherit;
}

p,
h1,
h2,
h3 {
  overflow-wrap: anywhere;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--brand-dark);
  font-weight: 800;
  text-decoration: none;
}

.main-nav,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  color: var(--muted);
  font-size: 0.95rem;
}

.main-nav a,
.site-footer a {
  text-decoration: none;
}

.main-nav a:hover,
.site-footer a:hover,
.text-link:hover {
  color: var(--brand);
}

.hero {
  min-height: 560px;
  display: grid;
  align-items: end;
  background:
    linear-gradient(90deg, rgba(12, 30, 28, 0.86), rgba(12, 30, 28, 0.58), rgba(12, 30, 28, 0.18)),
    url("/assets/hero-plomberie31.svg") center right / cover no-repeat;
  color: #fff;
}

.hero__content {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 84px 0 70px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffd49b;
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.45rem, 6vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero p {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.12rem;
}

.hero__actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.trust-row span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 6px 11px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.button--primary {
  background: #fff;
  color: var(--brand-dark);
}

.button--accent {
  background: var(--brand);
  color: #fff;
}

.button--ghost {
  border-color: var(--line);
  background: transparent;
  color: var(--brand-dark);
}

.button:hover {
  transform: translateY(-1px);
}

.section {
  padding: 70px 0;
}

.section--soft {
  background: var(--soft);
}

.section--wash {
  background: var(--wash);
}

.section--disclosure {
  background: #102b29;
  color: #fff;
}

.section--local {
  background: #fbfaf7;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-inner {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.narrow {
  width: min(820px, calc(100% - 36px));
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 28px;
}

.section-heading h2,
.article-header h1,
.page-hero h1 {
  margin: 0;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  line-height: 1.22;
  letter-spacing: 0;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.content-group + .content-group {
  margin-top: 34px;
}

.content-group > h3 {
  margin: 0 0 14px;
  font-size: 1.2rem;
}

.category-card,
.content-card,
.product-card,
.notice-panel,
.related-block,
.article-callout,
.mini-card,
.pick-card,
.legal-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.category-card,
.content-card,
.notice-panel,
.related-block,
.article-callout,
.mini-card,
.pick-card,
.legal-panel {
  padding: 22px;
}

.category-card {
  min-height: 230px;
}

.category-icon {
  display: block;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 8px;
  background: var(--brand);
}

.category-card--blue .category-icon {
  background: var(--blue);
}

.category-card--amber .category-icon {
  background: var(--amber);
}

.category-card--green .category-icon {
  background: var(--green);
}

.category-card--teal .category-icon {
  background: var(--brand);
}

.category-card--slate .category-icon {
  background: #4f6470;
}

.category-card--stone .category-icon {
  background: var(--stone);
}

.category-card a,
.content-card a {
  text-decoration: none;
}

.category-card h3,
.content-card h3 {
  margin: 0 0 10px;
}

.muted,
.card-meta,
.fine-print,
.affiliate-note {
  color: var(--muted);
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 0.88rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #e6f1ef;
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 800;
}

.product-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.product-card img {
  width: 100%;
  aspect-ratio: 11 / 8;
  object-fit: contain;
  border-radius: 8px;
  background: var(--soft);
}

.product-card h3 {
  margin: 10px 0 8px;
}

.product-card--compact {
  grid-template-columns: 120px 1fr;
  box-shadow: none;
}

.affiliate-note {
  margin-bottom: 0;
  font-size: 0.82rem;
}

.text-link {
  color: var(--brand-dark);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.disclosure-grid,
.local-strip {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
}

.section--disclosure .notice-panel {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.section--disclosure .muted,
.section--disclosure .fine-print {
  color: rgba(255, 255, 255, 0.72);
}

.page-hero,
.article-header,
.category-hero {
  padding: 46px 0 34px;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}

.article-header h1,
.page-hero h1,
.category-hero h1 {
  max-width: 900px;
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 1.06;
}

.lead {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.12rem;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.breadcrumbs a {
  color: var(--brand-dark);
  text-decoration: none;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 42px;
  align-items: start;
}

.article-body h2 {
  margin-top: 36px;
}

.article-section {
  margin-top: 34px;
}

.article-intro {
  margin-bottom: 22px;
  color: #2f3d39;
  font-size: 1.08rem;
}

.article-body p,
.article-body li {
  font-size: 1.03rem;
}

.article-callout {
  margin: 24px 0;
  background: #fff8ed;
  border-color: #efd4ae;
}

.article-callout--blue {
  background: #eff7fb;
  border-color: #cfe2ee;
}

.article-callout--warning {
  background: #fff8ed;
  border-color: #efd4ae;
}

.article-callout--safety {
  background: #fff5f5;
  border-color: #edc6c6;
}

.article-callout--quiet {
  background: var(--soft);
}

.article-callout h2 {
  margin-top: 0;
  font-size: 1.35rem;
}

.article-callout ul {
  padding-left: 20px;
  margin-bottom: 0;
}

.safety-box {
  margin: 28px 0;
  padding: 18px;
  border: 1px solid #edc6c6;
  border-radius: var(--radius);
  background: #fff5f5;
}

.sidebar-stack {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 92px;
}

.related-block ul {
  padding-left: 20px;
}

.mini-grid,
.pick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.mini-card h3,
.pick-card h3 {
  margin: 8px 0;
}

.pick-card {
  display: flex;
  min-height: 230px;
  flex-direction: column;
  align-items: flex-start;
}

.pick-card .button {
  margin-top: auto;
}

.conversion-section {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbfa;
}

.comparison-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.comparison-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.comparison-table thead th {
  background: #edf5f3;
  color: var(--brand-dark);
  font-size: 0.9rem;
}

.comparison-table tbody tr:last-child th,
.comparison-table tbody tr:last-child td {
  border-bottom: 0;
}

.static-section {
  margin-top: 28px;
}

.static-section h2 {
  font-size: 1.4rem;
}

.faq-list {
  display: grid;
  gap: 10px;
}

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px 16px;
}

summary {
  cursor: pointer;
  font-weight: 800;
}

.site-footer {
  display: grid;
  gap: 20px;
  padding: 42px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  background: #101816;
  color: #fff;
}

.site-footer p,
.site-footer nav,
.site-footer .fine-print {
  max-width: 980px;
  color: rgba(255, 255, 255, 0.72);
}

.legal-panel p:last-child {
  margin-bottom: 0;
}

@media (max-width: 860px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    min-height: 520px;
    background-position: center;
  }

  .grid--3,
  .grid--2,
  .mini-grid,
  .pick-grid,
  .disclosure-grid,
  .local-strip,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .sidebar-stack {
    position: static;
  }
}

@media (max-width: 560px) {
  .section {
    padding: 48px 0;
  }

  .hero__content {
    padding: 64px 0 54px;
  }

  .product-card,
  .product-card--compact {
    grid-template-columns: 1fr;
  }

  .product-card img {
    max-height: 190px;
  }

  .button {
    width: 100%;
  }
}
