/* ============================================================
   Holman's Custom Cabinets, Homepage Concept
   Design language: Warm Editorial (type, spacing, motion only)
   Palette: Holman's real brand colors (logo ember orange,
   warm black, workshop creams and walnut tones)
   ============================================================ */

:root {
  /* Backgrounds */
  --cream:        #f7f2e9;
  --sand:         #efe6d8;
  --char:         #191310;
  --char-2:       #251c15;

  /* Accent: sampled from their logo (#f05828 / #e06820 family) */
  --ember:        #e05a1e;
  --ember-deep:   #a63f0d;
  --ember-bright: #f05828;
  --ember-muted:  rgba(240, 88, 40, 0.32);
  --ember-soft:   rgba(240, 88, 40, 0.12);

  /* Text */
  --text-dark:    #2a211b;
  --text-body:    #574a3f;
  --text-muted:   #857567;
  --text-light:   rgba(255, 250, 244, 0.86);
  --text-light-muted: rgba(255, 250, 244, 0.6);

  /* Type */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Inter', -apple-system, sans-serif;

  /* Layout */
  --container:    min(90%, 1100px);
  --pad-section:  clamp(4.5rem, 9vw, 7.5rem);
  --nav-height:   84px;

  /* Motion */
  --ease-spring:  cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--text-body);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: var(--container); margin-inline: auto; }

/* ---------- Typography ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.12;
}
.on-dark h1, .on-dark h2, .on-dark h3 { color: var(--text-light); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ember-deep);
  margin-bottom: 1.4rem;
}
.eyebrow::before {
  content: "";
  width: 2.2rem;
  height: 1px;
  background: var(--ember);
}
.on-dark .eyebrow { color: var(--ember-bright); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 1.9rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.5s var(--ease-spring), background 0.35s, color 0.35s, border-color 0.35s;
  will-change: transform;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
  transition: transform 0.5s var(--ease-spring);
}
.btn:hover .btn__dot { transform: scale(1.7); }
.btn--solid { background: var(--ember); color: #fff8f2; }
.btn--solid:hover { background: var(--ember-deep); }
.btn--ghost-light { border-color: rgba(255, 250, 244, 0.45); color: var(--text-light); }
.btn--ghost-light:hover { background: rgba(255, 250, 244, 0.12); border-color: rgba(255, 250, 244, 0.8); }
.btn--ghost-dark { border-color: rgba(42, 33, 27, 0.35); color: var(--text-dark); }
.btn--ghost-dark:hover { border-color: var(--ember); color: var(--ember-deep); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  z-index: 400;
  transition: background 0.45s, box-shadow 0.45s, height 0.45s;
}
.nav__inner {
  width: var(--container);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.nav--solid {
  background: rgba(247, 242, 233, 0.96);
  box-shadow: 0 1px 0 rgba(42, 33, 27, 0.08);
  backdrop-filter: blur(10px);
  height: 70px;
}
.brand { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--text-light);
  letter-spacing: 0.01em;
  transition: color 0.45s;
}
.brand__sub {
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ember-bright);
  transition: color 0.45s;
}
.nav--solid .brand__name { color: var(--text-dark); }
.nav--solid .brand__sub { color: var(--ember-deep); }

.nav__links { display: flex; align-items: center; gap: 2.1rem; }
.nav__links a {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  position: relative;
  padding-block: 0.4rem;
  transition: color 0.45s;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--ember);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-spring);
}
.nav__links a:hover::after { transform: scaleX(1); }
.nav--solid .nav__links a { color: var(--text-dark); }

.nav__cta { flex: none; }
.nav .btn { padding: 0.7rem 1.5rem; font-size: 0.72rem; }

/* Hamburger */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 46px;
  height: 46px;
  padding: 10px;
  background: none;
  border: 0;
  cursor: pointer;
  z-index: 400;
}
.burger span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--text-light);
  transition: transform 0.4s var(--ease-spring), opacity 0.3s, background 0.45s;
}
.nav--solid .burger span { background: var(--text-dark); }
.burger.is-open span { background: var(--text-light); }
.burger.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--char);
  z-index: 350;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 8vw, 4rem);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s, visibility 0.45s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu a.mobile-menu__link {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 3rem);
  color: var(--text-light);
  padding-block: 0.55rem;
  border-bottom: 1px solid rgba(255, 250, 244, 0.08);
  transition: color 0.3s, padding-left 0.4s var(--ease-spring);
}
.mobile-menu a.mobile-menu__link:hover { color: var(--ember-bright); padding-left: 0.6rem; }
.mobile-menu .btn { margin-top: 2.2rem; align-self: flex-start; }
.mobile-menu__contact {
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--text-light-muted);
  line-height: 2;
}
.mobile-menu__contact a { color: var(--text-light); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 620px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--char);
}
.hero__img {
  position: absolute;
  inset: -8% 0;
  width: 100%;
  height: 116%;
  object-fit: cover;
  will-change: transform;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(15, 10, 7, 0.88) 0%, rgba(15, 10, 7, 0.42) 45%, rgba(15, 10, 7, 0.38) 100%);
}
.hero__content {
  position: relative;
  width: var(--container);
  margin-inline: auto;
  padding-bottom: clamp(3.5rem, 8vh, 6rem);
  z-index: 2;
}
.hero h1 {
  font-size: clamp(2.7rem, 7.2vw, 5.4rem);
  color: var(--text-light);
  max-width: 15ch;
  margin-bottom: 1.4rem;
}
.hero h1 em {
  font-style: italic;
  color: var(--ember-bright);
}
.hero__sub {
  font-size: clamp(0.98rem, 1.6vw, 1.12rem);
  color: var(--text-light-muted);
  max-width: 52ch;
  margin-bottom: 2.3rem;
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__badge {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.7rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ember-bright);
  margin-bottom: 1.6rem;
  max-width: 100%;
}
.hero__badge::before, .hero__badge::after {
  content: "";
  width: 1.8rem;
  height: 1px;
  background: var(--ember-muted);
}

