/* ── TOKENS ───────────────────────────────────────────── */
:root {
  --walnut:       #3d2710;
  --walnut-mid:   #5c3a1e;
  --caramel:      #8b5e34;
  --caramel-lt:   #b07d50;
  --cream:        #f5efe6;
  --parchment:    #ede5d8;
  --linen:        #f9f5ef;
  --text:         #2b1a0e;
  --text-mid:     #5a3e2b;
  --text-soft:    #8a7060;
  --border:       #ddd0bc;
  --white:        #ffffff;
  --shadow-sm:    0 2px 12px rgba(61,39,16,.08);
  --shadow-md:    0 8px 32px rgba(61,39,16,.13);
  --shadow-lg:    0 20px 60px rgba(61,39,16,.18);
  --radius:       6px;
  --transition:   0.25s ease;
}

/* ── RESET ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Crimson Pro', Georgia, serif;
  background: var(--linen);
  color: var(--text);
  line-height: 1.65;
  font-size: 18px;
}

img { display: block; width: 100%; }
a  { text-decoration: none; color: inherit; }

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--walnut);
  line-height: 1.2;
}

/* ── UTILITY ──────────────────────────────────────────── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 14px;
}
.section-header p {
  font-size: 1.1rem;
  color: var(--text-soft);
  max-width: 520px;
  margin: 0 auto;
}

/* ── BUTTONS ──────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-family: 'Crimson Pro', serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: .03em;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}
.btn-primary {
  background: var(--caramel);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--walnut-mid);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.7);
}
.btn-outline:hover {
  background: rgba(255,255,255,.12);
  border-color: var(--white);
}
.btn-sm {
  padding: 9px 18px;
  font-size: .9rem;
}
.btn-etsy {
  background: transparent;
  color: var(--caramel);
  border: 1.5px solid var(--caramel);
}
.btn-etsy:hover {
  background: var(--caramel);
  color: var(--white);
}

/* ── NAV ──────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: rgba(249,245,239,.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
nav.scrolled {
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--walnut);
  white-space: nowrap;
  letter-spacing: .01em;
}
.logo span {
  color: var(--caramel);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  color: var(--text-mid);
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .02em;
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1.5px;
  background: var(--caramel);
  transition: width var(--transition);
}
.nav-links a:hover { color: var(--caramel); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  background: var(--walnut) !important;
  color: var(--white) !important;
  padding: 9px 20px;
  border-radius: var(--radius);
  font-size: .9rem !important;
  font-weight: 600 !important;
  transition: background var(--transition), transform var(--transition) !important;
}
.nav-cta:hover {
  background: var(--caramel) !important;
  transform: translateY(-1px);
}
.nav-cta::after { display: none !important; }

/* Mobile nav */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--walnut);
  border-radius: 2px;
  transition: all var(--transition);
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--linen);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 14px 28px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links a::after { display: none; }
  .nav-cta { margin: 12px 28px; border-radius: var(--radius); }
}

/* ── HERO ─────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 28px 80px;
  overflow: hidden;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
/* Fallback gradient if video doesn't load */
.hero-bg-fallback {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #2b1a0e 0%, #5c3a1e 50%, #8b5e34 100%);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(20,10,4,.55) 0%,
    rgba(20,10,4,.45) 60%,
    rgba(20,10,4,.65) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin: 0 auto;
  animation: fadeUp .9s ease both;
}
.hero-eyebrow {
  display: inline-block;
  font-family: 'Crimson Pro', serif;
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
  margin-bottom: 18px;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.hero h1 em {
  font-style: italic;
  color: #d4a96a;
}
.hero p {
  color: rgba(255,255,255,.82);
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 560px;
  margin: 0 auto 36px;
}
.hero-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── TRUST BAR ────────────────────────────────────────── */
.trust-bar {
  background: var(--walnut);
  color: rgba(255,255,255,.7);
  padding: 28px 28px;
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.trust-bar-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.trust-item svg {
  opacity: .6;
}

/* ── PRODUCTS ─────────────────────────────────────────── */
.products {
  padding: 96px 0;
  background: var(--linen);
}
.products .container {
  padding-bottom: 0;
}

/* ── FILMSTRIP CAROUSEL ───────────────────────────────── */
.filmstrip-section {
  width: 100%;
  position: relative;
  margin-top: 48px;
  overflow: hidden;
}

/* Edge fade-out */
.filmstrip-section::before,
.filmstrip-section::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.filmstrip-section::before {
  left: 0;
  background: linear-gradient(to right, var(--linen) 15%, transparent);
}
.filmstrip-section::after {
  right: 0;
  background: linear-gradient(to left, var(--linen) 15%, transparent);
}

.filmstrip {
  display: flex;
  gap: 22px;
  overflow-x: scroll;
  padding: 28px 0 28px 48px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
}

/* Last card gets right margin so it can scroll to center */
.filmstrip .product-card:last-child { margin-right: calc(50% - 225px); }
.filmstrip::-webkit-scrollbar { display: none; }
.filmstrip:active { cursor: grabbing; }

/* ── PRODUCT CARD ─────────────────────────────────────── */
.product-card {
  flex: 0 0 450px;
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  scroll-snap-align: center;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  opacity: 0.45;
  transform: scale(0.94) translateY(4px);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease,
    box-shadow 0.4s ease;
  cursor: pointer;
  will-change: transform;
  transform-origin: center top;
}
.product-card.active {
  opacity: 1;
  transform: scale(1) translateY(0);
  box-shadow: var(--shadow-lg);
  cursor: default;
}

.product-card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--parchment);
  display: flex;
  align-items: center;
  justify-content: center;
  filter: grayscale(35%) brightness(0.88);
  transition: filter 0.4s ease;
}
.product-card.active .product-card-img {
  filter: none;
}
.product-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.img-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--parchment);
  color: var(--text-soft);
  font-size: 2.5rem;
}

