/* Westcreek Custom Cabinets. Site concept.
   Design language: Earthy Organic (type, spacing, motion only).
   Colors extracted from Westcreek's own assets:
   logo ink (black), white oak cabinetry, walnut built-ins, stone and marble whites. */

:root {
  /* Backgrounds. Their stone walls, marble counters, warm plaster. */
  --linen:       #f5f1e8;
  --parchment:   #ebe4d6;
  /* Their logo ink warmed toward the charcoal cabinetry in their kitchen work. */
  --bark:        #211a12;
  --deep-earth:  #171209;

  /* Accents. Sampled from their white oak and walnut cabinetry photos. */
  --oak:         #c09a68;
  --oak-deep:    #8a6738;
  --oak-muted:   rgba(192, 154, 104, 0.32);
  --walnut:      #5f4830;

  /* Text */
  --text-dark:   #2a2115;
  --text-body:   #55493a;
  --text-muted:  #7d715f;
  --text-light:  rgba(255, 255, 255, 0.78);
  --text-light-muted: rgba(255, 255, 255, 0.55);

  /* Typography */
  --font-display: 'Libre Baskerville', Georgia, serif;
  --font-body: 'Source Sans 3', 'Helvetica Neue', sans-serif;

  /* Layout */
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-pad: clamp(3.5rem, 7vw, 5.5rem);
  --radius: 14px;

  /* Motion */
  --ease-organic: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text-dark);
  background: var(--linen);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.container {
  width: 100%;
  max-width: min(90%, 1100px);
  margin-inline: auto;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.01em;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--oak-deep);
  margin-bottom: 1.1rem;
}

.on-dark .eyebrow { color: var(--oak); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.85rem 1.7rem;
  transition: background 0.45s var(--ease-organic), color 0.45s var(--ease-organic), border-color 0.45s var(--ease-organic), transform 0.45s var(--ease-organic);
  will-change: transform;
}

.btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  flex-shrink: 0;
  transition: transform 0.45s var(--ease-organic);
}

.btn:hover .btn__icon { transform: translateX(3px); }

.btn__icon svg { width: 0.8rem; height: 0.8rem; }

.btn--solid {
  background: var(--oak-deep);
  color: #fff;
}
.btn--solid:hover { background: var(--walnut); }
.btn--solid .btn__icon { background: rgba(255, 255, 255, 0.18); }

.btn--ghost-light {
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
}
.btn--ghost-light:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255,255,255,0.7); }
.btn--ghost-light .btn__icon { background: rgba(255, 255, 255, 0.14); }

.btn--ghost-dark {
  border: 1px solid rgba(42, 33, 21, 0.35);
  color: var(--text-dark);
}
.btn--ghost-dark:hover { background: rgba(42, 33, 21, 0.06); }
.btn--ghost-dark .btn__icon { background: rgba(42, 33, 21, 0.08); }

.btn--oak-dark {
  background: var(--oak);
  color: var(--deep-earth);
}
.btn--oak-dark:hover { background: #d0ab79; }
.btn--oak-dark .btn__icon { background: rgba(23, 18, 9, 0.14); }

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  transition: background 0.5s var(--ease-organic), box-shadow 0.5s var(--ease-organic);
}

.nav__inner {
  max-width: min(94%, 1240px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.nav__logo img {
  height: 52px;
  width: auto;
  filter: invert(1) brightness(1.6);
  transition: filter 0.5s var(--ease-organic);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav__links a:not(.btn) {
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.4s var(--ease-organic);
}

.nav__links a:not(.btn):hover { color: #fff; }

.nav__links .btn { padding: 0.6rem 1.25rem; font-size: 0.88rem; }

.nav.is-solid {
  background: rgba(245, 241, 232, 0.96);
  box-shadow: 0 1px 0 rgba(42, 33, 21, 0.08);
}

.nav.is-solid .nav__logo img { filter: none; }

.nav.is-solid .nav__links a:not(.btn) { color: var(--text-body); }
.nav.is-solid .nav__links a:not(.btn):hover { color: var(--text-dark); }

.nav__burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  position: relative;
  z-index: 80;
}

.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 5px auto;
  transition: transform 0.4s var(--ease-organic), opacity 0.4s var(--ease-organic), background 0.4s var(--ease-organic);
}

.nav.is-solid .nav__burger span { background: var(--text-dark); }

body.menu-open .nav__burger span { background: #fff; }
body.menu-open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .nav__burger span:nth-child(2) { opacity: 0; }
body.menu-open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Mobile menu ---------- */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: var(--deep-earth);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--gutter);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease-organic), visibility 0.5s var(--ease-organic);
}

