/* PDX Woodworks concept - Urban Sophisticate (#10) type/spacing/motion,
   palette from PDX Woodworks' real logo (tan #c3996b, brown #8a5d3b, black) */

:root {
  /* Dark family: logo black deepened warm */
  --ink:        #100d0b;
  --ink-2:      #171310;
  --espresso:   #1f1915;
  /* Light family: warm parchment from their photography */
  --parchment:  #f4efe8;
  --wheat:      #ece5da;
  /* Accent: logo tan + logo brown */
  --tan:        #c3996b;
  --tan-bright: #d4ab7d;
  --tan-muted:  rgba(195,153,107,0.32);
  --brown:      #8a5d3b;
  --brown-deep: #6f4526;
  /* Text */
  --text-dark:  #1f1915;
  --text-body:  #4c443c;
  --text-muted: #6f675e;
  --text-light: #f4efe8;
  --text-light-muted: rgba(244,239,232,0.62);
  /* Type */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Work Sans', -apple-system, sans-serif;
  /* Layout */
  --wrap: min(90%, 1100px);
  --nav-h: 80px;
  /* Motion (Urban Sophisticate) */
  --ease: 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: 300;
  color: var(--text-body);
  background: var(--parchment);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--wrap); margin-inline: auto; }

/* ---------- Eyebrows / titles ---------- */
.eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brown);
  margin-bottom: 1.1rem;
}
.eyebrow--on-dark { color: var(--tan-bright); }
.section-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  line-height: 1.12;
  color: var(--text-dark);
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}
.section-title--light { color: var(--text-light); }
.section-sub { max-width: 46ch; font-size: 1.02rem; }

/* ---------- Buttons ---------- */
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  background: var(--espresso);
  color: var(--text-light);
  transition: background 0.35s var(--ease), transform 0.35s var(--ease), color 0.35s var(--ease);
  will-change: transform;
}
.btn-pill--sm { padding: 0.6rem 1.2rem; font-size: 0.85rem; }
.btn-pill--lg { padding: 1.05rem 2rem; font-size: 1rem; }
.btn-pill--accent { background: var(--brown); color: #fff; }
.btn-pill--accent:hover { background: var(--brown-deep); }
.btn-pill--ghost {
  background: transparent;
  color: var(--text-light);
  box-shadow: inset 0 0 0 1px rgba(244,239,232,0.4);
}
.btn-pill--ghost:hover { box-shadow: inset 0 0 0 1px var(--tan); color: var(--tan-bright); }
.btn-pill__icon {
  display: inline-flex;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
  align-items: center;
  justify-content: center;
  transition: transform 0.35s var(--ease);
}
.btn-pill__icon svg { width: 13px; height: 13px; }
.btn-pill:hover .btn-pill__icon { transform: rotate(-45deg); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.nav__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.nav.scrolled {
  background: rgba(16,13,11,0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(195,153,107,0.18);
}
.nav__logo-img { height: 30px; width: auto; max-width: 200px; object-fit: contain; }
.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__link {
  font-size: 0.88rem;
  font-weight: 400;
  color: rgba(244,239,232,0.78);
  transition: color 0.3s;
}
.nav__link:hover { color: var(--tan-bright); }
.nav__cta { color: #fff; }
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 10px;
  z-index: 300;
}
.nav__burger span {
  width: 24px; height: 2px;
  background: var(--text-light);
  transition: transform 0.35s var(--ease), opacity 0.3s;
}
.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu__inner { text-align: center; padding: 2rem; }
.mobile-menu__link {
  display: block;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2rem, 8vw, 2.8rem);
  color: var(--text-light);
  padding: 0.55rem 0;
  transition: color 0.3s;
}
.mobile-menu__link:hover { color: var(--tan-bright); }
.mobile-menu__divider {
  width: 56px; height: 1px;
  background: var(--tan-muted);
  margin: 1.4rem auto;
}
.mobile-menu__cta { display: inline-block; }
.mobile-menu__meta {
  margin-top: 1.6rem;
  font-size: 0.85rem;
  color: var(--text-light-muted);
  line-height: 1.7;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  background: var(--ink);
  position: relative;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 15% 20%, rgba(195,153,107,0.10), transparent 60%),
    radial-gradient(ellipse 50% 40% at 90% 90%, rgba(138,93,59,0.12), transparent 60%);
  pointer-events: none;
}
.hero__grid {
  max-width: var(--wrap);
  margin-inline: auto;
  width: 100%;
  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, 6vw, 5rem);
  position: relative;
  z-index: 1;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.6rem, 4.6vw, 4.1rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
  color: var(--text-light);
  margin-bottom: 1.4rem;
}
.hero__title em {
  font-style: italic;
  color: var(--tan-bright);
}
.hero__sub {
  font-size: 1.06rem;
  color: var(--text-light-muted);
  max-width: 44ch;
  margin-bottom: 2.2rem;
}
.hero__ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__media { position: relative; }
.hero__frame {
  position: relative;
  border-radius: 4px;
}
.hero__frame::before {
  content: "";
  position: absolute;
  inset: -14px 14px 14px -14px;
  border: 1px solid var(--tan-muted);
  border-radius: 4px;
  pointer-events: none;
}
.hero__img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.6);
}
.hero__chip {
  position: absolute;
  left: -1rem;
  bottom: 1.4rem;
  max-width: 100%;
  background: var(--parchment);
  color: var(--text-dark);
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.6rem;
  transform: translateX(-50%);
  z-index: 1;
}
.hero__scroll-line {
  display: block;
  width: 1px; height: 44px;
  background: linear-gradient(var(--tan), transparent);
  animation: scrollpulse 2.4s var(--ease) infinite;
}
@keyframes scrollpulse {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- Intro ---------- */
.intro {
  background: var(--ink-2);
  padding-block: clamp(4rem, 8vw, 6.5rem);
  border-top: 1px solid rgba(195,153,107,0.14);
}
.intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.intro__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  line-height: 1.16;
  color: var(--text-light);
}
.intro__right p {
  color: var(--text-light-muted);
  font-size: 1.02rem;
  margin-bottom: 1.2rem;
}
.intro__right p:last-child { margin-bottom: 0; }

