/* =========================================================================
   Yalcin Tapijt & Woninginrichting — design system
   Warm, light, editorial. Playfair Display + Manrope. Terracotta accent.
   ========================================================================= */

:root {
  /* Warm light neutrals — lightest variant */
  --paper:      #f7f3ec;
  --paper-2:    #fbf8f2;
  --sand:       #efe7d8;
  --taupe-lt:   #e6dcc9;
  --taupe:      #cabfa8;
  --wood:       #9c8a6a;

  /* Ink (text only, never a dominant fill) */
  --ink:        #2a2620;
  --ink-soft:   #5d5547;
  --ink-faint:  #8c8474;

  /* Accent — warm terracotta / clay */
  --clay:       #b5613a;
  --clay-deep:  #97492a;
  --clay-soft:  #e9cdba;

  --line:       #e3d9c7;
  --line-2:     #d8ccb6;

  --cream:      #f7f1e6;

  /* Type */
  --display: "Fraunces", Georgia, serif;
  --body:    "Inter Tight", system-ui, -apple-system, sans-serif;

  /* Rhythm */
  --maxw: 1280px;
  --gutter: clamp(20px, 5vw, 72px);
  --radius: 2px;

  --shadow-sm: 0 1px 2px rgba(42,38,32,.04), 0 2px 8px rgba(42,38,32,.04);
  --shadow-md: 0 10px 30px -12px rgba(42,38,32,.18), 0 2px 8px rgba(42,38,32,.05);
  --shadow-lg: 0 30px 60px -20px rgba(42,38,32,.28);

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* Grain overlay — subtle texture like velora-s-embrace */
.grain::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.038;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.7'/></svg>");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--body);
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: .002em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Type ---------- */
h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -.01em;
  margin: 0;
  text-wrap: balance;
}
.display {
  font-size: clamp(2.7rem, 7vw, 6.2rem);
  line-height: .98;
  font-weight: 500;
}
.display em, h1 em, h2 em { font-style: italic; color: var(--clay); }

