﻿/* ============================================================
   ENGRAVIA — Editorial Luxury Design System
   Vibe: Editorial Luxury · Layout: Asymmetric Bento + Editorial Split
   Fonts: Cormorant Garamond (display serif) + DM Sans (sans)
   ============================================================ */

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  /* Palette — warm parchment editorial */
  --bg:           #FDFBF7;
  --bg-warm:      #F7F3EC;
  --bg-card:      #FFFFFF;
  --bg-deep:      #1A1410;

  --ink:          #1C1612;
  --ink-secondary:#4A3F35;
  --ink-muted:    #7A6A5A;
  --ink-ghost:    #B8A898;

  --amber:        #B8860B;
  --amber-dark:   #8B6914;
  --amber-mid:    #C9960C;
  --amber-light:  #D4A843;
  --amber-pale:   #F5E6B8;
  --amber-glow:   rgba(184, 134, 11, 0.12);

  --gold:         #C9A227;
  --gold-pale:    #F8F0D0;

  --line:         rgba(184, 134, 11, 0.12);
  --line-strong:  rgba(184, 134, 11, 0.22);
  --line-subtle:  rgba(28, 22, 18, 0.06);

  --success:      #2D7A4F;
  --danger:       #A63228;
  --warning:      #B87020;

  /* Typography */
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body:    "DM Sans", system-ui, sans-serif;
  --font-mono:    "DM Mono", monospace;

  /* Type scale */
  --text-xs:   0.6875rem;  /* 11px */
  --text-sm:   0.8125rem;  /* 13px */
  --text-base: 0.9375rem;  /* 15px */
  --text-md:   1.0625rem;  /* 17px */
  --text-lg:   1.1875rem;  /* 19px */
  --text-xl:   1.375rem;   /* 22px */
  --text-2xl:  1.75rem;    /* 28px */
  --text-3xl:  2.25rem;    /* 36px */
  --text-4xl:  3rem;       /* 48px */
  --text-5xl:  4rem;       /* 64px */
  --text-6xl:  5.5rem;     /* 88px */
  --text-7xl:  7rem;       /* 112px */

  /* Spacing */
  --sp-1:   0.25rem;
  --sp-2:   0.5rem;
  --sp-3:   0.75rem;
  --sp-4:   1rem;
  --sp-5:   1.25rem;
  --sp-6:   1.5rem;
  --sp-8:   2rem;
  --sp-10:  2.5rem;
  --sp-12:  3rem;
  --sp-16:  4rem;
  --sp-20:  5rem;
  --sp-24:  6rem;
  --sp-32:  8rem;
  --sp-40:  10rem;

  /* Radius */
  --r-sm:   0.375rem;
  --r-md:   0.75rem;
  --r-lg:   1.25rem;
  --r-xl:   2rem;
  --r-2xl:  2.5rem;
  --r-full: 9999px;

  /* Shadows — diffused ambient, no harsh borders */
  --shadow-xs:  0 1px 3px rgba(28, 22, 18, 0.04), 0 1px 2px rgba(28, 22, 18, 0.03);
  --shadow-sm:  0 2px 8px rgba(28, 22, 18, 0.05), 0 1px 3px rgba(28, 22, 18, 0.04);
  --shadow-md:  0 4px 20px rgba(28, 22, 18, 0.06), 0 2px 6px rgba(28, 22, 18, 0.04);
  --shadow-lg:  0 12px 40px rgba(28, 22, 18, 0.08), 0 4px 12px rgba(28, 22, 18, 0.04);
  --shadow-xl:  0 24px 64px rgba(28, 22, 18, 0.10), 0 8px 24px rgba(28, 22, 18, 0.05);
  --shadow-amber: 0 8px 32px rgba(184,134,11,0.16);
  --shadow-amber-lg: 0 16px 48px rgba(184,134,11,0.22);

  /* Motion — spring physics */
  --ease-out-expo:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart:  cubic-bezier(0.25, 1, 0.5, 1);
  --ease-in-out:     cubic-bezier(0.32, 0.72, 0, 1);
  --ease-spring:     cubic-bezier(0.34, 1.56, 0.64, 1);

  --dur-fast:   200ms;
  --dur-base:   400ms;
  --dur-slow:   700ms;
  --dur-crawl:  1000ms;

  /* Containers */
  --container-sm:   640px;
  --container-md:   768px;
  --container-lg:   1024px;
  --container-xl:   1280px;
  --container-2xl:  1440px;

  /* Legacy compat aliases */
  --primary:        var(--amber);
  --primary-dark:   var(--amber-dark);
  --primary-light:  var(--amber-light);
  --secondary:      var(--amber-light);
  --accent:         var(--amber-light);
  --accent-dark:    var(--amber-mid);
  --gold-brown:     var(--gold);
  --neutral-50:  #F8F6F2;
  --neutral-100: #F0EDE6;
  --neutral-200: #E4DED4;
  --neutral-300: #C8BFAF;
  --neutral-400: #A8998A;
  --neutral-500: var(--ink-muted);
  --neutral-600: var(--ink-secondary);
  --neutral-700: #2E2620;
  --neutral-800: var(--ink);
  --neutral-900: #120E0A;
  --white:  #FFFFFF;
  --black:  #000000;
  --cream-50:  var(--bg);
  --cream-200: var(--bg-warm);
  --cream-300: #EDE6D8;
  --wood-700:  #5D5047;
  --wood-800:  #4A3F35;
  --shadow-primary: var(--shadow-amber);
  --shadow-primary-md: var(--shadow-amber-lg);
  --shadow-danger: 0 8px 24px rgba(166,50,40,0.2);
  --transition-fast: 200ms var(--ease-out-expo);
  --transition-base: 400ms var(--ease-out-quart);
  --transition-slow: 700ms var(--ease-out-expo);
  --z-dropdown: 1000;
  --z-sticky:   1020;
  --z-fixed:    1030;
  --z-modal-backdrop: 1040;
  --z-modal:    1050;
  --z-popover:  1060;
  --z-tooltip:  1070;
  --space-xs: var(--sp-1);
  --space-sm: var(--sp-2);
  --space-md: var(--sp-4);
  --space-lg: var(--sp-6);
  --space-xl: var(--sp-8);
  --space-2xl: var(--sp-12);
  --space-3xl: var(--sp-16);
  --radius-sm:   var(--r-sm);
  --radius-md:   var(--r-md);
  --radius-lg:   var(--r-lg);
  --radius-xl:   var(--r-xl);
  --radius-full: var(--r-full);
  --font-sans:   var(--font-body);
  --font-serif:  var(--font-display);
  --text-base:   var(--text-base);
  --text-3xl:    var(--text-3xl);
  --text-4xl:    var(--text-4xl);
  --text-5xl:    var(--text-5xl);
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Film grain overlay — fixed, pointer-events-none */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.45;
}

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

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.3rem var(--sp-4);
  border-radius: var(--r-full);
  background: var(--amber-glow);
  border: 1px solid var(--line-strong);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
}