body.menu-open .mobile-menu { opacity: 1; visibility: visible; }

.mobile-menu ul { list-style: none; }

.mobile-menu li { margin-bottom: 1.4rem; }

.mobile-menu a:not(.btn) {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 7vw, 2.6rem);
  color: var(--text-light);
  text-decoration: none;
}

.mobile-menu a:not(.btn):hover { color: var(--oak); }

.mobile-menu__divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.14);
  margin: 1.8rem 0;
}

.mobile-menu__contact p {
  color: var(--text-light-muted);
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.mobile-menu__contact a {
  color: var(--oak);
  text-decoration: none;
}

.mobile-menu__contact p,
.mobile-menu__contact a,
.footer__contact p,
.footer__contact a,
.cta__meta p {
  overflow-wrap: anywhere;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.hero__media {
  position: absolute;
  inset: -12% 0 0 0;
  z-index: 1;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(23, 18, 9, 0.42) 0%, rgba(23, 18, 9, 0.18) 45%, rgba(23, 18, 9, 0.78) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: clamp(3rem, 8vh, 5.5rem);
}

.hero__eyebrow {
  color: var(--oak);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.1rem, 5.4vw, 3.9rem);
  max-width: 17ch;
  margin-bottom: 1.3rem;
}

.hero__sub {
  color: var(--text-light);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  font-weight: 300;
  max-width: 54ch;
  margin-bottom: 2.2rem;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ---------- Intro (dark) ---------- */

.section {
  padding-block: var(--section-pad);
}

.section--dark {
  background: var(--bark);
  color: var(--text-light);
}

.section--deep {
  background: var(--deep-earth);
  color: var(--text-light);
}

.section--parchment { background: var(--parchment); }

.intro__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.intro h2 {
  color: #fff;
  font-size: clamp(1.7rem, 3.6vw, 2.7rem);
  max-width: 16ch;
}

.intro__body p {
  color: var(--text-light);
  font-weight: 300;
  font-size: 1.05rem;
  margin-bottom: 1.2rem;
}

.badge-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid var(--oak-muted);
  border-radius: 999px;
  padding: 0.55rem 1.15rem;
  margin-top: 0.6rem;
}

.badge-chip__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--oak);
  flex-shrink: 0;
}

.badge-chip span {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--oak);
}

/* ---------- Services ---------- */

.services-head {
  max-width: 60ch;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.services-head h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.7rem);
  margin-bottom: 1rem;
}

.services-head p {
  color: var(--text-body);
  font-size: 1.05rem;
  max-width: 52ch;
}

.service {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-block: clamp(1.8rem, 4vw, 3rem);
}

.service + .service {
  border-top: 1px solid rgba(42, 33, 21, 0.1);
}

.service__media {
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 4.6;
}

.service__media--wide { aspect-ratio: 4 / 3.1; }

.service__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 1.2s var(--ease-organic);
}

.service:hover .service__media img { transform: scale(1.0); }

.service:nth-child(even) .service__media { order: 2; }

.service__num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--oak-deep);
  margin-bottom: 0.9rem;
}

.service h3 {
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  margin-bottom: 1rem;
}

.service p {
  color: var(--text-body);
  max-width: 46ch;
  margin-bottom: 1rem;
}

.service__note {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ---------- Spotlight (whiskey bar) ---------- */

.spotlight {
  position: relative;
  overflow: hidden;
}

.spotlight__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.spotlight__media {
  border-radius: var(--radius);
  overflow: hidden;
}

.spotlight__media img { width: 100%; height: auto; }

.spotlight__caption {
  margin-top: 0.8rem;
  font-size: 0.85rem;
  color: var(--text-light-muted);
  font-style: italic;
}

.spotlight h2 {
  color: #fff;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  max-width: 18ch;
  margin-bottom: 1.2rem;
}

.spotlight p {
  color: var(--text-light);
  font-weight: 300;
  font-size: 1.05rem;
  max-width: 48ch;
  margin-bottom: 1.6rem;
}

/* ---------- Difference ---------- */

.difference-head {
  text-align: center;
  max-width: 62ch;
  margin-inline: auto;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.difference-head h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.7rem);
}

.difference__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 2.5vw, 2rem);
}

.pillar {
  background: var(--linen);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  border: 1px solid rgba(42, 33, 21, 0.06);
}

