/* ═══════════════════════════════════════════════════════
   NŌVA Living — Vanilla CSS (Enhanced 3D & Media)
   ═══════════════════════════════════════════════════════ */

/* ── 1. RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; cursor: none; /* Hide default cursor */ }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-ui); font-weight: 400; font-size: var(--fs-body); line-height: 1.5; color: var(--text); background: var(--bg); overflow-x: hidden; }
img, video { display: block; max-width: 100%; height: auto; }
a, button { cursor: none; text-decoration: none; border: none; background: none; font: inherit; color: inherit; }
ul, ol { list-style: none; }

/* ── 2. TOKENS ── */
:root {
  --dark-900: #141312; --dark-800: #2c2a29;
  --light-100: #faf8f5; --light-200: #f0ece6;
  --brand-300: #d4c3b3; --brand-500: #b56a56; --brand-700: #7a8c7b; --brand-900: #3d321f;
  --brand-text: #ffffff;
  
  --bg: #f5f3f0; --bg-2: #eve9e4;
  --text: var(--dark-900); --text-faded: rgba(20, 19, 18, 0.6);
  --border: rgba(20, 19, 18, 0.1); 
  
  --glass-bg: rgba(250, 248, 245, 0.65);
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);

  --font-heading: 'Playfair Display', serif;
  --font-ui: 'DM Sans', sans-serif;

  --fs-display: clamp(3rem, 3rem + 4vw, 6.5rem);
  --fs-h1: clamp(2.5rem, 2rem + 3vw, 4.5rem);
  --fs-h2: clamp(2rem, 1.5rem + 2.5vw, 3.5rem);
  --fs-h3: clamp(1.35rem, 1.1rem + 1.25vw, 2.25rem);
  --fs-h4: clamp(1.15rem, 1.05rem + .5vw, 1.5rem);
  --fs-body: 1rem; --fs-small: 0.875rem; --fs-badge: 0.7rem;

  --sp-1: 0.5rem; --sp-2: 1rem; --sp-3: 1.5rem; --sp-4: 2.5rem;
  --sp-5: 4rem; --sp-6: 6rem;
  --gutter: clamp(1.25rem, 1rem + 2.5vw, 4rem);

  --r-sm: 8px; --r-md: 16px; --r-lg: 24px; --r-full: 99rem;
  --nav-h: 5rem; --max-w: 1300px;
}

/* ── 3. CUSTOM CURSOR ── */
.cursor { width: 8px; height: 8px; background: var(--brand-500); border-radius: 50%; position: fixed; pointer-events: none; z-index: 9999; transform: translate(-50%, -50%); transition: width 0.3s, height 0.3s, background 0.3s; }
.cursor-follower { width: 40px; height: 40px; border: 1px solid rgba(181, 106, 86, 0.5); border-radius: 50%; position: fixed; pointer-events: none; z-index: 9998; transform: translate(-50%, -50%); transition: width 0.3s, height 0.3s, border-color 0.3s; }
.cursor.hovered { width: 60px; height: 60px; background: rgba(181, 106, 86, 0.1); mix-blend-mode: multiply; }
.cursor-follower.hovered { width: 0; height: 0; border-color: transparent; }

/* ── 4. LOADER ── */
.preloader { position: fixed; inset: 0; background: var(--bg); z-index: 10000; display: flex; align-items: center; justify-content: center; transition: opacity 0.8s ease, visibility 0.8s ease; }
.preloader.hidden { opacity: 0; visibility: hidden; }
.preloader__text { font-family: var(--font-heading); font-size: 3rem; letter-spacing: 0.2em; opacity: 0; animation: pulse 2s infinite alternate; }
@keyframes pulse { 0% { opacity: 0.2; transform: scale(0.95); } 100% { opacity: 1; transform: scale(1.05); } }

/* ── 5. GLASSMORPHISM UTILS ── */
.glass-panel { background: var(--glass-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow); border-radius: var(--r-md); }
.glass-panel-heavy { background: rgba(255,255,255,0.2); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border: 1px solid rgba(255,255,255,0.5); box-shadow: 0 20px 40px rgba(0,0,0,0.1); border-radius: var(--r-lg); }
.glass-info { background: rgba(250, 248, 245, 0.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 0 0 var(--r-md) var(--r-md); }
.glass-badge { background: rgba(250, 248, 245, 0.3); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.4); color: white; }
.glass-badge-small { background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(5px); color: var(--dark-900); }