/* ── Announcement bar ───────────────────────────────────────── */
.announcement {
  background: var(--bg-deep);
  color: rgba(255,255,255,0.85);
  text-align: center;
  padding: var(--sp-2) var(--sp-4);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.06em;
}

/* ── Site Header — floating island pill nav ─────────────────── */
.site-header-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  display: flex;
  justify-content: center;
  padding: var(--sp-4) var(--sp-6);
  pointer-events: none;
}

.site-header {
  pointer-events: auto;
  width: 100%;
  max-width: var(--container-2xl);
  background: rgba(253, 251, 247, 0.82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: none;
  border-radius: var(--r-full);
  box-shadow: 0 4px 24px rgba(28, 22, 18, 0.07), 0 1px 3px rgba(28, 22, 18, 0.04), inset 0 1px 0 rgba(255,255,255,0.7);
  transition: background 600ms cubic-bezier(0.32, 0.72, 0, 1),
              box-shadow 600ms cubic-bezier(0.32, 0.72, 0, 1);
}

.site-header.scrolled {
  background: rgba(253, 251, 247, 0.96);
  box-shadow: 0 8px 40px rgba(28, 22, 18, 0.10), 0 2px 8px rgba(28, 22, 18, 0.06), inset 0 1px 0 rgba(255,255,255,0.9);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  min-height: 56px;
  gap: var(--sp-6);
  padding: 0 var(--sp-5);
}

/* Offset page content below the floating nav */
body { padding-top: 88px; }

/* Logo */
.logo-with-tagline {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity var(--dur-fast) var(--ease-out-expo);
}
.logo-with-tagline:hover { opacity: 0.8; }

.engravia-logo {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.logo-tagline {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-style: italic;
  color: var(--amber);
  font-weight: 400;
  opacity: 0.7;
  white-space: nowrap;
}

.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-xl);
  color: var(--ink);
}

/* Desktop nav links */
.nav-links {
  display: none;
  align-items: center;
  gap: var(--sp-1);
  list-style: none;
}

@media (min-width: 1024px) {
  .nav-links { display: flex; }
}

.nav-link {
  position: relative;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink-secondary);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-md);
  transition: color var(--dur-fast) var(--ease-out-expo),
              background var(--dur-fast) var(--ease-out-expo);
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}

.nav-link:hover {
  color: var(--ink);
  background: var(--bg-warm);
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(var(--sp-2));
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  /* padding-top bridges the gap so cursor never leaves the hover zone */
  padding: var(--sp-3);
  padding-top: calc(var(--sp-2) + var(--sp-3));
  min-width: 200px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-out-expo),
              transform var(--dur-base) var(--ease-out-expo);
  z-index: var(--z-dropdown);
}

/* Invisible bridge fills the gap between trigger and menu */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: calc(-1 * var(--sp-2) - 2px);
  left: 0;
  right: 0;
  height: calc(var(--sp-2) + 4px);
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown-item {
  display: block;
  padding: var(--sp-2) var(--sp-4);
  font-size: var(--text-sm);
  color: var(--ink-secondary);
  border-radius: var(--r-md);
  transition: background var(--dur-fast), color var(--dur-fast);
}

.dropdown-item:hover {
  background: var(--bg-warm);
  color: var(--amber);
}

/* Nav actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.nav-icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  border: none;
  background: transparent;
  color: var(--ink-secondary);
  cursor: pointer;
  transition: background var(--dur-fast), color var(--dur-fast);
  text-decoration: none;
}

.nav-icon-btn:hover {
  background: var(--bg-warm);
  color: var(--amber);
}

.nav-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: var(--amber);
  color: white;
  border-radius: var(--r-full);
  font-size: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Account button */