.pillar__num {
  font-family: var(--font-display);
  color: var(--oak-deep);
  font-size: 0.95rem;
  margin-bottom: 1.1rem;
}

.pillar h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

.pillar p {
  color: var(--text-body);
  font-size: 0.98rem;
}

/* ---------- Gallery strip ---------- */

.gallery-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  flex-wrap: wrap;
}

.gallery-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  max-width: 18ch;
}

.gallery-head p {
  color: var(--text-body);
  max-width: 40ch;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.6rem);
}

.gallery__item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  aspect-ratio: 3 / 3.8;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 1.2s var(--ease-organic);
}

.gallery__item:hover img { transform: scale(1.0); }

.gallery__label {
  position: absolute;
  left: 0.9rem;
  bottom: 0.9rem;
  right: 0.9rem;
  background: rgba(23, 18, 9, 0.72);
  backdrop-filter: blur(4px);
  color: var(--text-light);
  border-radius: 10px;
  padding: 0.55rem 0.9rem;
  font-size: 0.83rem;
  letter-spacing: 0.02em;
}

/* ---------- CTA ---------- */

.cta {
  text-align: center;
}

.cta h2 {
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 2.9rem);
  max-width: 20ch;
  margin-inline: auto;
  margin-bottom: 1.1rem;
}

.cta > .container > p {
  color: var(--text-light);
  font-weight: 300;
  max-width: 50ch;
  margin-inline: auto;
  margin-bottom: 2rem;
}

.cta__buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.6rem;
}

.cta__meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 2rem;
  max-width: 760px;
  margin-inline: auto;
}

.cta__meta div { text-align: center; }

.cta__meta h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--oak);
  margin-bottom: 0.4rem;
}

.cta__meta p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ---------- Footer ---------- */

.footer {
  background: var(--deep-earth);
  color: var(--text-light-muted);
  padding-block: clamp(2.5rem, 5vw, 3.5rem) 1.8rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: 2.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__brand img {
  height: 74px;
  width: auto;
  filter: invert(1) brightness(1.6);
  margin-bottom: 1rem;
}

.footer__brand p {
  font-size: 0.92rem;
  max-width: 34ch;
}

.footer h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--oak);
  margin-bottom: 1rem;
}

.footer ul { list-style: none; }

.footer li { margin-bottom: 0.55rem; }

.footer a {
  color: var(--text-light-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.4s var(--ease-organic);
}

.footer a:hover { color: var(--oak); }

.footer__contact p {
  font-size: 0.95rem;
  margin-bottom: 0.55rem;
}

.footer__bottom {
  padding-top: 1.6rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-size: 0.82rem;
}

/* ---------- 404 ---------- */

.error-section {
  min-height: 100vh;
  min-height: 100svh;
  background: var(--bark);
  display: flex;
  align-items: center;
  text-align: center;
  padding-block: 7rem 4rem;
}

.error__code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 16vw, 9rem);
  color: var(--oak-muted);
  line-height: 1;
  margin-bottom: 1rem;
}

.error-section h1 {
  color: #fff;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  margin-bottom: 1rem;
}

.error-section p {
  color: var(--text-light);
  font-weight: 300;
  max-width: 46ch;
  margin-inline: auto;
  margin-bottom: 2rem;
}

/* ---------- Reveal animations ---------- */

.reveal { opacity: 0; transform: translateY(28px); }

html.no-js .reveal,
body.no-gsap .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .intro__grid { grid-template-columns: 1fr; }
  .intro h2 { max-width: none; }
}

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__burger { display: block; }

  .service { grid-template-columns: 1fr; }
  .service:nth-child(even) .service__media { order: 0; }
  .service__media { aspect-ratio: 4 / 3; }

  .spotlight__grid { grid-template-columns: 1fr; }

  .difference__grid { grid-template-columns: 1fr; }

  .gallery__grid { grid-template-columns: 1fr; }
  .gallery__item { aspect-ratio: 4 / 3.4; }

  .footer__grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hero:not([style]) {
    height: auto;
    min-height: 100svh;
    padding-top: 6.5rem;
  }

  .hero h1 { max-width: none; }

  .footer a { display: inline-block; padding-block: 0.65rem; }
  .footer li { margin-bottom: 0.15rem; }
}

@media (max-width: 480px) {
  .hero:not([style]) { padding-top: 5.5rem; }

  .btn { padding: 0.8rem 1.4rem; font-size: 0.9rem; }

  .cta__meta { flex-direction: column; gap: 1.4rem; }
}