h2.section-title { font-size: clamp(2.1rem, 4.6vw, 4rem); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.lead { font-size: clamp(1.1rem, 1.7vw, 1.4rem); line-height: 1.5; color: var(--ink-soft); }

/* Eyebrow label — terracotta with leading dash */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .7em;
  font-family: var(--body);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--clay);
  margin: 0 0 1.3rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--clay);
  display: inline-block;
}
.eyebrow.center { justify-content: center; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.wrap-wide { max-width: 1480px; margin: 0 auto; padding-inline: var(--gutter); }
section { position: relative; }
.section-pad { padding-block: clamp(72px, 11vw, 160px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .7em;
  padding: 1.05em 1.7em;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .94rem;
  letter-spacing: .01em;
  border: 1px solid transparent;
  transition: background .35s var(--ease), color .35s var(--ease),
              border-color .35s var(--ease), transform .35s var(--ease);
  white-space: nowrap;
}
.btn .arr {
  display: inline-block;
  transition: transform .4s var(--ease);
}
.btn:hover .arr { transform: translateX(5px); }

.btn-primary { background: var(--clay); color: var(--cream); }
.btn-primary:hover { background: var(--clay-deep); }

.btn-dark { background: var(--ink); color: var(--cream); }
.btn-dark:hover { background: #161310; }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); background: rgba(42,38,32,.03); }

.btn-cream { background: var(--cream); color: var(--ink); }
.btn-cream:hover { background: #fff; }

.btn-lg { padding: 1.2em 2em; font-size: 1rem; }

/* ---------- Image placeholders (replace with real photography) ---------- */
.ph {
  position: relative;
  overflow: hidden;
  background:
    repeating-linear-gradient(135deg,
      rgba(156,138,106,.10) 0 2px,
      transparent 2px 13px),
    linear-gradient(160deg, var(--sand), var(--taupe-lt));
  border: 1px solid var(--line);
}
.ph::after {
  content: attr(data-label);
  position: absolute;
  left: 14px; bottom: 12px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: .68rem;
  letter-spacing: .04em;
  color: var(--ink-faint);
  background: rgba(247,243,236,.82);
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 2px;
  max-width: calc(100% - 28px);
  backdrop-filter: blur(2px);
}
.ph.on-dark {
  background:
    repeating-linear-gradient(135deg,
      rgba(247,241,230,.08) 0 2px,
      transparent 2px 13px),
    linear-gradient(160deg, #20342b, #16241d);
  border-color: rgba(247,241,230,.12);
}
.ph.on-dark::after {
  color: rgba(247,241,230,.7);
  background: rgba(20,28,23,.65);
  border-color: rgba(247,241,230,.14);
}
/* auto-upgrade: when a real image at data-src loads, JS sets bg + this class */
.ph.has-img { background: var(--ink) center/cover no-repeat; border-color: transparent; }
.ph.has-img::after { display: none; }
.ph.has-img.kept-label::after { display: block; }

/* ---------- Scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  will-change: opacity, transform;
}
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal-d="1"] { transition-delay: .08s; }
[data-reveal-d="2"] { transition-delay: .16s; }
[data-reveal-d="3"] { transition-delay: .24s; }
[data-reveal-d="4"] { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none; }
}

/* hairline divider */
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* zellige-ish dot texture for dark sections (subtle) */
.tex {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(247,241,230,.05) 1px, transparent 1.4px);
  background-size: 22px 22px;
  pointer-events: none;
  opacity: .6;
}

/* =========================================================================
   Site chrome — navigation
   ========================================================================= */
.nav {
  position: fixed;
  top: var(--promo-h, 0px); left: 0; right: 0;
  z-index: 100;
  transition: background .4s var(--ease), box-shadow .4s var(--ease),
              border-color .4s var(--ease), top .4s var(--ease);
  border-bottom: 1px solid transparent;
}

/* Promo / announcement bar */
.promo {
  position: fixed; top: 0; left: 0; right: 0; z-index: 105;
  height: var(--promo-h, 0px); overflow: hidden;
  background: var(--clay); color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  transition: height .45s var(--ease);
}
.promo-inner {
  display: flex; align-items: center; gap: 14px; justify-content: center;
  font-size: .84rem; letter-spacing: .01em; padding-inline: 48px 40px; text-align: center;
}
.promo-inner strong { font-weight: 700; }
.promo-inner .tick { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.promo-inner a { text-decoration: underline; text-underline-offset: 2px; font-weight: 600; white-space: nowrap; }
.promo-close {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; color: var(--cream); font-size: 1.1rem; line-height: 1;
  width: 28px; height: 28px; border-radius: 50%; opacity: .85; transition: opacity .25s, background .25s;
}
.promo-close:hover { opacity: 1; background: rgba(247,241,230,.16); }
body.promo-closed { --promo-h: 0px; }
@media (max-width: 640px) {
  .promo-inner { font-size: .76rem; gap: 8px; padding-inline: 40px 36px; }
  .promo-inner .tick { display: none; }
}
.nav-scrolled {
  background: rgba(247,243,236,.86);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line);
}
.nav-inner {
  max-width: 1480px;
  margin: 0 auto;
  padding: clamp(16px,2vw,22px) var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: .55rem;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--ink);
}
.brand .brand-mark { font-style: italic; }
.brand-tag {
  font-family: var(--body);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  align-self: center;
  padding-left: .6rem;
  margin-left: .2rem;
  border-left: 1px solid var(--line-2);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.4vw, 40px);
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  font-size: .92rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: .3em 0;
  transition: color .3s var(--ease);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 1px; background: var(--clay);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: 0; padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2px; background: var(--ink);
  transition: transform .35s var(--ease), opacity .25s var(--ease);
}

@media (max-width: 940px) {
  .nav-toggle { display: flex; }
  .nav-links, .nav-cta .btn-text-hide { display: none; }
  .nav-menu {
    position: fixed; inset: 0 0 0 auto;
    width: min(86vw, 380px);
    background: var(--paper-2);
    border-left: 1px solid var(--line);
    transform: translateX(100%);
    transition: transform .5s var(--ease);
    display: flex; flex-direction: column;
    padding: 110px var(--gutter) 40px;
    gap: 8px;
  }
  .nav-menu .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    width: 100%;
  }
  .nav-menu .nav-links a { font-size: 1.6rem; font-family: var(--display); padding: .35em 0; }
  .nav-menu .nav-cta { margin-top: 24px; width: 100%; }
  .nav-menu .nav-cta .btn { width: 100%; justify-content: center; }
  .nav-open .nav-menu { transform: translateX(0); box-shadow: var(--shadow-lg); }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (min-width: 941px) {
  .nav-menu { display: flex !important; align-items: center; gap: clamp(24px,3vw,48px); }
}

/* =========================================================================
   Footer
   ========================================================================= */
.footer {
  background: var(--ink);
  color: var(--cream);
  padding-block: clamp(64px, 9vw, 110px) 36px;
  position: relative;
}
.footer .brand { color: var(--cream); }
.footer .brand-tag { color: rgba(247,241,230,.55); border-color: rgba(247,241,230,.2); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.footer h4 {
  color: var(--cream);
  font-family: var(--body);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  opacity: .65;
  margin-bottom: 1.3rem;
}
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .7rem; }
.footer-links a { color: rgba(247,241,230,.78); font-size: .95rem; transition: color .3s var(--ease); }
.footer-links a:hover { color: var(--cream); }
.footer-intro p { color: rgba(247,241,230,.72); max-width: 34ch; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 16px;
  justify-content: space-between; align-items: center;
  margin-top: clamp(40px, 6vw, 72px);
  padding-top: 28px;
  border-top: 1px solid rgba(247,241,230,.14);
  font-size: .82rem;
  color: rgba(247,241,230,.55);
}
.footer-legal { display: inline-flex; gap: 6px; align-items: center; }
.footer-legal a { color: rgba(247,241,230,.78); transition: color .3s var(--ease); }
.footer-legal a:hover { color: var(--cream); }
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-intro { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ================= WEBSHOP ================= */
.webshop-section { background: var(--paper-2); }
.webshop-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 7vw, 100px); align-items: center;
}
.webshop-features {
  list-style: none; padding: 0; margin: 2rem 0 2.4rem;
  display: flex; flex-direction: column; gap: .9rem;
}
.webshop-features li {
  display: flex; align-items: center; gap: 12px;
  font-size: .98rem; color: var(--ink-soft);
}
.wf-dot {
  flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%;
  background: var(--clay);
}
.shopify-embed-placeholder { /* this wrapper gets swapped for a real Shopify embed */ }
.notify-form { display: flex; gap: 10px; flex-wrap: wrap; }
.notify-input {
  flex: 1 1 200px; padding: .85em 1.2em;
  border: 1px solid var(--line-2); border-radius: var(--radius);
  font-family: var(--body); font-size: .95rem; background: var(--paper);
  color: var(--ink); outline: none;
  transition: border-color .3s;
}
.notify-input:focus { border-color: var(--clay); }
.notify-note { font-size: .78rem; color: var(--ink-faint); margin-top: .8rem; }

.webshop-media { position: relative; }
.webshop-preview { display: flex; flex-direction: column; gap: 14px; }
.shop-preview-card {
  display: grid; grid-template-columns: 120px 1fr;
  gap: 18px; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; align-items: center;
  transition: box-shadow .4s var(--ease);
}
.shop-preview-card:hover { box-shadow: var(--shadow-md); }
.shop-ph { height: 90px; border-radius: var(--radius); }
.shop-cat { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--clay); }
.shop-title { font-family: var(--display); font-size: 1.1rem; color: var(--ink); margin: .3rem 0 .5rem; }
.shop-price { font-size: .9rem; color: var(--ink-soft); }
.shop-price strong { color: var(--ink); }
.shop-cta-placeholder {
  display: inline-block; margin-top: 10px;
  font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--clay); border: 1px solid var(--clay-soft);
  padding: .4em .9em; border-radius: 100px;
}
.webshop-badge {
  position: absolute; top: -16px; right: -10px;
  background: var(--clay); color: var(--cream);
  font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  padding: .5em 1em; border-radius: 100px;
}
@media (max-width: 860px) {
  .webshop-grid { grid-template-columns: 1fr; }
  .webshop-badge { top: -12px; right: 0; }
}

/* =========================================================================
   Cookie consent bar
   ========================================================================= */
.cookie {
  position: fixed;
  left: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 32px);
  z-index: 200;
  max-width: 420px;
  background: var(--paper-2);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 26px 26px 24px;
  transform: translateY(140%);
  opacity: 0;
  transition: transform .6s var(--ease), opacity .5s var(--ease);
}
.cookie.show { transform: translateY(0); opacity: 1; }
.cookie h4 { font-size: 1.2rem; margin-bottom: .5rem; }
.cookie p { font-size: .88rem; line-height: 1.55; color: var(--ink-soft); margin-bottom: 1.2rem; }
.cookie p a { color: var(--clay); text-decoration: underline; text-underline-offset: 2px; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions .btn { padding: .75em 1.3em; font-size: .85rem; }
@media (max-width: 480px) {
  .cookie { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}