/* ---------- Collection rail ---------- */
.collection {
  background: var(--parchment);
  padding-block: clamp(4rem, 8vw, 6.5rem) clamp(2.5rem, 4vw, 3.5rem);
}
.collection__head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.rail {
  overflow-x: auto;
  overflow-y: hidden;
  cursor: grab;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scroll-padding-inline: max(5vw, calc((100vw - min(90vw, 1100px)) / 2));
}
.rail::-webkit-scrollbar { display: none; }
.rail.dragging { cursor: grabbing; scroll-snap-type: none; }
.rail__track {
  display: flex;
  gap: clamp(1.2rem, 2.5vw, 2rem);
  padding-inline: max(5vw, calc((100vw - min(90vw, 1100px)) / 2));
  width: max-content;
}
.rail__card {
  width: clamp(260px, 32vw, 400px);
  flex-shrink: 0;
  scroll-snap-align: start;
  user-select: none;
}
.rail__imgwrap {
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--wheat);
}
.rail__imgwrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
  pointer-events: none;
}
.rail__card:hover .rail__imgwrap img { transform: scale(1.04); }
.rail__card figcaption { padding-top: 1rem; }
.rail__name {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.25rem;
  color: var(--text-dark);
}
.rail__note {
  display: block;
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}
.rail__hintwrap { text-align: center; }
.rail__hint {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-top: 1.4rem;
}
.rail__hint-icon { width: 18px; height: 18px; }