.nav-account-btn {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-full);
  background: var(--amber);
  color: white;
  font-size: var(--text-sm);
  font-weight: 500;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--dur-fast) var(--ease-out-expo),
              transform var(--dur-fast) var(--ease-out-expo),
              box-shadow var(--dur-fast) var(--ease-out-expo);
}

.nav-account-btn:hover {
  background: var(--amber-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-amber);
  color: white;
}

.nav-account-btn:active { transform: scale(0.98); }

/* Mobile hamburger */
.nav-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: var(--sp-2);
  border-radius: var(--r-md);
  transition: background var(--dur-fast);
}

.nav-hamburger:hover { background: var(--bg-warm); }

.nav-hamburger span {
  display: block;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--dur-base) var(--ease-out-expo),
              opacity var(--dur-base) var(--ease-out-expo),
              width var(--dur-base) var(--ease-out-expo);
  transform-origin: center;
}

.nav-hamburger span:nth-child(1) { width: 22px; }
.nav-hamburger span:nth-child(2) { width: 16px; }

.nav-hamburger.open span:nth-child(1) {
  width: 20px;
  transform: translateY(6.5px) rotate(45deg);
}
.nav-hamburger.open span:nth-child(2) {
  width: 20px;
  transform: translateY(-6.5px) rotate(-45deg);
}

@media (min-width: 1024px) {
  .nav-hamburger { display: none; }
}

/* Mobile overlay menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: rgba(253, 251, 247, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  padding: var(--sp-24) var(--sp-8) var(--sp-8);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-out-expo);
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-link {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 500;
  color: var(--ink);
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--line-subtle);
  transform: translateY(var(--sp-6));
  opacity: 0;
  transition: transform var(--dur-slow) var(--ease-out-expo),
              opacity var(--dur-slow) var(--ease-out-expo),
              color var(--dur-fast);
}

.mobile-menu.open .mobile-menu-link {
  transform: translateY(0);
  opacity: 1;
}
.mobile-menu.open .mobile-menu-link:nth-child(1) { transition-delay: 80ms; }
.mobile-menu.open .mobile-menu-link:nth-child(2) { transition-delay: 130ms; }
.mobile-menu.open .mobile-menu-link:nth-child(3) { transition-delay: 180ms; }
.mobile-menu.open .mobile-menu-link:nth-child(4) { transition-delay: 230ms; }
.mobile-menu.open .mobile-menu-link:nth-child(5) { transition-delay: 280ms; }

.mobile-menu-link:hover { color: var(--amber); }

/* ── Nav CTA (legacy alias) ─────────────────────────────────── */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-5);
  border-radius: var(--r-full);
  background: var(--amber);
  color: white;
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  transition: background var(--dur-fast), transform var(--dur-fast);
}
.nav-cta:hover { background: var(--amber-dark); color: white; transform: translateY(-1px); }

/* ── Hero Section — Editorial Split + Z-Axis Cascade ───────── */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: var(--sp-24) var(--sp-6) var(--sp-16);
  background: var(--bg);
}

/* Ambient radial glow */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 60% at 72% 45%, rgba(196, 154, 106, 0.11) 0%, transparent 65%),
    radial-gradient(ellipse 35% 50% at 90% 15%, rgba(184,134,11,0.06) 0%, transparent 55%),
    radial-gradient(ellipse 40% 40% at 10% 80%, rgba(196, 154, 106, 0.05) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--container-2xl);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-16);
  align-items: center;
}

@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--sp-20);
    min-height: calc(100dvh - var(--sp-24));
    align-items: center;
  }
}

/* ── Hero Content (left) ── */
.hero-content { max-width: 620px; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 0.35rem var(--sp-4);
  border-radius: var(--r-full);
  background: var(--amber-glow);
  border: 1px solid var(--line-strong);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: var(--sp-8);
  opacity: 0;
  transform: translateY(12px);
  animation: reveal 0.8s cubic-bezier(0.32, 0.72, 0, 1) 0.1s forwards;
}

.hero-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  animation: pulse-dot 2s ease-in-out 1s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.75); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 7vw, var(--text-7xl));
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: var(--sp-8);
  opacity: 0;
  transform: translateY(20px);
  animation: reveal 1s cubic-bezier(0.32, 0.72, 0, 1) 0.2s forwards;
}

.hero-title em {
  font-style: italic;
  color: var(--amber);
  font-weight: 300;
}

.hero-sub {
  font-size: var(--text-md);
  color: var(--ink-secondary);
  line-height: 1.75;
  margin-bottom: var(--sp-10);
  max-width: 460px;
  opacity: 0;
  transform: translateY(16px);
  animation: reveal 0.9s cubic-bezier(0.32, 0.72, 0, 1) 0.38s forwards;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  opacity: 0;
  transform: translateY(16px);
  animation: reveal 0.9s cubic-bezier(0.32, 0.72, 0, 1) 0.52s forwards;
}

