/* ==========================================================================
   KARTHI MALIGAI - BRAND DESIGN SYSTEM
   Business: Wholesale + Retail Grocery & Provision Store (Tamil Nadu)
   Core Palette: Deep Green (#0D5337), Brand Red (#D32F2F), Warm Off-White (#FAF9F6)
   ========================================================================== */

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

:root {
  /* Core Brand Colors (Matching Logo & Brief) */
  --brand-green: #0D5337;
  --brand-green-dark: #073824;
  --brand-green-light: #EBF4F0;
  --brand-red: #D32F2F;
  --brand-red-hover: #B71C1C;
  --brand-red-light: #FDE8E8;
  
  /* Backgrounds & Surfaces */
  --bg-warm: #FAF9F6;
  --bg-white: #FFFFFF;
  --bg-subtle: #F3F5F4;
  --card-bg: #FFFFFF;
  
  /* Typography Colors */
  --text-dark: #1F2937;
  --text-muted: #4B5563;
  --text-light: #9CA3AF;
  
  /* Borders & Shadows */
  --border-color: #E2E8F0;
  --border-dark: #0D5337;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.07);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
  --shadow-red: 0 4px 14px rgba(211, 47, 47, 0.25);
  --shadow-green: 0 4px 14px rgba(13, 83, 55, 0.25);

  /* Geometry */
  --font-sans: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --max-width: 1240px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-warm);
  color: var(--text-dark);
  font-family: var(--font-sans);
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
}

body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
  position: relative;
  line-height: 1.6;
  background-color: var(--bg-warm);
  -webkit-font-smoothing: antialiased;
}

/* Universal Layout Containment */
.container, header, nav, section, footer, main, article, aside, div {
  max-width: 100%;
}

/* Typography Base */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h1 {
  font-size: 2.75rem;
  font-weight: 800;
}

h2 {
  font-size: 2.1rem;
  font-weight: 700;
}

h3 {
  font-size: 1.4rem;
  font-weight: 700;
}

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

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

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

button, input, select, textarea {
  font-family: inherit;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Brand Buttons */
.btn-red {
  background-color: var(--brand-red);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-md);
  border: none;
  box-shadow: var(--shadow-red);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-red:hover {
  background-color: var(--brand-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(211, 47, 47, 0.35);
}

.btn-green {
  background-color: var(--brand-green);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-md);
  border: none;
  box-shadow: var(--shadow-green);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-green:hover {
  background-color: var(--brand-green-dark);
  transform: translateY(-2px);
}

.btn-outline-green {
  background-color: transparent;
  color: var(--brand-green);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  border: 2px solid var(--brand-green);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-outline-green:hover {
  background-color: var(--brand-green-light);
  transform: translateY(-2px);
}

.btn-outline-white {
  background-color: transparent;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  border: 2px solid #FFFFFF;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-outline-white:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

/* Badges */
.badge-green {
  background-color: var(--brand-green-light);
  color: var(--brand-green);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.badge-red {
  background-color: var(--brand-red-light);
  color: var(--brand-red);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* Section Titles */
.section-title-wrap {
  text-align: center;
  margin-bottom: 2.8rem;
}

.section-tag {
  color: var(--brand-red);
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 0.4rem;
}

.section-title-wrap h2 {
  color: var(--brand-green);
  margin-bottom: 0.5rem;
}

.section-desc {
  max-width: 640px;
  margin: 0 auto;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.7rem; }
  .container { padding: 0 1rem; }
}
