:root {
  --color-navy-950: #13212a;
  --color-navy-900: #1a2b35;
  --color-navy-800: #263b46;
  --color-slate-700: #425661;
  --color-slate-600: #5d7079;
  --color-slate-500: #75868e;
  --color-slate-300: #c9d2d6;
  --color-slate-200: #dde4e7;
  --color-slate-100: #edf1f2;
  --color-cream-50: #fbf8f3;
  --color-white: #ffffff;
  --color-accent-700: #9b4d2c;
  --color-accent-600: #b35d36;
  --color-accent-500: #c87549;
  --color-accent-200: #efd4c5;
  --color-accent-100: #f7e8df;
  --color-gold-500: #c69c57;
  --color-green-600: #41715e;
  --color-green-100: #e4f0eb;
  --color-blue-500: #4e7e94;
  --color-purple-500: #786b93;
  --color-red-500: #a45a51;
  --shadow-soft: 0 14px 40px rgba(19, 33, 42, 0.08);
  --shadow-medium: 0 20px 55px rgba(19, 33, 42, 0.12);
  --shadow-strong: 0 30px 70px rgba(19, 33, 42, 0.18);
  --radius-small: 10px;
  --radius-medium: 18px;
  --radius-large: 26px;
  --transition: 180ms ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at top left, rgba(200, 117, 73, 0.08), transparent 32%),
    linear-gradient(180deg, #f5f1eb 0%, #faf8f4 42%, #f1f4f4 100%);
  color: var(--color-navy-950);
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

button,
select,
input[type="checkbox"] {
  cursor: pointer;
}

img,
svg {
  display: block;
  max-width: 100%;
}

.page-shell {
  width: 100%;
  overflow: hidden;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(125deg, rgba(19, 33, 42, 0.98), rgba(38, 59, 70, 0.95)),
    var(--color-navy-950);
  color: var(--color-white);
}

.hero::before {
  position: absolute;
  top: -180px;
  right: -80px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  box-shadow:
    0 0 0 80px rgba(255, 255, 255, 0.025),
    0 0 0 160px rgba(255, 255, 255, 0.018);
  content: "";
  z-index: -1;
}

.hero::after {
  position: absolute;
  bottom: -130px;
  left: 9%;
  width: 360px;
  height: 230px;
  border-radius: 50%;
  background: rgba(200, 117, 73, 0.11);
  filter: blur(10px);
  content: "";
  transform: rotate(-14deg);
  z-index: -1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.025) 50%, transparent 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 72px;
  align-items: center;
  width: min(1220px, calc(100% - 48px));
  margin: 0 auto;
  padding: 78px 0 72px;
}

.hero-copy {
  max-width: 780px;
}

.eyebrow,
.section-label,
.estimate-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-accent-500);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before,
.section-label::before,
.estimate-eyebrow::before {
  width: 26px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.hero h1 {
  max-width: 780px;
  margin: 16px 0 18px;
  color: var(--color-white);
  font-family:
    Georgia,
    "Times New Roman",
    serif;
  font-size: clamp(2.7rem, 5vw, 5.1rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.hero-description {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(1rem, 1.7vw, 1.16rem);
  line-height: 1.75;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  margin-top: 30px;
}

.hero-highlight {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.92rem;
  font-weight: 650;
}

.highlight-icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(200, 117, 73, 0.55);
  border-radius: 50%;
  background: rgba(200, 117, 73, 0.14);
  color: #f2b38f;
  font-size: 0.72rem;
}

.hero-badge-card {
  position: relative;
  min-height: 275px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-large);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(16px);
}

.paint-swatch {
  position: absolute;
  border-radius: 50%;
  opacity: 0.95;
  filter: saturate(0.85);
}

.paint-swatch-one {
  top: -55px;
  right: -30px;
  width: 190px;
  height: 190px;
  background: #d48a5e;
}

.paint-swatch-two {
  top: 52px;
  right: 70px;
  width: 112px;
  height: 112px;
  background: #9fb0aa;
}

.paint-swatch-three {
  right: -20px;
  bottom: -52px;
  width: 150px;
  height: 150px;
  background: #d7c19d;
}

.hero-badge-content {
  position: absolute;
  right: 28px;
  bottom: 28px;
  left: 28px;
  z-index: 2;
}

.hero-badge-label {
  display: block;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-badge-content strong {
  display: block;
  color: var(--color-white);
  font-family:
    Georgia,
    "Times New Roman",
    serif;
  font-size: 1.75rem;
  letter-spacing: -0.025em;
}

.hero-badge-content p {
  max-width: 270px;
  margin: 7px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.55;
}

.estimator-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 30px;
  align-items: start;
  width: min(1220px, calc(100% - 48px));
  margin: 0 auto;
  padding: 50px 0 64px;
}

.form-column,
.estimate-column {
  min-width: 0;
}

.form-card {
  margin-bottom: 24px;
  padding: 30px;
  border: 1px solid rgba(66, 86, 97, 0.13);
  border-radius: var(--radius-large);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(8px);
}

.section-heading {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin-bottom: 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--color-slate-200);
}

