/* ============================================================
   SHS Hardwood Flooring — "The grain and the craft"
   Palette anchored in real wood tones; Fraunces + Archivo;
   herringbone as the signature motif.
   ============================================================ */

@font-face {
  font-family: 'Fraunces';
  src: url('../assets/fonts/fraunces-latin.woff2') format('woff2-variations');
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('../assets/fonts/archivo-latin.woff2') format('woff2-variations');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --espresso: #241B15;   /* dominant dark brand surface */
  --espresso-2: #1C140F; /* deeper (footer / lightbox)   */
  --cocoa: #3A2C22;      /* raised dark / borders on dark */
  --oak: #C0824A;        /* finished-oak accent           */
  --oak-deep: #A9692F;   /* accent on light (contrast)    */
  --bone: #F4EFE7;       /* light surface (sanded wood)   */
  --bone-2: #EAE2D5;     /* slightly deeper light         */
  --ink: #211A14;        /* text on light                 */
  --clay: #6E5F51;       /* muted warm gray-brown         */
  --clay-light: #C9BCAC; /* muted text on dark            */

  --display: 'Fraunces', 'Hoefler Text', Georgia, 'Times New Roman', serif;
  --sans: 'Archivo', 'Helvetica Neue', system-ui, -apple-system, sans-serif;

  --wrap: 1200px;
  --radius: 4px;
  --ease: cubic-bezier(.22,.61,.36,1);

  /* herringbone chevron, oak, used for divider bands + accents */
  --hb: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='18' viewBox='0 0 36 18'%3E%3Cpath d='M-2 18 L16 0 L34 18 M16 18 L34 0 L52 18 M-20 18 L-2 0 L16 18' fill='none' stroke='%23C0824A' stroke-width='2'/%3E%3C/svg%3E");
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--bone);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  font-optical-sizing: auto;
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.eyebrow {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--oak-deep);
  margin-bottom: 1rem;
}
.eyebrow--light { color: var(--oak); }

.section-title {
  font-size: clamp(1.9rem, 1.1rem + 3.2vw, 3.1rem);
  color: var(--ink);
  max-width: 18ch;
}
.section-head { max-width: 62ch; margin-bottom: 3rem; }
.section-head--onDark .section-title { color: var(--bone); }
.section-sub { color: var(--clay-light); margin-top: 1rem; max-width: 52ch; }

.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 200;
  background: var(--oak); color: var(--espresso); padding: .6rem 1rem;
  border-radius: var(--radius); font-weight: 600; transition: top .2s;
}
.skip-link:focus { top: 1rem; }

:focus-visible { outline: 2.5px solid var(--oak); outline-offset: 3px; border-radius: 2px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--sans); font-weight: 600; font-size: .92rem;
  letter-spacing: .01em; text-decoration: none;
  padding: .7rem 1.15rem; border-radius: var(--radius);
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .18s var(--ease), background-color .2s, color .2s, border-color .2s;
}
.btn--solid { background: var(--oak); color: #241B15; }
.btn--solid:hover { background: #cf9057; transform: translateY(-2px); }
.btn--ghost { background: transparent; border-color: currentColor; color: var(--oak); }
.btn--ghost:hover { background: rgba(192,130,74,.12); transform: translateY(-2px); }
.btn--lg { padding: .95rem 1.5rem; font-size: 1rem; }
.btn--phone {
  background: transparent; border-color: rgba(192,130,74,.5); color: var(--oak);
  font-variant-numeric: tabular-nums;
}
.btn--phone:hover { background: var(--oak); color: var(--espresso); border-color: var(--oak); }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(28,20,15,.72);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(192,130,74,.14);
  transition: background-color .3s, box-shadow .3s;
}
.site-header.is-scrolled {
  background: rgba(28,20,15,.96);
  box-shadow: 0 8px 30px rgba(0,0,0,.35);
}
.header__inner {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 68px;
}
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--bone); }
.brand__mark { color: var(--oak); display: inline-flex; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--display); font-size: 1.35rem; letter-spacing: .02em; }
.brand__sub { font-family: var(--sans); font-size: .6rem; letter-spacing: .28em; text-transform: uppercase; color: var(--clay-light); margin-top: 3px; }
.nav { margin-left: auto; display: flex; gap: 1.75rem; }
.nav a {
  font-family: var(--sans); font-weight: 500; font-size: .9rem; text-decoration: none;
  color: var(--bone); opacity: .82; letter-spacing: .01em; position: relative; padding: .3rem 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 1.5px;
  background: var(--oak); transition: width .25s var(--ease);
}
.nav a:hover { opacity: 1; }
.nav a:hover::after { width: 100%; }
.header__inner .btn--phone { flex-shrink: 0; }

