/* ============================================================
   Skin Graft — site styles
   Built on the brand's tokens (colors_and_type.css).
   ============================================================ */

@import url('assets/colors_and_type.css');

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--sand); color: var(--cocoa); overflow-x: hidden; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px; border-radius: var(--radius-pill);
  font-weight: 700; font-size: 14px; line-height: 1; white-space: nowrap;
  transition: background var(--dur-base) var(--ease-out), transform var(--dur-fast), color var(--dur-base);
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--cocoa); color: var(--cream); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary { background: var(--cocoa-soft); color: var(--cream); }
.btn-secondary:hover { background: var(--secondary-hover); }
.btn-ghost { background: var(--off-white); color: var(--cocoa); }
.btn-ghost:hover { background: var(--cream); }
.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn .arrow { transition: transform var(--dur-base) var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }

/* ===== Header / hero band (retro scene bg) ===== */
.shell {
  background:
    linear-gradient(180deg, rgba(118, 181, 168, 0) 55%, rgba(60, 110, 100, 0.35) 100%),
    url('assets/hero-bg.jpg') center/cover no-repeat #76B5A8;
  border-radius: 0 0 36px 36px;
  position: relative;
  overflow: hidden;
}

.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 32px;
  max-width: 1280px; margin: 0 auto;
  position: relative; z-index: 10;
}
.logo {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--cocoa); color: var(--caramel);
  font-family: var(--font-display); font-weight: 900; font-size: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  line-height: 1; padding-bottom: 2px;
  transition: background var(--dur-base);
}
.logo:hover { background: var(--primary-hover); }

.nav-links {
  display: flex; gap: 36px;
  font-size: 15px; font-weight: 600;
}
.nav-links a {
  color: var(--cocoa); opacity: 0.92; padding: 8px 2px;
  transition: opacity var(--dur-base);
  position: relative;
}
.nav-links a:hover { opacity: 1; }
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 2px; height: 2px;
  background: var(--cocoa); border-radius: 2px;
  transition: right var(--dur-base) var(--ease-out);
}
.nav-links a:hover::after { right: 0; }

.cart-btn {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--cocoa); color: var(--cream);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background var(--dur-base);
  position: relative;
}
.cart-btn:hover { background: var(--primary-hover); }
.cart-btn svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.cart-badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--cream); color: var(--cocoa);
  border-radius: 9999px; font-size: 11px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 720px;
  padding: 8px 0 56px;
}
.hero-stage {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  height: 560px;
  margin-top: 8px;
}
.hero-chair-wrap {
  position: absolute; inset: 0;
  display: none; /* photo background carries the subject */
  align-items: center; justify-content: center;
  z-index: 1;
  pointer-events: none;
}
.hero-chair-wrap img {
  height: 100%; width: auto;
  max-height: 600px;
  object-fit: contain;
  filter: drop-shadow(0 18px 30px rgba(74, 30, 3, 0.18));
  animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-wordmark {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(36px, 10.5vw, 170px);
  line-height: 0.86; letter-spacing: -0.05em;
  color: var(--cream); text-align: center;
  margin: 0; pointer-events: none;
  position: relative; z-index: 2;
  white-space: nowrap;
  text-shadow: 0 16px 48px rgba(20, 60, 55, 0.35), 0 2px 4px rgba(20, 60, 55, 0.25);
}
.hero-sub {
  position: absolute;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(14px, 2.4vw, 38px);
  color: var(--cream);
  right: 14%;
  bottom: 28%;
  z-index: 3;
  letter-spacing: -0.01em;
}

.hero-headline {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(40px, 9vw, 150px);
  line-height: 0.92;
  letter-spacing: -0.05em;
  color: var(--cream);
  text-align: center;
  text-transform: none;
  text-shadow: 0 16px 48px rgba(20, 60, 55, 0.35), 0 2px 4px rgba(20, 60, 55, 0.25);
  pointer-events: none;
  white-space: nowrap;
}
/* Stamp — creative detail */
.hero-stamp {
  position: absolute;
  left: 4%;
  top: 12%;
  width: 122px; height: 122px;
  border-radius: 50%;
  border: 1.5px dashed var(--cream);
  color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  z-index: 4;
  font-family: var(--font-display); font-weight: 700; font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.7;
  animation: spin 24s linear infinite;
}
.hero-stamp::before {
  content: '·  hand made  ·  since 2021  ·  hand made  ·  since 2021  ';
  position: absolute; inset: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero-foot {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-top: 24px;
  padding: 0 32px;
  max-width: 1280px;
  margin-left: auto; margin-right: auto;
}
.hero-tagline {
  color: var(--cream); font-size: 15px; font-weight: 600; line-height: 1.45;
  max-width: 260px;
}
.hero-tagline strong { display: block; font-family: var(--font-display); font-weight: 800; font-size: 17px; margin-bottom: 2px; }

/* ===== Marquee — creative band between hero & content ===== */
.marquee {
  background: var(--sand);
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
  overflow: hidden;
  padding: 22px 0;
  margin-top: -1px;
}
.marquee-track {
  display: flex; gap: 56px;
  width: max-content;
  animation: marquee 36s linear infinite;
  font-family: var(--font-display); font-weight: 800;
  font-size: 22px;
  color: var(--cocoa);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  align-items: center;
}
.marquee-track span { display: inline-flex; align-items: center; gap: 56px; }
.marquee-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--caramel);
  display: inline-block;
  flex-shrink: 0;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ===== Section ===== */
.section { padding: 96px 32px 0; max-width: 1280px; margin: 0 auto; }
.section-header {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  margin-bottom: 36px;
}
.section-title {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(36px, 4.4vw, 56px);
  color: var(--cocoa);
  letter-spacing: -0.025em;
  text-transform: lowercase;
  margin: 0;
}
.section-eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 0.18em;
  color: var(--cocoa-muted); text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
}
.section-eyebrow::before {
  content: ''; width: 26px; height: 1.5px; background: var(--cocoa-muted); display: inline-block;
}
.section-link {
  font-size: 14px; font-weight: 700; color: var(--cocoa);
  display: inline-flex; align-items: center; gap: 8px;
  padding-bottom: 6px;
  border-bottom: 1.5px solid var(--cocoa);
  transition: gap var(--dur-base);
}
.section-link:hover { gap: 12px; }

