/* Flair Custom Cabinets & Remodeling, Inc. - homepage concept
   Design language: #8 Vibrant Energy (type, spacing, composition, motion ONLY).
   Palette: Flair's real brand. Logo is monochrome (charcoal #2e2a29 on white);
   the warm amber accent is sampled from the wood in their own project photography.
   No em dashes in this file. */

:root {
  /* dark family: deepened from logo charcoal + espresso photo tones */
  --ink:        #211a15;
  --ink-2:      #2a221b;
  --ink-3:      #171310;
  /* light family */
  --porcelain:  #f7f5f1;
  --cream:      #f1ede6;
  /* accent: warm amber from their cabinetry photography (#c07d4c family) */
  --amber:      #c07d4c;
  --amber-hi:   #d99a63;   /* lightened for text on dark */
  --amber-deep: #8d5a2b;   /* deepened for text on light */
  --amber-muted: rgba(192, 125, 76, 0.28);
  /* text */
  --text-dark:  #211a15;
  --text-body:  #4c463f;
  --text-muted: #6e675e;
  --text-light: rgba(255, 255, 255, 0.92);
  --text-light-muted: rgba(255, 255, 255, 0.62);

  --font-display: 'Space Grotesk', -apple-system, sans-serif;
  --font-body:    'Space Grotesk', -apple-system, sans-serif;

  --wrap: min(90%, 1100px);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 76px;
  --radius: 4px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-weight: 300;
  background: var(--porcelain);
  color: var(--text-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.container { width: var(--wrap); margin-inline: auto; }

/* ---------- eyebrow ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.8rem;
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--amber-deep);
}
.eyebrow::before { content: ""; width: 2rem; height: 1px; background: currentColor; opacity: 0.8; flex-shrink: 0; }
.on-dark .eyebrow, .hero .eyebrow, .cta .eyebrow { color: var(--amber-hi); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.7rem;
  padding: 0.95rem 1.9rem; border-radius: 100px;
  font-family: var(--font-body); font-size: 0.82rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none;
  transition: background 0.45s var(--ease-out), color 0.45s var(--ease-out),
              border-color 0.45s var(--ease-out), transform 0.45s var(--ease-bounce);
  will-change: transform;
}
.btn--solid {
  background: var(--amber); color: var(--ink-3);
  box-shadow: 0 2px 4px rgba(23, 19, 16, 0.25), 0 16px 34px -10px rgba(192, 125, 76, 0.4);
}
.btn--solid:hover { background: var(--amber-hi); }
.btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.28); color: var(--text-light);
}
.btn--ghost:hover { border-color: var(--amber); color: var(--amber-hi); }
.btn__icon {
  display: inline-flex; width: 26px; height: 26px; border-radius: 50%;
  align-items: center; justify-content: center;
  background: rgba(23, 19, 16, 0.14);
}
.btn__icon svg { width: 13px; height: 13px; }
.btn--ghost .btn__icon { background: rgba(255, 255, 255, 0.1); }

/* ---------- nav ---------- */
.nav {
  /* Must exceed .mmenu (300). .nav is a fixed+z-index stacking context, so the
     burger's own z-index cannot lift it above the overlay; without this the open
     menu covers the X and the user is trapped on a phone (no Escape key). */
  position: fixed; top: 0; left: 0; right: 0; z-index: 400;
  transition: background 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}
.nav__inner {
  width: var(--wrap); margin-inline: auto;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
/* The logo art is charcoal on an opaque white field, so it sits on a light
   chip rather than being filtered. The chip padding also lifts the brand link
   to a 44px touch target. */
.nav__brand {
  display: inline-flex; align-items: center;
  background: #fff; border-radius: 8px;
  padding: 0.5rem 0.8rem;
  transition: box-shadow 0.3s var(--ease-out);
}
.nav__brand:hover { box-shadow: 0 0 0 2px var(--amber-muted); }
.nav__logo { height: 30px; width: auto; max-width: 180px; object-fit: contain; }
.nav__links { display: flex; align-items: center; gap: 1.8rem; }
.nav__link {
  font-size: 0.8rem; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-light-muted); text-decoration: none;
  transition: color 0.3s var(--ease-out);
  padding-block: 0.65rem;
}
.nav__link:hover { color: var(--text-light); }
.nav__cta {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.76rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-3); background: var(--amber);
  padding: 0.7rem 1.3rem; border-radius: 100px; text-decoration: none;
  transition: background 0.3s var(--ease-out);
}
.nav__cta:hover { background: var(--amber-hi); }
.nav__cta-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); }
.nav.scrolled {
  background: rgba(23, 19, 16, 0.92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}
.nav__burger {
  display: none; position: relative; z-index: 400;
  width: 44px; height: 44px; background: none; border: 0; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.nav__burger span {
  display: block; width: 24px; height: 2px; background: var(--text-light);
  transition: transform 0.35s var(--ease-out), opacity 0.35s var(--ease-out);
}
.nav__burger.open span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* ---------- mobile menu ---------- */
.mmenu {
  position: fixed; inset: 0; z-index: 300;
  background: var(--ink-3);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.4s var(--ease-out), visibility 0.4s var(--ease-out);
}
.mmenu.open { opacity: 1; visibility: visible; pointer-events: auto; }
.mmenu__inner { text-align: center; padding: 2rem; }
.mmenu__link {
  display: block; font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2rem, 8vw, 3rem); color: var(--text-light);
  text-decoration: none; padding: 0.5rem 0; letter-spacing: -0.02em;
  transition: color 0.3s var(--ease-out);
}
.mmenu__link:hover { color: var(--amber-hi); }
.mmenu__rule { width: 3rem; height: 1px; background: var(--amber); margin: 1.4rem auto; }
.mmenu__cta {
  display: inline-block; font-size: 0.82rem; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-3); background: var(--amber);
  padding: 0.9rem 1.8rem; border-radius: 100px; text-decoration: none;
}
.mmenu__meta { margin-top: 1.6rem; font-size: 0.85rem; color: var(--text-light-muted); }

