/* CH Hardwood Floors — static marketing site.
   Colors are checked against WCAG AA for the text that sits on them. */

:root {
  --ink: #241910;
  --muted: #5c4a3e;
  --cream: #f3eee6;
  --card: #fffcf8;
  --line: #e4d8c8;
  --bark: #241910;
  --brass: #c6a36a;
  --brass-ink: #6b4c28;
  --cream-text: #f4efe6;
  --cream-soft: #e6d3b0;
  --sans: Inter, "Segoe UI", "Liberation Sans", sans-serif;
  --serif: "Liberation Serif", Georgia, "Times New Roman", serif;
  --max: 1120px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: inherit;
}

h1 { font-size: clamp(2.35rem, 5vw, 4rem); margin: 0 0 14px; }
h2 { font-size: clamp(1.85rem, 3vw, 2.6rem); margin: 0 0 16px; }
h3 { font-size: 1.5rem; margin: 0 0 8px; }

p { margin: 0 0 12px; }

a { color: var(--brass-ink); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 80;
  background: var(--card);
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 4px;
  font-weight: 600;
}

.skip:focus { top: 12px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

section[id] { scroll-margin-top: 7.5rem; }

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brass-ink);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lead { font-size: 1.15rem; max-width: 38rem; }

.note { color: var(--muted); font-size: 0.975rem; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 4px;
  border: 2px solid var(--brass);
  background: var(--brass);
  color: #1a120e;
  font: 600 1rem/1.2 var(--sans);
  text-align: center;
  text-decoration: none;
}

.btn:hover { background: #d4b57e; border-color: #d4b57e; color: #1a120e; }

.btn-ghost {
  background: transparent;
  color: var(--cream-text);
  border-color: var(--cream-soft);
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); color: var(--cream-text); }

header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--bark);
  border-bottom: 2px solid var(--brass);
  color: var(--cream-text);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 10px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  color: var(--cream-text);
  text-decoration: none;
}

.brand:hover { color: var(--cream-text); }

.brand img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.brand-name {
  display: block;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
}

.brand-sub {
  display: block;
  color: var(--cream-soft);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin-left: auto;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 8px 12px;
  color: var(--cream-text);
  text-decoration: none;
  font-weight: 600;
}

.nav a:hover { color: var(--cream-soft); }

.nav a[aria-current="page"] {
  color: var(--cream-soft);
  text-decoration: underline;
  text-decoration-color: var(--brass);
  text-underline-offset: 6px;
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 8px 4px;
  color: var(--cream-text);
  font-weight: 600;
  text-decoration: none;
}

.header-phone:hover { color: var(--cream-soft); }

header :focus-visible,
.hero :focus-visible,
.dark :focus-visible,
.page-hero :focus-visible,
.cta-box :focus-visible,
.mobile-bar :focus-visible,
footer :focus-visible {
  outline-color: #fff8ee;
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--bark);
  color: var(--cream-text);
}

.hero-image {
  width: 100%;
  height: 210px;
  object-fit: cover;
  object-position: center 68%;
}

.hero-copy { padding: 28px 20px 36px; }

.hero .lead { color: var(--cream-text); }
.hero .based,
.hero .place,
.page-hero .place {
  margin: 0;
  color: var(--cream-soft);
  font-weight: 600;
}
.hero .place,
.page-hero .place { margin-bottom: 14px; }
.trust { margin: 14px 0 0; font-weight: 700; }
.trust-ids { margin: 2px 0 0; font-size: 0.95rem; }
.hero .trust,
.page-hero .trust { color: var(--cream-text); }
.hero .trust-ids,
.page-hero .trust-ids { color: var(--cream-soft); }

.hero .eyebrow,
.dark .eyebrow,
.page-hero .eyebrow,
.cta-box .eyebrow,
footer .eyebrow { color: var(--cream-soft); }

.rating {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  margin-top: 16px;
  color: var(--cream-text);
  font-weight: 600;
}

.rating:hover { color: var(--cream-soft); }

.stars { color: var(--brass); letter-spacing: 2px; }

.section { padding: 56px 0; }
.section-follow { padding-top: 0; }

.dark { background: var(--bark); color: var(--cream-text); }
.dark p { color: var(--cream-text); }

.grid-3,
.grid-2,
.detail-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

.tile {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 22px;
  box-shadow: inset 0 3px 0 var(--brass);
}

.tile p:last-child { margin-bottom: 0; }

.also { margin-top: 22px; }

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-weight: 700;
}

.compare { margin: 8px 0 0; }

.compare img,
.detail img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.compare figcaption,
.detail figcaption {
  margin-top: 10px;
  color: var(--muted);
}