/* ── 6. TYPOGRAPHY & LAYOUT ── */
.display, h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.1; letter-spacing: -0.02em; font-weight: 400; }
.display { font-size: var(--fs-display); }
.h2 { font-size: var(--fs-h2); }
.eyebrow { font-size: var(--fs-small); font-family: var(--font-ui); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand-500); display: block; margin-bottom: var(--sp-2); }
.container { width: calc(100% - var(--gutter) * 2); max-width: var(--max-w); margin: 0 auto; }
.section { padding-block: var(--sp-6); }
.grid { display: grid; gap: var(--sp-4); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .grid-4 { grid-template-columns: 1fr; } }
.flex { display: flex; } .items-center { align-items: center; } .gap-2 { gap: var(--sp-1); }

/* ── 7. BUTTONS ── */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 1rem 2.5rem; font-family: var(--font-ui); font-size: var(--fs-small); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; border-radius: var(--r-full); transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.btn--primary { background: var(--brand-500); color: var(--brand-text); }
.btn--primary:hover { background: var(--brand-700); transform: translateY(-3px); box-shadow: 0 10px 25px rgba(122,140,123,0.3); }
.btn--small { padding: 0.6rem 1.25rem; font-size: var(--fs-badge); }
.btn--blur { background: rgba(255,255,255,0.15); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.3); color: white; gap: 0.5rem; }
.btn--blur:hover { background: rgba(255,255,255,0.25); transform: translateY(-3px); }
.btn--icon { width: 44px; height: 44px; padding: 0; background: var(--light-100); color: var(--dark-900); border-radius: 50%; box-shadow: 0 4px 15px rgba(0,0,0,0.05); transition: transform 0.3s; }
.btn--icon:hover { transform: scale(1.1); box-shadow: 0 8px 25px rgba(0,0,0,0.1); }

