:root {
  --bg: #f6f1e8;
  --bg-alt: #eadfce;
  --paper: #fffdf8;
  --paper-soft: #f8f2ea;
  --ink: #1f1a17;
  --muted: #675a4f;
  --brand: #6e4931;
  --brand-dark: #4e3221;
  --accent: #b7894d;
  --line: rgba(110, 73, 49, 0.14);
  --shadow: 0 20px 50px rgba(31, 26, 23, 0.1);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #efe6da 0%, var(--bg) 100%);
}

h1, h2, h3, .brand strong {
  font-family: Georgia, "Times New Roman", serif;
}

h1, h2, h3, p { margin-top: 0; }

.container {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(72, 47, 32, 0.94), rgba(64, 41, 28, 0.82));
  border-bottom: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 10px 30px rgba(18, 11, 7, 0.16);
}

.nav-wrap {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 18px 34px;
  padding: 12px 0;
}

.brand {
  display: flex;
  gap: 14px;
  align-items: center;
  text-decoration: none;
  color: #fff8ef;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 74% 22%, rgba(248, 219, 170, 0.30), transparent 20%),
    linear-gradient(180deg, #9a6a45 0%, #6f472f 46%, #43281b 100%);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.10), 0 10px 20px rgba(26, 15, 9, 0.14);
}

.brand-mark::before {
  content: "";
  position: absolute;
  left: -12%;
  right: -12%;
  bottom: 0;
  height: 66%;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.22), rgba(255,255,255,0.04)),
    linear-gradient(180deg, rgba(28, 17, 11, 0.22), rgba(28, 17, 11, 0));
  clip-path: polygon(0 100%, 0 82%, 10% 74%, 18% 56%, 29% 78%, 40% 38%, 51% 70%, 60% 48%, 72% 82%, 82% 60%, 92% 74%, 100% 66%, 100% 100%);
  opacity: 0.96;
}

.brand-mark::after {
  content: "";
  position: absolute;
  top: 12px;
  right: 8px;
  width: 13px;
  height: 8px;
  background: rgba(255, 248, 239, 0.94);
  clip-path: polygon(0 66%, 12% 42%, 26% 55%, 40% 18%, 56% 54%, 68% 39%, 82% 54%, 100% 63%, 80% 73%, 58% 60%, 48% 84%, 34% 61%, 16% 74%);
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.16));
  opacity: 0.94;
  transform: rotate(-8deg);
}

.brand-mark-text {
  position: relative;
  z-index: 2;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 2px rgba(0,0,0,0.22);
}

.brand strong {
  display: block;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.brand small {
  display: block;
  color: rgba(255, 248, 239, 0.82);
  margin-top: 0;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
}

.main-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px 18px;
  flex-wrap: wrap;
  margin-left: auto;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.main-nav a,
.btn,
.site-footer a {
  text-decoration: none;
}

.main-nav a {
  color: rgba(255, 248, 239, 0.96);
  font-size: 0.94rem;
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.main-nav a:hover {
  color: #ffffff;
}

.main-nav a.active,
.main-nav a[aria-current="page"] {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.14);
}

.hero {
  padding: 74px 0 50px;
  background:
    linear-gradient(135deg, rgba(52,34,23,0.9), rgba(110,73,49,0.72)),
    radial-gradient(circle at top right, rgba(183,137,77,0.16), transparent 32%),
    url('assets/launch/hero-commercial-tile.jpg') center/cover no-repeat;
  color: #fff8ef;
}

.hero-grid,
.section-grid.two-col {
  display: grid;
}

.hero-shell {
  display: grid;
  gap: 22px;
}

.hero-intro { max-width: 100%; }

.hero-grid {
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 420px);
  gap: 34px 48px;
  align-items: start;
}

.hero-home .hero-grid {
  grid-template-columns: minmax(0, 0.78fr) minmax(320px, 400px);
}

.section-grid.two-col {
  grid-template-columns: 1.25fr 0.85fr;
  gap: 30px;
  align-items: start;
}