/* ===== Collection grid ===== */
.collection {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.collection-card { display: flex; flex-direction: column; gap: 18px; cursor: pointer; }
.collection-img {
  aspect-ratio: 1/1.2;
  border-radius: 22px;
  overflow: hidden;
  background: var(--cream);
  position: relative;
}
.collection-img img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  transition: transform 600ms var(--ease-out);
}
.collection-card:hover .collection-img img { transform: scale(1.04); }
.collection-tag {
  position: absolute; top: 16px; left: 16px;
  background: rgba(244,242,234,0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--cocoa);
  padding: 6px 12px; border-radius: 9999px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase;
}
.collection-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.collection-name {
  font-family: var(--font-display); font-weight: 800;
  font-size: 24px; color: var(--cocoa);
}
.collection-count {
  font-size: 13px; color: var(--cocoa-muted); font-weight: 600;
  margin-left: 8px;
}

/* ===== Product card (Aurelian Lounge) ===== */
.product-card {
  background: var(--off-white);
  border-radius: 32px;
  padding: 48px;
  display: grid;
  grid-template-columns: 1.05fr 1.3fr 0.75fr;
  gap: 36px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.product-num {
  position: absolute;
  left: 56%; top: 36px;
  font-family: var(--font-display); font-weight: 900;
  font-size: 220px;
  color: var(--cocoa);
  opacity: 0.07;
  line-height: 1; pointer-events: none;
  letter-spacing: -0.04em;
}
.product-info { position: relative; z-index: 2; }
.product-title {
  font-family: var(--font-display); font-weight: 900;
  font-size: 44px; line-height: 1;
  color: var(--cocoa);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.product-sub { font-size: 15px; color: var(--cocoa-muted); margin-bottom: 28px; font-weight: 500; }
.swatch-row { display: flex; gap: 12px; margin-bottom: 32px; }
.swatch {
  width: 26px; height: 26px; border-radius: 50%;
  box-shadow: 0 0 0 2px var(--off-white), 0 0 0 3px rgba(97,41,6,.18);
  cursor: pointer;
  transition: transform var(--dur-fast);
}
.swatch:hover { transform: scale(1.12); }
.swatch.selected { box-shadow: 0 0 0 2px var(--off-white), 0 0 0 3px var(--cocoa); }
.swatch.moss { background: var(--accent-moss); }
.swatch.slate { background: var(--accent-slate); }
.swatch.blush { background: var(--accent-blush); }
.swatch.caramel { background: var(--caramel); }

.product-desc {
  font-size: 14px; line-height: 1.55;
  color: var(--cocoa);
  margin: 0 0 28px;
  max-width: 300px;
  text-wrap: pretty;
}
.product-ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.product-price {
  font-family: var(--font-display); font-weight: 900;
  font-size: 18px; color: var(--cocoa);
  margin-top: 24px;
  display: flex; align-items: baseline; gap: 8px;
}
.product-price small { font-size: 12px; color: var(--cocoa-muted); font-weight: 600; }

.product-image {
  position: relative; z-index: 1;
  aspect-ratio: 1/1.05;
  border-radius: 18px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
}
.product-image img {
  width: 100%; height: 100%; object-fit: contain;
}

.product-side { position: relative; }
.product-thumb {
  width: 100%; aspect-ratio: 1/1.15;
  border-radius: 22px;
  overflow: hidden;
  position: relative;
}
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-thumb-text {
  position: absolute;
  bottom: 18px; left: 18px; right: 70px;
  color: var(--off-white); font-size: 11px; line-height: 1.4;
  text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}

.fabs {
  position: absolute;
  right: -24px; bottom: 18px;
  display: flex; flex-direction: column; gap: 12px;
  z-index: 3;
}
.fab {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--cream); color: var(--cocoa);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(97,41,6,.10);
  transition: transform var(--dur-base) var(--ease-out);
}
.fab:hover { transform: scale(1.08) rotate(-4deg); }
.fab svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

.product-arrows {
  position: absolute;
  left: 50%; bottom: 32px;
  display: flex; gap: 8px;
  transform: translateX(-50%);
}
.product-arrows button {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--sand); color: var(--cocoa);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background var(--dur-base);
}
.product-arrows button:hover { background: var(--cream); }
.product-arrows button.is-active { background: var(--cocoa); color: var(--cream); }