.section-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--color-accent-200);
  border-radius: 14px;
  background: var(--color-accent-100);
  color: var(--color-accent-700);
  font-size: 1.2rem;
  font-weight: 800;
}

.section-heading h2 {
  margin: 4px 0 6px;
  color: var(--color-navy-950);
  font-family:
    Georgia,
    "Times New Roman",
    serif;
  font-size: clamp(1.55rem, 2.3vw, 2rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.section-heading p {
  margin: 0;
  color: var(--color-slate-600);
  font-size: 0.94rem;
  line-height: 1.65;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.form-field {
  min-width: 0;
}

.field-full {
  grid-column: 1 / -1;
}

.form-field label {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--color-navy-800);
  font-size: 0.88rem;
  font-weight: 750;
}

.unit-label {
  color: var(--color-slate-500);
  font-size: 0.76rem;
  font-weight: 650;
}

.form-field input,
.form-field select {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--color-slate-300);
  border-radius: var(--radius-small);
  outline: none;
  background: var(--color-white);
  color: var(--color-navy-950);
  padding: 0 14px;
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    background-color var(--transition);
}

.form-field select {
  padding-right: 40px;
}

.form-field input:hover,
.form-field select:hover {
  border-color: var(--color-slate-500);
}

.form-field input:focus,
.form-field select:focus {
  border-color: var(--color-accent-500);
  box-shadow: 0 0 0 4px rgba(200, 117, 73, 0.13);
}

.form-field input::placeholder {
  color: var(--color-slate-500);
}

.field-help {
  display: block;
  margin-top: 7px;
  color: var(--color-slate-500);
  font-size: 0.76rem;
  line-height: 1.45;
}

.option-group {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--color-slate-200);
}

.option-group-heading {
  margin-bottom: 16px;
}

.option-group-heading h3 {
  margin: 0 0 3px;
  color: var(--color-navy-800);
  font-size: 1rem;
}

.option-group-heading p {
  margin: 0;
  color: var(--color-slate-500);
  font-size: 0.83rem;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.checkbox-grid-wide {
  margin-top: 4px;
}

.option-card {
  position: relative;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-height: 85px;
  padding: 15px;
  border: 1px solid var(--color-slate-200);
  border-radius: 14px;
  background: #fcfdfd;
  transition:
    border-color var(--transition),
    background-color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}

.option-card:hover {
  border-color: var(--color-accent-200);
  box-shadow: 0 8px 22px rgba(19, 33, 42, 0.07);
  transform: translateY(-1px);
}

.option-card:has(input:checked) {
  border-color: rgba(200, 117, 73, 0.45);
  background: var(--color-accent-100);
  box-shadow: 0 9px 22px rgba(200, 117, 73, 0.09);
}

.option-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.custom-checkbox {
  position: relative;
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  margin-top: 1px;
  border: 1px solid var(--color-slate-300);
  border-radius: 6px;
  background: var(--color-white);
  transition:
    border-color var(--transition),
    background-color var(--transition),
    box-shadow var(--transition);
}

.option-card input:checked + .custom-checkbox {
  border-color: var(--color-accent-600);
  background: var(--color-accent-600);
}

.option-card input:checked + .custom-checkbox::after {
  color: var(--color-white);
  content: "✓";
  font-size: 0.72rem;
  font-weight: 900;
}

.option-card input:focus-visible + .custom-checkbox {
  box-shadow: 0 0 0 4px rgba(200, 117, 73, 0.15);
}

.option-copy {
  min-width: 0;
}

.option-copy strong,
.option-copy small {
  display: block;
}

.option-copy strong {
  color: var(--color-navy-800);
  font-size: 0.86rem;
  line-height: 1.35;
}

.option-copy small {
  margin-top: 4px;
  color: var(--color-slate-500);
  font-size: 0.73rem;
  line-height: 1.45;
}

.service-quantity-grid {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--color-slate-200);
}

