/* ============================================
   Swagat Sweets And Restaurant- GLOBAL DESIGN SYSTEM
   "Spice & Flame" Aesthetic
   ============================================ */

:root {
  /* ========== COLOR PALETTE ========== */
  /* Kolachi Kitchen Brand Colors — drawn from logo */
  --color-brown-dark: #3D1A08;       /* deep espresso brown */
  --color-brown: #5C2D0E;            /* main logo brown */
  --color-brown-mid: #7A3B12;        /* mid brown */
  --color-black: #1A0A02;
  --color-charcoal: #2A1205;
  --color-charcoal-light: #ffffff;   /* white background sections */

  /* Primary = golden amber (logo text colour) */
  --color-primary: #D4880A;
  --color-primary-light: #F0A830;
  --color-ember: #C07208;
  --color-flame: #E8A020;

  /* Warm neutrals */
  --color-cream: #3D1A08;            /* dark brown — used for headings on white bg */
  --color-cream-dark: #5C2D0E;
  --color-white: #FEFDFB;
  --color-gray: #7A6050;             /* warm brown-gray for body text */
  --color-gray-light: #A08060;

  /* Alert/Accent Color */
  --color-alert: #E8A020;

  /* Color Opacity Variants */
  --color-primary-5: rgba(212, 136, 10, 0.05);
  --color-primary-10: rgba(212, 136, 10, 0.1);
  --color-primary-15: rgba(212, 136, 10, 0.15);
  --color-primary-30: rgba(212, 136, 10, 0.3);
  --color-cream-10: rgba(92, 45, 14, 0.08);
  --color-cream-30: rgba(92, 45, 14, 0.2);
  --color-black-50: rgba(26, 10, 2, 0.5);
  --color-black-80: rgba(26, 10, 2, 0.8);

  /* ========== LEGACY VARIABLES (DEPRECATED) ========== */
  --primaryLight: #F0A830;
  --primary: #D4880A;
  --secondary: #D4880A;
  --secondaryLight: #F0A830;
  --headerColor: #3D1A08;
  --bodyTextColor: #7A6050;
  --bodyTextColorWhite: #F5E6D0;
  --primary-color: #D4880A;
  --primary-color-light: #F0A830;
  --primary-color-dark: #C07208;
  --text-dark: #3D1A08;
  --text-light: #7A6050;
  --white: #FEFDFB;
  --main-color: #D4880A;

  /* ========== TYPOGRAPHY ========== */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --heading-font: 'Cormorant Garamond', Georgia, serif;
  --body-font: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Font Sizes */
  --topperFontSize: clamp(0.75rem, 1.5vw, 0.875rem);
  --headerFontSize: clamp(2rem, 4vw, 3rem);
  --bodyFontSize: 1rem;
  --fs-hero-title: clamp(3rem, 8vw, 6rem);
  --fs-section-title: clamp(2rem, 4vw, 3rem);
  --fs-card-title: clamp(1.25rem, 2vw, 1.5rem);

  /* ========== SPACING ========== */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --sectionPadding: clamp(4rem, 8vw, 6rem) 1rem;
  --max-width: 1200px;

  /* ========== TRANSITIONS ========== */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  /* ========== BORDERS & SHADOWS ========== */
  --border-radius-sm: 2px;
  --border-radius-md: 4px;
  --border-radius-lg: 8px;
  --border-radius-full: 50px;

  --shadow-sm: 0 2px 10px rgba(92, 45, 14, 0.15);
  --shadow-md: 0 4px 20px rgba(92, 45, 14, 0.2);
  --shadow-lg: 0 8px 40px rgba(92, 45, 14, 0.25);
  --shadow-glow-primary: 0 4px 30px rgba(212, 136, 10, 0.35);
  --shadow-glow-primary-light: 0 4px 20px rgba(240, 168, 48, 0.3);

  /* ========== Z-INDEX LAYERS ========== */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 500;
  --z-fixed: 1000;
  --z-modal: 2000;
  --z-tooltip: 3000;
}

/* ============================================
   CSS RESET & BASE STYLES
   ============================================ */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-brown);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-weight: 400;
  letter-spacing: 0.02em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ============================================
   TYPOGRAPHY CLASSES
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-brown-dark);
}

.cs-topper,
.section-label {
  font-size: var(--topperFontSize);
  line-height: 1.2em;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
  display: block;
}

.cs-title,
.section-title {
  font-size: var(--headerFontSize);
  font-weight: 500;
  line-height: 1.2em;
  max-width: 43.75rem;
  margin: 0 auto var(--space-sm) auto;
  color: var(--color-brown);
  font-family: var(--font-display);
  text-align: center;
}

.section-title em {
  font-style: italic;
  color: var(--color-primary);
}

.cs-text,
.section-subtitle {
  font-size: var(--bodyFontSize);
  line-height: 1.7em;
  max-width: 40.625rem;
  margin: 0;
  color: var(--color-gray);
}

.text-accent {
  color: var(--color-primary);
}

.text-italic {
  font-style: italic;
}

.link-alert {
  color: var(--color-alert);
  font-weight: bold;
  text-decoration: underline;
}

.link-alert:hover {
  color: var(--color-ember);
}

/* ============================================
   LAYOUT CONTAINERS
   ============================================ */

.section__container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--sectionPadding);
}

.section-container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-header .section-subtitle {
  margin: var(--space-sm) auto 0;
}

/* ============================================
   BUTTON STYLES
   ============================================ */

.btn,
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: var(--color-white);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--border-radius-sm);
  transition: var(--transition-medium);
  box-shadow: var(--shadow-glow-primary);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn:hover,
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 40px rgba(212, 136, 10, 0.5);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 1rem 2rem;
  background: #ffffff;
  color: var(--color-brown);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 2px solid var(--color-primary);
  border-radius: var(--border-radius-sm);
  transition: var(--transition-medium);
  cursor: pointer;
}

.btn-secondary:hover {
  background: rgba(212, 136, 10, 0.08);
  border-color: var(--color-ember);
  color: var(--color-ember);
}

.btn-ember,
.location-btn-primary {
  background: linear-gradient(135deg, var(--color-ember), var(--color-flame));
  color: var(--color-white);
  box-shadow: var(--shadow-glow-primary-light);
}

.btn-ember:hover,
.location-btn-primary:hover {
  box-shadow: 0 6px 30px rgba(212, 136, 10, 0.5);
  transform: translateY(-2px);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glowPulse {
  0%, 100% {
    opacity: 0.6;
    transform: translateX(-50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) scale(1.05);
  }
}

@keyframes flameDance {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

@keyframes scrollLine {
  0%, 100% {
    transform: scaleY(1);
    opacity: 1;
  }
  50% {
    transform: scaleY(0.5);
    opacity: 0.5;
  }
}
