/* ============================================================
   MAISON LABAT — pure CSS, no framework
   Night mode default (data-theme="dark"), light via toggle.
   Inspired by mariposa.studio: editorial serif, full-bleed
   imagery, generous whitespace. Fonts: Sorts Mill Goudy
   (headings) + PT Serif (body), system fallbacks.
   ============================================================ */

:root, html[data-theme="dark"] {
  --bg: #0d0b09;
  --bg-alt: #14100c;
  --surface: #1b1611;
  --text: #f2ead9;
  --muted: #b3a289;
  --accent: #c8a15a;        /* champagne gold */
  --accent-2: #8a2f3f;      /* burgundy */
  --line: rgba(200, 161, 90, .25);
  --shadow: 0 18px 50px rgba(0,0,0,.55);
  --header-bg: rgba(13, 11, 9, .82);
  --img-bg: #000;
}
html[data-theme="light"] {
  --bg: #faf6ef;
  --bg-alt: #f1e9dc;
  --surface: #ffffff;
  --text: #241d16;
  --muted: #6f6353;
  --accent: #8a6a2f;
  --accent-2: #8a2f3f;
  --line: rgba(36, 29, 22, .15);
  --shadow: 0 18px 50px rgba(60, 45, 20, .18);
  --header-bg: rgba(250, 246, 239, .85);
  --img-bg: #eee;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "PT Serif", Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.65;
  transition: background .4s ease, color .4s ease;
}
h1, h2, h3, .brand, .btn, .lang-btn, .theme-toggle, .cart-btn {
  font-family: "Sorts Mill Goudy", "PT Serif", Georgia, serif;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 1rem;
  padding: .55rem 1.1rem;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand-logo { height: 42px; width: auto; }
html[data-theme="light"] .brand-logo { filter: invert(1); } /* dark calligraphy on light bg */
.main-nav { display: flex; gap: 1.2rem; margin-left: auto; }
.main-nav a { color: var(--text); font-size: 1.02rem; letter-spacing: .04em; }
.header-tools { display: flex; align-items: center; gap: .5rem; }
.lang-switch { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang-btn {
  background: none; border: 0; color: var(--muted); cursor: pointer;
  padding: .28rem .6rem; font-size: .85rem; letter-spacing: .06em;
}
.lang-btn.active { background: var(--accent); color: #14100c; }
.theme-toggle, .cart-btn, .burger {
  background: none; border: 1px solid var(--line); border-radius: 999px;
  color: var(--text); cursor: pointer; padding: .3rem .65rem; font-size: 1rem;
}
.cart-btn span { color: var(--accent); font-weight: bold; }
.burger { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; }
.hero-bg {
  position: absolute; inset: -12% 0; z-index: -1;
  background-size: cover; background-position: center;
  will-change: transform;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,0,0,.25), rgba(0,0,0,.78));
}
.hero-content { text-align: center; padding: 6rem 1.2rem 3rem; position: relative; z-index: 1; }
.hero-kicker { color: var(--accent); letter-spacing: .35em; text-transform: uppercase; font-size: .8rem; }
.hero-title {
  font-size: clamp(3rem, 11vw, 7.5rem); font-weight: 400; line-height: 1.05;
  color: #f7f1e3; text-shadow: 0 4px 40px rgba(0,0,0,.6); margin: .4rem 0;
}
.hero-sub { color: #e8dfcc; font-style: italic; font-size: clamp(1rem, 2.6vw, 1.35rem); max-width: 40rem; margin: 0 auto 1.6rem; }
.hero-cta { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; }
.scroll-hint { position: absolute; bottom: 1.2rem; left: 50%; transform: translateX(-50%); color: var(--accent); font-size: 1.6rem; animation: bob 1.8s infinite ease-in-out; }
@keyframes bob { 50% { transform: translate(-50%, 8px); } }

.btn {
  display: inline-block; cursor: pointer; border-radius: 999px;
  padding: .7rem 1.6rem; font-size: 1rem; letter-spacing: .05em;
  border: 1px solid var(--accent); transition: all .25s ease;
}
.btn-gold { background: var(--accent); color: #14100c; }
.btn-gold:hover { background: transparent; color: var(--accent); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.btn-block { width: 100%; }

/* ---------- marquee (infinite scroll strip) ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--bg-alt); padding: .7rem 0; }
.marquee-track { display: inline-flex; white-space: nowrap; animation: marquee 28s linear infinite; will-change: transform; }
.marquee-track span { font-style: italic; color: var(--muted); letter-spacing: .12em; padding-right: 2rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: clamp(3.5rem, 9vw, 7rem) 1.2rem; }
.section-alt { background: var(--bg-alt); }
.section-inner { max-width: 1180px; margin: 0 auto; }
.section-inner.narrow { max-width: 640px; text-align: center; }
.section-head { text-align: center; margin-bottom: 2.4rem; }
h2 { font-size: clamp(1.9rem, 5vw, 3rem); font-weight: 400; margin-bottom: 1rem; }
h2::after { content: ""; display: block; width: 64px; height: 1px; background: var(--accent); margin: .8rem auto 0; }
.section-head p { color: var(--muted); max-width: 46rem; margin: 0 auto; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.split-reverse .split-text { order: 2; }
.split-text p { margin-bottom: 1rem; color: var(--muted); }
.split-text .btn { margin-top: .6rem; color: var(--text); }
.split-media { overflow: hidden; border-radius: 6px; box-shadow: var(--shadow); }
.split-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; will-change: transform; }

/* ---------- shop ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-top: 1.4rem; }
.chip {
  font-family: "Sorts Mill Goudy", Georgia, serif;
  background: none; color: var(--muted); border: 1px solid var(--line);
  border-radius: 999px; padding: .35rem 1rem; cursor: pointer; font-size: .92rem;
}
.chip.active { background: var(--accent); color: #14100c; border-color: var(--accent); }
.product-grid {
  display: grid; gap: 1.4rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
}
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  overflow: hidden; display: flex; flex-direction: column;
  opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease;
}
.card.visible { opacity: 1; transform: none; }
.card-img { aspect-ratio: 1; background: var(--img-bg); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-img img { transform: scale(1.06); }
.card-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.card-cat { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }
.card-name { font-size: 1.15rem; line-height: 1.3; }
.card-desc { color: var(--muted); font-size: .92rem; flex: 1; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: .5rem; }
.card-price { font-size: 1.15rem; color: var(--accent); font-weight: bold; }
.buy-btn {
  font-family: "Sorts Mill Goudy", Georgia, serif;
  background: var(--accent); color: #14100c; border: 0; border-radius: 999px;
  padding: .45rem 1.1rem; cursor: pointer; font-size: .95rem; letter-spacing: .04em;
}
.buy-btn:hover { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.buy-btn:disabled { opacity: .45; cursor: not-allowed; }
.card.sold-out .card-img img { filter: grayscale(.7) brightness(.7); }
.feed-sentinel { height: 2px; }
.feed-end { text-align: center; color: var(--muted); font-style: italic; padding: 2rem 0 0; }

/* ---------- parallax banners ---------- */
.banner { position: relative; min-height: 62svh; display: grid; place-items: center; overflow: hidden; margin-top: 1.6rem; }
.banner-bg { position: absolute; inset: -14% 0; background-size: cover; background-position: center; will-change: transform; }
.banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0,0,0,.35), rgba(0,0,0,.65)); }
.banner-content { position: relative; z-index: 1; text-align: center; padding: 3rem 1.2rem; }
.banner-content h3 { font-size: clamp(2rem, 6vw, 3.6rem); font-weight: 400; color: #f7f1e3; text-shadow: 0 3px 30px rgba(0,0,0,.7); }
.banner-content p { color: #e8dfcc; font-style: italic; max-width: 34rem; margin: .5rem auto 0; }

/* ---------- contact ---------- */
address { font-style: normal; margin: 1rem 0; line-height: 1.9; }

/* ---------- footer ---------- */
.site-footer { text-align: center; padding: 3rem 1.2rem; border-top: 1px solid var(--line); color: var(--muted); }
.footer-logo { height: 56px; margin: 0 auto 1rem; }
html[data-theme="light"] .footer-logo { filter: invert(1); }
.footer-lang .lang-btn { border: 0; text-decoration: underline; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 1rem; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.7); backdrop-filter: blur(4px); }
.modal-card {
  position: relative; background: var(--surface); color: var(--text);
  border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  max-width: 460px; width: 100%; max-height: 90svh; overflow: auto; padding: 1.4rem;
}
.modal-card img { border-radius: 8px; aspect-ratio: 1; object-fit: cover; background: var(--img-bg); margin-bottom: 1rem; }
.modal-close { position: absolute; top: .6rem; right: .7rem; background: none; border: 0; color: var(--text); font-size: 1.2rem; cursor: pointer; }
.price-breakdown { list-style: none; color: var(--muted); font-size: .9rem; margin: .6rem 0; }
.price-breakdown li { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--line); padding: .2rem 0; }
.price-total { font-size: 1.1rem; margin: .5rem 0 1rem; }
.price-total strong { color: var(--accent); }
.buy-options { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; font-size: .95rem; }
.buy-note { margin-top: .7rem; font-size: .8rem; color: var(--muted); text-align: center; }

/* ---------- toast ---------- */
.toast {
  position: fixed; bottom: 1.2rem; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #14100c; padding: .7rem 1.4rem;
  border-radius: 999px; z-index: 120; box-shadow: var(--shadow); font-size: .95rem;
}

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .card { opacity: 1 !important; transform: none !important; transition: none; }
  .marquee-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- mobile ---------- */
@media (max-width: 860px) {
  .main-nav {
    position: fixed; top: 58px; right: 0; left: 0; z-index: 49;
    flex-direction: column; gap: 0; background: var(--header-bg);
    border-bottom: 1px solid var(--line); display: none; padding: .5rem 0;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: .8rem 1.4rem; border-top: 1px solid var(--line); }
  .burger { display: inline-block; }
  .brand-logo { height: 34px; }
  .split { grid-template-columns: 1fr; }
  .split-reverse .split-text { order: 0; }
  body { font-size: 16px; }
}

/* ---------- geometric parallax layer (bottom / contact) ---------- */
.geo-zone { position: relative; overflow: hidden; }
.geo-layer { position: absolute; inset: 0; pointer-events: none; color: var(--accent); opacity: .5; }
.geo-shape { position: absolute; width: clamp(70px, 12vw, 160px); height: auto; will-change: transform; }
.geo-shape.g1 { top: 6%; left: 4%; }
.geo-shape.g2 { top: 12%; right: 7%; width: clamp(90px, 15vw, 200px); }
.geo-shape.g3 { bottom: 30%; left: 10%; width: clamp(60px, 9vw, 120px); }
.geo-shape.g4 { bottom: 12%; right: 12%; width: clamp(80px, 13vw, 170px); }
.geo-shape.g5 { top: 45%; right: 28%; width: clamp(50px, 8vw, 100px); opacity: .7; }
.geo-shape.g6 { bottom: 6%; left: 30%; width: clamp(46px, 7vw, 90px); opacity: .6; }
.contact-card { position: relative; z-index: 1; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 2.2rem 1.6rem; box-shadow: var(--shadow); }
.contact-card p { margin: .5rem 0; }

/* ---------- share ---------- */
.share-fab {
  position: absolute; right: 1rem; bottom: 1rem; z-index: 2;
  background: rgba(0,0,0,.45); color: #f2ead9; border: 1px solid var(--line);
  border-radius: 999px; width: 42px; height: 42px; font-size: 1.1rem; cursor: pointer;
}
.share-fab:hover { background: var(--accent); color: #14100c; }
.share-bar { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin: 1rem 0; }
.share-bar button {
  font-family: "Sorts Mill Goudy", Georgia, serif;
  background: var(--surface); color: var(--text); border: 1px solid var(--line);
  border-radius: 999px; padding: .45rem .9rem; cursor: pointer; font-size: .95rem;
}
.share-bar button:hover { border-color: var(--accent); color: var(--accent); }
.share-bar.big button { font-size: 1rem; padding: .6rem 1.1rem; }
.share-preview { color: var(--muted); font-style: italic; margin-bottom: .6rem; }
.share-preview-img { border-radius: 8px; max-height: 220px; width: 100%; object-fit: cover; margin-bottom: .8rem; background: var(--img-bg); }

/* ---------- services / deposit cards ---------- */
.service-card .card-img img { object-fit: contain; padding: 1.2rem; background: var(--img-bg); }

/* ---------- GDPR ---------- */
.linklike { background: none; border: 0; color: var(--accent); cursor: pointer; font: inherit; text-decoration: underline; padding: 0; }
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap;
  background: var(--surface); color: var(--text); border-top: 1px solid var(--line);
  padding: .9rem 1.2rem; box-shadow: var(--shadow); font-size: .92rem;
}
.cookie-actions { display: flex; gap: .5rem; }
.privacy-card { max-width: 640px; }
.privacy-card h3 { margin-bottom: .8rem; }
.privacy-card p { margin-bottom: .7rem; color: var(--muted); font-size: .95rem; }
.privacy-card strong { color: var(--text); }
.footer-links { margin: .6rem 0; }

/* ---------- brand logo in titles ---------- */
.hero-logo { height: clamp(90px, 14vw, 150px); width: auto; margin: 0 auto .8rem; display: block; filter: drop-shadow(0 4px 24px rgba(0,0,0,.6)); }
.head-logo { height: 34px; width: auto; margin: 0 auto .6rem; display: block; opacity: .9; }
.head-logo.big { height: 52px; }
html[data-theme="light"] .hero-logo,
html[data-theme="light"] .head-logo { filter: invert(1); }

/* ---------- hero: big logo as the title (no duplicate text) ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hero-logo { height: clamp(150px, 24vw, 260px); }