.is-hidden {
  display: none;
}

.estimate-column {
  position: sticky;
  top: 22px;
}

.estimate-panel {
  overflow: hidden;
  border: 1px solid rgba(66, 86, 97, 0.15);
  border-radius: var(--radius-large);
  background: var(--color-white);
  box-shadow: var(--shadow-medium);
}

.estimate-panel-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  padding: 24px 24px 20px;
  border-bottom: 1px solid var(--color-slate-200);
}

.estimate-panel-header h2 {
  margin: 5px 0 0;
  font-family:
    Georgia,
    "Times New Roman",
    serif;
  font-size: 1.55rem;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.estimate-status {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  flex: 0 0 auto;
  margin-top: 2px;
  padding: 7px 10px;
  border: 1px solid #cfe1d9;
  border-radius: 999px;
  background: var(--color-green-100);
  color: var(--color-green-600);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-green-600);
  box-shadow: 0 0 0 4px rgba(65, 113, 94, 0.1);
}

.estimate-total-card {
  margin: 18px;
  padding: 24px;
  border-radius: 20px;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.04), transparent),
    var(--color-navy-950);
  color: var(--color-white);
}

.total-label {
  display: block;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.grand-total {
  display: block;
  margin-top: 6px;
  font-family:
    Georgia,
    "Times New Roman",
    serif;
  font-size: clamp(2.4rem, 5vw, 3.35rem);
  letter-spacing: -0.055em;
  line-height: 1;
}

.price-range-wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.price-range-wrap span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.73rem;
}

.price-range-wrap strong {
  text-align: right;
  color: #f0b28d;
  font-size: 0.84rem;
}

.estimate-total-card p {
  margin: 15px 0 0;
  color: rgba(255, 255, 255, 0.57);
  font-size: 0.73rem;
  line-height: 1.55;
}

.estimate-breakdown {
  padding: 5px 22px 8px;
}

.breakdown-heading {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 4px;
}

.breakdown-heading h3 {
  margin: 0;
  color: var(--color-navy-800);
  font-size: 0.9rem;
}

.breakdown-heading span {
  color: var(--color-slate-500);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.estimate-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  min-height: 45px;
  border-bottom: 1px solid var(--color-slate-100);
  color: var(--color-slate-600);
  font-size: 0.8rem;
}

.estimate-row:last-child {
  border-bottom: 0;
}

.estimate-row-label {
  display: inline-flex;
  gap: 9px;
  align-items: center;
}

.estimate-row strong {
  color: var(--color-navy-900);
  font-size: 0.82rem;
}

.row-marker {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
}

.interior-marker {
  background: var(--color-accent-500);
}

.exterior-marker {
  background: var(--color-blue-500);
}

.material-marker {
  background: var(--color-gold-500);
}

.preparation-marker {
  background: var(--color-red-500);
}

.labor-marker {
  background: var(--color-green-600);
}

.services-marker {
  background: var(--color-purple-500);
}

.estimate-summary-block {
  margin: 16px 18px 0;
  padding: 18px;
  border: 1px solid var(--color-slate-200);
  border-radius: 16px;
  background: var(--color-cream-50);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  min-height: 36px;
  color: var(--color-slate-600);
  font-size: 0.79rem;
}

.summary-row strong {
  color: var(--color-navy-900);
}

.summary-row-total {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--color-slate-300);
  color: var(--color-navy-950);
  font-weight: 800;
}

.summary-row-total strong {
  color: var(--color-accent-700);
  font-size: 1.05rem;
}

.estimate-actions {
  padding: 18px;
}

.primary-action {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 12px;
  background: var(--color-accent-600);
  color: var(--color-white);
  font-weight: 800;
  transition:
    background-color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}

.primary-action:hover {
  background: var(--color-accent-700);
  box-shadow: 0 12px 26px rgba(155, 77, 44, 0.22);
  transform: translateY(-1px);
}

.primary-action:active {
  transform: translateY(0);
}

