/* ============================================================
   KRAFT & POUR — Warm kraft / coffee editorial theme
   ============================================================ */

:root {
  --cream:        #FBF7EF;
  --cream-2:      #F3ECDD;
  --cream-3:      #ECE2CE;
  --kraft:        #C9A66B;
  --kraft-dark:   #B98E52;
  --coffee:       #2A1E16;
  --ink:          #3B2A20;
  --ink-soft:     #6B5847;
  --green:        #6B7F5E;
  --green-dark:   #55664A;
  --terracotta:   #C2703D;
  --line:         rgba(42, 30, 22, 0.14);
  --line-strong:  rgba(42, 30, 22, 0.28);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", "Helvetica Neue", Arial, system-ui, sans-serif;

  --maxw: 1180px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(42,30,22,0.08);
  --shadow-md: 0 14px 40px rgba(42,30,22,0.14);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

p { margin: 0 0 1.1em; }

/* ---------- layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--green-dark);
  margin: 0 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--kraft);
  display: inline-block;
}

.section__head { max-width: 680px; margin-bottom: 48px; }
.section__head h2 { font-size: clamp(28px, 4vw, 44px); }
.section__head p { color: var(--ink-soft); font-size: 18px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease), box-shadow 0.18s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--coffee);
  color: var(--cream);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: #1c130d; box-shadow: var(--shadow-md); }

.btn--kraft {
  background: var(--kraft);
  color: var(--coffee);
}
.btn--kraft:hover { background: var(--kraft-dark); }

.btn--ghost {
  background: transparent;
  color: var(--coffee);
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--coffee); background: rgba(42,30,22,0.04); }

.btn--block { width: 100%; }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 247, 239, 0.78);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, background 0.2s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: 0.02em;
  color: var(--coffee);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.brand__dot {
  width: 11px; height: 11px;
  background: var(--kraft);
  border-radius: 50%;
  display: inline-block;
}
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  transition: color 0.18s;
}
.nav__links a::after {
  content: "";
  position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px; background: var(--kraft);
  transition: width 0.22s var(--ease);
}
.nav__links a:hover { color: var(--coffee); }
.nav__links a:hover::after { width: 100%; }
.nav__cta { display: flex; align-items: center; gap: 14px; }
.nav__toggle { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 500px at 82% -8%, rgba(201,166,107,0.28), transparent 60%),
    radial-gradient(700px 500px at 4% 110%, rgba(107,127,94,0.16), transparent 60%);
  pointer-events: none;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding: 84px 0 96px;
}
.hero h1 {
  font-size: clamp(38px, 6vw, 70px);
  margin-bottom: 22px;
}
.hero h1 em {
  font-style: italic;
  color: var(--terracotta);
}
.hero__lead { font-size: 19px; color: var(--ink-soft); max-width: 520px; margin-bottom: 30px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__meta {
  margin-top: 30px;
  display: flex; gap: 28px; flex-wrap: wrap;
  font-size: 14px; color: var(--ink-soft);
}
.hero__meta b { color: var(--coffee); font-size: 22px; font-family: var(--font-display); display: block; }

.hero__visual {
  position: relative;
  aspect-ratio: 1 / 1;
  background: linear-gradient(160deg, var(--cream-2), var(--cream-3));
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.hero__visual img { width: 78%; filter: drop-shadow(0 18px 30px rgba(42,30,22,0.18)); }
.hero__badge {
  position: absolute;
  background: var(--cream);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px; font-weight: 600;
  box-shadow: var(--shadow-sm);
  display: inline-flex; align-items: center; gap: 8px;
}
.hero__badge--1 { top: 22px; left: 22px; }
.hero__badge--2 { bottom: 26px; right: 22px; color: var(--green-dark); }

/* ---------- marquee / trust strip ---------- */
.trust {
  border-block: 1px solid var(--line);
  background: var(--cream-2);
  padding: 18px 0;
}
.trust__row {
  display: flex; align-items: center; justify-content: center;
  gap: 14px 40px; flex-wrap: wrap;
  font-size: 14px; color: var(--ink-soft); font-weight: 500;
}
.trust__row span { display: inline-flex; align-items: center; gap: 9px; }
.trust__row b { color: var(--coffee); }

/* ---------- value props ---------- */
.values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.value {
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.value:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.value__num {
  font-family: var(--font-display);
  font-size: 15px; font-weight: 600;
  color: var(--kraft-dark);
  letter-spacing: 0.1em;
}
.value h3 { font-size: 20px; margin: 10px 0 8px; }
.value p { font-size: 15px; color: var(--ink-soft); margin: 0; }

/* ---------- products ---------- */
.products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}
.product {
  position: relative;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.product:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.product__media {
  background: linear-gradient(160deg, var(--cream-2), var(--cream-3));
  display: grid; place-items: center;
  padding: 26px;
  border-right: 1px solid var(--line);
}
.product__media img { width: 100%; filter: drop-shadow(0 12px 22px rgba(42,30,22,0.16)); }
.product__body { padding: 30px 30px 30px 28px; display: flex; flex-direction: column; }
.product__tag {
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--green-dark); margin-bottom: 10px;
}
.product h3 { font-size: 23px; margin-bottom: 10px; }
.product p { font-size: 15px; color: var(--ink-soft); margin-bottom: 18px; }
.product__list { list-style: none; padding: 0; margin: 0 0 22px; font-size: 14px; color: var(--ink); }
.product__list li { display: flex; gap: 9px; align-items: flex-start; margin-bottom: 7px; }
.product__list li::before { content: "✓"; color: var(--green); font-weight: 800; }
.product__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.product__moq { font-size: 13px; color: var(--ink-soft); }

/* ---------- how it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step {
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  position: relative;
}
.step__num {
  font-family: var(--font-display);
  font-size: 40px; font-weight: 600;
  color: var(--kraft);
  line-height: 1;
  margin-bottom: 14px;
}
.step h3 { font-size: 21px; }
.step p { font-size: 15px; color: var(--ink-soft); margin: 0; }

/* ---------- design studio ---------- */
.studio {
  background: var(--coffee);
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 38px;
  box-shadow: var(--shadow-md);
}
.studio .eyebrow { color: var(--kraft); }
.studio .eyebrow::before { background: var(--kraft); }
.studio h2 { color: var(--cream); }
.studio__intro { color: rgba(251,247,239,0.72); margin-bottom: 26px; }

.stage-wrap { display: flex; flex-direction: column; gap: 16px; }
.stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background:
    radial-gradient(120% 120% at 50% 0%, #fffdf8, #efe6d4);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(42,30,22,0.08);
  touch-action: none;
  cursor: grab;
}
.stage.is-dragging { cursor: grabbing; }
.stage__product { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; user-select: none; }
.stage__logo {
  position: absolute;
  top: 50%; left: 50%;
  width: 38%;
  transform: translate(-50%, -50%);
  transform-origin: center center;
  cursor: grab;
  filter: drop-shadow(0 3px 6px rgba(42,30,22,0.22));
  will-change: transform;
}
.stage__logo.is-dragging { cursor: grabbing; }
.stage__hint {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; color: var(--ink-soft);
  pointer-events: none; padding: 24px;
  gap: 10px;
}
.stage__hint svg { width: 46px; height: 46px; opacity: 0.5; }
.stage__hint p { margin: 0; font-size: 15px; }

.studio__panel { display: flex; flex-direction: column; gap: 18px; }
.field-label {
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(251,247,239,0.7);
  margin-bottom: 10px; display: block;
}
.product-picker { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.pick {
  background: rgba(251,247,239,0.06);
  border: 1.5px solid rgba(251,247,239,0.16);
  border-radius: 12px;
  padding: 10px;
  cursor: pointer;
  display: flex; align-items: center; gap: 10px;
  color: var(--cream);
  font-size: 13.5px; font-weight: 600;
  transition: border-color 0.18s, background 0.18s;
}
.pick img { width: 38px; height: 38px; border-radius: 8px; background: var(--cream); padding: 3px; }
.pick:hover { border-color: rgba(251,247,239,0.4); }
.pick.is-active { border-color: var(--kraft); background: rgba(201,166,107,0.16); }

.dropzone {
  position: relative;
  border: 1.5px dashed rgba(251,247,239,0.34);
  border-radius: 14px;
  padding: 22px 18px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
  color: rgba(251,247,239,0.82);
  font-size: 14px;
}
.dropzone:hover, .dropzone.is-over { border-color: var(--kraft); background: rgba(201,166,107,0.1); }
.dropzone strong { color: var(--kraft); }
.dropzone small { display: block; margin-top: 6px; opacity: 0.6; font-size: 12px; }
/* file input overlays the dropzone so the native picker opens on direct tap/click */
.dropzone__input {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: pointer; z-index: 2; font-size: 0;
}
.dropzone__inner { position: relative; z-index: 1; pointer-events: none; }
.file-info { display: block; margin-top: 8px; color: var(--kraft); font-size: 13px; font-weight: 600; word-break: break-all; }
.upload-actions { display: flex; gap: 10px; margin-top: 12px; }
.btn--sm { padding: 8px 14px; font-size: 13px; }

.controls-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.slider-group { display: flex; flex-direction: column; gap: 8px; }
.slider-group label { font-size: 13px; color: rgba(251,247,239,0.8); display:flex; justify-content: space-between; }
.slider-group input[type="range"] { width: 100%; accent-color: var(--kraft); }

.studio__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.studio__note { font-size: 12.5px; color: rgba(251,247,239,0.55); margin: 0; }
.studio__notice { font-size: 12.5px; color: rgba(251,247,239,0.82); margin: 12px 0 0; line-height: 1.55; border-left: 2px solid var(--kraft); padding-left: 10px; }
.studio__notice a { color: var(--kraft); font-weight: 600; text-decoration: none; }
.studio__notice a:hover { text-decoration: underline; }

/* small color swatches for product tints (optional) */
.tints { display: flex; gap: 8px; }
.tint {
  width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid rgba(251,247,239,0.25); cursor: pointer;
}
.tint.is-active { border-color: var(--kraft); }

/* ---------- testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.quote {
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.quote p { font-size: 15.5px; color: var(--ink); }
.quote__by { font-size: 13px; color: var(--ink-soft); font-weight: 600; }
.quote__by span { color: var(--green-dark); }

/* ---------- contact ---------- */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact__info h2 { font-size: clamp(28px,4vw,42px); }
.contact__channels { display: flex; flex-direction: column; gap: 14px; margin-top: 26px; }
.channel {
  display: flex; align-items: center; gap: 16px;
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  transition: border-color 0.18s, transform 0.18s;
}
.channel:hover { border-color: var(--kraft); transform: translateY(-2px); }
.channel__icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--coffee); color: var(--cream);
  display: grid; place-items: center; flex: none;
}
.channel__icon svg { width: 22px; height: 22px; }
.channel__text { font-size: 14px; color: var(--ink-soft); }
.channel__text b { display: block; color: var(--coffee); font-size: 15.5px; font-family: var(--font-display); }

