/* ==========================================================================
   MATEREX BAKERY — MASTER DESIGN SYSTEM & CSS TOKENS
   Design System: Hyper-Saturated Fluid + Material Design 3 + Shadcn UI
   Domain: materex.com.ng
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400..900;1,9..144,400..900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Brand Color Palette (Artisan Warm Bakery + Hyper-Saturated Liquid) */
  --primary-orange: #E65100;
  --primary-orange-light: #FF6D00;
  --primary-orange-hover: #D84315;
  --primary-orange-alpha: rgba(230, 81, 0, 0.12);
  
  --amber-gold: #F59E0B;
  --amber-gold-dark: #D97706;
  --amber-gold-light: #FEF3C7;
  
  --bg-warm-cream: #FFFDF9;
  --bg-warm-surface: #FAF4EB;
  --bg-warm-card: #FFFFFF;
  
  --dark-onyx: #1C1917;
  --dark-void: #0F0D0C;
  --dark-surface: #292524;
  --dark-border: #44403C;
  
  --text-primary: #1C1917;
  --text-muted: #57534E;
  --text-light: #A8A29E;
  --text-on-dark: #F5F5F4;

  /* Typography */
  --font-serif: 'Fraunces', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Glassmorphism Tokens (Shadcn UI style) */
  --glass-bg-light: rgba(255, 253, 249, 0.82);
  --glass-bg-dark: rgba(28, 25, 23, 0.85);
  --glass-border-light: rgba(255, 255, 255, 0.6);
  --glass-border-dark: rgba(255, 255, 255, 0.12);
  --glass-blur: blur(20px);
  --glass-shadow: 0 20px 40px -15px rgba(28, 25, 23, 0.08);
  --glass-shadow-hover: 0 30px 60px -20px rgba(230, 81, 0, 0.2);

  /* M3 Elevations & Radii */
  --radius-pill: 9999px;
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;

  /* M3 Motion Easing */
  --ease-fluid: cubic-bezier(0.22, 1, 0.36, 1);
  --transition-fast: 0.2s var(--ease-fluid);
  --transition-normal: 0.35s var(--ease-fluid);
  --transition-slow: 0.6s var(--ease-fluid);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-warm-cream);
  color: var(--text-primary);
  line-height: 1.6;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
  position: relative;
}


/* Typography Hierarchy */
h1, h2, h3, h4, .font-serif {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw + 1rem, 4.5rem); }
h2 { font-size: clamp(2rem, 3.5vw + 0.8rem, 3.25rem); }
h3 { font-size: clamp(1.4rem, 2vw + 0.5rem, 2rem); }
h4 { font-size: 1.25rem; }

p {
  color: var(--text-muted);
  font-size: 1rem;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-padding {
  padding: 5rem 0;
}

/* Liquid Sectioning Cutouts */
.liquid-section-top {
  border-top-left-radius: var(--radius-xl);
  border-top-right-radius: var(--radius-xl);
}

.liquid-section-bottom {
  border-bottom-left-radius: 80px;
  border-bottom-right-radius: 80px;
}

/* Asymmetrical Liquid Hero Background */
.hero-liquid-bg {
  background: radial-gradient(circle at 80% 20%, rgba(255, 109, 0, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 10% 80%, rgba(245, 158, 11, 0.12) 0%, transparent 45%),
              var(--bg-warm-cream);
  position: relative;
}

/* Dark Void Section */
.bg-dark-void {
  background-color: var(--dark-void);
  color: var(--text-on-dark);
}

.bg-dark-void p {
  color: var(--text-light);
}

/* Glassmorphic Components */
.glass-card {
  background: var(--glass-bg-light);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
  transition: all var(--transition-normal);
}

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

.glass-card-dark {
  background: var(--glass-bg-dark);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border-dark);
  border-radius: var(--radius-lg);
  color: var(--text-on-dark);
}

/* Button Component Tokens (M3 & Shadcn Style) */
.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-pill-orange {
  background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-orange-hover) 100%);
  color: #FFFFFF;
  box-shadow: 0 10px 25px -5px rgba(230, 81, 0, 0.4);
}

.btn-pill-orange:hover {
  background: linear-gradient(135deg, var(--primary-orange-light) 0%, var(--primary-orange) 100%);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 30px -4px rgba(230, 81, 0, 0.5);
}

.btn-pill-orange:active {
  transform: scale(0.96);
}

.btn-pill-glass {
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-primary);
  border: 1px solid rgba(28, 25, 23, 0.12);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.btn-pill-glass:hover {
  background: #FFFFFF;
  border-color: var(--primary-orange);
  color: var(--primary-orange);
  transform: translateY(-2px);
}

.btn-pill-dark {
  background: var(--dark-surface);
  color: #FFFFFF;
  border: 1px solid var(--dark-border);
}

.btn-pill-dark:hover {
  background: var(--dark-onyx);
  border-color: var(--amber-gold);
  color: var(--amber-gold);
}

/* Badge Component */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.badge-amber {
  background: var(--amber-gold-light);
  color: var(--amber-gold-dark);
}

.badge-orange {
  background: var(--primary-orange-alpha);
  color: var(--primary-orange-hover);
}

/* Header & Sticky Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all var(--transition-normal);
  padding: 1rem 0;
}

.site-header.scrolled {
  padding: 0.625rem 0;
  background: rgba(255, 253, 249, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(28, 25, 23, 0.08);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.logo-desktop {
  display: block;
}

.logo-mobile {
  display: none !important;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-orange);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--primary-orange);
  border-radius: 2px;
  transition: width var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.phone-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  padding: 0.5rem 1rem;
  background: var(--bg-warm-surface);
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}


/* Floating WhatsApp Quick Action Button */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: all var(--transition-normal);
}

.whatsapp-float:hover {
  transform: scale(1.1) rotate(6deg);
  box-shadow: 0 15px 35px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

/* SLIDING WHATSAPP CHECKOUT DRAWER (NEW) */
.checkout-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 13, 12, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 3000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.checkout-drawer-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.checkout-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 440px;
  background: #FFFDF9;
  z-index: 3001;
  box-shadow: -15px 0 40px rgba(0, 0, 0, 0.25);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
}

.checkout-drawer-overlay.is-open .checkout-drawer {
  transform: translateX(0);
}

/* 360 DEGREE INTERACTIVE CAROUSEL STYLES (NEW) */
.carousel-360-container {
  position: relative;
  user-select: none;
  cursor: grab;
}

.carousel-360-container:active {
  cursor: grabbing;
}

/* Footer Section */
.site-footer {
  background: var(--dark-onyx);
  color: var(--text-on-dark);
  padding-top: 5rem;
  padding-bottom: 2rem;
  position: relative;
  border-top-left-radius: 60px;
  border-top-right-radius: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand p {
  color: var(--text-light);
  margin-top: 1rem;
  font-size: 0.9rem;
}

.footer-column h4 {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--amber-gold);
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--text-light);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: #FFFFFF;
}

.footer-bottom {
  border-top: 1px solid var(--dark-border);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-light);
}

.allergen-footer-banner {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--amber-gold-light);
  font-size: 0.9rem;
}