/* Button-in-button inner icon */
.group-btn { gap: var(--sp-3); }
.btn-arrow-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--r-full);
  background: rgba(0,0,0,0.14);
  font-size: 13px;
  transition: transform 500ms cubic-bezier(0.34, 1.56, 0.64, 1),
              background 300ms cubic-bezier(0.32, 0.72, 0, 1);
  flex-shrink: 0;
}
.group-btn:hover .btn-arrow-inner {
  transform: translate(2px, -2px) scale(1.1);
  background: rgba(0,0,0,0.22);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-10);
  opacity: 0;
  transform: translateY(16px);
  animation: reveal 0.9s cubic-bezier(0.32, 0.72, 0, 1) 0.66s forwards;
}

.hero-badges span {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-full);
  background: var(--bg-warm);
  border: 1px solid var(--line);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--ink-secondary);
  letter-spacing: 0.04em;
}

/* ── Hero Visual — Z-Axis Cascade ── */
.hero-visual {
  position: relative;
  height: 560px;
  opacity: 0;
  animation: reveal 1s cubic-bezier(0.32, 0.72, 0, 1) 0.3s forwards;
}

@media (max-width: 899px) {
  .hero-inner {
    gap: var(--sp-8);
  }
  .hero-visual {
    width: 100%;
    max-width: 420px;
    height: 320px;
    margin: 0 auto;
    position: relative;
  }
  .hero-card-back,
  .hero-card-mid,
  .hero-stat-bubble,
  .hero-scroll-hint {
    display: none;
  }
  .hero-card-shell {
    position: absolute;
    inset: 0;
    border-radius: var(--r-xl);
    transform: none !important;
  }
  .hero-card {
    border-radius: calc(var(--r-xl) - 0.5rem);
  }
}

/* Back card — rotated, partially visible */
.hero-card-back {
  position: absolute;
  top: 5%;
  right: -3%;
  width: 62%;
  height: 78%;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: linear-gradient(135deg, var(--amber-pale) 0%, var(--bg-warm) 100%);
  transform: rotate(6deg) translateZ(0);
  box-shadow: 0 8px 32px rgba(28,22,18,0.08);
  z-index: 1;
  transition: transform 700ms cubic-bezier(0.32, 0.72, 0, 1);
}
.hero-card-back img {
  width: 100%; height: 100%; object-fit: cover; opacity: 0.75;
  filter: saturate(0.7);
}
.hero-visual:hover .hero-card-back { transform: rotate(8deg) translateX(4px) translateZ(0); }

/* Mid card — slightly behind, rotated opposite */
.hero-card-mid {
  position: absolute;
  top: 15%;
  left: 2%;
  width: 55%;
  height: 65%;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-warm) 0%, var(--amber-pale) 100%);
  transform: rotate(-3deg) translateZ(0);
  box-shadow: 0 12px 40px rgba(28,22,18,0.10);
  z-index: 2;
  transition: transform 700ms cubic-bezier(0.32, 0.72, 0, 1);
}
.hero-card-mid img {
  width: 100%; height: 100%; object-fit: cover; opacity: 0.85;
}
.hero-visual:hover .hero-card-mid { transform: rotate(-4.5deg) translateX(-4px) translateZ(0); }

/* Main foreground card — double bezel */
.hero-card-shell {
  position: absolute;
  top: 8%;
  left: 10%;
  right: -5%;
  bottom: 4%;
  background: var(--bg-warm);
  border: 1px solid var(--line-subtle);
  border-radius: var(--r-2xl);
  padding: var(--sp-2);
  box-shadow: var(--shadow-xl), 0 2px 0 rgba(255,255,255,0.8) inset;
  z-index: 3;
  transition: transform 700ms cubic-bezier(0.32, 0.72, 0, 1);
  will-change: transform;
}
.hero-visual:hover .hero-card-shell { transform: translateY(-6px) scale(1.01); }

.hero-card {
  position: relative;
  border-radius: calc(var(--r-2xl) - 0.5rem);
  overflow: hidden;
  background: linear-gradient(160deg, var(--amber-pale) 0%, var(--bg-warm) 40%, var(--amber-pale) 100%);
  height: 100%;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.9);
}

.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 800ms cubic-bezier(0.32, 0.72, 0, 1);
}
.hero-visual:hover .hero-card img { transform: scale(1.04); }

/* Floating label on the main card */
.hero-card-label {
  position: absolute;
  bottom: 0.85rem;
  left: 0.85rem;
  right: auto;
  max-width: calc(100% - 1.7rem);
  width: max-content;
  background: rgba(253, 251, 247, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line-subtle);
  border-radius: var(--r-full);
  padding: 0.72rem 1rem;
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--ink-secondary);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  box-sizing: border-box;
  line-height: 1.2;
  margin: 0;
  white-space: nowrap;
}

.hero-card-label-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--amber);
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}

/* Floating stat bubble */
.hero-stat-bubble {
  position: absolute;
  top: 12%;
  left: -5%;
  background: var(--bg-card);
  border: 1px solid var(--line-subtle);
  border-radius: var(--r-xl);
  padding: var(--sp-3) var(--sp-4);
  box-shadow: var(--shadow-lg);
  z-index: 4;
  text-align: center;
  min-width: 88px;
  transition: transform 700ms cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: float-bubble 4s ease-in-out infinite;
}
.hero-stat-num {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--amber);
  line-height: 1;
}
.hero-stat-text {
  font-size: 10px;
  color: var(--ink-muted);
  line-height: 1.4;
  margin-top: 3px;
  font-weight: 500;
}

