/* ═══════════════════════════════════════════════════════════
   BRÛLÉE — SHARED STYLES
═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&family=Fraunces:ital,opsz,wght@1,9..144,300;1,9..144,400&display=swap');

/* ── Reset & Tokens ────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

:root {
  --espresso:    #140b04;
  --roast:       #2d1408;
  --mahogany:    #5c2d0f;
  --copper:      #8b4513;
  --caramel:     #b8732a;
  --gold:        #c9963a;
  --amber:       #d4a854;
  --cream:       #f2e8d8;
  --latte:       #e0cdb0;
  --paper:       #faf6ef;
  --fog:         #f4ede2;
  --white:       #ffffff;
  --text-dark:   #140b04;
  --text-mid:    #5a3720;
  --text-light:  #9c6a42;
  --text-faint:  #c4a07a;

  --r-sm: 3px;
  --r-md: 6px;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:   cubic-bezier(0.76, 0, 0.24, 1);
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--paper);
  color: var(--text-dark);
  overflow-x: hidden;
  cursor: none;
}
body.loading { overflow: hidden; }
body.no-scroll { overflow: hidden; }

/* ── Custom Cursor ──────────────────────────────────────── */
#cursor {
  position: fixed; top: 0; left: 0;
  width: 40px; height: 40px;
  border: 1px solid var(--caramel);
  border-radius: 50%;
  pointer-events: none; z-index: 9998;
  transition: width .3s, height .3s, border-color .3s, background .3s;
  mix-blend-mode: multiply;
}
#cursor.hover {
  width: 60px; height: 60px;
  background: rgba(192,128,64,.08);
  border-color: var(--amber);
}
#cursor-dot {
  position: fixed; top: 0; left: 0;
  width: 8px; height: 8px;
  background: var(--caramel);
  border-radius: 50%;
  pointer-events: none; z-index: 9999;
}

/* ── Page Transition ────────────────────────────────────── */
#pageTransition {
  position: fixed; inset: 0;
  background: var(--espresso);
  z-index: 9000;
  transform-origin: bottom;
  transition: transform .5s var(--ease-in-out), opacity .5s;
}
#pageTransition.out {
  transform: scaleY(0);
  transform-origin: top;
  pointer-events: none;
}
#pageTransition.in {
  transform: scaleY(1);
  transform-origin: bottom;
}

/* ── Loader ─────────────────────────────────────────────── */
#loader {
  position: fixed; inset: 0;
  background: var(--espresso);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 24px;
  z-index: 9999;
  transition: opacity .6s ease, visibility .6s;
}
#loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-wordmark {
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px; font-weight: 300;
  color: var(--white); letter-spacing: .1em;
}
.loader-wordmark span { color: var(--amber); }
.loader-bar {
  width: 200px; height: 1px;
  background: rgba(255,255,255,.1);
  position: relative; overflow: hidden;
}
.loader-bar-fill {
  position: absolute; inset-block: 0; left: 0;
  background: var(--amber);
  width: 0; transition: width .1s linear;
}
.loader-pct {
  font-size: 11px; letter-spacing: .25em;
  color: rgba(255,255,255,.3);
}

/* ── Grain Overlay ──────────────────────────────────────── */
.grain::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: .035; pointer-events: none; z-index: 1;
}