.product-info {
  padding: 20px 22px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-info h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}
.product-info p {
  font-size: .93rem;
  color: var(--text-soft);
  line-height: 1.52;
  margin-bottom: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.35s ease, margin-bottom 0.4s ease;
}
.product-card.active .product-info p {
  max-height: 80px;
  opacity: 1;
  margin-bottom: 16px;
}
.product-actions {
  margin-top: auto;
}
.product-actions .btn-etsy {
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.35s ease 0.05s, transform 0.35s ease 0.05s,
              background var(--transition), color var(--transition);
}
.product-card.active .product-actions .btn-etsy {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

/* ── CAROUSEL CONTROLS ────────────────────────────────── */
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
  padding-bottom: 8px;
  min-height: 58px; /* locks height so arrows don't shift when active card scales */
}
.carousel-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--walnut);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  transition: background var(--transition), border-color var(--transition),
              color var(--transition), box-shadow var(--transition);
}
.carousel-btn:hover {
  background: var(--caramel);
  border-color: var(--caramel);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(139,94,52,.25);
}
.carousel-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}
.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  padding: 0;
  transition: all var(--transition);
}
.carousel-dot.active {
  background: var(--caramel);
  width: 22px;
  border-radius: 4px;
}

/* ── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 900px) {
  .filmstrip-section::before,
  .filmstrip-section::after { width: 80px; }
}
@media (max-width: 640px) {
  .filmstrip { gap: 16px; }
  .product-card { flex: 0 0 72vw; }
  .filmstrip-section::before,
  .filmstrip-section::after { width: 48px; }
}
@media (max-width: 400px) {
  .product-card { flex: 0 0 82vw; }
}

/* ── PROCESS ──────────────────────────────────────────── */
.process {
  padding: 96px 28px;
  background: var(--walnut);
}
.process .section-header h2 {
  color: var(--white);
}
.process .section-header p {
  color: rgba(255,255,255,.6);
}
.process-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.process-grid::before {
  content: '';
  position: absolute;
  top: 28px; left: calc(12.5% + 4px);
  right: calc(12.5% + 4px);
  height: 1px;
  background: rgba(255,255,255,.15);
  z-index: 0;
}
@media (max-width: 700px) {
  .process-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .process-grid::before { display: none; }
}
@media (max-width: 420px) {
  .process-grid { grid-template-columns: 1fr; }
}

.process-step {
  text-align: center;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}
.step-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--caramel);
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  border: 3px solid rgba(255,255,255,.15);
}
.process-step h4 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.process-step p {
  color: rgba(255,255,255,.6);
  font-size: .93rem;
  line-height: 1.55;
}

/* ── CUSTOM / QUOTE ───────────────────────────────────── */
.quote {
  padding: 96px 28px;
  background: var(--parchment);
}
.quote-inner {
  max-width: 640px;
  margin: 0 auto;
}
.quote-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 540px) {
  .form-row { grid-template-columns: 1fr; }
}
.quote-form input,
.quote-form textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Crimson Pro', serif;
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}
.quote-form input:focus,
.quote-form textarea:focus {
  outline: none;
  border-color: var(--caramel);
  box-shadow: 0 0 0 3px rgba(139,94,52,.12);
}
.quote-form input::placeholder,
.quote-form textarea::placeholder {
  color: var(--text-soft);
}
.quote-form textarea {
  resize: vertical;
  min-height: 120px;
}
.quote-form .btn-primary {
  align-self: flex-start;
  padding: 14px 36px;
  font-size: 1.05rem;
}

/* ── FOOTER ───────────────────────────────────────────── */
footer {
  background: #1e1008;
  color: rgba(255,255,255,.7);
  padding: 56px 28px 36px;
}
.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 28px;
}
@media (max-width: 700px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 420px) {
  .footer-inner { grid-template-columns: 1fr; }
}
.footer-brand .logo {
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 10px;
  display: block;
}
.footer-brand p {
  font-size: .9rem;
  line-height: 1.6;
  max-width: 240px;
}
.footer-col h5 {
  font-family: 'Playfair Display', serif;
  color: var(--white);
  font-size: .85rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,.55);
  font-size: .9rem;
  margin-bottom: 10px;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .83rem;
  color: rgba(255,255,255,.35);
}
.footer-etsy-btn {
  background: var(--caramel);
  color: var(--white) !important;
  padding: 9px 20px;
  border-radius: var(--radius);
  font-size: .88rem;
  font-weight: 600;
  display: inline-block;
  transition: background var(--transition);
}
.footer-etsy-btn:hover {
  background: var(--caramel-lt) !important;
  color: var(--white) !important;
}

/* ── ANIMATIONS ───────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}