/* Pro-Tech Woodworking - homepage concept
   Design language: Studio Creative (#11) for type/spacing/composition/motion ONLY.
   Palette: prospect's real brand colors. Maroon #8e0b0b (their button color + logo
   pinwheel red #800000), black #111 (logo), warm neutrals from their photography. */

:root {
  /* Prospect-derived palette */
  --paper:        #f5f2ec;
  --light-tan:    #eae5db;
  --ink:          #161414;
  --deep-ink:     #0d0c0c;
  --graphite:     #5c5654;
  --maroon:       #8e0b0b;
  --maroon-deep:  #6d0808;
  --maroon-bright:#e05c5c;
  --maroon-muted: rgba(142,11,11,0.28);
  --text-light:   rgba(255,255,255,0.92);
  --text-light-muted: rgba(255,255,255,0.62);
  --text-dark:    #161414;
  --text-body:    #4a4542;
  --text-muted:   #6e6862;

  /* Type (Studio Creative) */
  --font-display: "Syne", sans-serif;
  --font-body:    "DM Sans", sans-serif;

  /* Layout */
  --wrap:         min(92%, 1180px);
  --gutter:       clamp(1.5rem, 4vw, 3rem);
  --nav-h:        84px;

  /* Motion (Studio Creative: playful spring) */
  --ease-spring:  cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out:     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-body);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.wrap { width: var(--wrap); margin-inline: auto; }

h1, h2, h3 { font-family: var(--font-display); color: var(--text-dark); line-height: 1.06; }