/* ── Navbar ─────────────────────────────────────────────── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 500;
  padding: 28px 64px;
  display: flex; align-items: center; justify-content: space-between;
  transition: background .4s, padding .4s, box-shadow .4s;
}
#navbar.scrolled {
  background: rgba(250,246,239,.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 16px 64px;
  box-shadow: 0 1px 0 rgba(90,55,32,.1);
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px; font-weight: 500;
  color: var(--white); letter-spacing: .08em;
  text-decoration: none; transition: color .3s;
  position: relative; z-index: 1;
}
.nav-logo span { color: var(--amber); }
#navbar.scrolled .nav-logo { color: var(--espresso); }
#navbar.dark-nav .nav-logo { color: var(--espresso); }

.nav-center {
  display: flex; gap: 40px; list-style: none;
  position: absolute; left: 50%; transform: translateX(-50%);
}
.nav-link {
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.7);
  text-decoration: none; transition: color .25s;
  position: relative; padding-bottom: 3px;
}
.nav-link::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 1px; background: var(--amber);
  transform: scaleX(0); transform-origin: right;
  transition: transform .3s var(--ease-out-expo);
}
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); transform-origin: left; }
.nav-link:hover, .nav-link.active { color: var(--white); }
#navbar.scrolled .nav-link,
#navbar.dark-nav .nav-link { color: var(--text-mid); }
#navbar.scrolled .nav-link:hover,
#navbar.scrolled .nav-link.active,
#navbar.dark-nav .nav-link:hover,
#navbar.dark-nav .nav-link.active { color: var(--espresso); }

.nav-right { display: flex; align-items: center; gap: 24px; }
.nav-reserve {
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  padding: 11px 26px;
  background: transparent;
  border: 1px solid rgba(255,255,255,.35);
  color: var(--white);
  text-decoration: none; border-radius: var(--r-sm);
  transition: all .3s;
}
.nav-reserve:hover { background: var(--amber); border-color: var(--amber); color: var(--espresso); }
#navbar.scrolled .nav-reserve,
#navbar.dark-nav .nav-reserve { border-color: var(--caramel); color: var(--caramel); }
#navbar.scrolled .nav-reserve:hover,
#navbar.dark-nav .nav-reserve:hover { background: var(--caramel); border-color: var(--caramel); color: var(--white); }

/* Hamburger */
#hamBtn {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
#hamBtn span {
  display: block; width: 24px; height: 1.5px;
  background: var(--white); transition: all .3s;
}
#navbar.scrolled #hamBtn span,
#navbar.dark-nav #hamBtn span { background: var(--espresso); }
#hamBtn.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
#hamBtn.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
#hamBtn.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile Menu */
#mobileMenu {
  position: fixed; inset: 0;
  background: var(--espresso);
  z-index: 490;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
  opacity: 0; pointer-events: none;
  transition: opacity .4s;
}
#mobileMenu.open { opacity: 1; pointer-events: all; }
#mobileMenu a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px; font-weight: 300;
  color: var(--white); text-decoration: none;
  letter-spacing: .04em; line-height: 1.3;
  transition: color .25s;
}
#mobileMenu a:hover { color: var(--amber); }

/* ── Reveal Animations ──────────────────────────────────── */
.reveal, .reveal-up {
  opacity: 0; transform: translateY(32px);
  transition: opacity .8s var(--ease-out-expo), transform .8s var(--ease-out-expo);
}
.reveal-left {
  opacity: 0; transform: translateX(-32px);
  transition: opacity .8s var(--ease-out-expo), transform .8s var(--ease-out-expo);
}
.reveal-right {
  opacity: 0; transform: translateX(32px);
  transition: opacity .8s var(--ease-out-expo), transform .8s var(--ease-out-expo);
}
.reveal.visible, .reveal-up.visible,
.reveal-left.visible, .reveal-right.visible {
  opacity: 1; transform: none;
}
.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .2s; }
.delay-3 { transition-delay: .3s; }
.delay-4 { transition-delay: .4s; }
.delay-5 { transition-delay: .5s; }

/* ── Section Utilities ──────────────────────────────────── */
.eyebrow {
  font-size: 11px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--caramel);
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: ''; display: block; width: 36px; height: 1px;
  background: currentColor; flex-shrink: 0;
}
.display-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300; line-height: .95;
  color: var(--espresso);
}
.display-title em {
  font-style: italic; color: var(--caramel);
}
.display-title.light { color: var(--white); }
.display-title.light em { color: var(--amber); }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  padding: 15px 36px; border-radius: var(--r-sm);
  text-decoration: none; cursor: pointer; font-weight: 500;
  transition: all .3s var(--ease-out-expo);
  border: none;
}
.btn-fill { background: var(--espresso); color: var(--amber); }
.btn-fill:hover { background: var(--roast); transform: translateY(-3px); box-shadow: 0 12px 32px rgba(20,11,4,.25); }
.btn-outline { border: 1px solid currentColor; color: var(--espresso); background: transparent; }
.btn-outline:hover { background: var(--espresso); color: var(--amber); }
.btn-outline-light { border: 1px solid rgba(255,255,255,.35); color: var(--white); background: transparent; }
.btn-outline-light:hover { background: var(--amber); border-color: var(--amber); color: var(--espresso); }
.btn-gold { background: var(--amber); color: var(--espresso); }
.btn-gold:hover { background: var(--caramel); transform: translateY(-3px); box-shadow: 0 12px 32px rgba(180,110,40,.3); }
.btn-arrow::after { content: '→'; font-family: sans-serif; transition: transform .3s; }
.btn-arrow:hover::after { transform: translateX(4px); }