/* ---------- hero ---------- */
.hero {
  min-height: 100vh; min-height: 100svh;
  background: linear-gradient(160deg, var(--ink-3) 0%, var(--ink) 55%, var(--ink-2) 130%);
  display: flex; flex-direction: column; justify-content: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}
.hero__grid {
  width: var(--wrap); margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-block: clamp(3rem, 7vw, 5rem);
}
.hero h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.5rem, 5.4vw, 4.4rem);
  line-height: 1.02; letter-spacing: -0.03em;
  color: var(--porcelain);
  margin-top: 1.3rem;
  text-wrap: balance;
}
.hero-sub {
  margin-top: 1.5rem; max-width: 46ch;
  font-size: clamp(1rem, 1.4vw, 1.14rem); color: var(--text-light-muted);
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }
.hero__media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.35), 0 50px 90px -20px rgba(0,0,0,0.6);
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3.4; }
.hero__tag {
  position: absolute; left: 1rem; bottom: 1rem; max-width: calc(100% - 2rem);
  font-size: 0.64rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--porcelain); background: rgba(23, 19, 16, 0.8);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  padding: 0.5rem 0.95rem; border-radius: 100px;
}
.hero__strip {
  display: flex; white-space: nowrap;
  padding: 1.1rem 0; border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--text-light-muted);
  overflow: hidden;
}
/* One animated track per copy of the content, so every item moves at the same
   speed and the loop is seamless. Animating each span separately made them
   drift apart. */