/* ---------- Section scaffolding ---------- */
.section { padding-block: var(--pad-section); }
.section--dark { background: var(--char); }
.section--dark-2 { background: var(--char-2); }
.section--sand { background: var(--sand); }

/* ---------- Intro / story ---------- */
.intro__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.intro h2 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  max-width: 16ch;
}
.intro h2 em { font-style: italic; color: var(--ember-bright); }
.intro__copy p + p { margin-top: 1.2rem; }
.intro__copy { color: var(--text-light-muted); font-size: 0.98rem; }
.intro__copy strong { color: var(--text-light); font-weight: 400; }
.intro__year {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-top: 2.4rem;
}
.intro__year-num {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 4.4rem);
  color: var(--ember-bright);
  line-height: 1;
}
.intro__year-label {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-light-muted);
  max-width: 20ch;
  line-height: 1.6;
}

/* ---------- Services ---------- */
.services-head { margin-bottom: clamp(2.5rem, 6vw, 4.5rem); max-width: 62ch; }
.services-head h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); margin-bottom: 1rem; }

.service {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}
.service + .service { margin-top: clamp(3.5rem, 8vw, 6.5rem); }
.service:nth-child(even) .service__media { order: 2; }

.service__media {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4 / 3.1;
}
.service__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-spring);
  will-change: transform;
}
.service__media:hover img { transform: scale(1.045); }
.service__media::after {
  content: "";
  position: absolute;
  inset: 0.9rem;
  border: 1px solid rgba(255, 250, 244, 0.35);
  border-radius: 2px;
  pointer-events: none;
}
.service__num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ember-deep);
  margin-bottom: 0.7rem;
}
.service h3 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: 1.1rem; }
.service p { max-width: 48ch; }
.service__list {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.service__list li {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  padding: 0.42rem 0.95rem;
  border: 1px solid rgba(42, 33, 27, 0.22);
  border-radius: 999px;
  color: var(--text-body);
  white-space: nowrap;
}
.service__link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1rem;
  padding-block: 0.65rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ember-deep);
}
.service__link::after {
  content: "";
  width: 2rem;
  height: 1px;
  background: var(--ember);
  transition: width 0.4s var(--ease-spring);
}
.service__link:hover::after { width: 3.2rem; }