.hero-copy {
  padding-top: 0;
  max-width: 640px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  font-size: 0.78rem;
  margin: 0 0 12px;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.35rem, 5vw, 4.35rem);
  line-height: 1.04;
  margin-bottom: 18px;
  text-shadow: 0 3px 14px rgba(0,0,0,0.2);
}

.hero h1 {
  font-size: clamp(2.7rem, 5.8vw, 5rem);
  line-height: 0.95;
  max-width: 13ch;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}

.hero-home .hero-intro h1,
.estimate-hero .hero-intro h1 {
  max-width: none;
  width: 100%;
}

h2 {
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  margin-bottom: 14px;
  line-height: 1.12;
}

h3 { line-height: 1.14; }

.lead,
.panel p,
.section p,
li,
.small-note,
.result-box,
.service-card p {
  color: var(--muted);
  line-height: 1.72;
}

.hero .lead,
.hero .trust-list li,
.hero-card p,
.hero-card h2,
.hero-card strong {
  color: #fff8ef;
}

.hero-copy .lead {
  max-width: 60ch;
  font-size: 1rem;
}

.hero-actions,
.footer-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  font: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  box-shadow: 0 10px 24px rgba(78,50,33,0.18);
}

.btn-secondary {
  border-color: rgba(255,255,255,0.55);
  color: #fff8ef;
  background: rgba(255,255,255,0.08);
}

.section-link,
.section .btn-secondary,
.site-footer .footer-links a {
  border-color: var(--brand);
  color: var(--brand-dark);
  background: transparent;
}

.full { width: 100%; }

.trust-list {
  margin: 22px 0 0;
  padding-left: 22px;
}

.trust-list li { margin-bottom: 8px; }

.hero-card,
.panel,
.service-card,
.gallery-card {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card {
  width: min(100%, 460px);
  justify-self: end;
  align-self: start;
  padding: 24px 24px 22px;
  background: linear-gradient(180deg, rgba(56, 34, 23, 0.74), rgba(40, 24, 16, 0.54));
  border: 1px solid rgba(255,255,255,0.24);
  box-shadow: 0 14px 34px rgba(20,11,7,0.22);
  backdrop-filter: blur(4px);
}

.hero-card h2 { font-size: 1.75rem; }

.stats-strip { padding: 0 0 10px; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  transform: translateY(-20px);
}

.stats-grid article {
  background: #2c1c13;
  color: #f8f2eb;
  padding: 18px;
  border-radius: 18px;
  display: grid;
  gap: 6px;
  box-shadow: 0 14px 30px rgba(37,23,16,0.18);
}

.stats-grid strong {
  color: #fff;
  font-size: 1.3rem;
  font-family: Georgia, "Times New Roman", serif;
}

.stats-grid span { color: #d9c3af; line-height: 1.55; }

.section { padding: 56px 0; }

.alt {
  background: linear-gradient(180deg, rgba(234,223,206,0.64) 0%, rgba(246,241,232,0.22) 100%);
}

.cards-grid,
.tool-grid,
.gallery-grid,
.faq-grid {
  display: grid;
  gap: 20px;
}

.services-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.process-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.gallery-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.faq-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.service-card,
.panel,
.gallery-card {
  background: var(--paper);
  border: 1px solid var(--line);
}

.service-card {
  position: relative;
  overflow: hidden;
  min-height: 248px;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
}

.service-card::before,
.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
}

.service-card::before {
  background-position: center;
  background-size: cover;
  transform: scale(1.04);
}

.service-card::after {
  background: linear-gradient(180deg, rgba(47,29,20,0.42), rgba(67,44,30,0.9));
}

.service-card > * {
  position: relative;
  z-index: 1;
}

.service-card h3 {
  color: #fff8ef;
  font-size: 1.75rem;
  margin: 4px 0 14px;
  text-shadow: 0 3px 14px rgba(0,0,0,0.22);
}

.service-card p {
  color: rgba(255,248,239,0.95);
  margin: 0;
}

.service-card.tile::before { background-image: url('assets/launch/hero-commercial-tile.jpg'); }
.service-card.hardwood::before { background-image: url('assets/launch/laminate-floor.jpg'); }
.service-card.carpet::before { background-image: url('assets/launch/commercial-carpet-tile.jpg'); }
.service-card.vinyl::before { background-image: url('assets/launch/luxury-vinyl-floor.jpg'); }
.service-card.laminate::before { background-image: url('assets/launch/laminate-floor.jpg'); }
.service-card.showers::before { background-image: url('assets/launch/custom-shower.jpg'); }

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.section-title {
  display: inline-block;
  max-width: 24ch;
  background: linear-gradient(135deg, rgba(67,44,30,0.82), rgba(110,73,49,0.72));
  border-radius: 18px;
  color: #fff8ef;
  padding: 18px 20px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08), 0 10px 24px rgba(78,50,33,0.12);
}