@keyframes float-bubble {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: var(--sp-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  opacity: 0;
  animation: reveal 1s cubic-bezier(0.32, 0.72, 0, 1) 1.2s forwards;
}
.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--amber), transparent);
  animation: scroll-line 2s ease-in-out infinite;
}
.hero-scroll-hint span {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-ghost);
}
@keyframes scroll-line {
  0%, 100% { opacity: 0.5; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

@keyframes reveal {
  to { opacity: 1; transform: translateY(0) rotate(0); }
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.75rem var(--sp-6);
  border-radius: var(--r-full);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out-expo),
              box-shadow var(--dur-fast) var(--ease-out-expo),
              background var(--dur-fast) var(--ease-out-expo),
              color var(--dur-fast) var(--ease-out-expo);
  min-height: 44px;
  user-select: none;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn:active { transform: scale(0.97); }

/* Button-in-button arrow icon */
.btn-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: var(--r-full);
  background: rgba(0,0,0,0.12);
  font-size: 12px;
  transition: transform var(--dur-fast) var(--ease-spring),
              background var(--dur-fast);
  flex-shrink: 0;
}
.btn:hover .btn-arrow {
  transform: translate(2px, -1px) scale(1.08);
  background: rgba(0,0,0,0.18);
}

.btn-primary {
  background: #1A1714;
  color: #FDFBF7;
  box-shadow: 0 2px 8px rgba(26,23,20,.15);
}
.btn-primary:hover {
  background: #2E2A26;
  box-shadow: 0 8px 24px rgba(26,23,20,.22);
  transform: translateY(-2px);
  color: #FDFBF7;
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
.btn-secondary:hover {
  background: var(--bg-warm);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--amber);
  border: 1.5px solid var(--amber);
}
.btn-outline:hover {
  background: var(--amber);
  color: white;
  box-shadow: var(--shadow-amber);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-secondary);
  border: 1px solid var(--line);
}
.btn-ghost:hover {
  background: var(--bg-warm);
  color: var(--ink);
}

.btn-danger {
  background: var(--danger);
  color: white;
}
.btn-danger:hover {
  background: #8a2820;
  transform: translateY(-1px);
  color: white;
}

.btn-sm {
  padding: 0.5rem var(--sp-4);
  font-size: var(--text-xs);
  min-height: 36px;
}

.btn-lg {
  padding: 1rem var(--sp-8);
  font-size: var(--text-md);
  min-height: 52px;
}

/* ── Sections ───────────────────────────────────────────────── */
.section {
  padding: var(--sp-24) var(--sp-6);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--sp-16);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: var(--sp-4);
}

.section-sub {
  font-size: var(--text-md);
  color: var(--ink-secondary);
  line-height: 1.7;
}

.section-title-left { text-align: left; margin-left: 0; }

/* ── Cards ──────────────────────────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--sp-6);
}

/* Double-bezel card */
.card {
  /* Outer shell */
  background: var(--bg-warm);
  border: 1px solid var(--line-subtle);
  border-radius: var(--r-2xl);
  padding: var(--sp-2);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform var(--dur-base) var(--ease-out-expo),
              box-shadow var(--dur-base) var(--ease-out-expo),
              border-color var(--dur-base);
  position: relative;
  box-shadow:
    0 2px 0 rgba(255,255,255,0.86) inset,
    0 24px 62px -42px rgba(28,22,18,0.28);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 2px 0 rgba(255,255,255,0.86) inset,
    0 32px 78px -42px rgba(28,22,18,0.36);
  border-color: var(--line-strong);
}

/* Inner core */
.card-inner {
  background: var(--bg-card);
  border-radius: calc(var(--r-2xl) - 0.5rem);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 1;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.8);
}

.card-img {
  height: 220px;
  overflow: hidden;
  background: var(--bg-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out-expo);
}

.card:hover .card-img img { transform: scale(1.04); }

.card-img-placeholder {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  color: var(--ink-ghost);
  letter-spacing: 0.06em;
}

.card-body {
  padding: var(--sp-5) var(--sp-5) var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  flex: 1;
}

.card-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-xl);
  color: var(--ink);
  line-height: 1.2;
}

.card-desc {
  font-size: var(--text-sm);
  color: var(--ink-secondary);
  line-height: 1.6;
  flex: 1;
}

.card-price {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--amber);
  margin-top: var(--sp-2);
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1);
  margin-top: var(--sp-2);
}

.card-tag {
  display: inline-block;
  padding: 2px var(--sp-2);
  border-radius: var(--r-full);
  background: var(--amber-glow);
  font-size: var(--text-xs);
  color: var(--amber);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.card-actions {
  padding: 0 var(--sp-5) var(--sp-5);
  display: flex;
  gap: var(--sp-2);
}

.card-btn {
  flex: 1;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-full);
  border: 1.5px solid var(--line);
  background: var(--bg-card);
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-xs);
  transition: all var(--dur-fast) var(--ease-out-expo);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-1);
  min-height: 36px;
  text-decoration: none;
  color: var(--ink-secondary);
}

.card-btn:hover {
  border-color: var(--amber);
  color: var(--amber);
  background: var(--amber-glow);
}

.card-btn-primary {
  background: var(--amber);
  color: white;
  border-color: var(--amber);
}