.primary-action:focus-visible {
  outline: 3px solid rgba(200, 117, 73, 0.32);
  outline-offset: 3px;
}

.estimate-note {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 10px;
  margin: 0 18px 18px;
  padding: 14px;
  border-radius: 12px;
  background: var(--color-slate-100);
}

.note-icon {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: var(--color-navy-800);
  color: var(--color-white);
  font-family: Georgia, serif;
  font-size: 0.78rem;
  font-weight: 800;
}

.estimate-note p {
  margin: 0;
  color: var(--color-slate-600);
  font-size: 0.7rem;
  line-height: 1.55;
}

.mobile-summary-jump {
  display: none;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
  width: min(1220px, calc(100% - 48px));
  margin: 0 auto;
  padding: 26px 0 34px;
  border-top: 1px solid rgba(66, 86, 97, 0.14);
}

.site-footer strong {
  color: var(--color-navy-900);
  font-size: 0.85rem;
}

.site-footer p {
  margin: 4px 0 0;
  color: var(--color-slate-500);
  font-size: 0.74rem;
}

.site-footer > span {
  color: var(--color-slate-500);
  font-size: 0.72rem;
  text-align: right;
}

@media (max-width: 1050px) {
  .hero-content {
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 42px;
  }

  .estimator-layout {
    grid-template-columns: minmax(0, 1fr) 350px;
  }

  .estimate-panel-header {
    display: block;
  }

  .estimate-status {
    margin-top: 12px;
  }
}

@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    padding: 64px 0;
  }

  .hero-badge-card {
    min-height: 230px;
  }

  .estimator-layout {
    grid-template-columns: 1fr;
  }

  .estimate-column {
    position: static;
  }

  .mobile-summary-jump {
    display: block;
    margin: 2px 0 24px;
  }

  .summary-jump-link {
    display: flex;
    justify-content: center;
    gap: 10px;
    align-items: center;
    min-height: 50px;
    border: 1px solid var(--color-accent-200);
    border-radius: 12px;
    background: var(--color-accent-100);
    color: var(--color-accent-700);
    font-size: 0.86rem;
    font-weight: 800;
    text-decoration: none;
  }
}

@media (max-width: 680px) {
  .hero-content,
  .estimator-layout,
  .site-footer {
    width: min(100% - 30px, 1220px);
  }

  .hero-content {
    padding: 48px 0 46px;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 11vw, 3.4rem);
  }

  .hero-highlights {
    display: grid;
    gap: 10px;
  }

  .hero-badge-card {
    min-height: 210px;
  }

  .estimator-layout {
    padding: 30px 0 46px;
  }

  .form-card {
    padding: 22px;
    border-radius: 20px;
  }

  .section-heading {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .section-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .field-grid,
  .checkbox-grid {
    grid-template-columns: 1fr;
  }

  .field-full {
    grid-column: auto;
  }

  .option-card {
    min-height: 78px;
  }

  .site-footer {
    display: block;
  }

  .site-footer > span {
    display: block;
    margin-top: 10px;
    text-align: left;
  }
}

@media (max-width: 460px) {
  .hero-content,
  .estimator-layout,
  .site-footer {
    width: min(100% - 22px, 1220px);
  }

  .hero-content {
    padding: 40px 0;
  }

  .hero-description {
    font-size: 0.94rem;
  }

  .hero-badge-card {
    min-height: 190px;
    border-radius: 20px;
  }

  .hero-badge-content {
    right: 20px;
    bottom: 20px;
    left: 20px;
  }

  .hero-badge-content strong {
    font-size: 1.45rem;
  }

  .form-card {
    padding: 18px;
  }

  .section-heading {
    gap: 12px;
  }

  .section-heading h2 {
    font-size: 1.4rem;
  }

  .estimate-panel {
    border-radius: 20px;
  }

  .estimate-panel-header {
    padding: 20px 18px 16px;
  }

  .estimate-total-card {
    margin: 14px;
    padding: 20px;
  }

  .price-range-wrap {
    display: block;
  }

  .price-range-wrap strong {
    display: block;
    margin-top: 4px;
    text-align: left;
  }

  .estimate-breakdown {
    padding-right: 18px;
    padding-left: 18px;
  }

  .estimate-summary-block,
  .estimate-note {
    margin-right: 14px;
    margin-left: 14px;
  }

  .estimate-actions {
    padding: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}