.ticker__track {
  display: flex; gap: 3rem; padding-right: 3rem;
  flex-shrink: 0;
  animation: strip 26s linear infinite;
}
.ticker__track span { flex-shrink: 0; }
@keyframes strip {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

/* ---------- intro ---------- */
.intro { background: var(--porcelain); padding-block: clamp(4rem, 9vw, 7rem); }
.intro__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem); align-items: start;
}
.intro h2, .work h2, .services h2, .process h2, .about h2, .cta h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.08;
  letter-spacing: -0.025em; color: var(--text-dark);
  text-wrap: balance;
}
.intro__body p + p { margin-top: 1.2rem; }
.intro__body { font-size: 1.05rem; }

/* ---------- work rail ---------- */
.work { background: var(--ink); padding-block: clamp(4rem, 9vw, 7rem); }
.work .eyebrow { color: var(--amber-hi); }
.work h2 { color: var(--porcelain); max-width: 22ch; margin-top: 1.2rem; }
.work__rail {
  display: flex; gap: clamp(1rem, 2.4vw, 1.8rem);
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: clamp(2.2rem, 5vw, 3.5rem) calc((100vw - min(90vw, 1100px)) / 2) 0.5rem;
  scroll-snap-type: x mandatory;
}
.work__rail::-webkit-scrollbar { display: none; }
.work__card {
  flex: 0 0 min(74vw, 420px); scroll-snap-align: start;
  border-radius: var(--radius); overflow: hidden; position: relative;
  background: var(--ink-2);
}
.work__card img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .work__card:hover img { transform: scale(1.05); }
}
.work__card figcaption {
  position: absolute; left: 1rem; bottom: 1rem;
  font-size: 0.66rem; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--porcelain); background: rgba(23, 19, 16, 0.78);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  padding: 0.45rem 0.9rem; border-radius: 100px;
}
/* ---------- services ---------- */
.services { background: var(--cream); padding-block: clamp(4rem, 9vw, 7rem); }
.services h2 { margin-top: 1.2rem; }
.service {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
  margin-top: clamp(3rem, 7vw, 5rem);
}
.service--flip .service__media { order: 2; }
/* Nothing in the photo library shows drafting work, so this row runs as text
   rather than carrying a photo of something else. */
.service--textonly {
  grid-template-columns: minmax(0, 1fr);
  border-top: 1px solid rgba(33, 26, 21, 0.14);
  padding-top: clamp(2rem, 4vw, 3rem);
}
.service--textonly .service__copy p { max-width: 62ch; }
.service__media {
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 3px 6px rgba(33, 26, 21, 0.12), 0 34px 60px -18px rgba(33, 26, 21, 0.3);
}
.service__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.service__num {
  font-family: var(--font-display); font-weight: 700;
  font-size: 0.85rem; letter-spacing: 0.2em; color: var(--amber-deep);
}
.service__copy h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem); letter-spacing: -0.02em;
  color: var(--text-dark); margin-top: 0.6rem;
}
.service__copy p { margin-top: 1rem; font-size: 1.02rem; max-width: 48ch; }

/* ---------- process ---------- */
.process { background: var(--porcelain); padding-block: clamp(4rem, 9vw, 7rem); }
.process h2 { margin-top: 1.2rem; max-width: 24ch; }
.process__steps {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3.5vw, 2.5rem);
  margin-top: clamp(2.5rem, 6vw, 4rem);
}
.step {
  border-top: 2px solid var(--amber);
  padding-top: 1.4rem;
}
.step__num {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1;
  color: var(--amber); letter-spacing: -0.03em;
}
.step h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.2rem; letter-spacing: -0.015em; color: var(--text-dark);
  margin-top: 0.9rem;
}
.step p { margin-top: 0.7rem; font-size: 0.96rem; }

/* ---------- about ----------
   Light band on purpose: hero, work, CTA and footer are all near-black, so the
   about section carries the porcelain token to break the run. */
