/* Valley Upholstering Inc. — warm workroom card. */
:root {
  --field: #faf5ec;
  --ink: #2c2318;
  --call: #a83c22;
  --ghost: #2c2318;
  --accent: #9a7418;
  --line: #e4d7c2;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Archivo", system-ui, sans-serif;

  --ease-out-expo: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-out-expo-alt: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-out-circ: cubic-bezier(0.075, 0.82, 0.165, 1);
  --dur-fast: 0.3s;
  --dur-hover: 0.5s;
  --dur-enter: 0.7s;
  --dur-nav: 0.8s;
  --dur-hero: 1.5s;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--field);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.08;
  margin: 0 0 0.4em;
}

h1 {
  font-size: clamp(2.4rem, 5.2vw, 4.2rem);
}

h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
}

h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
}

p {
  margin: 0 0 1em;
}

a {
  color: inherit;
}

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

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10;
  background: var(--field);
  padding: 0.5rem 1rem;
}

.kicker {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--call);
  margin: 0 0 0.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  transition: background var(--dur-fast) var(--ease-out-circ), color var(--dur-fast) var(--ease-out-circ), transform var(--dur-fast) var(--ease-out-circ);
}
.btn:hover {
  transform: translate3d(0, -2px, 0);
}
.btn-fill {
  background: var(--call);
  color: var(--field);
}
.btn-ghost {
  border: 1px solid currentColor;
  color: var(--ghost);
}
.call-nowrap {
  white-space: nowrap;
}

/* Signature flourish: underline grows from the left. */
.link-underline {
  position: relative;
  text-decoration: none;
}
.link-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0.3);
  transform-origin: left;
  transition: transform var(--dur-hover) var(--ease-out-expo-alt);
}
.link-underline:hover::after {
  transform: scaleX(1);
}

[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 50px, 0);
  transition:
    opacity var(--dur-enter) var(--ease-out-expo),
    transform var(--dur-enter) var(--ease-out-expo);
}
[data-reveal].is-in {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* A block of copy that belongs together: the container holds still and its
   children come in one after another, top first. motion.js sets the delays. */
[data-reveal="cascade"] {
  opacity: 1;
  transform: none;
  transition: none;
}
[data-reveal="cascade"] > * {
  opacity: 0;
  transform: translate3d(0, 50px, 0);
  transition:
    opacity var(--dur-enter) var(--ease-out-expo),
    transform var(--dur-enter) var(--ease-out-expo);
}
[data-reveal="cascade"].is-in > * {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.9rem 4vw;
  background: var(--field);
  border-bottom: 1px solid var(--line);
}

.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  margin-right: auto;
}

.site-header nav {
  display: flex;
  gap: 1.4rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.site-header .btn {
  padding: 0.65rem 1.2rem;
  font-size: 0.95rem;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
}
.hero-img {
  position: absolute;
  inset: -8% 0;
  width: 100%;
  height: 116%;
  object-fit: cover;
  object-position: 70% center;
  opacity: 0;
  transition: opacity var(--dur-hero) var(--ease-out-expo);
}
.hero.is-in .hero-img,
.hero-img.is-in {
  opacity: 1;
}
.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 38rem;
  margin: 0 auto 0 6vw;
  padding: 0 0 9vh;
  color: var(--ink);
}
.hero-copy .kicker {
  display: inline-block;
  background: var(--field);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
}
.hero-copy h1,
.hero-copy p {
  text-shadow: 0 1px 24px rgba(250, 245, 236, 0.9), 0 0 8px rgba(250, 245, 236, 0.9);
}
.hero-copy h1 {
  background: linear-gradient(transparent 62%, var(--line) 62%, var(--line) 96%, transparent 96%);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.4rem 0 0;
}
.hero-actions .btn-ghost {
  background: var(--field);
}

section {
  padding: 5rem 6vw;
}

.section-head {
  max-width: 38rem;
  margin-bottom: 2.75rem;
}

