/* ============================================
   V KOTE FOODS — Design System & Global Styles
   ============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Brand Colors */
  --clr-primary: #2E7D32;
  --clr-primary-light: #4CAF50;
  --clr-primary-dark: #1B5E20;
  --clr-primary-rgb: 46, 125, 50;

  --clr-secondary: #8B5A2B;
  --clr-secondary-light: #A0724B;
  --clr-secondary-dark: #6D4520;
  --clr-secondary-rgb: 139, 90, 43;

  --clr-accent: #F4C542;
  --clr-accent-light: #F7D56E;
  --clr-accent-dark: #D4A82E;
  --clr-accent-rgb: 244, 197, 66;

  --clr-bg: #FFFDF8;
  --clr-bg-alt: #FFF9EE;
  --clr-bg-dark: #1a1a1a;

  --clr-text: #222222;
  --clr-text-light: #555555;
  --clr-text-muted: #888888;
  --clr-text-white: #FFFFFF;

  --clr-border: rgba(0, 0, 0, 0.08);
  --clr-border-light: rgba(0, 0, 0, 0.04);

  /* Typography */
  --ff-heading: 'Poppins', sans-serif;
  --ff-body: 'Inter', sans-serif;
  --ff-button: 'Montserrat', sans-serif;

  --fs-display: clamp(2.8rem, 5vw, 5rem);
  --fs-h1: clamp(2.2rem, 4vw, 3.5rem);
  --fs-h2: clamp(1.8rem, 3vw, 2.8rem);
  --fs-h3: clamp(1.4rem, 2.5vw, 2rem);
  --fs-h4: clamp(1.15rem, 2vw, 1.5rem);
  --fs-h5: clamp(1rem, 1.5vw, 1.25rem);
  --fs-body: 1rem;
  --fs-body-lg: 1.125rem;
  --fs-small: 0.875rem;
  --fs-xs: 0.75rem;

  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extrabold: 800;

  --lh-tight: 1.2;
  --lh-normal: 1.6;
  --lh-relaxed: 1.8;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;
  --space-section: clamp(4rem, 8vw, 8rem);

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 50%;
  --radius-pill: 100px;

  /* Shadows */
  --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 16px 64px rgba(0, 0, 0, 0.12);
  --shadow-glow-primary: 0 4px 30px rgba(46, 125, 50, 0.2);
  --shadow-glow-accent: 0 4px 30px rgba(244, 197, 66, 0.25);

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-bg-dark: rgba(0, 0, 0, 0.3);
  --glass-blur: blur(20px);
  --glass-border: 1px solid rgba(255, 255, 255, 0.25);

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --navbar-height: 80px;
  --container-max: 1320px;
  --container-narrow: 800px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

body {
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-normal);
  color: var(--clr-text);
  background-color: var(--clr-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  position: relative;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-heading);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  color: var(--clr-text);
  margin-bottom: var(--space-sm);
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
h5 { font-size: var(--fs-h5); }

p {
  margin-bottom: var(--space-sm);
  color: var(--clr-text-light);
  line-height: var(--lh-relaxed);
}

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

a:hover {
  color: var(--clr-primary-dark);
}

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

ul, ol {
  list-style: none;
}

/* ---------- Selection ---------- */
::selection {
  background: var(--clr-primary);
  color: var(--clr-text-white);
}

::-moz-selection {
  background: var(--clr-primary);
  color: var(--clr-text-white);
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--clr-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--clr-primary-light);
  border-radius: var(--radius-pill);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--clr-primary);
}

/* ---------- Section Utility ---------- */
.section {
  padding: var(--space-section) 0;
  position: relative;
}

.section-alt {
  background-color: var(--clr-bg-alt);
}

.section-dark {
  background-color: var(--clr-bg-dark);
  color: var(--clr-text-white);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark h5,
.section-dark h6 {
  color: var(--clr-text-white);
}

.section-dark p {
  color: rgba(255, 255, 255, 0.75);
}

/* ---------- Section Header ---------- */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-xl);
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, rgba(46, 125, 50, 0.08), rgba(244, 197, 66, 0.08));
  border: 1px solid rgba(46, 125, 50, 0.15);
  font-family: var(--ff-button);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--clr-primary);
  margin-bottom: var(--space-md);
}

.section-badge i {
  font-size: 0.65rem;
  color: var(--clr-accent);
}

.section-title {
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-sm);
  background: linear-gradient(135deg, var(--clr-text) 0%, var(--clr-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-dark .section-title {
  background: linear-gradient(135deg, #fff 0%, var(--clr-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: var(--fs-body-lg);
  color: var(--clr-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

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

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

.text-primary { color: var(--clr-primary) !important; }
.text-secondary { color: var(--clr-secondary) !important; }
.text-accent { color: var(--clr-accent) !important; }
.text-muted { color: var(--clr-text-muted) !important; }

.fw-medium { font-weight: var(--fw-medium) !important; }
.fw-semibold { font-weight: var(--fw-semibold) !important; }

.ff-heading { font-family: var(--ff-heading) !important; }
.ff-body { font-family: var(--ff-body) !important; }

/* ---------- Page Banner ---------- */
.page-banner {
  position: relative;
  padding: calc(var(--navbar-height) + var(--space-3xl)) 0 var(--space-2xl);
  background: linear-gradient(135deg, var(--clr-primary-dark) 0%, var(--clr-primary) 50%, var(--clr-secondary) 100%);
  overflow: hidden;
  text-align: center;
}

.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.page-banner::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--clr-bg);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.page-banner .section-alt ~ .page-banner::after {
  background: var(--clr-bg-alt);
}

.page-banner-title {
  font-size: var(--fs-h1);
  color: var(--clr-text-white);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-sm);
  position: relative;
  z-index: 1;
}

.page-banner-subtitle {
  font-size: var(--fs-body-lg);
  color: rgba(255, 255, 255, 0.8);
  position: relative;
  z-index: 1;
}

.page-banner .breadcrumb {
  justify-content: center;
  position: relative;
  z-index: 1;
  margin-top: var(--space-md);
}

.page-banner .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--fs-small);
  font-family: var(--ff-button);
}

.page-banner .breadcrumb-item a:hover {
  color: var(--clr-accent);
}

.page-banner .breadcrumb-item.active {
  color: var(--clr-accent);
  font-size: var(--fs-small);
  font-family: var(--ff-button);
}

.page-banner .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- Responsive Container Overrides ---------- */
@media (max-width: 576px) {
  :root {
    --space-section: 3.5rem;
    --navbar-height: 70px;
  }

  .section-header {
    margin-bottom: var(--space-lg);
  }
}
