/* Next Day Carpet and Flooring — site styles
   Brand colors and fonts live in :root. Change them here and every page follows. */
:root {
  --brand: #0099cc;        /* logo blue (accents, icons, links on dark) */
  --brand-dark: #00739a;   /* buttons and links: passes contrast with white text */
  --brand-light: #7dbde1;
  --brand-wash: #e8f5fb;
  --ink: #0f1c24;
  --ink-soft: #44535c;
  --navy: #0b2a3a;
  --line: #d9e2e7;
  --bg: #ffffff;
  --bg-alt: #f6f8f9;
  --star: #f5b301;
  --radius: 10px;
  --shadow: 0 8px 30px rgba(11, 42, 58, .10);
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.65; font-size: 1.0625rem; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-dark); }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; color: var(--navy); letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
address { font-style: normal; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 10px; top: 10px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .85em 1.5em; border-radius: 999px; font-weight: 700; font-size: .95rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: inherit; transition: background .15s, color .15s, transform .15s; letter-spacing: .02em; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand-dark); color: #fff; }
.btn-primary:hover { background: var(--navy); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--navy); }
.btn-outline { background: transparent; color: var(--brand-dark); border-color: var(--brand-dark); }
.btn-outline:hover { background: var(--brand-dark); color: #fff; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5em; }

/* ---------- header ---------- */
.topbar { background: var(--navy); color: #cfe3ec; font-size: .82rem; }
.topbar-in { display: flex; justify-content: space-between; gap: 16px; padding-top: 7px; padding-bottom: 7px; }
.topbar span { display: inline-flex; align-items: center; gap: 6px; }
.topbar svg { color: var(--brand-light); flex: none; }
.site-header { background: var(--navy); border-bottom: 1px solid rgba(255, 255, 255, .08); position: sticky; top: 0; z-index: 50; }
.topbar { border-bottom: 1px solid rgba(255, 255, 255, .08); background: #071d29; }
.main-nav > ul > li > a { color: #fff; }
.main-nav > ul > li > a:hover, .main-nav > ul > li.active > a, .main-nav > ul > li > a[aria-current="page"] { color: var(--brand-light); }
.site-header .sub-toggle { color: #b7cfda; }
.site-header .bars, .site-header .bars::before, .site-header .bars::after { background: #fff; }
.btn-call { background: var(--brand); color: #04202d; }
.btn-call:hover { background: #fff; color: var(--navy); }
.header-in { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.logo img { width: 190px; height: auto; }
.main-nav { margin-left: auto; }
.main-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.main-nav li { position: relative; }
.main-nav a { display: block; padding: 10px 14px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; border-radius: 6px; }
.main-nav a:hover, .main-nav .active > a { color: var(--brand-dark); }
.main-nav a[aria-current="page"] { color: var(--brand-dark); }
.has-sub { display: flex; align-items: center; }
.has-sub > a { padding-right: 2px; }
.sub-toggle { background: none; border: 0; padding: 6px; cursor: pointer; color: var(--ink-soft); }
.sub { list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0; min-width: 230px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s; }
.has-sub:hover .sub, .has-sub:focus-within .sub, .has-sub.open .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { font-weight: 500; }
.sub a:hover { background: var(--brand-wash); }
.btn-call { padding: .7em 1.2em; }
.menu-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 24px; height: 2px; background: var(--navy); position: relative; transition: .2s; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -7px; } .bars::after { top: 7px; }
.menu-toggle[aria-expanded="true"] .bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .bars::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars::after { top: 0; transform: rotate(-45deg); }

.crumbs { background: var(--bg-alt); font-size: .85rem; color: var(--ink-soft); border-bottom: 1px solid var(--line); }
.crumbs .wrap { padding-top: 10px; padding-bottom: 10px; }
.crumbs a { color: var(--ink-soft); }

/* ---------- hero ---------- */
.hero { position: relative; color: #fff; background: var(--navy); overflow: hidden; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 30, 42, .88) 0%, rgba(8, 30, 42, .62) 55%, rgba(8, 30, 42, .25) 100%); }
.hero .wrap { position: relative; z-index: 1; padding-top: clamp(64px, 10vw, 130px); padding-bottom: clamp(64px, 10vw, 130px); }
.hero h1, .hero h2 { color: #fff; max-width: 15em; }
.hero p.lead { font-size: 1.15rem; max-width: 36em; color: #e6f1f6; }
.hero-sm .wrap { padding-top: clamp(48px, 7vw, 90px); padding-bottom: clamp(48px, 7vw, 90px); }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 2em 0 0; padding: 0; list-style: none; font-weight: 600; font-size: .95rem; }
.hero-badges li { display: flex; align-items: center; gap: 8px; }
.hero-badges svg { color: var(--brand-light); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 700; color: var(--brand-dark); margin-bottom: .6em; }
.hero .eyebrow, .dark .eyebrow, .cta-band .eyebrow { color: var(--brand-light); }

/* ---------- sections ---------- */
.section { padding: clamp(56px, 8vw, 100px) 0; }
.section.alt { background: var(--bg-alt); }
.section.dark { background: var(--navy); color: #d8e7ee; }
.section.dark h2, .section.dark h3 { color: #fff; }
.section-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; }
.dark .section-head p { color: #c3d8e2; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split.reverse > :first-child { order: 2; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.prose { max-width: 760px; }
.prose.center { margin: 0 auto; }
.lead { font-size: 1.15rem; color: var(--ink-soft); }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 1080px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.service-card { overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .15s; }
.service-card:hover { transform: translateY(-3px); color: inherit; }
.service-card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.service-card .card-body { padding: 22px 22px 26px; display: flex; flex-direction: column; flex: 1; }
.service-card p { color: var(--ink-soft); font-size: .97rem; }
.service-card .more { margin-top: auto; font-weight: 700; color: var(--brand-dark); }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.feature { padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.dark .feature { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .12); }
.feature .icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-wash); color: var(--brand-dark); margin-bottom: 16px; }
.dark .feature .icon { background: rgba(125, 189, 225, .15); color: var(--brand-light); }
.feature h3 { font-size: 1.1rem; }
.feature p { margin: 0; color: var(--ink-soft); font-size: .97rem; }
.dark .feature p { color: #c3d8e2; }

.steps { counter-reset: step; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.steps li { counter-increment: step; padding: 26px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand-dark); color: #fff; font-weight: 800; margin-bottom: 14px; }
.steps h3 { font-size: 1.08rem; }
.steps p { margin: 0; color: var(--ink-soft); font-size: .97rem; }

.checklist { list-style: none; padding: 0; margin: 1.2em 0; }
.checklist li { position: relative; padding-left: 34px; margin-bottom: .7em; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%; background: var(--brand-wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2300739a' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 15px no-repeat; }

.stat-row { display: flex; flex-wrap: wrap; gap: 32px; margin: 1.6em 0; }
.stat strong { display: block; font-size: 2.2rem; color: var(--brand-dark); line-height: 1; }
.stat span { font-size: .9rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .08em; }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery img { border-radius: 8px; aspect-ratio: 1; object-fit: cover; width: 100%; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 860px; margin: 0 auto; }
.faq { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 20px 56px 20px 22px; font-weight: 700; color: var(--navy); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--brand-dark); font-weight: 400; }
.faq[open] summary::after { content: "–"; }
.faq > div { padding: 0 22px 18px; color: var(--ink-soft); }

/* ---------- reviews ---------- */
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.review { margin: 0; padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; gap: 12px; }
.review blockquote { margin: 0; color: var(--ink); }
.review blockquote p { margin: 0; }
.review figcaption { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .95rem; }
.review-src { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-soft); font-size: .85rem; text-decoration: none; }
.stars { display: inline-flex; color: var(--star); }
.review-summary { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }

/* ---------- service areas ---------- */
.area-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.area-group { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.area-group h3 { font-size: 1.05rem; }
.area-list { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 16px; }
.area-list li { padding: 4px 0 4px 18px; position: relative; break-inside: avoid; font-size: .97rem; }
.area-list li::before { content: ""; position: absolute; left: 0; top: .85em; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.map-embed { border: 0; width: 100%; height: 380px; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--bg-alt); }

/* ---------- CTA + form ---------- */
.cta-band { position: relative; color: #fff; padding: clamp(56px, 8vw, 100px) 0; background: var(--navy); overflow: hidden; }
.cta-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .22; }
.cta-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.cta-info h2 { color: #fff; }
.cta-info p { color: #d3e4ec; }
.contact-list { list-style: none; padding: 0; margin: 1.6em 0 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list svg { color: var(--brand-light); flex: none; margin-top: 4px; }
.contact-list a { color: #fff; }
.contact-list small { color: #b7cfda; }
.cta-form { padding: 30px; color: var(--ink); }
.cta-form h3 { margin-bottom: 1em; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; flex: 1; }
.field-row { display: flex; gap: 14px; }
.field label { font-weight: 600; font-size: .9rem; }
.field input, .field select, .field textarea { font: inherit; font-size: 1rem; padding: 12px 14px; border: 1px solid #b9c7cf; border-radius: 8px; background: #fff; color: var(--ink); width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand-dark); outline: 2px solid var(--brand-wash); }
.hp { position: absolute; left: -5000px; }
.form-status { margin: 12px 0 0; font-weight: 600; min-height: 1.2em; }
.form-status.ok { color: #13734b; }
.form-status.err { color: #b42318; }
.contact-page .cta-form { box-shadow: var(--shadow); }

/* ---------- footer ---------- */
.site-footer { background: #071d29; color: #b9ccd5; font-size: .95rem; padding-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-logo { width: 180px; margin-bottom: 18px; }
.footer-h { color: #fff; font-size: 1rem; margin-bottom: 1em; text-transform: uppercase; letter-spacing: .1em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #dbe9ef; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.social { display: flex; gap: 10px; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 48px; padding-top: 20px; padding-bottom: 24px; font-size: .85rem; }
.footer-bottom p { margin: 0; }
.mobile-call { display: none; }

/* ---------- legal ---------- */
.legal h2 { font-size: 1.35rem; margin-top: 1.8em; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .btn-call span { display: none; }
  .btn-call { padding: .7em; }
  .main-nav a { padding: 10px 9px; }
}
@media (max-width: 860px) {
  .topbar .topbar-hours { display: none; }
  .menu-toggle { display: block; }
  .btn-call { margin-left: auto; }
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--navy); border-top: 1px solid rgba(255, 255, 255, .1); box-shadow: var(--shadow); display: none; max-height: calc(100vh - 110px); overflow-y: auto; }
  .main-nav li { border-color: rgba(255, 255, 255, .1) !important; }
  .main-nav .sub a { color: #d3e4ec; }
  .main-nav .sub a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; padding: 10px 20px 20px; gap: 0; }
  .main-nav li { border-bottom: 1px solid var(--line); }
  .has-sub { flex-wrap: wrap; }
  .has-sub > a { flex: 1; }
  .sub-toggle { padding: 12px; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 8px 12px; display: none; width: 100%; }
  .has-sub:hover .sub, .has-sub:focus-within .sub { display: none; }
  .has-sub.open .sub { display: block; }
  .sub li { border: 0; }
  .split, .cta-grid { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .mobile-call { display: flex; align-items: center; justify-content: center; gap: 8px; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; background: var(--brand-dark); color: #fff; font-weight: 700; text-decoration: none; padding: 14px; box-shadow: 0 -4px 16px rgba(0, 0, 0, .15); }
  .mobile-call:hover { color: #fff; }
  body { padding-bottom: 52px; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .wrap { padding: 0 16px; }
  .topbar { font-size: .75rem; }
  .logo img { width: 150px; }
  .field-row { flex-direction: column; gap: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .area-list { columns: 1; }
  .cta-form { padding: 22px; }
  .hero::after { background: rgba(8, 30, 42, .72); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
@media (max-width: 560px) { .topbar .topbar-extra { display: none; } }