/* ---------- Guarantee (signature band) ---------- */
.guarantee { position: relative; overflow: hidden; }
.guarantee::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -12%;
  width: 46vw;
  height: 46vw;
  border-radius: 50%;
  background: radial-gradient(circle, var(--ember-soft) 0%, transparent 68%);
  pointer-events: none;
}
.guarantee__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
  position: relative;
}
.guarantee h2 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin-bottom: 1.3rem;
}
.guarantee h2 em { font-style: italic; color: var(--ember-deep); }
.guarantee__quote {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-style: italic;
  color: var(--text-dark);
  line-height: 1.5;
  padding-left: 1.4rem;
  border-left: 2px solid var(--ember);
  margin-bottom: 1.6rem;
}
.guarantee__note { max-width: 46ch; }
.benefits { display: grid; gap: 0.9rem; }
.benefit {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  background: var(--cream);
  border: 1px solid rgba(42, 33, 27, 0.1);
  border-radius: 4px;
  padding: 1.05rem 1.3rem;
}
.benefit__mark {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 0 5px var(--ember-soft);
}
.benefit span { font-size: 0.92rem; color: var(--text-dark); font-weight: 400; }

/* ---------- Process ---------- */
.process-head { max-width: 60ch; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.process-head h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); margin-bottom: 1rem; }
.process {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(1.2rem, 2.5vw, 2rem);
}
.step { position: relative; padding-top: 1.6rem; }
.step::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 1px;
  background: rgba(42, 33, 27, 0.16);
}
.step::after {
  content: "";
  position: absolute;
  top: -2.5px; left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ember);
}
.step__num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--ember-deep);
  margin-bottom: 0.5rem;
}
.step h3 { font-size: 1.28rem; margin-bottom: 0.55rem; }
.step p { font-size: 0.86rem; line-height: 1.65; }

/* ---------- Testimonials ---------- */
.kind-head { margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.kind-head h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.quote {
  background: var(--char-2);
  border: 1px solid rgba(255, 250, 244, 0.07);
  border-radius: 4px;
  padding: clamp(1.6rem, 3vw, 2.3rem);
  display: flex;
  flex-direction: column;
}
.quote__mark {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 0.6;
  color: var(--ember-bright);
  margin-bottom: 1.2rem;
}
.quote p {
  font-size: 0.94rem;
  color: var(--text-light-muted);
  flex: 1;
}
.quote cite {
  display: block;
  margin-top: 1.6rem;
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light);
}
.quote cite::before {
  content: "";
  display: block;
  width: 2rem;
  height: 1px;
  background: var(--ember);
  margin-bottom: 0.8rem;
}