/* ── Marquee ────────────────────────────────────────────── */
.marquee-strip {
  background: var(--roast); overflow: hidden;
  padding: 14px 0; border-top: 1px solid rgba(255,255,255,.04);
}
.marquee-track {
  display: flex; white-space: nowrap;
  animation: marquee 32s linear infinite;
}
.marquee-item {
  display: inline-flex; align-items: center; gap: 16px;
  padding: 0 32px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic; font-size: 16px;
  color: var(--latte); opacity: .7;
}
.marquee-gem {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--amber); flex-shrink: 0;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── Footer ─────────────────────────────────────────────── */
footer {
  background: var(--espresso);
  padding: 80px 80px 40px;
  position: relative;
}
footer::before {
  content: 'BRÛLÉE';
  position: absolute; bottom: 0; left: 50%;
  transform: translateX(-50%);
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(80px, 12vw, 180px); font-weight: 300;
  color: rgba(255,255,255,.03);
  letter-spacing: .15em; pointer-events: none;
  white-space: nowrap; line-height: 1;
}
.footer-top {
  display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 60px; padding-bottom: 64px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px; font-weight: 300;
  color: var(--white); margin-bottom: 18px; display: block;
  letter-spacing: .06em;
}
.footer-logo span { color: var(--amber); }
.footer-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic; font-size: 16px;
  color: rgba(255,255,255,.3); margin-bottom: 20px;
}
.footer-desc {
  font-size: 13px; line-height: 1.8;
  color: rgba(255,255,255,.35); max-width: 320px;
}
.footer-col-title {
  font-size: 10px; letter-spacing: .25em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 22px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-links a {
  font-size: 13px; color: rgba(255,255,255,.38);
  text-decoration: none; transition: color .2s;
  letter-spacing: .02em;
}
.footer-links a:hover { color: var(--latte); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 36px; flex-wrap: wrap; gap: 20px;
  position: relative; z-index: 1;
}
.footer-copy { font-size: 11px; color: rgba(255,255,255,.2); letter-spacing: .04em; }
.footer-social { display: flex; gap: 12px; }
.soc-btn {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.35); font-size: 13px;
  text-decoration: none; transition: all .25s;
  font-family: serif;
}
.soc-btn:hover { border-color: var(--amber); color: var(--amber); background: rgba(201,150,58,.08); }

/* ── Product Card ───────────────────────────────────────── */
.product-card {
  background: var(--white);
  border-radius: var(--r-md);
  overflow: hidden; cursor: pointer;
  transition: transform .4s var(--ease-out-expo), box-shadow .4s;
  box-shadow: 0 2px 20px rgba(20,11,4,.05);
  display: flex; flex-direction: column;
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(20,11,4,.13);
}
.pc-image {
  position: relative; overflow: hidden;
  background: var(--fog);
}
.pc-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s var(--ease-out-expo);
  display: block;
}
.product-card:hover .pc-image img { transform: scale(1.07); }
.pc-badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--espresso); color: var(--amber);
  font-size: 10px; letter-spacing: .15em; text-transform: uppercase;
  padding: 5px 13px; border-radius: 2px; z-index: 1;
}
.pc-body { padding: 22px 24px 24px; flex: 1; display: flex; flex-direction: column; }
.pc-cat {
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--caramel); margin-bottom: 7px;
}
.pc-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px; font-weight: 400;
  color: var(--espresso); line-height: 1.15; margin-bottom: 10px;
}
.pc-desc {
  font-size: 13px; line-height: 1.7;
  color: var(--text-light); flex: 1; margin-bottom: 18px;
}
.pc-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px; border-top: 1px solid var(--fog);
}
.pc-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px; color: var(--mahogany);
}
.pc-arrow {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--fog); display: flex; align-items: center;
  justify-content: center; color: var(--caramel);
  transition: all .25s; font-size: 15px;
}
.product-card:hover .pc-arrow { background: var(--espresso); color: var(--amber); }

/* ── Divider ────────────────────────────────────────────── */
.ornament {
  display: flex; align-items: center; gap: 20px;
  color: var(--text-faint);
}
.ornament::before, .ornament::after {
  content: ''; flex: 1; height: 1px; background: currentColor;
}
.ornament span { font-size: 18px; }

/* ── Responsive: shared ─────────────────────────────────── */
@media (max-width: 1024px) {
  #navbar { padding: 20px 32px; }
  #navbar.scrolled { padding: 14px 32px; }
  .nav-center { display: none; }
  #hamBtn { display: flex; }
  footer { padding: 60px 32px 36px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 640px) {
  #navbar { padding: 18px 20px; }
  #navbar.scrolled { padding: 12px 20px; }
  footer { padding: 48px 20px 32px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
}