.section-title::after {
  content: "";
  display: block;
  width: 74px;
  height: 3px;
  margin-top: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f7d9b0, rgba(247,217,176,0.2));
}

.section-copy { margin-top: 16px; }

.panel { padding: 24px; }

.panel h3 { font-size: 1.7rem; margin-bottom: 16px; }

.panel ul { padding-left: 22px; margin: 0; }
.panel li { margin-bottom: 8px; }

.gallery-card { overflow: hidden; }

.gallery-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-card div { padding: 16px; }

.tool-grid { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.planner-wizard {
  padding: 30px;
}

.wizard-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 22px;
}

.wizard-progress-item {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(110,73,49,0.12);
  color: var(--muted);
  font-weight: 700;
}

.wizard-progress-item span {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(110,73,49,0.10);
  color: var(--brand-dark);
}

.wizard-progress-item.is-active,
.wizard-progress-item.is-complete {
  background: linear-gradient(135deg, rgba(110,73,49,0.14), rgba(183,137,77,0.10));
  color: var(--brand-dark);
  border-color: rgba(110,73,49,0.20);
}

.wizard-progress-item.is-active span,
.wizard-progress-item.is-complete span {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
}

.wizard-step { display: none; }
.wizard-step.is-active { display: block; }

.wizard-copy {
  max-width: 62ch;
  margin-bottom: 18px;
}

.project-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.project-choice {
  display: grid;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 20px;
  border-radius: 20px;
  border: 1px solid rgba(110,73,49,0.14);
  background: linear-gradient(180deg, rgba(255,253,248,0.92), rgba(248,242,234,0.98));
  color: var(--brand-dark);
  cursor: pointer;
  box-shadow: var(--shadow);
}

.project-choice strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
}

.project-choice span {
  color: var(--muted);
  line-height: 1.65;
}

.project-choice.is-selected {
  border-color: rgba(110,73,49,0.34);
  background: linear-gradient(180deg, rgba(110,73,49,0.12), rgba(255,253,248,0.96));
  box-shadow: 0 18px 36px rgba(46, 28, 18, 0.12);
}

.wizard-inline-note {
  margin-bottom: 18px;
}

.wizard-detail-group { display: none; }
.wizard-detail-group.is-active { display: block; }

.wizard-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.wizard-subhead {
  margin: 18px 0 10px;
  font-weight: 700;
  color: var(--brand-dark);
}

.option-chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.option-chip {
  display: block;
}

.option-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option-chip span {
  display: block;
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid rgba(110,73,49,0.14);
  background: rgba(255,253,248,0.92);
  color: var(--brand-dark);
  font-weight: 700;
  text-align: center;
}

.option-chip input:checked + span {
  background: linear-gradient(135deg, rgba(110,73,49,0.16), rgba(183,137,77,0.14));
  border-color: rgba(110,73,49,0.26);
}

.step-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 18px;
}

.estimate-callout {
  font-size: 1.02rem;
}

.estimate-callout strong {
  display: block;
  margin-bottom: 8px;
  color: var(--brand-dark);
  font-size: 1.15rem;
}

.wizard-form-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 24px;
  align-items: start;
}

.form-intro-card {
  margin-top: 0;
}

.helper-list {
  margin: 0;
  padding-left: 22px;
}

.helper-list li {
  margin-bottom: 8px;
}

.form-actions {
  margin-top: 6px;
}

.thank-you-card {
  max-width: 760px;
  margin: 7vh auto 0;
}