/* ---------- eyebrow ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 0.85rem;
  font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--maroon);
  margin-bottom: 1.4rem;
}
.eyebrow__rule { width: 42px; height: 2px; background: var(--maroon); flex: none; }
.eyebrow--on-dark { color: var(--maroon-bright); }
.eyebrow--on-dark .eyebrow__rule { background: var(--maroon-bright); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.7rem;
  padding: 0.95rem 1.7rem;
  border-radius: 999px;
  font-family: var(--font-body); font-weight: 500; font-size: 0.95rem;
  line-height: 1; cursor: pointer;
  transition: transform 0.35s var(--ease-spring), background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  will-change: transform;
}
.btn__ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,0.16);
  transition: transform 0.35s var(--ease-spring);
}
.btn__ico svg { width: 14px; height: 14px; }
.btn:hover .btn__ico { transform: rotate(45deg); }
.btn--solid { background: var(--ink); color: #fff; }
.btn--solid:hover { background: var(--maroon); }
.btn--accent { background: var(--maroon); color: #fff; }
.btn--accent:hover { background: var(--maroon-deep); }
.btn--ghost { border: 1.5px solid rgba(22,20,20,0.35); color: var(--text-dark); }
.btn--ghost:hover { border-color: var(--maroon); color: var(--maroon); }
.btn--ghost-light { border: 1.5px solid rgba(255,255,255,0.4); color: var(--text-light); }
.btn--ghost-light:hover { border-color: #fff; color: #fff; }
.btn--light { background: #fff; color: var(--ink); }
.btn--sm { padding: 0.7rem 1.25rem; font-size: 0.88rem; }
.btn--sm .btn__ico { width: 24px; height: 24px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}
.nav__inner {
  width: var(--wrap); margin-inline: auto;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 2rem;
}
.nav__brand { display: inline-flex; align-items: center; }
.nav__logo { width: auto; height: 40px; max-width: 210px; object-fit: contain; }
.nav__links { display: flex; gap: 1.9rem; margin-left: auto; }
.nav__links a {
  font-size: 0.9rem; font-weight: 500; color: var(--text-dark);
  position: relative; padding-block: 0.4rem;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px; background: var(--maroon);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.nav__links a:hover::after { transform: scaleX(1); }
.nav.scrolled { background: rgba(245,242,236,0.94); backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(22,20,20,0.08); }
.nav__burger {
  display: none; margin-left: auto;
  width: 46px; height: 46px; border: none; background: transparent; cursor: pointer;
  position: relative; z-index: 120;
}
.nav__burger span {
  position: absolute; left: 11px; right: 11px; height: 2px;
  background: var(--ink); transition: transform 0.3s var(--ease-out), top 0.3s;
}
.nav__burger span:first-child { top: 19px; }
.nav__burger span:last-child { top: 26px; }
.nav__burger.open span:first-child { top: 22px; transform: rotate(45deg); }
.nav__burger.open span:last-child { top: 22px; transform: rotate(-45deg); }

/* ---------- mobile menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 110;
  background: var(--deep-ink);
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(2rem, 8vw, 4rem);
  opacity: 0; visibility: hidden; transition: opacity 0.35s ease, visibility 0.35s;
}
.menu.open { opacity: 1; visibility: visible; }
.menu__close {
  position: absolute; top: 1.4rem; right: 1.4rem; z-index: 130;
  width: 48px; height: 48px; border: none; border-radius: 50%;
  background: rgba(255,255,255,0.08); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.menu__close svg { width: 20px; height: 20px; }
.menu__links { display: flex; flex-direction: column; gap: 0.4rem; }
.menu__links a {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2rem, 9vw, 3rem); color: #fff; line-height: 1.25;
  transition: color 0.25s ease, transform 0.3s var(--ease-spring);
}
.menu__links a:hover { color: var(--maroon-bright); transform: translateX(8px); }
.menu__foot { margin-top: 2.6rem; display: flex; flex-direction: column; gap: 1.1rem; align-items: flex-start; }
.menu__mail { color: var(--text-light-muted); font-size: 0.95rem; }

/* ---------- hero ---------- */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex; align-items: center;
  padding-top: calc(var(--nav-h) + 2rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  background:
    radial-gradient(60% 50% at 85% 15%, var(--maroon-muted) 0%, transparent 70%),
    var(--paper);
  overflow: hidden;
}
.hero__grid {
  width: var(--wrap); margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero__title {
  font-size: clamp(2.5rem, 5.2vw, 4.3rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  margin-bottom: 1.5rem;
}
.hero__title em { font-style: normal; color: var(--maroon); }
.hero__sub {
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  max-width: 34rem;
  margin-bottom: 2.1rem;
  color: var(--text-body);
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 2.2rem; }
.hero__fact {
  font-size: 0.85rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-muted);
  display: flex; align-items: center; gap: 0.8rem;
}
.hero__fact::before { content: ""; width: 34px; height: 1.5px; background: var(--maroon); }
.hero__media { position: relative; }
.hero__frame {
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4 / 4.6;
  box-shadow: 0 40px 80px -30px rgba(22,20,20,0.45);
}
.hero__img { width: 100%; height: 110%; object-fit: cover; }
.hero__tag {
  position: absolute; left: -1.2rem; bottom: 2rem;
  max-width: 100%;
  background: var(--maroon); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 0.95rem;
  padding: 0.85rem 1.4rem; border-radius: 999px;
  box-shadow: 0 18px 40px -12px rgba(142,11,11,0.55);
}

/* ---------- intro (dark) ---------- */
.intro {
  background: var(--ink);
  padding-block: clamp(4.5rem, 9vw, 7.5rem);
}
.intro__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
}
.intro__title { color: #fff; font-size: clamp(1.9rem, 3.4vw, 2.9rem); font-weight: 700; }
.intro__right p { color: var(--text-light-muted); margin-bottom: 1.2rem; font-size: 1.02rem; }
.intro__right p strong { color: #fff; }
.intro__marks {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1.2rem; margin-top: 2.4rem;
  border-top: 1px solid rgba(255,255,255,0.14);
  padding-top: 2rem;
}
.mark__num {
  display: block;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  color: var(--maroon-bright);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.mark__lbl { font-size: 0.82rem; color: var(--text-light-muted); line-height: 1.45; display: block; }

/* ---------- work rail (light) ---------- */
.work { padding-block: clamp(4.5rem, 9vw, 7.5rem); background: var(--paper); }
.work__head { max-width: 46rem; margin-bottom: 3rem; }
.work__title { font-size: clamp(1.9rem, 3.4vw, 2.9rem); font-weight: 700; margin-bottom: 1rem; }
.work__sub { font-size: 1.02rem; }
.work__rail {
  display: flex; gap: 1.4rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.5rem 0.5rem 1.4rem;
  scroll-padding-inline: 0.5rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
}
.work__rail::-webkit-scrollbar { display: none; }
.work__rail.dragging { cursor: grabbing; scroll-snap-type: none; }
.work__card {
  position: relative; flex: 0 0 min(78vw, 460px);
  scroll-snap-align: start;
  border-radius: 16px; overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--light-tan);
}
.work__card--tall { flex-basis: min(64vw, 380px); aspect-ratio: 3 / 3.6; }
.work__card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.work__card:hover img { transform: scale(1.045); }
.work__card figcaption {
  position: absolute; inset: auto 0 0 0;
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: 1.05rem 1.2rem;
  background: rgba(13,12,12,0.82);
  color: #fff;
}
.work__cat { font-family: var(--font-display); font-weight: 700; font-size: 1rem; }
.work__note { font-size: 0.8rem; color: rgba(255,255,255,0.92); text-align: right; }
.work__hint { font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }

/* ---------- services (dark) ---------- */
.services { background: var(--deep-ink); padding-block: clamp(4.5rem, 9vw, 7.5rem); }
.services__head { max-width: 48rem; margin-bottom: 3.2rem; }
.services__title { color: #fff; font-size: clamp(1.9rem, 3.4vw, 2.9rem); font-weight: 700; }
.srow {
  display: grid; grid-template-columns: 70px minmax(0,1fr) 54px;
  gap: clamp(1rem, 3vw, 2.4rem);
  align-items: center;
  padding-block: clamp(1.6rem, 3vw, 2.3rem);
  border-top: 1px solid rgba(255,255,255,0.13);
  transition: background 0.3s ease, padding-left 0.35s var(--ease-out);
}
.services__rows .srow:last-child { border-bottom: 1px solid rgba(255,255,255,0.13); }
.srow:hover { background: rgba(255,255,255,0.03); padding-left: 0.8rem; }
.srow__num {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--maroon-bright);
}
.srow__body h3 { color: #fff; font-size: clamp(1.25rem, 2.2vw, 1.7rem); font-weight: 700; margin-bottom: 0.5rem; }
.srow__body p { color: var(--text-light-muted); font-size: 0.98rem; max-width: 44rem; }
.srow__arrow {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.22);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.35s var(--ease-spring);
}
.srow__arrow svg { width: 18px; height: 18px; }
.srow:hover .srow__arrow { background: var(--maroon); border-color: var(--maroon); transform: rotate(45deg); }

/* ---------- full bleed ---------- */
.bleed { position: relative; height: clamp(320px, 55vh, 560px); overflow: hidden; }
.bleed img { width: 100%; height: 118%; object-fit: cover; }
.bleed__caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 4rem var(--gutter) 1.6rem;
  background: linear-gradient(rgba(13,12,12,0) 0%, rgba(13,12,12,0.72) 45%, rgba(13,12,12,0.9) 100%);
}
.bleed__caption p {
  width: var(--wrap); margin-inline: auto;
  color: rgba(255,255,255,0.92);
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  max-width: 52rem;
}

/* ---------- process (light) ---------- */
.process { background: var(--light-tan); padding-block: clamp(4.5rem, 9vw, 7.5rem); }
.process__head { max-width: 44rem; margin-bottom: 3rem; }
.process__title { font-size: clamp(1.9rem, 3.4vw, 2.9rem); font-weight: 700; }
.process__grid {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 1.4rem;
}
.pstep {
  background: var(--paper);
  border-radius: 16px;
  padding: 1.8rem 1.6rem 2rem;
  border-top: 3px solid var(--maroon);
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s ease;
}
.pstep:hover { transform: translateY(-6px); box-shadow: 0 24px 44px -20px rgba(22,20,20,0.28); }
.pstep__num {
  display: block;
  font-family: var(--font-display); font-weight: 800;
  font-size: 2rem; color: var(--maroon);
  margin-bottom: 1rem; line-height: 1;
}
.pstep h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.6rem; }
.pstep p { font-size: 0.92rem; color: var(--text-body); }