.about { background: var(--cream); padding-block: clamp(4rem, 9vw, 7rem); }
.about .eyebrow { color: var(--amber-deep); }
.about h2 { color: var(--text-dark); margin-top: 1.2rem; }
.about__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5rem); align-items: start;
}
.about__copy p { color: var(--text-body); margin-top: 1.2rem; font-size: 1.04rem; }
.about__copy h2 + p { margin-top: 1.4rem; }
.person {
  border: 1px solid rgba(33, 26, 21, 0.12);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3.5vw, 2.2rem);
  background: var(--porcelain);
}
.person + .person { margin-top: 1.4rem; }
.person h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.3rem; letter-spacing: -0.015em; color: var(--text-dark);
}
.person__role {
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--amber-deep); margin-top: 0.4rem;
}
.person p:last-child { margin-top: 0.9rem; font-size: 0.96rem; color: var(--text-body); }

/* ---------- cta ---------- */
.cta {
  background: linear-gradient(150deg, var(--ink-2) 0%, var(--ink) 60%, var(--ink-3) 130%);
  padding-block: clamp(4.5rem, 10vw, 8rem);
  text-align: center;
}
.cta__inner { max-width: 46rem; }
.cta h2 { color: var(--porcelain); }
.cta p { color: var(--text-light-muted); margin-top: 1.3rem; font-size: 1.05rem; }
.cta__row {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center;
  margin-top: 2.2rem;
}
.cta__addr { font-size: 0.9rem; letter-spacing: 0.04em; }

/* ---------- footer ---------- */
.footer { background: var(--ink-3); padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; }
.footer__grid {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: 2.4rem; border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer__logo {
  height: 26px; width: auto; max-width: 160px; object-fit: contain;
  box-sizing: content-box;
  background: #fff; border-radius: 8px;
  padding: 0.5rem 0.8rem;
}
.footer__brand p { margin-top: 1.1rem; font-size: 0.9rem; color: var(--text-light-muted); }
.footer__head {
  font-size: 0.68rem; font-weight: 500; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--amber-hi); margin-bottom: 0.9rem;
}
.footer__link {
  display: block; font-size: 0.92rem; color: var(--text-light-muted);
  text-decoration: none; padding-block: 0.65rem;
  transition: color 0.3s var(--ease-out);
}
.footer__link:hover { color: var(--text-light); }
.footer__fine { font-size: 0.85rem; color: var(--text-light-muted); padding-block: 0.65rem; }
.footer__base {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  padding-top: 1.6rem; font-size: 0.8rem; color: var(--text-light-muted);
}

/* ---------- motion (scoped under html.js) ---------- */
html.js .reveal { opacity: 0; transform: translateY(30px); }
html.js .reveal-hero { opacity: 0; transform: translateY(26px); }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal, html.js .reveal-hero { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
  .ticker__track { animation: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .process__steps { grid-template-columns: 1fr; }
  .intro__grid, .about__grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .hero { min-height: 0; }
  .hero__grid { grid-template-columns: 1fr; padding-top: 2.5rem; }
  .hero__media { order: -1; }
  .hero__media img { aspect-ratio: 16 / 10; }
  .service, .service--flip { grid-template-columns: 1fr; }
  .service--flip .service__media { order: 0; }
  .footer__grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero__ctas .btn { width: 100%; justify-content: center; }
  .cta__row .btn { width: 100%; justify-content: center; }
  .work__card { flex-basis: 82vw; }
}
/* The homepage opening ends exactly at the viewport edge. */
.hero{height:100vh;height:100svh;min-height:0;max-height:100svh;overflow:hidden}
@media (min-width:900px){.hero h1{max-width:15ch;font-size:clamp(3rem,4vw,3.8rem)}}
@media (max-width:480px){
  .hero__grid{gap:1rem;padding-block:1rem}
  .hero__media img{aspect-ratio:16/7}
  .hero h1{font-size:2.05rem;margin-top:.8rem}
  .hero-sub{font-size:.94rem;line-height:1.55;margin-top:.85rem}
  .hero__ctas{gap:.65rem;margin-top:1rem}
  .hero__ctas .btn{padding:.85rem 1.2rem}
}
