/* ============================================================
   STASH HOME — Design Consultation Landing Page
   Palette: bone / ink / tan only. Vibrancy comes from photography.
   ============================================================ */

:root {
  --bone: #F5F1EA;
  --ink: #1C1A17;
  --tan: #A98D6F;
  --white: #FFFFFF;
  --line: rgba(28, 26, 23, 0.14);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --section-pad: clamp(96px, 14vh, 180px);
  --container-max: 1440px;
  --gutter: clamp(20px, 4vw, 64px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
html.lenis { scroll-behavior: auto; height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }

body {
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@media (min-width: 768px) { body { font-size: 17px; } }

img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
a { color: inherit; }
fieldset { border: none; }
legend { padding: 0; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container.narrow { max-width: 960px; }

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

/* ---------- Typography ---------- */
.section-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tan);
  margin-bottom: clamp(28px, 4vh, 48px);
}
@media (min-width: 768px) { .section-label { font-size: 12px; } }

.section-headline {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

p { max-width: 62ch; }

/* Split-line reveal structure (built by JS) */
.line { display: block; overflow: hidden; }
.line-inner { display: block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 32px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: 0; /* sharp, editorial */
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.btn-primary {
  background: var(--ink);
  color: var(--bone);
}
.btn-primary:hover { background: var(--tan); color: var(--white); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-ghost:hover { border-color: var(--tan); color: var(--tan); }
.btn-block { width: 100%; }

/* ---------- Placeholder media blocks ----------
   Swap: replace each .ph div with an <img class="media"> (see HTML comments). */
.ph {
  position: relative;
  width: 100%;
  height: 100%;
  background: #E4DACB; /* warm placeholder tone */
}
.ph::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(28, 26, 23, 0.45);
  text-align: center;
  padding: 16px;
}

.media-frame { overflow: hidden; position: relative; }
.media-frame .media { width: 100%; height: 100%; object-fit: cover; }
/* <picture> wrappers must not affect layout — the img.media fills the frame */
.media-frame picture, .hero-media picture { display: contents; }

/* ---------- Header ---------- */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: clamp(20px, 3vw, 36px) var(--gutter);
}
.wordmark {
  display: block;
  text-decoration: none;
  /* enlarged hit area without visual change */
  padding: 12px 10px;
  margin: -12px -10px;
}
.wordmark img {
  display: block;
  height: 44px;
  width: auto;
}
.footer-logo {
  height: 52px;
  width: auto;
}
.call-link {
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding: 12px 10px 2px;
  margin: -12px -10px 0;
}
.call-link:hover { border-color: var(--tan); color: var(--tan); }
/* Below desktop the whole header sits over the hero photo — use bone for contrast */
@media (max-width: 1023px) {
  .site-header { color: var(--bone); }
  .site-header .call-link { border-color: rgba(245, 241, 234, 0.4); }
}
/* On desktop the right 55% is the photo — the Call link sits over it */
@media (min-width: 1024px) {
  .site-header .call-link {
    color: var(--bone);
    border-color: rgba(245, 241, 234, 0.4);
  }
  .site-header .call-link:hover { color: var(--tan); border-color: var(--tan); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
}
.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-media .media { width: 100%; height: 100%; object-fit: cover; }
.hero-scrim {
  position: absolute;
  inset: 0;
  /* the ONLY gradient on the page — hero photo overlay */
  background: linear-gradient(to top, rgba(28,26,23,0.72) 0%, rgba(28,26,23,0.35) 45%, rgba(28,26,23,0.12) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  color: var(--bone);
  padding-bottom: clamp(48px, 9vh, 120px);
}
.hero .site-header ~ * {}
.hero-label { color: var(--tan); margin-bottom: 24px; }
.hero-headline {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.75rem, 8vw, 7rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: clamp(20px, 3vh, 32px);
}
.hero-subline {
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  max-width: 46ch;
  margin-bottom: clamp(28px, 4vh, 40px);
}
.hero-cta { margin-bottom: 20px; }
.hero-trust {
  font-size: 13px;
  letter-spacing: 0.02em;
  opacity: 0.85;
}
.hero-trust .star { color: var(--tan); }

/* Desktop hero: text left on bone, image right 55% */
@media (min-width: 1024px) {
  .hero { align-items: center; }
  .hero-media { left: 45%; }
  .hero-scrim { display: none; }
  .hero-inner {
    color: var(--ink);
    width: 45%;
    max-width: none;
    margin-inline: 0;
    padding-right: clamp(40px, 5vw, 96px);
    padding-bottom: 0;
    padding-top: 80px;
  }
  .hero-trust { opacity: 0.7; }
}

/* ---------- 01 Studio ---------- */
.prestige-line {
  margin-top: clamp(28px, 4vh, 44px);
  font-size: 15px;
  color: var(--tan);
  letter-spacing: 0.02em;
}

/* ---------- 02 Process ---------- */
.process-steps {
  list-style: none;
  display: grid;
  gap: clamp(48px, 6vh, 72px);
  margin-top: 8px;
}
@media (min-width: 900px) {
  .process-steps { grid-template-columns: repeat(3, 1fr); gap: clamp(40px, 4vw, 80px); }
}
.process-numeral {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3.5rem, 6vw, 5.5rem);
  line-height: 1;
  color: var(--tan);
  display: block;
  margin-bottom: 20px;
}
.process-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  margin-bottom: 12px;
}
.process-body { font-size: 16px; }
.section-cta { margin-top: clamp(56px, 8vh, 88px); }

/* ---------- 03 Selected Work ---------- */
.work-list {
  display: grid;
  gap: clamp(64px, 10vh, 120px);
}
.work-item { margin: 0; }
.work-item .media-frame {
  aspect-ratio: 3 / 2;
  width: 100%;
}
.work-caption {
  margin-top: 18px;
  font-size: 15px;
  letter-spacing: 0.01em;
  color: var(--ink);
}

/* ---------- 04 Designers ---------- */
.designer-grid {
  display: grid;
  gap: clamp(40px, 5vw, 64px);
}
@media (min-width: 640px) {
  .designer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .designer-grid { grid-template-columns: repeat(4, 1fr); }
}
.media-frame.portrait { aspect-ratio: 4 / 5; }
/* Monogram tile — launch state until designer headshots exist */
.monogram {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: #E4DACB;
  border: 1px solid var(--line);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(4rem, 6vw, 6rem);
  color: var(--tan);
}
.designer-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.375rem;
  margin-top: 20px;
  margin-bottom: 8px;
}
.designer-line { font-size: 15px; }
.handwritten {
  /* the single handwritten-style accent — italic Fraunces light, no script font */
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-top: clamp(56px, 8vh, 80px);
  color: var(--ink);
}

/* ---------- 05 Praise ---------- */
.praise-quote {
  border: none;
  margin-bottom: clamp(48px, 7vh, 80px);
}
.praise-quote:last-child { margin-bottom: 0; }
.praise-quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  line-height: 1.3;
  max-width: 30ch;
}
.praise-quote cite {
  display: block;
  margin-top: 16px;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tan);
}

