/* Google Fonts Imports */
@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,500&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --color-bg: #0F0F10;
  --color-surface: #161618;
  --color-accent: #C5A059;
  --color-accent-bright: #D4AF37;
  --color-accent-hover: #B3924E;
  --color-text-primary: #F3F4F6;
  --color-text-secondary: #9CA3AF;
  
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'Plus Jakarta Sans', sans-serif;
}

/* Base resets & variables overriding Tailwind where needed */
html {
  scroll-behavior: smooth;
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg);
}
::-webkit-scrollbar-thumb {
  background: #252528;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent);
}

/* Typography Helpers */
.font-editorial {
  font-family: var(--font-serif);
}

.font-body {
  font-family: var(--font-sans);
}

/* Glassmorphism Classes */
.glass-header {
  background: rgba(15, 15, 16, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.glass-card {
  background: rgba(22, 22, 24, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.glass-card:hover {
  border-color: rgba(197, 160, 89, 0.2);
}

/* Custom Text Gradient */
.text-gradient-accent {
  background: linear-gradient(135deg, #F3F4F6 30%, #C5A059 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Interactive elements */
.btn-amber-outline {
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  background: transparent;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-amber-outline:hover {
  background: var(--color-accent);
  color: var(--color-bg);
  box-shadow: 0 0 15px rgba(197, 160, 89, 0.3);
}

.btn-amber-solid {
  background: var(--color-accent);
  color: var(--color-bg);
  font-weight: 500;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(197, 160, 89, 0.15);
}

.btn-amber-solid:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(197, 160, 89, 0.3);
}

.btn-ghost {
  color: var(--color-text-primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-ghost:hover {
  border-color: var(--color-text-primary);
  background: rgba(255, 255, 255, 0.03);
}

/* Accordion Tab Styling */
.roast-tab {
  border-left: 2px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: all 0.3s ease;
}

.roast-tab.active {
  border-left-color: var(--color-accent);
  background: rgba(197, 160, 89, 0.03);
}

/* FAQ Transition */
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  opacity: 0;
}

.faq-content.open {
  opacity: 1;
}

/* Contact Input Transitions */
.contact-input {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.75rem 0;
  color: var(--color-text-primary);
  transition: border-color 0.3s ease;
  width: 100%;
}

.contact-input:focus {
  outline: none;
  border-bottom-color: var(--color-accent);
}

.contact-label {
  transition: all 0.3s ease;
  transform-origin: left top;
}

.contact-input:focus ~ .contact-label,
.contact-input:not(:placeholder-shown) ~ .contact-label {
  transform: translateY(-1.5rem) scale(0.85);
  color: var(--color-accent);
}

/* Scroll Reveal Classes */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* Custom Badge Pulse */
@keyframes pulse-soft {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.pulse-badge {
  animation: pulse-soft 3s infinite;
}

/* Micro-interaction: Coffee bag card hover */
.product-card {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover {
  transform: translateY(-8px);
}

/* Video modal backdrop blur animate */
.modal-overlay {
  animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  animation: scaleIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes scaleIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Custom Notification Toast */
#toast-notification {
  transform: translateY(100px);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
}

#toast-notification.show {
  transform: translateY(0);
}