/* ---------- Shop ---------- */
.shop__grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.shop__media {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
}
.shop__media img { width: 100%; height: 100%; object-fit: cover; }
.shop__media::after {
  content: "";
  position: absolute;
  inset: 0.9rem;
  border: 1px solid rgba(255, 250, 244, 0.4);
  border-radius: 2px;
  pointer-events: none;
}
.shop h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); margin-bottom: 1.2rem; }
.shop h2 em { font-style: italic; color: var(--ember-deep); }
.shop p + p { margin-top: 1.1rem; }
.brands { margin-top: 2rem; }
.brands__label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}
.brands ul { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.brands li {
  font-size: 0.75rem;
  padding: 0.42rem 0.95rem;
  border: 1px solid rgba(42, 33, 27, 0.2);
  border-radius: 999px;
  white-space: nowrap;
}

/* ---------- CTA ---------- */
.cta {
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta::before {
  content: "";
  position: absolute;
  bottom: -55%;
  left: 50%;
  transform: translateX(-50%);
  width: 70vw;
  height: 70vw;
  max-width: 900px;
  max-height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 88, 40, 0.18) 0%, transparent 65%);
  pointer-events: none;
}
.cta__inner { position: relative; max-width: 780px; margin-inline: auto; }
.cta h2 {
  font-size: clamp(2.3rem, 5.4vw, 3.9rem);
  margin-bottom: 1.2rem;
}
.cta h2 em { font-style: italic; color: var(--ember-bright); }
.cta p { color: var(--text-light-muted); max-width: 52ch; margin: 0 auto 2.4rem; }
.cta__btns { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-bottom: 3rem; }
.cta__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  font-size: 0.85rem;
  color: var(--text-light-muted);
  line-height: 1.8;
}
.cta__meta strong {
  display: block;
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ember-bright);
  margin-bottom: 0.3rem;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--cream);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  border-top: 1px solid rgba(42, 33, 27, 0.08);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  margin-bottom: 3rem;
}
.footer__logo { width: 190px; margin-bottom: 1.2rem; }
.footer__tag { font-size: 0.88rem; max-width: 34ch; }
.footer h4 {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dark);
  margin-bottom: 1.1rem;
}
.footer ul li a, .footer address {
  display: inline-block;
  font-size: 0.88rem;
  font-style: normal;
  color: var(--text-body);
  padding-block: 0.65rem;
  transition: color 0.3s;
}
.footer ul li a:hover { color: var(--ember-deep); }
.footer address { padding-block: 0.3rem; line-height: 1.75; }
.footer address a { display: inline-block; padding-block: 0.65rem; }
.footer__bottom {
  border-top: 1px solid rgba(42, 33, 27, 0.08);
  padding-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.footer__social { display: flex; gap: 1.4rem; }
.footer__social a { padding-block: 0.65rem; color: var(--text-body); }
.footer__social a:hover { color: var(--ember-deep); }

/* ---------- 404 ---------- */
.error-section {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--char);
  padding: calc(var(--nav-height) + 2rem) 1.5rem 3rem;
}
.error__code {
  font-family: var(--font-display);
  font-size: clamp(6rem, 20vw, 12rem);
  line-height: 1;
  color: var(--ember-muted);
}
.error__title { font-size: clamp(1.8rem, 4.5vw, 2.8rem); color: var(--text-light); margin-bottom: 1rem; }
.error__body { color: var(--text-light-muted); max-width: 46ch; margin: 0 auto 2.2rem; }

/* ---------- Reveal (GSAP hook) ---------- */
.reveal { opacity: 0; transform: translateY(34px); }
html.no-js .reveal { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .process { grid-template-columns: repeat(3, 1fr); row-gap: 2.4rem; }
  .quotes { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; }
}

@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .burger { display: flex; }

  .intro__grid, .guarantee__grid, .shop__grid { grid-template-columns: 1fr; }
  .service, .service:nth-child(even) { grid-template-columns: 1fr; }
  .service:nth-child(even) .service__media { order: 0; }
  .shop__media { order: 0; }
}

@media (max-width: 768px) {
  .hero {
    height: auto;
    min-height: 100svh;
    padding-top: 6.5rem;
  }
  .process { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 480px) {
  .hero { padding-top: 5.5rem; }
  .hero__badge {
    font-size: 0.58rem;
    letter-spacing: 0.16em;
    line-height: 1.9;
  }
  .hero__badge::before, .hero__badge::after { display: none; }
  .hero__ctas .btn { width: 100%; justify-content: center; }
  .process { grid-template-columns: 1fr; }
  .cta__btns { flex-direction: column; align-items: stretch; }
  .cta__btns .btn { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
