:root {
  --bg: #f3f5f4;
  --paper: #fbfcfb;
  --white: #ffffff;
  --ink: #181614;
  --muted: #586360;
  --line: #d4dbd8;
  --accent: #d94135;
  --rock: #3f3a36;
  --steel: #213740;
  --sand: #b7823a;
  --sand-soft: #f0e3cd;
  --teal: #1f6b63;
  --green: #2f7d4f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, Manrope, Arial, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(217, 65, 53, 0.32);
  outline-offset: 3px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 16px clamp(18px, 4vw, 54px);
  background: rgba(243, 245, 244, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
}

.phone {
  display: inline-flex;
  max-width: 100%;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--rock);
  border-radius: 4px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
}

.hero {
  min-height: 78vh;
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(320px, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(28px, 5vw, 72px);
}

.hero img,
.productHero img,
.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #d8dddc;
}

.hero img {
  height: auto;
  aspect-ratio: 4 / 5;
  max-height: 68vh;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(24, 22, 20, 0.18);
}

.heroText,
.pageHero,
.section,
.band,
.splitSection,
.ctaBand,
.productHero,
.calculator,
.contactGrid {
  padding: clamp(28px, 5vw, 72px);
}

.hero .heroText {
  padding: 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 920px;
  font-size: clamp(38px, 6.5vw, 84px);
  line-height: 1;
}

h2 {
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1;
}

h1,
h2,
h3,
summary,
.primary,
.secondary {
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.heroText p,
.pageHero p,
.productHero p {
  max-width: 720px;
  color: var(--muted);
  font-size: 19px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: stretch;
}

.primary,
.secondary {
  display: inline-flex;
  max-width: 100%;
  min-width: 0;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 0;
  border-radius: 4px;
  font-weight: 800;
  font: inherit;
  line-height: 1.15;
  text-align: center;
  cursor: pointer;
}

.primary {
  background: var(--accent);
  color: white;
}

.secondary {
  border: 1px solid var(--rock);
  background: transparent;
}

.primary:hover,
.secondary:hover,
.phone:hover,
.textLink:hover {
  filter: brightness(0.96);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--line);
}

.metrics div {
  padding: 26px clamp(18px, 4vw, 54px);
  border-right: 1px solid var(--line);
}

.metrics div:nth-child(2) strong {
  color: var(--teal);
}

.metrics div:nth-child(3) strong {
  color: var(--sand);
}

.metrics div:first-child strong {
  color: var(--green);
}

.metrics strong,
.metrics span {
  display: block;
}

.metrics strong {
  font-size: 30px;
}

.metrics span,
.card span {
  color: var(--muted);
}

.sectionHead {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
}

.textLink {
  color: var(--accent);
  font-weight: 800;
}

.grid,
.catalogGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  overflow: hidden;
  min-height: 420px;
  display: grid;
  grid-template-rows: 1fr auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--sand);
  border-radius: 8px;
}

.card:nth-child(2n) {
  border-top-color: var(--teal);
}

.card:nth-child(3n) {
  border-top-color: var(--accent);
}

.card div {
  padding: 20px;
}

.miniList,
.featureList {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  list-style: none;
}

.miniList li,
.featureList li {
  padding: 6px 8px;
  color: var(--steel);
  background: #edf2f4;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
}

.miniList li:nth-child(2n),
.featureList li:nth-child(2n) {
  color: #5c3d12;
  background: var(--sand-soft);
}

.miniList li:nth-child(3n),
.featureList li:nth-child(3n) {
  color: #123f3a;
  background: #dcebe7;
}

.band {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
  background: #2f332f;
  color: var(--white);
}

.band .eyebrow,
.band ul {
  color: #f4cfa1;
}

.steps {
  display: grid;
  gap: 12px;
}

.steps div {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: start;
}

.steps span {
  color: #f4cfa1;
  font-weight: 900;
}

.steps p {
  margin-bottom: 0;
}

.splitSection {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(300px, 1fr);
  gap: clamp(22px, 5vw, 56px);
  align-items: center;
}

.splitSection p {
  max-width: 700px;
  color: var(--muted);
}

.quotePanel {
  display: grid;
  gap: 14px;
  padding: clamp(20px, 4vw, 34px);
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--sand);
  border-radius: 8px;
}

.ctaBand {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  background: #1e4540;
  color: var(--white);
}

.ctaBand p {
  max-width: 680px;
  color: #d6e0e4;
}

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