.river {
  display: grid;
  gap: 4rem;
  max-width: 72rem;
}
.river-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.river-row:nth-child(even) img {
  order: 2;
}
.river-row img {
  border-radius: 4px;
  background: var(--line);
}
.river-row h3 {
  margin-bottom: 0.5rem;
}
.river-row p {
  margin: 0;
  max-width: 34ch;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  max-width: 72rem;
}
.work-grid figure {
  margin: 0;
}
.work-grid img {
  border-radius: 4px;
  background: var(--line);
}
.work-grid figcaption {
  font-size: 0.95rem;
  margin-top: 0.7rem;
  max-width: 30ch;
}

.about-body {
  max-width: 42rem;
}
.about-body p:last-child {
  margin-bottom: 0;
}

.steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 72rem;
  counter-reset: step;
}
.steps-list li {
  border-top: 2px solid var(--accent);
  padding-top: 1.1rem;
  counter-increment: step;
}
.steps-list li::before {
  content: "0" counter(step);
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--accent);
  display: block;
  margin-bottom: 0.5rem;
}

.reviews,
.faq {
  padding: 5rem 6vw;
}

.reviews .section-head,
.faq .section-head {
  max-width: 36rem;
  margin-bottom: 2rem;
}

.faq-list {
  max-width: 40rem;
}

.faq-list details {
  border-top: 1px solid currentColor;
}

.faq-list details:last-child {
  border-bottom: 1px solid currentColor;
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 0;
  font-weight: 600;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list details p {
  margin: 0 0 1.15rem;
  max-width: 42ch;
}

#area p {
  max-width: 42rem;
  margin-bottom: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 3rem;
  max-width: 72rem;
  align-items: start;
}
.contact-grid p svg {
  vertical-align: -3px;
  margin-right: 0.4rem;
}
.contact-grid iframe {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
}

form {
  margin-top: 1.75rem;
  display: grid;
  gap: 0.6rem;
  max-width: 30rem;
}
form label {
  font-weight: 600;
  font-size: 0.95rem;
}
form input,
form textarea {
  font: inherit;
  color: var(--ink);
  background: var(--field);
  border: 1px solid var(--ink);
  border-radius: 4px;
  padding: 0.65rem 0.8rem;
  width: 100%;
}
form .btn {
  justify-content: center;
  border: 0;
  cursor: pointer;
  margin-top: 0.4rem;
}
.form-note {
  font-size: 0.9rem;
  margin: 0.2rem 0 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.75rem 6vw 2.5rem;
  font-size: 0.95rem;
}
.site-footer p {
  margin: 0;
  max-width: 72rem;
}

/* 390: image occupies the first screen; type overlaps only the bottom third
   so a face in the upper two-thirds stays visible. */
@media (max-width: 640px) {
  body {
    font-size: 1rem;
  }

  .site-header {
    gap: 0.75rem;
    padding: 0.7rem 4vw;
  }
  .site-header nav {
    display: none;
  }
  .site-header .btn {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }

  .hero {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 100dvh;
  }

  .hero-img {
    object-position: 68% 18%;
  }

  .hero-copy {
    width: auto;
    max-width: none;
    margin: 0 1rem calc(1rem + env(safe-area-inset-bottom));
    padding: 1.15rem 1.1rem 1.05rem;
    background: var(--field);
    border-radius: 6px;
  }
  .hero-copy h1 {
    font-size: 1.85rem;
    background: none;
  }
  .hero-copy .kicker {
    padding: 0;
  }
  .hero-actions .btn {
    flex: 1 1 100%;
    justify-content: center;
  }
  .hero-actions .btn-ghost {
    background: transparent;
  }

  section {
    padding: 3.5rem 5vw;
  }

  .river {
    gap: 2.75rem;
  }
  .river-row {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }
  .river-row:nth-child(even) img {
    order: 0;
  }

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

  .steps-list {
    grid-template-columns: 1fr;
  }

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

@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  [data-reveal="cascade"] > *,
  .hero-img {
    opacity: 1;
    transform: none !important;
    transition: none;
  }
  .btn:hover,
  .review-prev:hover,
  .review-next:hover {
    transform: none;
  }

  .review-carousel.is-carousel .review-track {
    transition: none;
  }
}