.card-btn-primary:hover {
  background: var(--amber-dark);
  border-color: var(--amber-dark);
  color: white;
}

.card-btn-icon {
  width: 36px;
  height: 36px;
  flex: none;
  padding: 0;
  border-radius: var(--r-full);
}

/* ── Scroll reveal animation ────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-slow) var(--ease-out-expo),
              transform var(--dur-slow) var(--ease-out-expo);
}

.reveal.visible,
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  animation: none;
}


/* ── Horizontal scroll strip ────────────────────────────────── */
.scroll-strip {
  display: flex;
  gap: var(--sp-4);
  overflow-x: auto;
  padding-bottom: var(--sp-4);
  scrollbar-width: none;
}
.scroll-strip::-webkit-scrollbar { display: none; }

/* ── Category pills ─────────────────────────────────────────── */
.category-pill {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-5) var(--sp-6);
  border-radius: var(--r-xl);
  background: var(--bg-card);
  border: 1px solid var(--line-subtle);
  text-decoration: none;
  color: var(--ink-secondary);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: all var(--dur-base) var(--ease-out-expo);
  min-width: 120px;
  text-align: center;
  box-shadow: var(--shadow-xs);
}

.category-pill:hover {
  background: var(--amber);
  color: white;
  border-color: var(--amber);
  transform: translateY(-3px);
  box-shadow: var(--shadow-amber);
}

.category-pill-icon {
  font-size: 1.75rem;
  line-height: 1;
}

/* ── How it works — styles moved to home.css (.process-* / .cod-*) ── */

/* ── Testimonials ───────────────────────────────────────────── */
.testimonial-card {
  background: var(--bg-warm);
  border: 1px solid var(--line-subtle);
  border-radius: var(--r-2xl);
  padding: var(--sp-2);
  box-shadow: var(--shadow-xs);
  transition: transform var(--dur-base) var(--ease-out-expo),
              box-shadow var(--dur-base);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.testimonial-card-inner {
  background: var(--bg-card);
  border-radius: calc(var(--r-2xl) - 0.5rem);
  padding: var(--sp-7) var(--sp-6);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.9);
  box-sizing: border-box;
}

.testimonial-stars {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  color: var(--amber);
  font-size: 14px;
  margin-bottom: var(--sp-4);
  padding: 0 var(--sp-3);
  box-sizing: border-box;
  line-height: 1;
}

.testimonial-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-lg);
  color: var(--ink);
  line-height: 1.55;
  margin-bottom: var(--sp-5);
  padding: 0 var(--sp-3);
  box-sizing: border-box;
}

.testimonial-author {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink-secondary);
  padding: 0 var(--sp-3);
  box-sizing: border-box;
  line-height: 1.5;
}

/* ── Trust banner ───────────────────────────────────────────── */
.trust-banner {
  background: var(--bg-warm);
  border-top: 1px solid var(--line-subtle);
  border-bottom: 1px solid var(--line-subtle);
  padding: var(--sp-8) var(--sp-6);
}

.trust-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-8);
  max-width: var(--container-xl);
  margin: 0 auto;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink-secondary);
}

.trust-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--r-full);
  background: var(--amber-glow);
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

/* ── CTA Section ────────────────────────────────────────────── */
.cta-section {
  padding: var(--sp-40) var(--sp-6);
  background: var(--bg-deep);
  position: relative;
  overflow: hidden;
}

/* Ambient glow orbs */
.cta-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.cta-orb-1 {
  width: 500px; height: 500px;
  top: -120px; left: -60px;
  background: radial-gradient(circle, rgba(184,134,11,0.12) 0%, transparent 70%);
}
.cta-orb-2 {
  width: 400px; height: 400px;
  bottom: -80px; right: -40px;
  background: radial-gradient(circle, rgba(196,154,106,0.09) 0%, transparent 70%);
}

.cta-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.cta-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.35rem var(--sp-4);
  border-radius: var(--r-full);
  background: rgba(184,134,11,0.18);
  border: 1px solid rgba(184,134,11,0.3);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber-light);
  margin-bottom: var(--sp-8);
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 400;
  color: white;
  letter-spacing: -0.03em;
  line-height: 1.0;
  margin-bottom: var(--sp-8);
}

.cta-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--amber-light);
}

.cta-sub {
  font-size: var(--text-md);
  color: rgba(255,255,255,0.6);
  line-height: 1.75;
  margin-bottom: var(--sp-10);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-ghost-btn {
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.15);
}
.cta-ghost-btn:hover {
  background: rgba(255,255,255,0.14);
  color: white;
  transform: translateY(-1px);
}