/* ===== Story / craftsmanship band ===== */
.story {
  margin: 96px 0 0;
  padding: 80px 32px;
  background: var(--cocoa);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.story-inner {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
  position: relative; z-index: 2;
}
.story h2 {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(40px, 5vw, 64px);
  letter-spacing: -0.025em;
  margin: 0 0 24px;
  text-wrap: balance;
  color: var(--cream);
}
.story p {
  font-size: 16px; line-height: 1.6;
  color: var(--off-white); opacity: 0.85;
  max-width: 460px;
  text-wrap: pretty;
}
.story-stats {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 28px 24px;
}
.stat {
  border-top: 1px solid rgba(244,242,234,0.18);
  padding-top: 16px;
}
.stat-num {
  font-family: var(--font-display); font-weight: 900;
  font-size: 56px; color: var(--caramel);
  line-height: 1; letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 13px; color: var(--off-white); opacity: 0.7;
  font-weight: 600; line-height: 1.4;
}

.story::before {
  content: 'soft.';
  position: absolute;
  right: -2vw; bottom: -6vw;
  font-family: var(--font-display); font-weight: 900;
  font-size: 28vw;
  color: var(--cocoa-soft);
  opacity: 0.18;
  line-height: 1; letter-spacing: -0.06em;
  pointer-events: none; z-index: 1;
}

/* ===== Newsletter ===== */
.newsletter {
  margin-top: 0;
  padding: 96px 32px;
  background: var(--caramel);
  position: relative;
}
.newsletter-inner {
  max-width: 880px; margin: 0 auto;
  text-align: center;
}
.newsletter-eyebrow {
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--cocoa); font-weight: 700; margin-bottom: 18px;
}
.newsletter h2 {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(40px, 5.6vw, 72px);
  color: var(--cream);
  letter-spacing: -0.03em;
  margin: 0 0 28px;
  line-height: 0.96;
}
.newsletter h2 em {
  font-style: normal;
  color: var(--cocoa);
}
.newsletter-form {
  display: flex; gap: 8px;
  background: var(--off-white);
  padding: 8px;
  border-radius: 9999px;
  max-width: 520px;
  margin: 0 auto;
}
.newsletter-form input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px 18px;
  font: inherit; font-size: 15px;
  color: var(--cocoa);
  outline: none;
}
.newsletter-form input::placeholder { color: var(--cocoa-muted); }
.newsletter-form button {
  background: var(--cocoa); color: var(--cream);
  padding: 12px 24px;
  border-radius: 9999px;
  font-weight: 700; font-size: 14px;
  transition: background var(--dur-base);
}
.newsletter-form button:hover { background: var(--primary-hover); }
.newsletter small {
  display: block;
  margin-top: 14px;
  font-size: 12px;
  color: var(--cocoa); opacity: 0.7;
}

