:root {
  color-scheme: light;
  --ink: #17191c;
  --charcoal: #242832;
  --muted: #68707b;
  --line: #e2e5e9;
  --paper: #ffffff;
  --soft: #f4f5f7;
  --soft-2: #ebeef2;
  --accent: #2f5f86;
  --accent-dark: #214762;
  --stone: #d7d2ca;
  --shadow: 0 24px 80px rgba(23, 25, 28, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

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

a {
  color: inherit;
}

.top-bar {
  display: flex;
  justify-content: center;
  gap: 14px;
  padding: 9px 18px;
  color: #ffffff;
  background: var(--charcoal);
  font-size: 0.88rem;
  font-weight: 700;
}

.top-bar a {
  color: #ffffff;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  align-items: center;
  gap: 26px;
  padding: 16px clamp(18px, 4vw, 58px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo {
  width: 78px;
  height: 58px;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1.08rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.main-nav {
  display: flex;
  gap: clamp(16px, 2.2vw, 32px);
  color: var(--charcoal);
  font-size: 0.92rem;
  font-weight: 800;
}

.main-nav a,
.nav-button,
.button {
  text-decoration: none;
}

.main-nav a:hover,
.site-footer a:hover,
.estimate-copy a:hover {
  color: var(--accent);
}

.nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 4px;
  color: #ffffff;
  background: var(--ink);
  font-weight: 900;
  white-space: nowrap;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1fr);
  gap: clamp(34px, 5vw, 78px);
  align-items: center;
  padding: clamp(44px, 7vw, 96px) clamp(18px, 4vw, 58px) 46px;
  background:
    linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0.94) 42%, rgba(244, 245, 247, 0.78) 100%),
    radial-gradient(circle at 80% 10%, rgba(47, 95, 134, 0.13), transparent 34%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

.hero h1,
.section h2,
.estimate-section h2 {
  margin: 0;
  color: var(--ink);
  line-height: 1.04;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 850px;
  font-size: clamp(2.9rem, 6.6vw, 6.1rem);
}

.hero-copy > p:not(.eyebrow) {
  max-width: 710px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.45vw, 1.25rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 21px;
  border: 1px solid transparent;
  border-radius: 4px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

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

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

.button.secondary {
  color: var(--ink);
  background: #ffffff;
  border-color: var(--line);
}

.button.full {
  width: 100%;
}

.proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.proof-row span {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--charcoal);
  background: #ffffff;
  font-size: 0.9rem;
  font-weight: 800;
}

.hero-gallery {
  position: relative;
}

.hero-main {
  width: 100%;
  min-height: 520px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.finish-card {
  position: absolute;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  max-width: 310px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 50px rgba(23, 25, 28, 0.14);
}

.finish-card span {
  display: block;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.finish-card strong {
  display: block;
  margin-top: 6px;
  font-size: 1.08rem;
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.quick-links a {
  padding: 22px clamp(18px, 4vw, 58px);
  border-right: 1px solid var(--line);
  color: var(--charcoal);
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.quick-links a:last-child {
  border-right: 0;
}

.quick-links a:hover {
  background: var(--soft);
}

.section {
  padding: clamp(58px, 8vw, 108px) clamp(18px, 4vw, 58px);
}

.section-heading {
  max-width: 900px;
  margin-bottom: 34px;
}

.section-heading p {
  max-width: 760px;
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.section h2,
.estimate-section h2 {
  font-size: clamp(2rem, 4.8vw, 4.4rem);
}

.cabinet-lines {
  background: #ffffff;
}

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

.cabinet-grid article {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
}

.cabinet-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.cabinet-grid article > div {
  padding: 20px;
}

.tag {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--accent);
  background: #eef4f8;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cabinet-grid h3,
.feature-grid h3,
.timeline h3 {
  margin: 0;
  font-size: 1.22rem;
}

.cabinet-grid p,
.feature-grid p,
.timeline p,
.showroom-band p,
.estimate-copy p,
.estimate-copy li {
  color: var(--muted);
}

.cabinet-grid p,
.feature-grid p,
.timeline p {
  margin: 10px 0 0;
}

.remodels,
.reviews {
  background: var(--soft);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.feature-grid article {
  min-height: 260px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
}

.feature-grid span {
  display: block;
  margin-bottom: 48px;
  color: var(--accent);
  font-weight: 900;
}

.showroom-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 78px);
  align-items: center;
  background: var(--charcoal);
}

.showroom-band h2,
.showroom-band p:not(.eyebrow) {
  color: #ffffff;
}

.showroom-band p:not(.eyebrow) {
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.08rem;
}

.showroom-band img {
  width: 100%;
  max-height: 620px;
  object-fit: cover;
  border-radius: 6px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.timeline li {
  min-height: 250px;
  padding: 24px;
  background: #ffffff;
  border-right: 1px solid var(--line);
}

.timeline li:last-child {
  border-right: 0;
}

.timeline span {
  display: block;
  margin-bottom: 42px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.project-gallery {
  background: #ffffff;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.photo-grid figure {
  position: relative;
  min-height: 320px;
  margin: 0;
  overflow: hidden;
  border-radius: 6px;
  background: var(--soft);
}

.photo-grid figure.wide {
  grid-column: span 2;
}

.photo-grid img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.photo-grid figcaption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  padding: 10px 12px;
  border-radius: 4px;
  color: #ffffff;
  background: rgba(23, 25, 28, 0.72);
  font-size: 0.9rem;
  font-weight: 800;
}

blockquote {
  margin: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
}

blockquote p {
  margin: 0;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 800;
}

blockquote cite {
  display: block;
  margin-top: 16px;
  color: var(--muted);
  font-style: normal;
}

.estimate-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(340px, 0.9fr);
  gap: clamp(28px, 6vw, 78px);
  align-items: start;
  padding: clamp(58px, 8vw, 108px) clamp(18px, 4vw, 58px);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.84)),
    url("./assets/estimate-bg.webp") center / cover;
}

.estimate-copy p {
  max-width: 620px;
  margin: 18px 0 0;
  font-size: 1.08rem;
}

.estimate-copy a {
  color: var(--accent-dark);
  font-weight: 900;
}

.estimate-copy ul {
  display: grid;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.estimate-copy li {
  position: relative;
  padding-left: 24px;
  font-weight: 800;
}

.estimate-copy li::before {
  position: absolute;
  left: 0;
  content: "/";
  color: var(--accent);
  font-weight: 900;
}

.lead-form {
  display: grid;
  gap: 14px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

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

.lead-form label {
  display: grid;
  gap: 7px;
  color: var(--charcoal);
  font-size: 0.9rem;
  font-weight: 900;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  border: 1px solid #cfd5dc;
  border-radius: 4px;
  padding: 12px 13px;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
}

.lead-form textarea {
  resize: vertical;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding: 34px clamp(18px, 4vw, 58px);
  color: #ffffff;
  background: var(--ink);
}

.site-footer p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.68);
}

.site-footer address {
  color: rgba(255, 255, 255, 0.78);
  font-style: normal;
  text-align: right;
}

.site-footer a {
  color: #ffffff;
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    display: none;
  }

  .hero,
  .showroom-band,
  .estimate-section {
    grid-template-columns: 1fr;
  }

  .hero-main {
    min-height: 430px;
  }

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

  .timeline li:nth-child(2) {
    border-right: 0;
  }

  .timeline li:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 780px) {
  .top-bar {
    flex-direction: column;
    align-items: center;
    gap: 2px;
  }

  .site-header {
    position: static;
    grid-template-columns: 1fr;
  }

  .nav-button {
    width: 100%;
  }

  .hero h1 {
    font-size: 2.55rem;
  }

  .quick-links,
  .cabinet-grid,
  .photo-grid,
  .review-grid {
    grid-template-columns: 1fr;
  }

  .photo-grid figure.wide {
    grid-column: auto;
  }

  .quick-links a {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .quick-links a:last-child {
    border-bottom: 0;
  }

  .feature-grid,
  .timeline,
  .form-row {
    grid-template-columns: 1fr;
  }

  .timeline li,
  .timeline li:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .timeline li:last-child {
    border-bottom: 0;
  }

  .finish-card {
    position: static;
    max-width: none;
    margin-top: 12px;
  }

  .site-footer {
    flex-direction: column;
  }

  .site-footer address {
    text-align: left;
  }
}

@media (max-width: 520px) {
  .brand {
    align-items: flex-start;
  }

  .brand-logo {
    width: 70px;
    height: 52px;
  }

  .hero-actions {
    display: grid;
  }

  .hero-main {
    min-height: 320px;
  }
}
