/* SALAM RICE - Custom Luxury Styling & iOS Mobile Experience */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  --color-emerald-950: #061F17;
  --color-emerald-900: #092E22;
  --color-emerald-800: #0E3D2E;
  --color-gold-300: #F7DF94;
  --color-gold-400: #E5C158;
  --color-gold-500: #D4AF37;
  --color-gold-600: #B8860B;
  --color-obsidian: #0B0F0E;
  --color-ivory: #FBF9F5;
  --color-pearl: #F4EFEA;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #1A201C;
  background-color: #061F17;
  overflow-x: hidden;
  selection-background-color: #D4AF37;
  selection-color: #061F17;
}

::selection {
  background-color: #D4AF37;
  color: #061F17;
}

/* Serif Display Typography */
.font-serif-display {
  font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
}

.font-editorial {
  font-family: 'Playfair Display', Georgia, serif;
}

/* Gold Metallic Text Gradient */
.text-gold-gradient {
  background: linear-gradient(135deg, #FFF0B8 0%, #E5C158 35%, #D4AF37 70%, #F5DE93 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gold-subtle {
  background: linear-gradient(135deg, #F5E8C7 0%, #D8BE75 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Gold Metallic Border */
.border-gold-gradient {
  border-image: linear-gradient(to right, rgba(212, 175, 55, 0.4), rgba(247, 223, 148, 0.8), rgba(212, 175, 55, 0.4)) 1;
}

/* Luxury Card Shadow & Glow */
.shadow-gold-sm {
  box-shadow: 0 4px 20px -2px rgba(212, 175, 55, 0.15);
}

.shadow-gold-md {
  box-shadow: 0 10px 30px -5px rgba(212, 175, 55, 0.25);
}

.shadow-emerald-deep {
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.7), 0 0 40px -10px rgba(9, 46, 34, 0.5);
}

.shadow-ios {
  box-shadow: 0 12px 36px -6px rgba(0, 0, 0, 0.12), 0 4px 12px -2px rgba(0, 0, 0, 0.06);
}

/* Subtle Grain / Velvet Texture Overlay */
.bg-velvet-emerald {
  background-color: #072B20;
  background-image: radial-gradient(circle at 50% 0%, rgba(13, 65, 49, 0.8) 0%, rgba(6, 31, 23, 0.98) 75%);
}

.bg-velvet-obsidian {
  background-color: #0B0F0E;
  background-image: radial-gradient(circle at 80% 20%, rgba(18, 25, 23, 0.9) 0%, rgba(11, 15, 14, 1) 100%);
}

/* Tactile iOS Buttons */
.btn-gold {
  background: linear-gradient(135deg, #F3DE95 0%, #D4AF37 50%, #B8860B 100%);
  color: #061F17;
  font-weight: 600;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.5);
  filter: brightness(1.05);
}

.btn-gold:active {
  transform: translateY(0) scale(0.98);
}

.btn-outline-gold {
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: #F7DF94;
  background: rgba(7, 43, 32, 0.3);
  backdrop-filter: blur(8px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-outline-gold:hover {
  border-color: #D4AF37;
  background: rgba(212, 175, 55, 0.12);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.btn-outline-gold:active {
  transform: translateY(0) scale(0.98);
}

/* Glassmorphism Classes */
.glass-nav {
  background: rgba(6, 31, 23, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.glass-card-dark {
  background: rgba(9, 46, 34, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(212, 175, 55, 0.18);
}

.glass-card-obsidian {
  background: rgba(14, 20, 18, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* iOS Bottom Dock */
.ios-dock {
  background: rgba(7, 36, 27, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(212, 175, 55, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

/* iOS Bottom Sheet Modal */
.bottom-sheet-overlay {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
}

.bottom-sheet-overlay.active {
  opacity: 1;
  visibility: visible;
}

.bottom-sheet-content {
  transform: translateY(100%);
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.bottom-sheet-overlay.active .bottom-sheet-content {
  transform: translateY(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #061F17;
}

::-webkit-scrollbar-thumb {
  background: #14533F;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #D4AF37;
}

/* Image Hover Zoom Container */
.img-zoom-container {
  overflow: hidden;
}

.img-zoom-container img {
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.img-zoom-container:hover img {
  transform: scale(1.05);
}

/* Accessibility: Respect Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ========================================================
   ENHANCED LUXURY NAVBAR & MOBILE DRAWER STYLES
   ======================================================== */

/* Desktop Nav Links & Pills */
.nav-pill {
  position: relative;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-pill::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #D4AF37, transparent);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateX(-50%);
  opacity: 0;
}

.nav-pill:hover::after,
.nav-pill.active::after {
  width: 80%;
  opacity: 1;
}

/* Dropdown Menu for Our Rice */
.dropdown-menu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.98);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.dropdown-parent:hover .dropdown-menu,
.dropdown-parent:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Animated Hamburger Icon */
.hamburger-line {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, background-color 0.2s ease;
  transform-origin: center;
}

.menu-open .hamburger-line-1 {
  transform: translateY(6px) rotate(45deg);
}

.menu-open .hamburger-line-2 {
  opacity: 0;
  transform: scaleX(0);
}

.menu-open .hamburger-line-3 {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile Slide-Over Drawer */
.mobile-drawer-overlay {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s;
}

.mobile-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer-content {
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.mobile-drawer-overlay.active .mobile-drawer-content {
  transform: translateX(0);
}

/* Header Glow Line */
.header-bottom-line {
  background: linear-gradient(90deg, transparent 0%, rgba(212, 175, 55, 0.15) 20%, rgba(247, 223, 148, 0.6) 50%, rgba(212, 175, 55, 0.15) 80%, transparent 100%);
}