/* ---------- Woods ---------- */
.woods {
  background: var(--espresso);
  padding-block: clamp(4rem, 8vw, 6.5rem);
}
.woods__row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: 2.5rem;
}
.woods__item {
  border-top: 1px solid rgba(195,153,107,0.25);
  padding-top: 1.4rem;
}
.woods__swatch {
  display: block;
  width: 100%;
  height: 90px;
  border-radius: 3px;
  margin-bottom: 1.1rem;
}
.woods__swatch--cherry { background: linear-gradient(135deg, #7c4a2d, #9c6240 55%, #6e3d24); }
.woods__swatch--walnut { background: linear-gradient(135deg, #4a3423, #5f4630 55%, #3c2a1c); }
.woods__swatch--maple  { background: linear-gradient(135deg, #d9bd93, #e7d2ac 55%, #c9a97a); }
.woods__name {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.35rem;
  color: var(--text-light);
}
.woods__note {
  display: block;
  font-size: 0.88rem;
  color: var(--text-light-muted);
  margin-top: 0.25rem;
}
.woods__foot {
  margin-top: 2.6rem;
  color: var(--text-light-muted);
  font-size: 0.98rem;
  max-width: 60ch;
}

/* ---------- Services ---------- */
.services {
  background: var(--wheat);
  padding-block: clamp(4rem, 8vw, 6.5rem);
}
.services__rows { margin-top: 2.5rem; display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
.service-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3.5vw, 3rem);
  align-items: center;
  padding-block: clamp(1.5rem, 3vw, 2.5rem);
  border-top: 1px solid rgba(31,25,21,0.14);
}
.service-row__num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--brown);
}
.service-row__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  color: var(--text-dark);
  margin-bottom: 0.7rem;
}
.service-row__body p { font-size: 0.98rem; max-width: 52ch; }
.service-row__media {
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.service-row__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.service-row:hover .service-row__media img { transform: scale(1.04); }

/* ---------- Story ---------- */
.story {
  background: var(--ink);
  padding-block: clamp(4rem, 8vw, 7rem);
}
.story__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}
.story__media { position: relative; }
.story__portrait {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 30px 60px -18px rgba(0,0,0,0.55);
}
.story__badge {
  position: absolute;
  right: -0.8rem;
  bottom: 1.6rem;
  max-width: 100%;
  background: var(--tan);
  color: var(--ink);
  border-radius: 4px;
  padding: 0.8rem 1.2rem;
  box-shadow: 0 16px 36px rgba(0,0,0,0.4);
}
.story__badge-top {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.story__badge-big {
  display: block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
}
.story__text p {
  color: var(--text-light-muted);
  font-size: 1rem;
  margin-bottom: 1.2rem;
}
.story__shopshot { margin-top: 2rem; }
.story__shopshot img {
  width: 100%;
  border-radius: 4px;
}
.story__shopshot-cap {
  display: block;
  font-size: 0.82rem;
  color: var(--text-light-muted);
  margin-top: 0.6rem;
}

/* ---------- Reviews ---------- */
.reviews {
  background: var(--parchment);
  padding-block: clamp(4rem, 8vw, 6.5rem);
}
.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.4rem, 2.5vw, 2rem);
  margin-top: 2.5rem;
}
.review-card {
  background: #fbf8f3;
  border: 1px solid rgba(31,25,21,0.08);
  border-radius: 6px;
  padding: clamp(1.5rem, 2.5vw, 2.2rem);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.review-card__stars { display: flex; gap: 3px; color: var(--tan); }
.review-card__stars svg { width: 15px; height: 15px; }
.review-card__quote {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.06rem;
  line-height: 1.5;
  color: var(--text-dark);
  flex: 1;
}
.review-card__by {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--brown);
}
.reviews__note {
  margin-top: 1.8rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---------- CTA ---------- */
.cta {
  background: var(--espresso);
  padding-block: clamp(4.5rem, 9vw, 7.5rem);
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 60% at 50% 110%, rgba(195,153,107,0.16), transparent 65%);
  pointer-events: none;
}
.cta__inner { text-align: center; position: relative; z-index: 1; }
.cta__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  color: var(--text-light);
  letter-spacing: -0.01em;
  margin-bottom: 1.2rem;
}
.cta__sub {
  color: var(--text-light-muted);
  max-width: 52ch;
  margin: 0 auto 2.4rem;
  font-size: 1.02rem;
}
.cta__buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.8rem;
}
.cta__meta {
  font-size: 0.88rem;
  color: var(--text-light-muted);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  border-top: 1px solid rgba(195,153,107,0.14);
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: 2.5rem;
}
.footer__logo { height: 34px; width: auto; max-width: 220px; object-fit: contain; margin-bottom: 1.1rem; }
.footer__tag { font-size: 0.9rem; color: var(--text-light-muted); max-width: 34ch; }
.footer__head {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--tan-bright);
  margin-bottom: 1rem;
}
.footer__link {
  display: block;
  font-size: 0.92rem;
  color: rgba(244,239,232,0.72);
  padding-block: 0.3rem;
  transition: color 0.3s;
}
.footer__link:hover { color: var(--tan-bright); }
.footer__link--plain { color: var(--text-light-muted); }
.footer__base {
  border-top: 1px solid rgba(244,239,232,0.1);
  padding-top: 1.6rem;
  font-size: 0.82rem;
  color: var(--text-light-muted);
}

/* ---------- Reveal animation base ---------- */
.reveal, .reveal-hero { opacity: 0; }
html.no-js .reveal, html.no-js .reveal-hero { opacity: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .hero__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero__media { order: 2; }
  .intro__grid { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: auto 1fr; }
  .service-row__media { grid-column: 1 / -1; order: 3; }
  .story__grid { grid-template-columns: 1fr; }
  .story__media { max-width: 420px; }
  .reviews__grid { grid-template-columns: 1fr; }
  .woods__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hero {
    min-height: 100svh;
    height: auto;
    padding-top: calc(var(--nav-h) + 1rem);
  }
  .hero__chip { left: 0.6rem; bottom: 0.9rem; }
  .story__badge { right: 0.6rem; bottom: 1rem; }
  .footer__link { padding-block: 0.65rem; }
}

@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; }
  .cta__buttons .btn-pill--lg { padding: 0.95rem 1.4rem; font-size: 0.92rem; }
  .rail__card { width: min(78vw, 340px); }
}

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