/* Social proof strip */
.cta-proof {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-12);
}
.cta-proof-stars {
  font-size: var(--text-base);
  color: var(--amber-light);
  letter-spacing: 0.1em;
}
.cta-proof-text {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.4);
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* ── Empty State (canonical) ───────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 6rem 2rem;
  max-width: 520px;
  margin: 0 auto;
}
.empty-state-icon {
  margin-bottom: 1.5rem;
  color: var(--ink-muted);
}
.empty-state-icon svg {
  width: 56px;
  height: 56px;
}
.empty-state-kicker {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  background: rgba(184,115,51,0.07);
  border: 1px solid rgba(184,115,51,0.18);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  margin-bottom: 1.5rem;
}
.empty-state h3 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 400;
  color: var(--ink);
  margin: 0 0 0.875rem;
  letter-spacing: -0.02em;
}
.empty-state p {
  font-size: 0.9375rem;
  color: var(--ink-secondary);
  margin: 0 0 2rem;
  max-width: 32ch;
  margin-inline: auto;
  line-height: 1.7;
}
.empty-state-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-3);
  margin-bottom: 2.5rem;
}
.empty-state-proof {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-2);
}
.empty-state-proof span {
  padding: 0.45rem var(--sp-4);
  border-radius: var(--r-full);
  background: var(--bg-card);
  border: 1px solid var(--line-subtle);
  color: var(--ink-muted);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-deep);
  color: rgba(255,255,255,0.7);
  padding: var(--sp-16) var(--sp-6) var(--sp-10);
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-10);
  max-width: var(--container-2xl);
  margin: 0 auto var(--sp-12);
}

@media (min-width: 640px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; } }

.footer-brand-name {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 500;
  color: white;
  margin-bottom: var(--sp-3);
}

.footer-brand-desc {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.5);
  line-height: 1.65;
  margin-bottom: var(--sp-6);
}

.footer-socials {
  display: flex;
  gap: var(--sp-3);
}

.footer-social {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  transition: background var(--dur-fast), color var(--dur-fast);
}

.footer-social:hover {
  background: var(--amber);
  color: white;
  border-color: var(--amber);
}

.footer-col-title {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: var(--sp-5);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.footer-link {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color var(--dur-fast);
}
.footer-link:hover { color: white; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: var(--sp-6);
  text-align: center;
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.3);
  max-width: var(--container-2xl);
  margin: 0 auto;
}

/* ── Forms ──────────────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.form-label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink-secondary);
  letter-spacing: 0.02em;
}

.form-control {
  width: 100%;
  padding: 0.75rem var(--sp-4);
  border-radius: var(--r-lg);
  border: 1.5px solid var(--line);
  background: var(--bg-card);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--ink);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
  outline: none;
  min-height: 44px;
}

.form-control:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(184,134,11,0.1);
}

.form-control::placeholder {
  color: var(--ink-ghost);
}

.form-control.error {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(166,50,40,0.1);
}

/* ── Filter chips ───────────────────────────────────────────── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  padding: var(--sp-6) 0;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-full);
  border: 1.5px solid var(--line);
  background: var(--bg-card);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--ink-secondary);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out-expo);
  text-decoration: none;
  white-space: nowrap;
}

.filter-chip:hover,
.filter-chip.active {
  background: var(--amber);
  color: white;
  border-color: var(--amber);
}

/* ── Badges / pills ─────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px var(--sp-2);
  border-radius: var(--r-full);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.badge-amber  { background: var(--amber-glow); color: var(--amber); border: 1px solid var(--line-strong); }
.badge-green  { background: rgba(45,122,79,0.1); color: var(--success); }
.badge-red    { background: rgba(166,50,40,0.1); color: var(--danger); }
.badge-gold   { background: var(--gold-pale); color: var(--gold); }

/* ── Page header ────────────────────────────────────────────── */
.page-header {
  padding: var(--sp-16) var(--sp-6) var(--sp-10);
  border-bottom: 1px solid var(--line-subtle);
  background: var(--bg);
}

.page-header-inner {
  max-width: var(--container-2xl);
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-xs);
  color: var(--ink-ghost);
  margin-bottom: var(--sp-4);
  letter-spacing: 0.04em;
}

.breadcrumb a { color: var(--ink-muted); }
.breadcrumb a:hover { color: var(--amber); }
.breadcrumb-sep { opacity: 0.4; }

/* ── Alerts ─────────────────────────────────────────────────── */
.alert {
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-lg);
  font-size: var(--text-sm);
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  border: 1px solid;
}

.alert-success { background: rgba(45,122,79,0.06); border-color: rgba(45,122,79,0.2); color: var(--success); }
.alert-danger  { background: rgba(166,50,40,0.06); border-color: rgba(166,50,40,0.2); color: var(--danger); }
.alert-warning { background: rgba(184,112,32,0.06); border-color: rgba(184,112,32,0.2); color: var(--warning); }
.alert-info    { background: var(--amber-glow); border-color: var(--line-strong); color: var(--amber); }

/* ── Container ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

.container-wide {
  max-width: var(--container-2xl);
}

/* ── Divider ────────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--line-subtle);
  border: none;
  margin: 0;
}

/* ── Loading / Spinner ──────────────────────────────────────── */
.spinner {
  width: 24px;
  height: 24px;
  border: 2px solid var(--line);
  border-top-color: var(--amber);
  border-radius: var(--r-full);
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── WhatsApp float ─────────────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: var(--sp-6);
  right: var(--sp-6);
  z-index: var(--z-fixed);
  width: 52px;
  height: 52px;
  border-radius: var(--r-full);
  background: #25D366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 20px rgba(37,211,102,0.35);
  transition: transform var(--dur-fast) var(--ease-spring),
              box-shadow var(--dur-fast);
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 32px rgba(37,211,102,0.45);
  color: white;
}

/* ── Table ──────────────────────────────────────────────────── */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--r-xl);
  border: 1px solid var(--line-subtle);
  box-shadow: var(--shadow-xs);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

