/* ==============================================================================
 * CALATHEA COFFEE — HAUTE COUTURE LUXURY DESIGN SYSTEM
 * Typography: Cormorant Garamond, Syne, Inter Tight
 * Visual Direction: High-End Curated Botanical Atelier & Precision Industrial Lab
 * ============================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,600&family=Inter+Tight:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;1,300&family=Syne:wght@400;500;600;700;800&family=Cinzel:wght@400;500;600;700;800;900&display=swap');

:root {
  /* Atelier Colors */
  --calathea-emerald-core: #1F6F3E;
  --calathea-emerald-vivid: #278A4E;
  --calathea-emerald-deep: #0D381E;
  --calathea-emerald-glow: rgba(39, 138, 78, 0.28);
  
  --oak-warm: #C89D6C;
  --oak-sand: #E5D5C0;
  --linen-pearl: #FAF8F5;
  --canvas-cream: #F3EFEA;
  --raw-jute: #8E7A63;
  
  --noir-obsidian: #0A0807;
  --noir-espresso: #110E0C;
  --noir-charcoal: #171311;
  --noir-elevated: #1F1916;
  
  --steel-lunar: #E2E4E8;
  --steel-line: rgba(226, 228, 232, 0.12);
  
  /* Bespoke Typography */
  --font-display: 'Cinzel', 'Cormorant Garamond', serif;
  --font-serif: 'Cormorant Garamond', Garamond, 'Didot', serif;
  --font-heading: 'Syne', -apple-system, sans-serif;
  --font-body: 'Inter Tight', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --ease-atelier: cubic-bezier(0.19, 1, 0.22, 1);
}

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

html {
  font-size: 16px;
  background-color: var(--noir-obsidian);
  color: var(--linen-pearl);
  font-family: var(--font-body);
  scroll-behavior: smooth;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  line-height: 1.68;
  background-color: var(--noir-obsidian);
  color: var(--linen-pearl);
  overflow-x: hidden;
  position: relative;
  letter-spacing: -0.01em;
}

::selection {
  background-color: var(--calathea-emerald-vivid);
  color: #FFFFFF;
}

/* Typography Classes */
.font-display { font-family: var(--font-display); }
.font-serif { font-family: var(--font-serif); }
.font-heading { font-family: var(--font-heading); }
.font-body { font-family: var(--font-body); }

/* Bespoke Atmospheric Textures */
.atelier-grain-bg {
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(39, 138, 78, 0.12) 0%, transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(200, 157, 108, 0.08) 0%, transparent 50%),
    repeating-linear-gradient(
      90deg,
      rgba(200, 157, 108, 0.02) 0px,
      rgba(200, 157, 108, 0.02) 1px,
      transparent 1px,
      transparent 32px
    );
}

/* Glass Panels with Fine Jewelry Borders */
.glass-atelier {
  background: rgba(17, 14, 12, 0.76);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(200, 157, 108, 0.2);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65);
}

.glass-atelier-hover {
  transition: all 0.5s var(--ease-atelier);
}
.glass-atelier-hover:hover {
  transform: translateY(-6px);
  border-color: rgba(39, 138, 78, 0.55);
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.8), 0 0 30px var(--calathea-emerald-glow);
}

/* Sticky WebGL Canvas */
#webgl-canvas-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
}

#webgl-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Layering */
.presentation-container {
  position: relative;
  z-index: 10;
}

/* Hero Stage */
.hero-stage {
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3rem 4rem 4rem;
  overflow: hidden;
}

.hero-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
}

.hero-video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  filter: contrast(1.15) brightness(0.8);
}

.hero-gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 45%, rgba(10, 8, 7, 0.25) 0%, rgba(10, 8, 7, 0.96) 88%);
  z-index: -1;
}

/* Haute Couture Navigation */
.brand-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 2rem 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.4s var(--ease-atelier);
}

.brand-nav.scrolled {
  background: rgba(10, 8, 7, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(200, 157, 108, 0.15);
  padding: 1.25rem 4rem;
}

/* Buttons & Micro Badges */
.btn-atelier-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  background: linear-gradient(135deg, #278A4E 0%, #15552D 100%);
  color: #FFFFFF;
  padding: 1.05rem 2.5rem;
  border-radius: 9999px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: all 0.4s var(--ease-atelier);
  box-shadow: 0 12px 30px rgba(39, 138, 78, 0.35);
}

.btn-atelier-primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #2E9E5A 0%, #1C6E3B 100%);
  box-shadow: 0 18px 45px rgba(39, 138, 78, 0.5);
}

.btn-atelier-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  color: var(--linen-pearl);
  padding: 1rem 2.25rem;
  border-radius: 9999px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid rgba(200, 157, 108, 0.35);
  cursor: pointer;
  transition: all 0.4s var(--ease-atelier);
}

.btn-atelier-outline:hover {
  background: rgba(200, 157, 108, 0.15);
  border-color: var(--oak-warm);
  color: var(--oak-warm);
}

.pill-terroir {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(39, 138, 78, 0.14);
  border: 1px solid rgba(39, 138, 78, 0.4);
  color: #5CD48C;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pill-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(200, 157, 108, 0.14);
  border: 1px solid rgba(200, 157, 108, 0.35);
  color: var(--oak-sand);
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(7, 5, 4, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-atelier);
}

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

.modal-card {
  width: 100%;
  max-width: 880px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 28px;
  background: var(--noir-charcoal);
  border: 1px solid rgba(200, 157, 108, 0.3);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.85);
  transform: translateY(24px) scale(0.97);
  transition: transform 0.4s var(--ease-atelier);
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--noir-obsidian);
}
::-webkit-scrollbar-thumb {
  background: rgba(200, 157, 108, 0.25);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--calathea-emerald-vivid);
}