/* ---------- quotes (dark) ---------- */
.quotes { background: var(--ink); padding-block: clamp(4.5rem, 9vw, 7.5rem); }
.quotes__head { max-width: 44rem; margin-bottom: 3rem; }
.quotes__title { color: #fff; font-size: clamp(1.9rem, 3.4vw, 2.9rem); font-weight: 700; }
.quotes__grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.4rem; }
.quote {
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 1.9rem 1.7rem;
  display: flex; flex-direction: column; gap: 1.4rem;
}
.quote p { color: rgba(255,255,255,0.85); font-size: 0.98rem; line-height: 1.7; }
.quote footer {
  margin-top: auto;
  font-family: var(--font-display); font-weight: 700;
  color: var(--maroon-bright); font-size: 0.95rem;
}

/* ---------- area (light) ---------- */
.area { background: var(--paper); padding-block: clamp(4.5rem, 9vw, 7rem); }
.area__grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.1fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.area__title { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 700; margin-bottom: 1.1rem; }
.area__sub { font-size: 1rem; }
.area__list { list-style: none; display: flex; flex-wrap: wrap; gap: 0.55rem; }
.area__list li {
  font-size: 0.85rem; font-weight: 500;
  padding: 0.5rem 1rem;
  border: 1.5px solid rgba(22,20,20,0.16);
  border-radius: 999px;
  color: var(--text-dark);
  transition: border-color 0.25s ease, color 0.25s ease, transform 0.3s var(--ease-spring);
}
.area__list li:hover { border-color: var(--maroon); color: var(--maroon); transform: translateY(-2px); }