/* ===== Contact form (within newsletter band) ===== */
.contact-inner { max-width: 640px; }
.contact-lead {
  color: var(--cream);
  font-size: 16px;
  line-height: 1.5;
  margin: 0 auto 36px;
  max-width: 520px;
  opacity: 0.92;
  text-wrap: pretty;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--off-white);
  border-radius: 28px;
  padding: 28px;
  text-align: left;
  box-shadow: 0 24px 60px rgba(74, 30, 3, 0.18);
}
.contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.contact-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contact-field > span {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--cocoa-muted);
}
.contact-field input,
.contact-field textarea {
  font: inherit;
  font-size: 15px;
  color: var(--cocoa);
  background: var(--sand);
  border: 1.5px solid transparent;
  border-radius: 14px;
  padding: 12px 16px;
  outline: none;
  transition: border-color var(--dur-base), background var(--dur-base);
  resize: vertical;
}
.contact-field input::placeholder,
.contact-field textarea::placeholder { color: var(--cocoa-muted); opacity: 0.7; }
.contact-field input:focus,
.contact-field textarea:focus {
  border-color: var(--cocoa);
  background: var(--off-white);
}
.contact-submit {
  align-self: flex-start;
  margin-top: 6px;
  padding: 14px 26px;
  font-size: 15px;
}

/* ===== Footer ===== */
.footer {
  background: var(--cocoa);
  color: var(--cream);
  padding: 80px 32px 32px;
  border-radius: 36px 36px 0 0;
}
.footer-inner { max-width: 1280px; margin: 0 auto; }
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
}
.footer-brand .tagline {
  font-family: var(--font-display); font-weight: 900;
  font-size: 44px; color: var(--cream);
  letter-spacing: -0.03em;
  margin: 16px 0 12px;
  line-height: 0.95;
}
.footer-brand p { font-size: 14px; opacity: 0.7; max-width: 280px; line-height: 1.55; margin: 0; }
.footer h4 {
  font-family: var(--font-display); font-weight: 800;
  font-size: 13px; color: var(--caramel);
  text-transform: uppercase; letter-spacing: 0.14em;
  margin: 0 0 18px;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { font-size: 14px; opacity: 0.78; transition: opacity var(--dur-base); }
.footer ul a:hover { opacity: 1; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(244,242,234,0.16);
  font-size: 12px; opacity: 0.6;
}
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(244,242,234,0.2);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background var(--dur-base), border-color var(--dur-base);
}
.footer-social a:hover { background: var(--caramel); border-color: var(--caramel); color: var(--cocoa); }
.footer-social svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* ===== Responsive trim ===== */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .hero { min-height: 540px; }
  .hero-stage { height: 440px; }
  .hero-stamp { display: none; }
  .collection { grid-template-columns: 1fr; }
  .product-card { grid-template-columns: 1fr; padding: 28px; }
  .product-num { display: none; }
  .product-side { display: none; }
  .story-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .nav { padding: 18px 20px; }
  .logo, .cart-btn { width: 42px; height: 42px; }
  .hero { min-height: 480px; padding: 0 0 40px; }
  .hero-stage { height: 360px; }
  .hero-wordmark {
    font-size: clamp(32px, 13vw, 65px);
    line-height: 0.88;
  }
  .hero-sub {
    right: 10%;
    bottom: 22%;
    font-size: clamp(13px, 4vw, 22px);
  }
  .hero-headline {
    font-size: clamp(26px, 10vw, 72px);
    line-height: 0.95;
  }
  .hero-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 0 20px;
  }
  .hero-tagline { max-width: 100%; }
  .section { padding: 64px 20px 0; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 14px; }
  .section-title { font-size: clamp(32px, 9vw, 44px); }
  .marquee-track { font-size: 22px; gap: 36px; }
  .marquee-track span { gap: 36px; }
  .story { padding: 64px 20px; margin-top: 64px; }
  .newsletter { padding: 64px 20px; }
  .newsletter-form { flex-direction: column; border-radius: 22px; background: transparent; padding: 0; gap: 10px; }
  .newsletter-form input { background: var(--off-white); border-radius: 9999px; padding: 14px 20px; text-align: center; }
  .newsletter-form button { border-radius: 9999px; padding: 14px 20px; }
  .contact-form { padding: 20px; border-radius: 22px; }
  .contact-row { grid-template-columns: 1fr; }
  .contact-submit { width: 100%; justify-content: center; }
  .footer { padding: 56px 20px 28px; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; padding-bottom: 36px; }
  .footer-brand .tagline { font-size: 36px; }
  .footer-bottom { flex-direction: column; gap: 14px; align-items: flex-start; }
}

/* ===== Reveal-on-scroll (light touch) ===== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}
.reveal.is-in { opacity: 1; transform: translateY(0); }