/* ---------- hero ---------- */
.hero {
  background: var(--espresso);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 100svh;
  padding-top: 68px;
}
.hero__panel {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(2rem, 6vw, 6rem);
  padding-right: clamp(1.5rem, 4vw, 4rem);
}
.hero__title {
  color: var(--bone);
  font-size: clamp(2.5rem, 1.4rem + 4.6vw, 4.9rem);
  font-weight: 400;
  margin: .2rem 0 1.4rem;
  max-width: 15ch;
}
.hero__lede { color: var(--clay-light); font-size: clamp(1rem, .96rem + .3vw, 1.18rem); max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.2rem; }
.hero__phone { margin-top: 1.1rem; color: var(--clay-light); font-size: .92rem; }
.hero__phone a { color: var(--oak); text-decoration: none; font-weight: 600; font-variant-numeric: tabular-nums; }
.hero__phone a:hover { text-decoration: underline; }

.hero__media { position: relative; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero__seam {
  position: absolute; left: 0; top: 0; bottom: 0; width: 10px; z-index: 2;
  background: var(--espresso);
  box-shadow: 10px 0 0 0 rgba(0,0,0,.25);
}
.hero__seam::after {
  content: ""; position: absolute; inset: 0 auto 0 3px; width: 4px;
  background-image: var(--hb); background-size: 8px 8px; opacity: .9;
}

/* ---------- herringbone divider ---------- */
.herringbone-band {
  height: 16px;
  background-image: var(--hb);
  background-size: 28px 14px;
  background-repeat: repeat-x;
  background-position: center;
  opacity: .5;
  background-color: var(--bone);
}
.herringbone-band--dark { background-color: var(--espresso-2); opacity: .6; }

/* ---------- trust strip ---------- */
.trust { background: var(--bone); padding: 2.4rem 0 2.8rem; border-bottom: 1px solid var(--bone-2); }
.trust__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.trust__item { display: flex; flex-direction: column; gap: .2rem; }
.trust__big { font-family: var(--display); font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem); color: var(--ink); }
.trust__label { font-family: var(--sans); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--clay); }

/* ---------- about ---------- */
.about { background: var(--bone); padding: clamp(3.5rem, 8vw, 7rem) 0; }
.about__grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.about__body p { color: var(--clay); font-size: 1.06rem; margin-top: 1.2rem; max-width: 56ch; }
.about__body .section-title { max-width: 20ch; }
.about__stats { display: flex; flex-wrap: wrap; gap: 2.5rem; margin-top: 2.5rem; }
.about__stats > div { display: flex; flex-direction: column; }
.stat__num { font-family: var(--display); font-size: 2rem; color: var(--oak-deep); }
.stat__lbl { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--clay); margin-top: .2rem; }
.about__seal { display: flex; justify-content: center; color: var(--oak-deep); }
.seal { width: min(240px, 60vw); height: auto; }
.seal__text { font-family: var(--sans); font-size: 10.5px; font-weight: 600; letter-spacing: 2.2px; fill: var(--oak-deep); }
.seal__est { font-family: var(--display); font-size: 20px; letter-spacing: .5px; fill: var(--ink); }
.seal__ins { font-family: var(--sans); font-size: 8px; font-weight: 600; letter-spacing: 2px; fill: var(--clay); }
.seal__center path { color: var(--oak-deep); }

/* ---------- services ---------- */
.services { background: var(--bone-2); padding: clamp(3.5rem, 8vw, 7rem) 0; }
.services__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.service {
  background: var(--bone); border: 1px solid rgba(110,95,81,.16); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease);
}
.service:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(36,27,21,.16); }
.service__img { aspect-ratio: 4 / 3; overflow: hidden; }
.service__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.service:hover .service__img img { transform: scale(1.06); }
.service__title { font-size: 1.35rem; color: var(--ink); margin: 1.2rem 1.3rem .4rem; }
.service p { color: var(--clay); font-size: .95rem; margin: 0 1.3rem 1.5rem; }

/* ---------- gallery / work ---------- */
.work { background: var(--espresso); padding: clamp(3.5rem, 8vw, 7rem) 0; }
.gallery { column-count: 4; column-gap: 14px; }
.tile {
  display: block; width: 100%; margin: 0 0 14px; padding: 0; border: 0; cursor: pointer;
  background: var(--cocoa); border-radius: var(--radius); overflow: hidden;
  break-inside: avoid; position: relative; line-height: 0;
  transition: transform .2s var(--ease);
}
.tile img { width: 100%; height: auto; transition: transform .5s var(--ease), filter .3s; }
.tile::after {
  content: ""; position: absolute; inset: 0; border: 2px solid transparent;
  border-radius: var(--radius); transition: border-color .2s; pointer-events: none;
}
.tile:hover img, .tile:focus-visible img { transform: scale(1.05); }
.tile:hover::after, .tile:focus-visible::after { border-color: var(--oak); }
.noscript-note { color: var(--clay-light); text-align: center; margin-top: 2rem; }
.noscript-note a { color: var(--oak); }