.form {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}
.form .field { margin-bottom: 16px; }
.form label { display:block; font-size: 13px; font-weight:600; color: var(--ink); margin-bottom: 7px; }
.form input, .form select, .form textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: var(--cream-2);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color 0.18s, background 0.18s;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--kraft); background: #fff;
}
.form textarea { resize: vertical; min-height: 96px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ---------- footer ---------- */
.footer {
  background: var(--coffee);
  color: rgba(251,247,239,0.72);
  padding: 56px 0 30px;
  font-size: 14.5px;
}
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; padding-bottom: 36px; border-bottom: 1px solid rgba(251,247,239,0.14); }
.footer .brand { color: var(--cream); margin-bottom: 14px; }
.footer p { max-width: 320px; }
.footer h4 { color: var(--cream); font-size: 16px; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.footer a:hover { color: var(--kraft); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; padding-top: 22px; font-size: 13px; color: rgba(251,247,239,0.5); }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px);
  background: var(--coffee); color: var(--cream);
  padding: 13px 22px; border-radius: 999px; font-size: 14.5px; font-weight: 600;
  box-shadow: var(--shadow-md); opacity: 0; pointer-events: none;
  transition: opacity 0.25s, transform 0.25s; z-index: 80;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; gap: 36px; }
  .hero__visual { max-width: 460px; }
  .values { grid-template-columns: repeat(2,1fr); }
  .products { grid-template-columns: 1fr; }
  .steps, .quotes { grid-template-columns: 1fr; }
  .studio { grid-template-columns: 1fr; padding: 28px; }
  .contact { grid-template-columns: 1fr; gap: 32px; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .nav__links, .nav__cta .btn--ghost { display: none; }
  .nav__toggle {
    display: inline-grid; place-items: center;
    width: 42px; height: 42px; border-radius: 10px;
    border: 1px solid var(--line-strong); background: transparent; cursor: pointer;
  }
  .nav__links.is-open {
    display: flex; flex-direction: column; align-items: flex-start;
    position: absolute; top: 70px; left: 0; right: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 18px 24px; gap: 16px;
  }
  .values { grid-template-columns: 1fr; }
  .product { grid-template-columns: 1fr; }
  .product__media { border-right: none; border-bottom: 1px solid var(--line); }
  .controls-row { grid-template-columns: 1fr; }
  .form .row2 { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
}

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