/* ---------- FAQ ---------- */
.faq-heading {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: 1.15;
  margin-bottom: clamp(36px, 5vh, 56px);
}
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 22px 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.25rem;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-marker {
  position: relative;
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
}
.faq-marker::before, .faq-marker::after {
  content: "";
  position: absolute;
  background: var(--tan);
  transition: transform 0.3s ease;
}
.faq-marker::before { left: 0; top: 6px; width: 14px; height: 2px; }
.faq-marker::after { left: 6px; top: 0; width: 2px; height: 14px; }
.faq-item[open] .faq-marker::after { transform: scaleY(0); }
.faq-item p { padding: 0 0 24px; font-size: 16px; max-width: 58ch; }

/* ---------- Final CTA + Form ---------- */
.section-consult { background: var(--bone); }
.consult-headline {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.25rem, 5vw, 4.25rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  max-width: 18ch;
  margin-bottom: clamp(48px, 7vh, 80px);
}

.consult-form {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  max-width: 720px;
  padding: clamp(28px, 4vw, 56px);
  position: relative;
}
.form-head { margin-bottom: 24px; }
.form-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.75rem;
  margin-bottom: 8px;
}
.form-subline { font-size: 15px; color: rgba(28, 26, 23, 0.7); }

.form-progress {
  height: 2px;
  background: var(--line);
  margin-bottom: 28px;
  overflow: hidden;
}
.form-progress-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--tan);
  transition: width 0.4s ease;
}