.feature {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 28px;
}

.feature a,
.detail a { display: block; position: relative; }

.feature img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: center 70%;
}

.feature-copy { padding: 22px; }
.feature-copy p:last-child { margin-bottom: 0; }

.detail-grid { margin-bottom: 8px; }

.shot {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.shot img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 62%;
}

.shot figcaption {
  padding: 14px 16px 4px;
  font-weight: 700;
  color: var(--ink);
}

.shot figcaption:last-child { padding-bottom: 16px; }

.shot figcaption span,
.shot p {
  display: block;
  margin: 6px 0 0;
  font-weight: 400;
  color: var(--muted);
}

.shot p { padding: 0 16px 16px; }

.subhead { margin: 36px 0 14px; }

.page-hero {
  background: var(--bark);
  color: var(--cream-text);
  padding: 28px 0 48px;
}

.page-hero .lead { color: var(--cream-text); }

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
}

.crumbs li { display: flex; align-items: center; gap: 0.55rem; }

.crumbs li + li::before { content: "/"; color: var(--cream-soft); }

.crumbs a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: var(--cream-text);
}

.crumbs a:hover { color: var(--cream-soft); }

.cta-box {
  background: var(--bark);
  color: var(--cream-text);
  border-radius: 8px;
  padding: 40px 24px;
  text-align: center;
}

.cta-box .lead,
.cta-box p { margin-inline: auto; }

.cta-box .actions { justify-content: center; }

footer {
  background: var(--bark);
  color: var(--cream-text);
  padding: 36px 0 28px;
}

.footer-grid {
  display: grid;
  gap: 28px;
}

.footer-name {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-size: 1.6rem;
}

footer a {
  display: flex;
  align-items: center;
  width: fit-content;
  min-height: 48px;
  color: var(--cream-text);
  font-weight: 600;
}

footer a:hover { color: var(--cream-soft); }

.footer-phone { font-size: 1.35rem; }

footer p { color: var(--cream-text); }

.mobile-bar { display: none; }

@media (max-width: 799px) {
  .header-actions { display: none; }
  .nav {
    margin-left: 0;
    width: 100%;
    flex-wrap: nowrap;
    justify-content: space-between;
  }
  .nav a { padding: 10px 2px; font-size: 0.92rem; }
  .hero-image { height: 112px; }
  .hero-copy { padding: 16px 20px 8px; }
  .hero .trust { margin-top: 10px; }
  .hero h1 { font-size: 2.15rem; margin-bottom: 8px; }
  .hero .lead { font-size: 1.02rem; margin-bottom: 0; }
  .hero .actions { margin-top: 14px; }
  .hero .actions { flex-direction: column; }
  .hero .actions .btn { width: 100%; }

  .mobile-bar {
    display: grid;
    grid-template-columns: minmax(88px, 0.75fr) minmax(0, 1.4fr);
    gap: 8px;
    position: fixed;
    inset: auto 0 0 0;
    z-index: 40;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: var(--bark);
    border-top: 2px solid var(--brass);
  }

  .mobile-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 10px 8px;
    border-radius: 4px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
  }

  .mobile-bar .call {
    color: var(--cream-text);
    border: 2px solid var(--cream-soft);
  }

  .mobile-bar .text {
    background: var(--brass);
    border: 2px solid var(--brass);
    color: #1a120e;
  }

  .mobile-bar .call:hover { color: var(--cream-soft); }
  .mobile-bar .text:hover { color: #1a120e; background: #d4b57e; }

  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
}

@media (min-width: 800px) {
  .section { padding: 84px 0; }
  .hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); min-height: 620px; }
  .hero-copy {
    order: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 56px 48px 56px 6vw;
  }
  .hero-image { order: 2; height: 100%; min-height: 620px; }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-2,
  .detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
  .feature img { height: 100%; min-height: 480px; }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; align-items: start; }
  .cta-box { padding: 56px 48px; }
}

@media (min-width: 700px) and (max-width: 799px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2,
  .detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media print {
  .mobile-bar, .header-actions, .skip { display: none; }
  header { position: static; }
  body { padding-bottom: 0; background: #fff; }
  a { text-decoration: underline; }
}

/* Service areas + email */
.area-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 16px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.area-list li {
  background: var(--bark);
  color: var(--cream-text);
  border-radius: 8px;
  padding: 14px 16px;
  font-weight: 600;
  text-align: center;
}
.cta-email { margin-top: 16px; }
.cta-email a { color: var(--cream-text); font-weight: 600; text-decoration: underline; overflow-wrap: anywhere; }
.footer-email-label { margin-top: 12px; }
footer a[href^="mailto:"] { overflow-wrap: anywhere; }
