:root {
  --bg: #fbfaf7;
  --ink: #171414;
  --muted: #716a66;
  --line: #e8dfd8;
  --paper: #ffffff;
  --red: #ed1f2b;
  --red-dark: #b80f19;
  --sage: #dce8df;
  --gold: #d9ac45;
  --charcoal: #1d1a1b;
  --shadow: 0 24px 70px rgba(48, 36, 30, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

#materials,
#reviews,
#lead {
  scroll-margin-top: 110px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 30;
  display: flex;
  width: min(1120px, calc(100% - 28px));
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(29, 26, 27, 0.72);
  color: #fff;
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.brand,
.nav,
.hero-actions,
.materials-toolbar,
.contact-switch {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 850;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 10px 24px rgba(237, 31, 43, 0.32);
}

.nav {
  gap: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.nav a,
.header-cta {
  border-radius: 999px;
  padding: 10px 14px;
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.header-cta {
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.hero {
  position: relative;
  display: grid;
  min-height: 760px;
  overflow: hidden;
  padding: 150px max(24px, calc((100vw - 1120px) / 2)) 54px;
  color: #fff;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(12, 9, 9, 0.88) 0%, rgba(12, 9, 9, 0.62) 44%, rgba(12, 9, 9, 0.12) 100%),
    linear-gradient(0deg, rgba(12, 9, 9, 0.36), rgba(12, 9, 9, 0.08));
}

.hero-content {
  position: relative;
  z-index: 1;
  align-self: center;
  max-width: 720px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow {
  margin-bottom: 24px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

h1,
h2,
h3,
p {
  margin-top: 0;
  overflow-wrap: break-word;
}

h1 {
  max-width: 680px;
  margin-bottom: 22px;
  font-size: clamp(48px, 8vw, 92px);
  line-height: 0.94;
  letter-spacing: 0;
}

.hero-content p {
  max-width: 640px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 21px;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  font-weight: 850;
  padding: 0 24px;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

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

.button-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 16px 36px rgba(237, 31, 43, 0.3);
}

.button-primary:hover {
  background: var(--red-dark);
}

.button-light {
  background: #fff;
  color: var(--ink);
}

.hero-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  align-self: end;
  width: min(760px, 100%);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px);
}

.hero-panel div {
  padding: 22px;
  background: rgba(255, 255, 255, 0.08);
}

.hero-panel strong {
  display: block;
  font-size: 34px;
  line-height: 1;
}

.hero-panel span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.section {
  padding: 96px max(24px, calc((100vw - 1120px) / 2));
}

.section-heading {
  max-width: 760px;
  margin-bottom: 38px;
}

.section-heading-wide {
  display: grid;
  max-width: none;
  grid-template-columns: 0.9fr 1fr;
  gap: 16px 40px;
  align-items: end;
}

.section-kicker {
  margin-bottom: 14px;
  color: var(--red);
}

.section-heading-wide .section-kicker {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.section-heading-wide p {
  margin-bottom: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}

.section-heading p,
.lead-copy p {
  color: var(--muted);
  font-size: 18px;
}

.materials-section {
  background: #fff;
}

.materials-toolbar {
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.tab {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-weight: 850;
  padding: 0 18px;
}

.tab.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.materials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.materials-more {
  display: flex;
  width: fit-content;
  margin: 28px auto 0;
  background: var(--ink);
  color: #fff;
}

.materials-more.is-hidden {
  display: none;
}

.material-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f4ef;
  box-shadow: 0 16px 44px rgba(53, 45, 40, 0.08);
}

.material-card.is-hidden {
  display: none;
}

.material-card button {
  display: grid;
  width: 100%;
  min-height: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  text-align: left;
}

.material-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: top center;
  filter: contrast(1.08) saturate(1.05);
  transform: scale(1.01);
  transition:
    filter 180ms ease,
    transform 180ms ease;
}

.material-card:hover img {
  filter: contrast(1.16) saturate(1.12);
  transform: scale(1.04);
}

.material-caption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  padding: 9px 12px;
  backdrop-filter: blur(14px);
}

.material-caption span {
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.reviews-section {
  background:
    radial-gradient(circle at 7% 0%, rgba(220, 232, 223, 0.8), transparent 28%),
    var(--bg);
}

.reviews-grid {
  columns: 4 240px;
  column-gap: 18px;
}

.review-card {
  position: relative;
  overflow: hidden;
  break-inside: avoid;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 16px 44px rgba(53, 45, 40, 0.08);
  cursor: zoom-in;
  transition:
    box-shadow 180ms ease,
    transform 180ms ease;
}

.review-card:hover,
.review-card:focus-visible {
  box-shadow: 0 22px 54px rgba(53, 45, 40, 0.14);
  outline: none;
  transform: translateY(-2px);
}

.review-card img {
  width: 100%;
  height: auto;
}

.lead-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 42px;
  align-items: start;
  padding: 106px max(24px, calc((100vw - 1120px) / 2));
  background: var(--charcoal);
  color: #fff;
}

.lead-copy {
  position: sticky;
  top: 110px;
}

.lead-copy p {
  color: rgba(255, 255, 255, 0.74);
}

.lead-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 26px;
  box-shadow: var(--shadow);
}

.field {
  display: grid;
  gap: 8px;
}

.field span,
.choice-group legend {
  color: #4c4542;
  font-size: 14px;
  font-weight: 850;
}

.lead-form input[type="text"],
.lead-form input[type="tel"],
.lead-form input[type="email"] {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: none;
  padding: 0 18px;
}

.lead-form input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(237, 31, 43, 0.1);
}

.field.has-error input {
  border-color: var(--red);
}

.field-error {
  min-height: 18px;
  color: var(--red);
  font-size: 12px;
}

.choice-group {
  grid-column: 1 / -1;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.choice-card {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 112px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  color: var(--muted);
}

.choice-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-card span {
  color: var(--ink);
  font-size: 16px;
  font-weight: 850;
}

.choice-card small {
  color: var(--muted);
  font-size: 13px;
}

.choice-card:has(input:checked) {
  border-color: var(--red);
  background: rgba(237, 31, 43, 0.06);
  box-shadow: inset 0 0 0 1px var(--red);
}

.contact-switch {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  border-radius: 999px;
  background: #f4efeb;
  padding: 6px;
}

.contact-switch label {
  position: relative;
  flex: 1;
  min-width: 120px;
}

.contact-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.contact-switch span {
  display: grid;
  min-height: 42px;
  place-items: center;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
}

.contact-switch input:checked + span {
  background: var(--ink);
  color: #fff;
}

.form-submit,
.form-status,
.policy {
  grid-column: 1 / -1;
}

.form-submit {
  width: 100%;
  margin-top: 6px;
}

.form-submit:disabled {
  cursor: default;
  opacity: 0.75;
  transform: none;
}

.form-status {
  min-height: 20px;
  margin: 0;
  color: var(--red);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.policy {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.material-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(18, 16, 16, 0.86);
  padding: 26px;
}

.material-modal.is-open {
  display: flex;
}

.material-modal img {
  max-width: min(920px, 100%);
  max-height: 88vh;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

.modal-close,
.modal-nav {
  position: absolute;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
}

.modal-close {
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  font-size: 28px;
  line-height: 1;
}

.modal-nav {
  top: 50%;
  width: 54px;
  height: 54px;
  font-size: 42px;
  line-height: 1;
  transform: translateY(-50%);
}

.modal-prev {
  left: 22px;
}

.modal-next {
  right: 22px;
}

.modal-counter {
  position: absolute;
  right: 50%;
  bottom: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
  padding: 8px 12px;
  transform: translateX(50%);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px max(24px, calc((100vw - 1120px) / 2));
  background: #121010;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
}

.footer p {
  margin: 0;
}

@media (max-width: 1080px) {
  .materials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 920px) {
  .site-header {
    top: 10px;
  }

  .nav {
    display: none;
  }

  .hero {
    min-height: 720px;
    padding-top: 128px;
  }

  .hero-content p {
    font-size: 18px;
  }

  .section-heading-wide,
  .lead-section {
    grid-template-columns: 1fr;
  }

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

  .lead-copy {
    position: static;
  }
}

@media (max-width: 620px) {
  .site-header {
    width: calc(100% - 20px);
    min-height: 56px;
    padding-left: 12px;
  }

  .brand span:last-child {
    display: none;
  }

  .header-cta {
    padding: 10px 12px;
    font-size: 13px;
  }

  .hero {
    min-height: 700px;
    padding-inline: 18px;
  }

  .hero-panel,
  .materials-grid,
  .lead-form,
  .choice-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel div {
    padding: 18px;
  }

  .section,
  .lead-section {
    padding: 72px 18px;
  }

  .material-card img {
    height: 270px;
  }

  .lead-form {
    padding: 18px;
  }

  .material-modal {
    padding: 64px 14px 76px;
  }

  .material-modal img {
    max-height: 76vh;
  }

  .modal-nav {
    top: auto;
    bottom: 16px;
    width: 46px;
    height: 46px;
    font-size: 34px;
    transform: none;
  }

  .modal-prev {
    left: calc(50% - 58px);
  }

  .modal-next {
    right: calc(50% - 58px);
  }

  .modal-counter {
    bottom: 72px;
  }

  .contact-switch {
    border-radius: 8px;
  }

  .contact-switch label {
    min-width: 100%;
  }

  .footer {
    flex-direction: column;
    padding-inline: 18px;
  }
}
