:root {
  color-scheme: light;
  --ink: #10151f;
  --muted-ink: #536072;
  --paper: #ffffff;
  --soft: #f3f6f8;
  --line: #d8e1e8;
  --teal: #0f766e;
  --teal-dark: #0a514c;
  --copper: #b65b18;
  --gold: #d6a642;
  --shadow: 0 16px 40px rgba(16, 21, 31, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 4vw, 56px);
  color: #ffffff;
  background: rgba(8, 13, 20, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #10151f;
  background: #f8c75c;
  border-radius: 6px;
  font-size: 13px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.6vw, 32px);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.84);
}

.main-nav a:hover {
  color: #ffffff;
}

.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  align-items: center;
  padding: 112px clamp(20px, 5vw, 72px) 48px;
  color: #ffffff;
  background-image: url("/assets/ddr5-hero.png");
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 13, 20, 0.9) 0%, rgba(8, 13, 20, 0.72) 34%, rgba(8, 13, 20, 0.24) 72%, rgba(8, 13, 20, 0.42) 100%);
}

.hero-content {
  position: relative;
  max-width: 760px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(44px, 8vw, 82px);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 660px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 2vw, 21px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  color: #ffffff;
  background: var(--teal);
}

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

.button.secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.08);
}

.button.secondary:hover {
  background: rgba(255, 255, 255, 0.16);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 920px;
  margin: 42px 0 0;
}

.hero-stats div {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(8, 13, 20, 0.44);
}

.hero-stats dt {
  margin: 0 0 4px;
  color: #ffffff;
  font-weight: 800;
}

.hero-stats dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
}

.band {
  padding: clamp(56px, 8vw, 92px) clamp(20px, 5vw, 72px);
}

.intro-band {
  border-bottom: 1px solid var(--line);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(280px, 1.2fr);
  gap: clamp(28px, 6vw, 96px);
  max-width: 1180px;
  margin: 0 auto;
}

.section-grid h2,
.section-heading h2,
.quote-summary h2 {
  margin: 0;
  font-size: clamp(30px, 4.6vw, 54px);
  line-height: 1.04;
  letter-spacing: 0;
}

.rich-copy {
  color: var(--muted-ink);
  font-size: 18px;
}

.rich-copy p {
  margin: 0 0 18px;
}

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

.section-heading {
  max-width: 1180px;
  margin: 0 auto 28px;
}

.lot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
}

.lot-card {
  min-height: 168px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 8px 24px rgba(16, 21, 31, 0.06);
}

.lot-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.lot-card p {
  margin: 0;
  color: var(--muted-ink);
}

.quote-band {
  background: #fbfcfd;
}

.quote-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 1.2fr);
  gap: clamp(24px, 5vw, 64px);
  max-width: 1180px;
  margin: 0 auto;
  align-items: start;
}

.quote-summary {
  position: sticky;
  top: 96px;
}

.quote-summary p {
  color: var(--muted-ink);
  font-size: 17px;
}

.estimate-box {
  margin-top: 28px;
  padding: 22px;
  border: 1px solid #b9ddd7;
  border-radius: 8px;
  background: #eef8f6;
}

.estimate-box span,
.estimate-box small {
  display: block;
  color: var(--teal-dark);
}

.estimate-box strong {
  display: block;
  margin: 4px 0;
  color: var(--teal-dark);
  font-size: 34px;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.quote-form {
  display: grid;
  gap: 18px;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

fieldset {
  display: grid;
  gap: 18px;
  min-width: 0;
  margin: 0;
  padding: 0 0 20px;
  border: 0;
  border-bottom: 1px solid var(--line);
}

fieldset:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}

legend {
  margin: 0 0 2px;
  padding: 0;
  color: var(--teal-dark);
  font-size: 18px;
  font-weight: 900;
}

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

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

.wide-field {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 7px;
  color: #2b3442;
  font-size: 14px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cbd6df;
  border-radius: 6px;
  padding: 12px 13px;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
  font-weight: 500;
}

input[list]::-webkit-calendar-picker-indicator {
  opacity: 0.75;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(15, 118, 110, 0.18);
  border-color: var(--teal);
}

.suggestion-panel {
  display: grid;
  gap: 10px;
  min-height: 96px;
  padding: 14px;
  border: 1px solid #cfe0df;
  border-radius: 8px;
  background: #f5fbfa;
}

.suggestion-panel strong {
  color: var(--teal-dark);
  font-size: 14px;
}

.suggestion-panel p {
  margin: 0;
  color: var(--muted-ink);
  font-size: 14px;
}

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

.suggestion-option {
  display: grid;
  gap: 3px;
  width: 100%;
  min-height: 68px;
  padding: 11px 12px;
  border: 1px solid #b9d9d5;
  border-radius: 6px;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.suggestion-option:hover,
.suggestion-option:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(15, 118, 110, 0.14);
}

.suggestion-option span {
  font-weight: 900;
}

.suggestion-option small {
  color: var(--muted-ink);
  line-height: 1.35;
}

.hidden-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 6px;
}

#formStatus {
  min-height: 24px;
  margin: 0;
  color: var(--teal-dark);
  font-weight: 800;
}

#formStatus.error {
  color: #a23a16;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 26px clamp(20px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.76);
  background: #10151f;
  font-size: 14px;
}

.confirmation-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.confirmation-main {
  flex: 1;
}

.confirmation-hero {
  position: relative;
  min-height: 76vh;
  display: grid;
  align-items: center;
  padding: 112px clamp(20px, 5vw, 72px) 56px;
  color: #ffffff;
  background-image: url("/assets/ddr5-hero.png");
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.confirmation-content {
  position: relative;
  max-width: 760px;
}

.confirmation-content h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1;
  letter-spacing: 0;
}

.confirmation-content p:not(.eyebrow) {
  max-width: 660px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 2vw, 21px);
}

.confirmation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

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

  .main-nav {
    display: none;
  }

  .hero {
    min-height: 86vh;
    background-position: 62% center;
  }

  .confirmation-hero {
    min-height: 72vh;
    background-position: 62% center;
  }

  .hero-overlay {
    background: rgba(8, 13, 20, 0.72);
  }

  .hero-stats,
  .section-grid,
  .quote-layout {
    grid-template-columns: 1fr;
  }

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

  .quote-summary {
    position: static;
  }
}

@media (max-width: 620px) {
  .hero,
  .confirmation-hero {
    padding-top: 96px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .confirmation-content h1 {
    font-size: 40px;
  }

  .hero-stats,
  .form-grid,
  .compact-grid,
  .lot-grid {
    grid-template-columns: 1fr;
  }

  .form-footer,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}