thead th {
  padding: var(--sp-4) var(--sp-5);
  text-align: left;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  background: var(--bg-warm);
  border-bottom: 1px solid var(--line-subtle);
}

tbody tr {
  border-bottom: 1px solid var(--line-subtle);
  transition: background var(--dur-fast);
}

tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--bg-warm); }

tbody td {
  padding: var(--sp-4) var(--sp-5);
  color: var(--ink-secondary);
  vertical-align: middle;
}

/* ── Pagination ─────────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-8) 0;
}

.page-btn {
  min-width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--bg-card);
  font-size: var(--text-sm);
  color: var(--ink-secondary);
  cursor: pointer;
  transition: all var(--dur-fast);
  text-decoration: none;
}

.page-btn:hover { background: var(--bg-warm); color: var(--ink); }
.page-btn.active { background: var(--amber); color: white; border-color: var(--amber); }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ── Stock status (shared across products, detail, wishlist) ── */
.stock-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: var(--text-sm, 0.8125rem);
}
.stock-status.in-stock { color: var(--success, #2b7a4b); }
.stock-status.low-stock { color: var(--amber-dark, #8B6914); }
.stock-status.out-of-stock { color: var(--danger, #b91c1c); }

.stock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.stock-status.in-stock .stock-dot { background: var(--success, #2b7a4b); }
.stock-status.low-stock .stock-dot { background: var(--amber-dark, #8B6914); }
.stock-status.out-of-stock .stock-dot { background: var(--danger, #b91c1c); }

/* Disabled button style */
button.disabled,
button[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── Modal ──────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal-backdrop);
  background: rgba(28,22,18,0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-6);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-out-expo);
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: var(--bg-card);
  border-radius: var(--r-2xl);
  border: 1px solid var(--line-subtle);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 480px;
  padding: var(--sp-8);
  transform: translateY(var(--sp-6)) scale(0.97);
  transition: transform var(--dur-base) var(--ease-out-expo);
}

.modal-backdrop.open .modal {
  transform: translateY(0) scale(1);
}

/* ── Misc ───────────────────────────────────────────────────── */
.text-amber    { color: var(--amber); }
.text-ink      { color: var(--ink); }
.text-muted    { color: var(--ink-muted); }
.text-center   { text-align: center; }
.font-display  { font-family: var(--font-display); }
.italic        { font-style: italic; }

.price-tag {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--amber);
}

/* Cart / wishlist sidebar */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal-backdrop);
  background: rgba(28,22,18,0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-base);
}
.sidebar-overlay.open { opacity: 1; pointer-events: auto; }

.sidebar-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-modal);
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  box-shadow: var(--shadow-xl);
  transform: translateX(100%);
  transition: transform var(--dur-slow) var(--ease-out-expo);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.sidebar-panel.open { transform: translateX(0); }

/* Quantity control */
.qty-control {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  overflow: hidden;
  background: var(--bg-card);
}

.qty-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--ink-secondary);
  cursor: pointer;
  font-size: var(--text-md);
  transition: background var(--dur-fast), color var(--dur-fast);
}
.qty-btn:hover { background: var(--bg-warm); color: var(--amber); }

.qty-input {
  width: 40px;
  text-align: center;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink);
  outline: none;
}

/* Responsive helpers */
@media (max-width: 767px) {
  .hide-mobile { display: none !important; }
  .section { padding: var(--sp-16) var(--sp-4); }
  .hero { padding: var(--sp-16) var(--sp-4) var(--sp-12); min-height: unset; }
  .cta-section { padding: var(--sp-20) var(--sp-4); }
  .site-header-wrap {
    padding: var(--sp-3) var(--sp-4);
  }
  .site-header {
    max-width: calc(100vw - (var(--sp-4) * 2));
  }
  .nav {
    gap: var(--sp-2);
    min-height: 50px;
    padding: 0 var(--sp-3);
  }
  .engravia-logo {
    height: 42px;
  }
  .logo-tagline {
    display: none;
  }
  .nav-actions {
    gap: 0.1rem;
  }
  .nav-icon-btn,
  .nav-hamburger {
    width: 36px;
    height: 36px;
  }
  .nav-account-btn {
    width: 38px;
    height: 38px;
    padding: 0;
    justify-content: center;
    font-size: 0;
    gap: 0;
    flex-shrink: 0;
  }
  .nav-account-btn svg {
    width: 15px;
    height: 15px;
  }
  .hero-visual {
    max-width: 360px;
    height: 280px;
  }
  .hero-card-shell {
    inset: 0;
    height: auto;
  }
  .hero-card-label {
    max-width: calc(100% - 1.25rem);
    white-space: normal;
    font-size: 9px;
  }
}

@media (min-width: 768px) {
  .hide-desktop { display: none !important; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Shared product badge (used on home + products pages) ── */
.pg-card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-family: var(--font-body, 'DM Sans', sans-serif);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #C0A062;
    background: rgba(196,154,42,0.12);
    border: 1px solid rgba(196,154,42,0.25);
    border-radius: 99px;
    padding: 0.25rem 0.75rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2;
}
.pg-card-badge--customizable {
    top: auto;
    bottom: 1rem;
    left: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: #2c2c2c;
    background: rgba(255,255,255,0.82);
    border-color: rgba(0,0,0,0.12);
}