.form-back {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(28, 26, 23, 0.6);
  padding: 8px 0;
  margin-bottom: 12px;
  min-height: 44px;
}
.form-back:hover { color: var(--tan); }
.form-back::before { content: "\2190\00a0"; }

/* Steps */
.step { display: block; }
.step[hidden] { display: none; }
.step-question {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  margin-bottom: 24px;
  display: block;
  width: 100%;
}
.step-microcopy {
  font-size: 14px;
  color: rgba(28, 26, 23, 0.65);
  margin: -12px 0 20px;
}

/* Step transitions */
.step.entering { animation: step-in 0.4s ease both; }
@keyframes step-in {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: translateX(0); }
}
.step.entering-back { animation: step-in-back 0.4s ease both; }
@keyframes step-in-back {
  from { opacity: 0; transform: translateX(-24px); }
  to { opacity: 1; transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .step.entering, .step.entering-back { animation: step-fade 0.2s ease both; }
  @keyframes step-fade { from { opacity: 0; } to { opacity: 1; } }
}

/* Option cards */
.options {
  display: grid;
  gap: 12px;
}
@media (min-width: 640px) {
  .options { grid-template-columns: 1fr 1fr; }
}
.opt {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 88px;
  padding: 20px;
  text-align: left;
  font-size: 16px;
  font-weight: 500;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 2px;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}
.opt:hover { border-color: var(--tan); }
.opt.selected { border-color: var(--ink); background: var(--bone); }
.opt-icon {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--tan);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.options-compact .opt { min-height: 64px; justify-content: flex-start; }

/* Fields */
.fields { display: grid; gap: 18px; margin-bottom: 24px; }
.field { display: block; }
.field-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.field input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  font-family: var(--font-body);
  font-size: 16px; /* prevents iOS zoom */
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 2px;
  transition: border-color 0.25s ease;
}
.field input:focus { border-color: var(--ink); outline: none; }
.field input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.field-hint {
  display: block;
  font-size: 13px;
  color: rgba(28, 26, 23, 0.55);
  margin-top: 6px;
}
.field-error {
  display: block;
  font-size: 13px;
  color: var(--tan);
  font-weight: 500;
  margin-top: 6px;
}
.field.invalid input { border-color: var(--tan); }

/* Interstitial */
.interstitial-card {
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: clamp(24px, 4vw, 40px);
  background: var(--bone);
}
.interstitial-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tan);
  margin-bottom: 14px;
}
.interstitial-body { font-size: 16px; margin-bottom: 28px; }
.interstitial-actions { display: grid; gap: 12px; }

/* Calendar */
.calendar-embed { width: 100%; }
.calendar-embed iframe {
  width: 100%;
  height: 700px;
  border: none;
}
.calendar-placeholder {
  width: 100%;
  height: 700px;
  background: var(--bone);
  border: 1px dashed var(--tan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--tan);
}

/* Confirmation */
.step-confirm { text-align: left; padding: 24px 0; }
.confirm-headline {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 12px;
}
.confirm-body { font-size: 17px; }

/* Footer address block */
.footer-address {
  display: grid;
  gap: 4px;
  font-style: normal;
  font-size: 15px;
}
.footer-address a {
  display: inline-block;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding: 10px 2px 2px;
  margin: -10px -2px 0;
}
.footer-address a:hover { color: var(--tan); border-color: var(--tan); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: clamp(40px, 6vh, 64px) 0 calc(clamp(40px, 6vh, 64px) + 88px); /* room for sticky bar */
}
@media (min-width: 768px) {
  .site-footer { padding-bottom: clamp(40px, 6vh, 64px); }
}
.footer-inner { display: grid; gap: 16px; }
.footer-meta { font-size: 14px; }
.footer-meta a {
  display: inline-block;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding: 10px 2px 2px;
  margin: -10px -2px 0;
}
.footer-meta a:hover { color: var(--tan); border-color: var(--tan); }
.footer-copy { font-size: 13px; color: rgba(28, 26, 23, 0.55); }

/* ---------- Sticky mobile bar ---------- */
.sticky-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px var(--gutter);
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  background: var(--bone);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform 0.4s ease;
}
.sticky-bar.visible { transform: translateY(0); }
.sticky-cta { flex: 1 1 75%; }
.sticky-call {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--line);
}
.sticky-call svg {
  width: 22px; height: 22px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.5;
}
@media (min-width: 768px) {
  .sticky-bar { display: none; }
}

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