.planner-layout,
.cta-grid,
.form-layout {
  display: grid;
  gap: 24px;
}

.planner-layout {
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.8fr);
  align-items: start;
}

.planner-tools { align-content: start; }

.planner-sidebar {
  position: sticky;
  top: 88px;
}

.planner-summary-box {
  line-height: 1.7;
}

.planner-tip-card,
.cta-card {
  background: linear-gradient(180deg, rgba(234,223,206,0.44), rgba(255,253,248,0.96));
}

.cta-grid,
.form-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.address-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.inline-note {
  margin: -4px 0 0;
}

.estimate-hero {
  background:
    linear-gradient(135deg, rgba(52,34,23,0.9), rgba(110,73,49,0.74)),
    radial-gradient(circle at top right, rgba(183,137,77,0.16), transparent 32%),
    url('assets/launch/luxury-vinyl-floor.jpg') center/cover no-repeat;
}

.tool-card h3,
.process-card h3,
.faq-card h3 { font-size: 1.5rem; margin-bottom: 12px; }

.rooms-grid,
.form-grid {
  display: grid;
  gap: 12px;
  margin: 16px 0;
}

.rooms-grid label,
.form-grid label {
  display: grid;
  gap: 6px;
  color: var(--brand-dark);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(80, 50, 34, 0.18);
  border-radius: 14px;
  padding: 12px 13px;
  font: inherit;
  background: #fffdfa;
  color: var(--ink);
}

textarea { resize: vertical; }

.result-box {
  margin-top: 14px;
  border-radius: 14px;
  background: var(--paper-soft);
  border: 1px solid #eadbc7;
  padding: 16px;
}

.form-status.is-success {
  border-color: rgba(49, 119, 72, 0.28);
  background: #edf7ef;
  color: #244b31;
}

.form-status.is-warning {
  border-color: rgba(184, 123, 23, 0.28);
  background: #fff6e6;
  color: #6a4d11;
}

.form-status.is-error {
  border-color: rgba(158, 42, 43, 0.28);
  background: #fff0ef;
  color: #7f1d1d;
}

.stack-card { margin-top: 18px; }

.full-width { grid-column: 1 / -1; }

.honeypot {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-footer {
  background: linear-gradient(180deg, #2b1b13 0%, #20130d 100%);
  color: #f7efe4;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px 24px;
  flex-wrap: wrap;
}

.site-footer a {
  color: rgba(247, 239, 228, 0.88);
}

.site-footer .footer-links {
  align-items: center;
  gap: 10px 14px;
}

.site-footer .footer-links a {
  font-size: 0.94rem;
  padding: 6px 0;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.site-footer .footer-links a:hover {
  color: #ffffff;
}

.site-footer .footer-links a[href="owner/"] {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  color: #fff8ef;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.site-footer .footer-links a[href="owner/"]:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.26);
}

@media (max-width: 920px) {
  .nav-wrap {
    grid-template-columns: 1fr;
  }

  .main-nav {
    justify-content: flex-start;
    margin-left: 0;
  }

  .hero-grid,
  .section-grid.two-col,
  .planner-layout,
  .cta-grid,
  .form-layout {
    grid-template-columns: 1fr;
  }

  .stats-grid { transform: none; }

  .hero-card {
    justify-self: start;
  }

  .wizard-progress,
  .project-choice-grid,
  .summary-grid,
  .wizard-form-shell,
  .wizard-field-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .planner-sidebar {
    position: static;
  }
}

@media (max-width: 680px) {
  .container { width: min(100%, calc(100% - 20px)); }
  .main-nav {
    gap: 10px;
    padding: 10px 12px;
    border-radius: 20px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .section { padding: 44px 0; }
  .hero { padding: 72px 0 42px; }
  .hero h1 {
    max-width: 11ch;
    font-size: clamp(2.2rem, 10vw, 3.65rem);
  }
  .hero-home .hero-intro h1,
  .estimate-hero .hero-intro h1 {
    max-width: none;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .service-card h3 { font-size: 1.65rem; }
  .address-grid { grid-template-columns: 1fr 1fr; }
}