/* ── 8. NAV ── */
.navbar { position: fixed; top: 0; left: 0; width: 100%; height: 80px; z-index: 1000; transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.navbar.scrolled { background-color: rgba(3, 3, 3, 0.6); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.nav-container { display: flex; justify-content: space-between; align-items: center; height: 100%; max-width: 1300px; margin: 0 auto; width: calc(100% - var(--gutter) * 2); }
.logo { display: flex; align-items: center; gap: 0.75rem; font-size: 1.75rem; font-weight: 500; font-family: var(--font-heading); color: white; z-index: 10; }
.logo span { color: var(--brand-500); }
.nav-pill { display: flex; align-items: center; gap: 0.5rem; background: rgba(255, 255, 255, 0.06); border: 1px solid #262626; border-radius: 30px; padding: 0.5rem 0.5rem; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.nav-pill .nav-link { font-size: 0.85rem; color: #999999; padding: 0.5rem 1.1rem; border-radius: 20px; transition: 0.2s cubic-bezier(0.16, 1, 0.3, 1); position: relative; font-weight: 500; }
.nav-pill .nav-link:hover { color: #fcfcfc; background: rgba(255, 255, 255, 0.08); }
.nav-actions { display: flex; align-items: center; z-index: 10; }
.nav__cart { position: relative; display: flex; align-items: center; justify-content: center; }
.nav__cart-count { position: absolute; top: -5px; right: -5px; background: var(--brand-500); color: white; font-size: 10px; font-weight: 700; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid var(--light-100); }
@media (max-width: 768px) { .nav-pill { display: none; } }

/* ── 9. HERO SECTION (VIDEO) ── */
.hero { min-height: 100vh; display: flex; align-items: center; position: relative; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 0; width: 100%; height: 120%; /* Offset for parallax */ top: -10%; }
.hero__video-wrapper { width: 100%; height: 100%; }
.hero__video { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(20,19,18,0.7) 0%, rgba(20,19,18,0.2) 100%); z-index: 1; }
.hero__container { display: flex; align-items: center; height: 100%; margin-top: 5vh; }
.hero__content { position: relative; z-index: 2; max-width: 55rem; color: white; }
.hero__tag { display: inline-block; padding: 0.4rem 1.2rem; border-radius: var(--r-full); font-size: var(--fs-small); margin-bottom: var(--sp-3); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 500; }
.hero__title { margin-bottom: var(--sp-3); text-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.hero__title em { font-style: italic; color: var(--brand-300); }
.hero__desc { font-size: 1.25rem; opacity: 0.85; margin: 0 0 var(--sp-4); max-width: 38rem; line-height: 1.7; font-weight: 300; }
.hero__actions { display: flex; gap: var(--sp-2); align-items: center; }
.hero__scroll { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); z-index: 10; color: white; display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: var(--fs-badge); text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.7; }
.hero__scroll-line { width: 1px; height: 60px; background: rgba(255,255,255,0.2); position: relative; overflow: hidden; }
.hero__scroll-line::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 50%; background: white; animation: scroll-down 2s infinite cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes scroll-down { 0% { transform: translateY(-100%); } 100% { transform: translateY(200%); } }

/* ── 10. TRUST BAR (GLASSMORPHISM) ── */
.trust-bar-wrapper { padding: 0 var(--gutter); margin-top: calc(-1 * var(--sp-4)); position: relative; z-index: 20; }
.trust-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; padding: 1.5rem 3rem; color: var(--text); font-size: 0.9rem; font-weight: 500; }
.trust-item { display: flex; align-items: center; gap: 0.75rem; }
.trust-item svg { color: var(--brand-500); }
@media (max-width: 768px) { .trust-bar { gap: 1rem; flex-direction: column; align-items: flex-start; } }

/* ── 11. PRODUCTS (3D TILT CARDS) ── */
.section-header { margin-bottom: var(--sp-5); max-width: 45rem; }
.section-header__desc { color: var(--text-faded); margin-top: var(--sp-1); font-size: 1.1rem; line-height: 1.6; }

.product-card { display: flex; flex-direction: column; position: relative; border-radius: var(--r-md); overflow: hidden; background: white; box-shadow: 0 10px 40px rgba(0,0,0,0.03); transform-style: preserve-3d; }
.product-card__image-wrapper { aspect-ratio: 4/5; overflow: hidden; position: relative; background: var(--bg-2); }
.product-card__image { width: 100%; height: 100%; }
.product-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.product-card:hover .product-card__image img { transform: scale(1.08); }
.product-card__quick { position: absolute; bottom: var(--sp-3); left: 50%; transform: translateX(-50%) translateY(20px) translateZ(30px); opacity: 0; transition: all 0.4s ease; width: 85%; z-index: 10; }
.product-card__quick .btn { width: 100%; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.product-card:hover .product-card__quick { opacity: 1; transform: translateX(-50%) translateY(0) translateZ(40px); }
.product-card__info { padding: var(--sp-3); display: flex; flex-direction: column; gap: 0.25rem; transform: translateZ(20px); }
.product-card__brand { font-size: var(--fs-badge); text-transform: uppercase; color: var(--text-faded); letter-spacing: 0.05em; font-weight: 500; }
.product-card__name { font-family: var(--font-heading); font-size: 1.25rem; margin-bottom: 0.5rem; }
.product-card__price { font-weight: 700; color: var(--brand-900); font-family: var(--font-ui); font-size: 1.1rem; }
.product-card__price-old { text-decoration: line-through; color: var(--text-faded); font-size: var(--fs-small); margin-left: 0.25rem; }
.badge { position: absolute; top: var(--sp-2); left: var(--sp-2); padding: 0.3rem 0.8rem; font-size: var(--fs-badge); border-radius: var(--r-full); z-index: 5; text-transform: uppercase; font-weight: 700; transform: translateZ(25px); }

/* ── 12. EXPERIENCE SECTION (SPLIT) ── */
.experience { position: relative; background: var(--dark-900); color: white; margin-top: var(--sp-5); overflow: hidden; }
.experience .container { padding-block: var(--sp-6); }
.experience__content .eyebrow { color: var(--brand-300); }
.experience__content .h2 em { color: var(--brand-500); font-style: italic; }
.experience__media { position: relative; height: 700px; display: flex; align-items: center; justify-content: center; }
.video-card { width: 80%; height: 90%; position: relative; overflow: hidden; transform-style: preserve-3d; }
.video-card video { width: 100%; height: 100%; object-fit: cover; }
.video-card__badge-3d { position: absolute; bottom: -20px; right: -20px; background: var(--brand-500); color: white; padding: 1.5rem; border-radius: 50%; width: 120px; height: 120px; display: flex; align-items: center; justify-content: center; text-align: center; font-family: var(--font-heading); font-style: italic; font-size: 1.1rem; transform: translateZ(50px); box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
@media (max-width: 768px) { .experience__media { height: 500px; margin-top: var(--sp-4); } .video-card { width: 100%; } }

/* ── 13. HOTSPOTS (PARALLAX SETTINGS) ── */
.hotspot-container { position: relative; border-radius: var(--r-lg); overflow: hidden; height: 700px; clip-path: inset(0); }
.hotspot-image { width: 100%; height: 120%; top: -10%; position: absolute; object-fit: cover; }
.u-hotspot-wrapper { position: absolute; z-index: 10; transform-style: preserve-3d; }
.u-hotspot-dot { width: 30px; height: 30px; background: rgba(255,255,255,0.9); backdrop-filter: blur(4px); border-radius: 50%; box-shadow: 0 4px 15px rgba(0,0,0,0.15); display: flex; align-items: center; justify-content: center; transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); cursor: none !important; }
.u-hotspot-ripple { position: absolute; width: 100%; height: 100%; border: 1px solid white; border-radius: 50%; animation: ripple 2s infinite ease-out; }
@keyframes ripple { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(2.5); opacity: 0; } }
.u-hotspot-wrapper:hover .u-hotspot-dot { transform: scale(1.2); }
.u-hotspot-card { position: absolute; bottom: calc(100% + 15px); left: 50%; transform: translateX(-50%) translateY(20px); padding: 0.75rem; display: flex; gap: 1rem; width: 260px; opacity: 0; pointer-events: none; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.u-hotspot-wrapper:hover .u-hotspot-card { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.u-hotspot-img { width: 75px; height: 75px; object-fit: cover; border-radius: var(--r-sm); }
.u-hotspot-info { display: flex; flex-direction: column; justify-content: center; }
.u-hotspot-info h4 { font-size: 1rem; margin-bottom: 0.2rem; color: var(--dark-900); }
.u-hotspot-info p { font-size: 0.9rem; font-weight: 700; color: var(--brand-900); margin-bottom: 0.4rem; }
.u-hotspot-link { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; color: var(--brand-500); }

/* ── 14. CART DRAWER ── */
.cart-overlay { position: fixed; inset: 0; background: rgba(20,19,18,0.4); backdrop-filter: blur(5px); z-index: 2000; opacity: 0; pointer-events: none; transition: opacity 0.5s ease; }
.cart-overlay.open { opacity: 1; pointer-events: auto; }
.cart-drawer { position: fixed; top: 0; right: 0; width: min(420px, 90vw); height: 100vh; background: var(--bg); z-index: 2001; transform: translateX(100%); transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); display: flex; flex-direction: column; box-shadow: -10px 0 50px rgba(0,0,0,0.1); }
.cart-drawer.open { transform: translateX(0); }
.cart-drawer__header { padding: var(--sp-3); border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; background: white; }
.cart-drawer__title { font-family: var(--font-heading); font-size: var(--fs-h3); }
.cart-drawer__close { width: 40px; height: 40px; border-radius: 50%; background: var(--bg-2); display: flex; align-items: center; justify-content: center; transition: background 0.3s; }
.cart-drawer__close:hover { background: var(--border); }
.cart-drawer__items { flex: 1; overflow-y: auto; padding: var(--sp-3); display: flex; flex-direction: column; gap: var(--sp-3); }
.cart-drawer__empty { margin: auto; text-align: center; color: var(--text-faded); display: flex; flex-direction: column; align-items: center; gap: var(--sp-2); }
.cart-item { display: flex; gap: var(--sp-2); background: white; padding: 0.75rem; border-radius: var(--r-md); box-shadow: 0 4px 15px rgba(0,0,0,0.02); }
.cart-item img { width: 80px; height: 100px; object-fit: cover; border-radius: var(--r-sm); }
.cart-item__info { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.cart-item__remove { font-size: 0.75rem; color: var(--brand-500); text-decoration: underline; margin-top: auto; align-self: flex-start; }
.cart-drawer__footer { padding: var(--sp-3); border-top: 1px solid var(--border); background: white; }
.cart-drawer__total { display: flex; justify-content: space-between; font-weight: 700; font-size: var(--fs-h4); margin-bottom: var(--sp-2); }
.cart-drawer__checkout { width: 100%; }

/* ── 15. TOAST ── */
.toast { position: fixed; bottom: var(--sp-4); right: var(--sp-4); padding: 1.25rem 2rem; color: var(--dark-900); display: flex; align-items: center; gap: 0.75rem; z-index: 3000; transform: translateY(150%) scale(0.9); opacity: 0; transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); font-weight: 600; }
.toast.show { transform: translateY(0) scale(1); opacity: 1; }

/* ── 16. FOOTER ── */
.footer { padding: var(--sp-6) 0 var(--sp-4); background: var(--light-100); }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--sp-5); border-bottom: 1px solid var(--border); padding-bottom: var(--sp-5); margin-bottom: var(--sp-3); }
.footer__heading { font-family: var(--font-ui); font-size: 0.85rem; text-transform: uppercase; margin-bottom: var(--sp-3); font-weight: 700; letter-spacing: 0.05em; }
.footer__links { display: flex; flex-direction: column; gap: 0.75rem; color: var(--text-faded); font-size: 0.95rem; }
.footer__brand-desc { margin-top: var(--sp-2); color: var(--text-faded); max-width: 25rem; line-height: 1.7; }
@media (max-width: 768px) { .footer__grid { grid-template-columns: 1fr; } }