/* ---------- CTA ---------- */
.cta {
  background:
    linear-gradient(rgba(28,20,15,.82), rgba(28,20,15,.92)),
    var(--oak);
  padding: clamp(4rem, 9vw, 7.5rem) 0;
  text-align: center;
}
.cta__inner { max-width: 40rem; margin-inline: auto; }
.cta__title { color: var(--bone); font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.4rem); margin-bottom: 1rem; }
.cta__sub { color: var(--clay-light); font-size: 1.1rem; margin-bottom: 2.2rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.cta__addr { margin-top: 1.6rem; color: var(--clay-light); font-size: .95rem; }
.cta__addr a { color: var(--oak); text-decoration: none; border-bottom: 1px solid rgba(192,130,74,.4); }
.cta__addr a:hover { border-bottom-color: var(--oak); }

/* ---------- footer ---------- */
.site-footer { background: var(--espresso-2); color: var(--clay-light); }
.footer__inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem;
  padding: clamp(3rem, 6vw, 4.5rem) 0 2.5rem;
}
.footer__brand .brand__name { font-family: var(--display); color: var(--bone); font-size: 1.5rem; }
.footer__brand p { margin-top: .8rem; max-width: 40ch; font-size: .95rem; }
.footer__col h4 { font-family: var(--sans); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--oak); margin-bottom: 1rem; font-weight: 600; }
.footer__col p { margin-bottom: .5rem; font-size: .98rem; }
.footer__addr { font-style: normal; margin: .5rem 0; font-size: .98rem; line-height: 1.5; color: var(--clay-light); }
.footer__col a { color: var(--clay-light); text-decoration: none; }
.footer__col a:hover { color: var(--oak); }
.footer__base {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
  padding: 1.5rem 0 2rem; border-top: 1px solid rgba(192,130,74,.14); font-size: .82rem;
}
.footer__totop { color: var(--oak); text-decoration: none; }
.footer__totop:hover { text-decoration: underline; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(20,14,10,.94);
  display: none; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .25s;
}
.lightbox.is-open { display: flex; opacity: 1; }
.lightbox__figure { max-width: min(92vw, 1100px); max-height: 88vh; margin: 0; text-align: center; }
.lightbox__img {
  max-width: 100%; max-height: 82vh; width: auto; height: auto; margin-inline: auto;
  border-radius: var(--radius); box-shadow: 0 24px 70px rgba(0,0,0,.6);
}
.lightbox__cap { color: var(--clay-light); font-size: .85rem; margin-top: 1rem; letter-spacing: .04em; }
.lightbox__count { color: var(--oak); margin-left: .5rem; font-variant-numeric: tabular-nums; }
.lightbox__btn {
  position: absolute; background: rgba(58,44,34,.7); color: var(--bone); border: 1px solid rgba(192,130,74,.3);
  width: 52px; height: 52px; border-radius: 50%; font-size: 1.8rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: background-color .2s, transform .2s;
}
.lightbox__btn:hover { background: var(--oak); color: var(--espresso); }
.lightbox__close { top: 1.2rem; right: 1.2rem; font-size: 2rem; }
.lightbox__prev { left: 1.2rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1.2rem; top: 50%; transform: translateY(-50%); }
.lightbox__prev:hover { transform: translateY(-50%) scale(1.08); }
.lightbox__next:hover { transform: translateY(-50%) scale(1.08); }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .service, .tile img, .service__img img { transition: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1100px) {
  .gallery { column-count: 3; }
}
@media (max-width: 960px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .about__grid { grid-template-columns: 1fr; }
  .about__seal { order: -1; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero__media { order: -1; height: 52vh; min-height: 320px; }
  .hero__seam { display: none; }
  .hero__panel { padding: 2.6rem 1.5rem 3.2rem; }
}
@media (max-width: 620px) {
  .trust__row { grid-template-columns: repeat(2, 1fr); gap: 1.6rem 1rem; }
  .gallery { column-count: 2; column-gap: 10px; }
  .tile { margin-bottom: 10px; }
  .footer__inner { grid-template-columns: 1fr; gap: 1.8rem; }
  .footer__base { flex-direction: column; align-items: flex-start; }
  .btn--lg { width: 100%; justify-content: center; }
  .hero__actions .btn { width: 100%; justify-content: center; }
}
