/* ==========================================================================
   DHANVANTARI AYURVEDA - THEME & DESIGN TOKENS (theme.css)
   Pure CSS - Zero Inline Styles - Exact Match to React Storefront
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Cinzel:wght@600;700;800&display=swap');

:root {
  /* Brand Palette */
  --color-primary: #2d5a27;
  --color-primary-light: #3e7a37;
  --color-primary-dark: #1d3c1a;
  --color-secondary: #6b8e23;
  --color-accent: #d4a017;
  --color-accent-light: #f5c842;
  --color-bg-base: #fdfbf7;
  --color-bg-surface: #ffffff;
  --color-bg-surface-soft: #f8f6f0;
  
  /* Text Colors */
  --color-text-main: #1f2937;
  --color-text-muted: #6b7280;
  --color-text-light: #9ca3af;
  --color-text-inverse: #ffffff;
  
  /* Status Colors */
  --color-success: #10b981;
  --color-success-bg: #ecfdf5;
  --color-warning: #f59e0b;
  --color-warning-bg: #fffbeb;
  --color-danger: #ef4444;
  --color-danger-bg: #fef2f2;
  
  /* Borders & Shadows */
  --border-color: rgba(45, 90, 39, 0.12);
  --border-color-gold: rgba(212, 160, 23, 0.3);
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 10px;
  --radius-full: 9999px;
  
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.10);
  --shadow-luxury: 0 15px 35px rgba(45, 90, 39, 0.15);
  
  /* Typography */
  --font-family-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-family-serif: "Cinzel", Georgia, serif;
}

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

html {
  font-family: var(--font-family-sans);
  font-size: 16px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(45, 90, 39, 0.35) var(--color-bg-base);
}

body {
  background-color: var(--color-bg-base);
  color: var(--color-text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.home-page,
body:has(.hero-carousel-section) {
  background-color: var(--color-bg-base);
  background-image: none;
}

/* Enable fixed background wallpaper ONLY on desktop screens (>=1024px with hover capability)
   Mobile devices have severe GPU scroll jank and paint checkerboarding with background-attachment: fixed */
@media (min-width: 1024px) and (hover: hover) {
  body.home-page,
  body:has(.hero-carousel-section) {
    background-image: url("/Body_bg.jpg");
    background-size: cover;
    background-position: left top;
    background-attachment: fixed;
  }
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

img, svg {
  display: block;
  max-width: 100%;
}

/* body is display:flex — main must be width:100% to prevent flex-shrink clipping */
body > main,
main[role="main"] {
  width: 100%;
  flex: 1;
  overflow-x: clip;
  min-width: 0;  /* prevent flex overflow */
}

@media (max-width: 1023px) {
  body > main,
  main[role="main"] {
    background-color: var(--color-bg-base);
  }
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

/* Container — matches React's custom --container-7xl: 90rem (1440px) override */
.container {
  width: 100%;
  max-width: 1440px;   /* 90rem — same as React index.css --container-7xl: 90rem !important */
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.container-wide {
  width: 100%;
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg-base);
}
::-webkit-scrollbar-thumb {
  background: rgba(45, 90, 39, 0.3);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* Luxury Ayurvedic Utility Classes */
.luxury-gradient {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
}

.luxury-text-gradient {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gold-border {
  border-color: var(--color-accent) !important;
}

.glass-card {
  background: rgba(253, 251, 247, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(212, 160, 23, 0.2);
  border-radius: var(--radius-lg);
}

/* Section Header Typography — Mobile-first */
.section-title-wrap {
  text-align: center;
  margin-bottom: 1.25rem;   /* compact on mobile */
  position: relative;
}

@media (min-width: 640px) {
  .section-title-wrap {
    margin-bottom: 2.5rem;
  }
}

.section-subtitle {
  font-size: 0.625rem;      /* mobile */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-accent);
  margin-bottom: 0.35rem;
  display: block;
}

@media (min-width: 640px) {
  .section-subtitle {
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
    letter-spacing: 0.15em;
  }
}

.section-title {
  font-family: var(--font-family-sans);
  font-size: 1.35rem;       /* mobile */
  font-weight: 700;
  color: #1c1917;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

@media (min-width: 640px) {
  .section-title {
    font-size: 2rem;
  }
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.5rem;
  }
}


.section-title-border {
  display: block;
  margin: 0.75rem auto 0;
  height: 12px;
}