/* ---------- CTA (dark) ---------- */
.cta {
  background:
    radial-gradient(55% 60% at 12% 8%, rgba(142,11,11,0.32) 0%, transparent 70%),
    var(--deep-ink);
  padding-block: clamp(5rem, 10vw, 8rem);
  text-align: center;
}
.cta__inner { display: flex; flex-direction: column; align-items: center; }
.cta .eyebrow { justify-content: center; }
.cta__title {
  color: #fff;
  font-size: clamp(2rem, 4.4vw, 3.6rem);
  font-weight: 800;
  max-width: 22ch;
  margin-bottom: 1.3rem;
}
.cta__sub { color: var(--text-light-muted); max-width: 40rem; margin-bottom: 2.4rem; font-size: 1.04rem; }
.cta__btns { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; margin-bottom: 2rem; }
.cta__addr { color: var(--text-light-muted); font-size: 0.9rem; letter-spacing: 0.04em; }

/* ---------- footer ---------- */
.footer { background: var(--ink); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.footer__grid {
  display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,0.8fr) minmax(0,1fr);
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: 2.6rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer__logo { width: auto; height: 44px; max-width: 230px; object-fit: contain; margin-bottom: 1.2rem; filter: brightness(0) invert(1); }
.footer__brand p { color: var(--text-light-muted); font-size: 0.94rem; max-width: 24rem; }
.footer__nav { display: flex; flex-direction: column; gap: 0.2rem; }
.footer__nav a {
  color: rgba(255,255,255,0.78); font-size: 0.95rem;
  padding-block: 0.65rem;
  transition: color 0.25s ease, transform 0.3s var(--ease-spring);
}
.footer__nav a:hover { color: #fff; transform: translateX(6px); }
.footer__contact { display: flex; flex-direction: column; gap: 0.2rem; color: var(--text-light-muted); font-size: 0.95rem; }
.footer__contact a { color: rgba(255,255,255,0.85); padding-block: 0.65rem; }
.footer__contact a:hover { color: #fff; }
.footer__base {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem;
  padding-top: 1.6rem;
  color: rgba(255,255,255,0.45); font-size: 0.82rem;
}

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

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: minmax(0,1fr) minmax(0,0.85fr); }
  .process__grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .quotes__grid { grid-template-columns: minmax(0,1fr); }
}

@media (max-width: 768px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .hero {
    min-height: 100svh;
    height: auto;
    padding-top: calc(var(--nav-h) + 1.5rem);
  }
  .hero__grid { grid-template-columns: minmax(0,1fr); gap: 2.6rem; }
  .hero__frame { aspect-ratio: 4 / 3.4; }
  .hero__tag { left: 1rem; bottom: -1rem; }
  .intro__grid, .area__grid { grid-template-columns: minmax(0,1fr); }
  .intro__marks { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 0.9rem; }
  .srow { grid-template-columns: 44px minmax(0,1fr) 44px; }
  .srow__arrow { width: 40px; height: 40px; }
  .footer__grid { grid-template-columns: minmax(0,1fr); }
}

@media (max-width: 480px) {
  .hero { padding-top: calc(var(--nav-h) + 1rem); }
  .hero__ctas .btn { width: 100%; justify-content: center; }
  .process__grid { grid-template-columns: minmax(0,1fr); }
  .intro__marks { grid-template-columns: minmax(0,1fr); }
  .work__card { flex-basis: 82vw; }
  .work__card--tall { flex-basis: 74vw; }
  .cta__btns .btn { width: 100%; justify-content: center; }
}

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