details {
  padding: 18px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

.productHero {
  min-height: 70vh;
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 0.85fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.productHero img {
  min-height: 520px;
  border-radius: 8px;
}

.productMeta,
.useGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

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

.productMeta div,
.useGrid div,
.contactCard {
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: 8px;
}

.productMeta div:nth-child(2n),
.useGrid div:nth-child(2n),
.contactCard:nth-child(2n) {
  border-left-color: var(--sand);
}

.useGrid div:nth-child(3n),
.contactCard:nth-child(3n) {
  border-left-color: var(--accent);
}

.productMeta strong,
.productMeta span,
.contactCard span,
.contactCard strong {
  display: block;
}

.productMeta span,
.useGrid p,
.contactCard p,
.formNote {
  color: var(--muted);
}

.calculator,
.contactGrid {
  display: grid;
  gap: 18px;
  max-width: 920px;
}

label {
  display: grid;
  gap: 8px;
  font-weight: 800;
}

input {
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  font: inherit;
}

select {
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  font: inherit;
}

textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  font: inherit;
  resize: vertical;
}

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

.formNote {
  margin-bottom: 0;
  font-size: 13px;
}

.calculatorHero {
  padding-bottom: 24px;
}

.layoutTool {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 24px;
  padding: 0 clamp(18px, 5vw, 72px) clamp(34px, 5vw, 72px);
}

.layoutForm {
  display: grid;
  gap: 14px;
  align-self: start;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.layoutResult {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.resultHeader {
  display: flex;
  gap: 16px;
  align-items: start;
  justify-content: space-between;
}

.resultHeader h2 {
  margin-bottom: 0;
}

.resultMetrics,
.optionTable {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.resultMetrics div,
.optionTable div {
  min-width: 0;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.resultMetrics strong,
.resultMetrics span,
.optionTable strong,
.optionTable span {
  display: block;
}

.resultMetrics strong {
  font-size: 28px;
  line-height: 1;
  overflow-wrap: normal;
}

.resultMetrics span,
.optionTable span {
  color: var(--muted);
}

.previewShell {
  overflow: hidden;
  min-height: 360px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.previewShell svg {
  display: block;
  width: 100%;
  height: auto;
}

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

.draftCard {
  display: grid;
  gap: 12px;
  padding: 18px;
  background: linear-gradient(180deg, #f8f4ee 0%, #f1ebe2 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.draftHeader {
  display: flex;
  gap: 16px;
  align-items: start;
  justify-content: space-between;
}

.draftHeader h3 {
  margin-bottom: 0;
}

.draftBadge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  color: #f8f4ee;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #1f1a17;
  border-radius: 999px;
}

.draftCard textarea {
  width: 100%;
  min-height: 180px;
  padding: 14px;
  color: var(--ink);
  font: inherit;
  line-height: 1.45;
  resize: vertical;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(31, 26, 23, 0.12);
  border-radius: 8px;
  box-sizing: border-box;
}

.draftHint {
  margin-bottom: 0;
  color: var(--muted);
}

.leadModal[hidden],
.leadThanks[hidden],
#leadForm[hidden] {
  display: none;
}

.leadModal {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(24, 22, 20, 0.58);
}

.leadDialog {
  position: relative;
  overflow: auto;
  width: min(620px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  padding: clamp(22px, 4vw, 34px);
  background: var(--white);
  border-radius: 8px;
}

.leadDialog form {
  display: grid;
  gap: 14px;
}

.closeBtn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  cursor: pointer;
}

.consentLine {
  grid-template-columns: auto 1fr;
  align-items: start;
  font-weight: 500;
}

.leadThanks {
  display: grid;
  gap: 12px;
}

.mobileStickyCta {
  display: none;
}

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

.contactCard strong {
  font-size: 22px;
}

.footer {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  padding: 28px clamp(18px, 4vw, 54px);
  color: #d6e0e4;
  background: var(--steel);
}

.footer p {
  max-width: 620px;
  margin-bottom: 0;
  color: #aebcc2;
}

.footerLinks {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-weight: 700;
}

/* Breadcrumbs */
.breadcrumbs {
  padding: 12px clamp(18px, 4vw, 54px);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--muted);
}

.breadcrumbs li::after {
  content: "  ›  ";
}

.breadcrumbs li:last-child::after {
  content: none;
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.breadcrumbs a:hover {
  color: var(--ink);
}

.breadcrumbs span {
  color: var(--ink);
  font-weight: 700;
}

/* Mobile-first base: ensure touch targets */
.primary,
.secondary,
.phone,
nav a,
.footerLinks a,
.textLink,
.breadcrumbs a,
summary {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

nav a {
  min-height: auto;
}

/* Print styles for SEO documents */
@media print {
  .topbar,
  .mobileStickyCta,
  .footer {
    display: none;
  }

  body {
    background: white;
    color: black;
  }
}

@media (max-width: 860px) {
  .hero,
  .band,
  .splitSection,
  .productHero,
  .metrics,
  .grid,
  .catalogGrid,
  .layoutTool,
  .productMeta,
  .useGrid,
  .contactGrid,
  .resultMetrics,
  .optionTable,
  .inlineFields {
    grid-template-columns: 1fr;
  }

  nav {
    display: none;
  }

  body {
    padding-bottom: 68px;
  }

  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 28px;
  }

  .hero {
    min-height: auto;
    gap: 18px;
    padding: 22px 18px 30px;
  }

  .heroText {
    order: 1;
  }

  .hero img {
    order: 2;
    width: 100%;
    aspect-ratio: 16 / 10;
    max-height: none;
  }

  .heroText p,
  .pageHero p,
  .productHero p {
    font-size: 16px;
  }

  .heroText,
  .pageHero,
  .section,
  .band,
  .splitSection,
  .ctaBand,
  .productHero,
  .calculator,
  .contactGrid {
    padding: 24px 18px;
  }

  .actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .actions .primary,
  .actions .secondary {
    width: 100%;
  }

  .resultHeader {
    display: grid;
  }

  .draftHeader {
    display: grid;
  }

  .topbar {
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 12px 14px;
  }

  .ctaBand,
  .footer {
    display: grid;
  }

  .phone {
    min-height: 36px;
    padding-inline: 10px;
    font-size: 13px;
  }

  .layoutTool {
    padding: 0 18px 28px;
  }

  .layoutForm {
    padding: 16px;
  }

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

  .resultMetrics div {
    padding: 12px 8px;
  }

  .resultMetrics strong {
    font-size: clamp(20px, 6vw, 25px);
  }

  .resultMetrics span,
  .optionTable span {
    font-size: 12px;
  }

  .previewShell {
    min-height: 220px;
  }

  .productHero img {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .card {
    min-height: 0;
  }

  .mobileStickyCta {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 998;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(251, 252, 251, 0.94);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(12px);
  }

  .mobileStickyCta .primary,
  .mobileStickyCta .secondary {
    min-height: 48px;
  }

  .breadcrumbs {
    padding: 10px 14px;
  }

  .breadcrumbs ol {
    font-size: 12px;
  }
}
