/* NewNew Cabinets and Flooring — hand-written stylesheet, no framework. */
:root {
  --navy: #1d2b44;
  --navy-2: #2a3d5f;
  --accent: #b8410e;
  --accent-2: #9a360b;
  --green: #17663a;
  --green-2: #11502d;
  --ink: #1d232b;
  --muted: #555e69;
  --line: #dde1e6;
  --bg-alt: #f4f2ee;
  --radius: 10px;
  --wrap: 1160px;
  --bar-h: 64px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: #fff; font-size: 1.0625rem; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-2); text-underline-offset: 2px; }
a:hover { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; color: var(--navy); }
h1 { font-size: clamp(1.75rem, 5.2vw, 2.75rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.45rem, 3.6vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul, ol { padding: 0; margin: 0; list-style: none; }
:focus-visible { outline: 3px solid #f4b400; outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.note { font-weight: 600; color: var(--green); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* ---------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 18px; border-radius: var(--radius);
  font: inherit; font-weight: 700; text-decoration: none; border: 2px solid transparent;
  cursor: pointer; line-height: 1.2; text-align: center;
}
.btn-lg { min-height: 56px; font-size: 1.1rem; padding: 12px 22px; }
.btn-block { width: 100%; }
.btn-call { background: var(--green); color: #fff; }
.btn-call:hover { background: var(--green-2); color: #fff; }
.btn-quote { background: var(--accent); color: #fff; }
.btn-quote:hover { background: var(--accent-2); color: #fff; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); color: #fff; }
.btn-outline { border-color: var(--navy); color: var(--navy); background: #fff; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.center-row { justify-content: center; }

/* ---------------- header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.hdr { display: flex; align-items: center; gap: 12px; min-height: 60px; }
.logo { display: flex; flex-direction: column; line-height: 1.1; text-decoration: none; color: var(--navy); margin-right: auto; }
.logo-main { white-space: nowrap; font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; }
.logo-sub { font-size: .82rem; font-weight: 600; color: var(--muted); }
.nav ul { display: flex; gap: 4px; }
.nav a { display: block; white-space: nowrap; padding: 10px 8px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; border-radius: 6px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); }
.hdr-call { min-height: 42px; padding: 8px 14px; white-space: nowrap; }
.hdr-call-short { display: none; }
.menu-btn { display: none; font: inherit; font-weight: 700; background: #fff; border: 2px solid var(--line); border-radius: var(--radius); min-height: 42px; padding: 0 12px; color: var(--navy); cursor: pointer; }

@media (max-width: 1199px) {
  .menu-btn { display: inline-block; }
  .hdr-call-num { display: none; }
  .hdr-call-short { display: inline; }
  .hdr-call-always .hdr-call-short, .hdr-call-always span { display: inline; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 8px 16px rgba(0,0,0,.08); }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; padding: 8px 16px 16px; }
  .nav a { padding: 12px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
}

@media (max-width: 420px) {
  .logo-main { font-size: 1rem; }
  .hdr { gap: 8px; }
  .hdr-call { padding: 8px 10px; }
}

/* ---------------- offer strip */
.offer-strip { background: var(--navy); color: #fff; font-size: .95rem; text-align: center; }
.offer-strip a { display: block; color: #fff; text-decoration: none; padding: 8px 0; }
.offer-strip a:hover { text-decoration: underline; color: #fff; }
.offer-strip .sep { opacity: .6; padding: 0 4px; }

/* ---------------- hero */
.hero { padding: 20px 0 28px; background: var(--bg-alt); }
.hero-grid { display: grid; gap: 20px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .06em; font-size: .8rem; font-weight: 700; color: var(--accent); margin-bottom: .5em; }
.lede { font-size: 1.1rem; color: #38414c; }
.hero-btns .btn { flex: 1 1 auto; white-space: nowrap; }
.hero-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); }
@media (min-width: 900px) {
  .hero { padding: 48px 0; }
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .hero-img img { aspect-ratio: 4 / 3; }
}

/* ---------------- sections */
.section { padding: 44px 0; }
.alt { background: var(--bg-alt); }
.page-head { padding-top: 32px; padding-bottom: 8px; }
.two-col { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; gap: 48px; } .section { padding: 64px 0; } }
.rounded { border-radius: var(--radius); }
img.cover { width: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
img.tall { aspect-ratio: 3 / 4; max-height: 520px; }

/* trust list */
.trust { padding: 28px 0; border-bottom: 1px solid var(--line); }
.trust-list { display: grid; gap: 14px; grid-template-columns: 1fr; }
.trust-list li { display: flex; gap: 10px; align-items: flex-start; }
.trust-list svg { color: var(--green); flex: none; margin-top: 2px; }
.trust-list strong { display: block; color: var(--navy); }
.trust-list span { color: var(--muted); font-size: .95rem; }
@media (min-width: 600px) { .trust-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .trust-list { grid-template-columns: repeat(5, 1fr); } }

/* ticks */
.ticks { margin: 0 0 1em; }
.ticks li { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0; }
.ticks svg { color: var(--green); flex: none; }
.ticks-lg li { font-size: 1.05rem; margin: 8px 0; }

/* category cards */
.cards { display: grid; gap: 16px; grid-template-columns: 1fr; margin-bottom: 20px; }
@media (min-width: 600px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(4, 1fr); } }
.card a { display: flex; flex-direction: column; height: 100%; background: #fff; border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); border: 1px solid var(--line); }
.card a:hover { box-shadow: 0 6px 18px rgba(0,0,0,.12); color: var(--ink); }
.card img { aspect-ratio: 16 / 10; }
@media (max-width: 599px) {
  .card a { flex-direction: row; }
  .card img { width: 120px; flex: none; aspect-ratio: auto; height: auto; min-height: 100%; }
  .card-body { padding: 12px 14px; }
}
.card-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 18px; }
.card-t { font-weight: 800; font-size: 1.15rem; color: var(--navy); }
.card-d { color: var(--muted); font-size: .95rem; }
.card-more { color: var(--accent); font-weight: 700; margin-top: auto; padding-top: 6px; }

/* colors */
.colors { display: grid; gap: 14px; grid-template-columns: repeat(4, 1fr); }
@media (min-width: 900px) { .colors { grid-template-columns: repeat(8, 1fr); } }
@media (max-width: 480px) { .colors { grid-template-columns: repeat(4, 1fr); gap: 8px; } }
.colors li { text-align: center; }
.colors img { width: 100%; aspect-ratio: 3 / 5; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); background: #fff; }
.colors .code { display: block; margin-top: 6px; font-weight: 800; letter-spacing: .04em; color: var(--navy); }

/* photo grids */
.photos { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; margin-bottom: 24px; }
@media (min-width: 900px) { .photos { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (max-width: 420px) { .photos:not(.gallery) { grid-template-columns: 1fr 1fr; gap: 8px; } }
.photos img { border-radius: 8px; }
.photos a { display: block; border-radius: 8px; }
.photos a:hover img { opacity: .9; }

/* steps */
.steps { display: grid; gap: 16px; counter-reset: s; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: s; background: var(--bg-alt); border-radius: var(--radius); padding: 18px; position: relative; }
.steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; margin-bottom: 10px; }
.steps p { margin: 0; color: var(--muted); }

/* offer page points */
.points { display: grid; gap: 16px; }
@media (min-width: 800px) { .points { grid-template-columns: repeat(3, 1fr); } }
.points li { border: 1px solid var(--line); border-left: 5px solid var(--accent); border-radius: var(--radius); padding: 18px; }
.points p { margin: 0; color: var(--muted); }

/* showroom */
.showroom { background: var(--navy); color: #fff; }
.showroom h2 { color: #fff; }
.showroom a:not(.btn) { color: #fff; }
.showroom .btn-outline { background: transparent; border-color: #fff; color: #fff; }
.showroom .btn-outline:hover { background: #fff; color: var(--navy); }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0 0 20px; }
.facts dt { font-weight: 700; opacity: .85; }
.facts dd { margin: 0; }

/* ---------------- quote form */
.quote { background: var(--bg-alt); }
.quote-wrap { display: grid; gap: 24px; }
@media (min-width: 900px) { .quote-wrap { grid-template-columns: 2fr 3fr; gap: 48px; } }
.qform { background: #fff; padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 700; margin-bottom: 4px; }
.req, .opt { font-weight: 400; color: var(--muted); font-size: .9rem; }
.qform input, .qform select, .qform textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: 11px 12px; border: 1px solid #8a939e; border-radius: 8px; background: #fff; color: var(--ink);
}
.qform select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #555 50%), linear-gradient(135deg, #555 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
.qform [aria-invalid="true"] { border-color: #b00020; box-shadow: 0 0 0 1px #b00020; }
.err { color: #b00020; font-size: .9rem; margin: 4px 0 0; }
.form-error { background: #fdecea; color: #8a1c12; border: 1px solid #f5c2bc; padding: 12px; border-radius: 8px; font-weight: 600; }
.row2 { display: grid; gap: 0 14px; }
@media (min-width: 600px) { .row2 { grid-template-columns: 1fr 1fr; } }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---------------- footer */
.site-footer { background: #11192a; color: #d8dde5; padding: 40px 0 16px; font-size: .95rem; }
.site-footer a { color: #fff; }
.f-grid { display: grid; gap: 24px; }
@media (min-width: 700px) { .f-grid { grid-template-columns: repeat(3, 1fr); } }
.f-h { color: #fff; font-size: 1rem; margin-bottom: .5em; }
.f-links li { margin: 6px 0; }
.f-bottom { border-top: 1px solid #2c3954; margin-top: 24px; padding-top: 16px; }
.f-bottom p { margin: 4px 0; }

/* ---------------- mobile bottom bar */
.bottom-bar { display: none; }
@media (max-width: 767px) {
  body { padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px)); }
  .bottom-bar {
    display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    height: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px);
    background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -2px 10px rgba(0,0,0,.08);
  }
  .bottom-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-decoration: none; font-weight: 700; font-size: .9rem; color: var(--navy); }
  .bottom-bar a:first-child { background: var(--green); color: #fff; }
  .bottom-bar .bb-quote { background: var(--accent); color: #fff; }
  .site-footer { padding-bottom: 24px; }
}

/* ---------------- lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(0,0,0,.88); }
.lightbox .lb-fig { width: 100%; height: 100%; display: grid; place-items: center; padding: 56px 8px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 112px); width: auto; height: auto; object-fit: contain; }
.lightbox button { position: absolute; background: rgba(0,0,0,.5); color: #fff; border: 0; font-size: 2rem; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; line-height: 1; }
.lb-close { top: 8px; right: 8px; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }

/* landing page: no nav */
.lp .hero-offer h1 { font-size: clamp(1.9rem, 6vw, 3rem); }

.link-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin-top: 12px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
