/* ==========================================================================
   TNCPDA & FMCG TV — Modern Executive Design System (21st.dev Master)
   Tamil Nadu Consumer Products Distributors Association (ESTD. 1992)
   Apex State Trade Body & FMCG TV Media Network
   Comprehensive, High-Craft, Modern Web Standard (Zero AI Slop)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Noto+Sans+Tamil:wght@400;500;600;700;800&family=Outfit:wght@500;600;700;800;900&display=swap');

/* --- 1. Design Tokens & Custom Properties (21st.dev Standard) --- */
:root {
  /* Slate & Obsidian Dark Palette */
  --color-primary-dark: #090d16;   /* Obsidian Foundation */
  --color-primary: #0f172a;        /* Slate 900 Surface */
  --color-primary-light: #1e293b;  /* Slate 800 Surface */
  --color-dark-popover: #0c1220;   /* Dropdown Glass Surface */

  /* Crisp Light Surfaces */
  --color-bg: #f8fafc;             /* Slate 50 Page Background */
  --color-surface: #ffffff;        /* Pure White Card Surface */
  --color-surface-subtle: #f1f5f9; /* Slate 100 Neutral */

  /* Text Hierarchy */
  --color-text: #0f172a;           /* Deep Slate 900 for Headings */
  --color-text-body: #334155;      /* Slate 700 for Body */
  --color-text-muted: #64748b;     /* Slate 500 for Secondary */
  --color-text-light: #f8fafc;     /* Crisp Off-White for Dark */
  --color-text-light-muted: #94a3b8; /* Slate 400 for Dark Secondary */

  /* Brand Action Accents (Cobalt & Sky) */
  --color-accent: #2563eb;         /* Royal Cobalt 600 */
  --color-accent-hover: #1d4ed8;   /* Cobalt 700 */
  --color-accent-light: #38bdf8;   /* Sky 400 */
  --color-accent-subtle: rgba(37, 99, 235, 0.1);
  --color-accent-border: rgba(37, 99, 235, 0.25);

  /* Prestige & Trust Accents (Warm Amber) */
  --color-gold: #d97706;           /* Warm Amber 600 */
  --color-gold-hover: #b45309;     /* Amber 700 */
  --color-gold-light: #f59e0b;     /* Amber 500 */
  --color-gold-subtle: rgba(217, 119, 6, 0.1);
  --color-gold-border: rgba(217, 119, 6, 0.25);

  /* Functional Accents */
  --color-success: #059669;        /* Emerald 600 */
  --color-success-subtle: rgba(5, 150, 105, 0.1);
  --color-danger: #dc2626;         /* Red 600 */
  --color-danger-subtle: rgba(220, 38, 38, 0.1);

  /* Borders (Subtle 1px 21st.dev Standard) */
  --color-border: #e2e8f0;         /* Slate 200 on Light */
  --color-border-hover: #cbd5e1;   /* Slate 300 on Hover */
  --color-border-dark: rgba(255, 255, 255, 0.08);
  --color-border-dark-hover: rgba(255, 255, 255, 0.16);

  /* Multi-Layer Ambient Shadows */
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -4px rgba(0, 0, 0, 0.03);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.09), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-popover: 0 20px 40px -10px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);

  /* Radii */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Fonts */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-tamil: 'Noto Sans Tamil', 'Mukta Malar', sans-serif;

  /* Layout Constants */
  --top-bar-height: 38px;
  --header-height: 70px;
  --transition-fast: 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- 2. Base Reset & Fluid Foundations --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  max-width: 100vw;
  width: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text-body);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  max-width: 100vw;
  width: 100%;
  position: relative;
}

*, *::before, *::after {
  box-sizing: border-box;
}

/* --- Bilingual Architecture --- */
html:not([lang="ta"]) .lang-ta {
  display: none !important;
}

html[lang="ta"] .lang-en {
  display: none !important;
}

html[lang="ta"] body {
  font-family: var(--font-tamil), var(--font-body);
}

html[lang="ta"] h1,
html[lang="ta"] h2,
html[lang="ta"] h3,
html[lang="ta"] h4,
html[lang="ta"] .hero-title,
html[lang="ta"] .brand-title {
  font-family: var(--font-tamil), var(--font-heading);
  line-height: 1.35;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -9999px;
  left: 1rem;
  background: var(--color-accent);
  color: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 9999;
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus {
  top: 1rem;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-text);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

p {
  margin-bottom: 1rem;
}
p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover {
  color: var(--color-accent-hover);
}

.icon-inline {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

/* --- 3. Top Utility Bar --- */
.top-bar {
  background-color: #060911;
  border-bottom: 1px solid var(--color-border-dark);
  font-size: 0.785rem;
  color: var(--color-text-light-muted);
  height: var(--top-bar-height);
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1001;
}

.top-bar-container,
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-contact {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.top-address,
.top-bar-contact span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.top-link,
.top-bar-contact a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--color-text-light-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.top-link:hover,
.top-bar-contact a:hover {
  color: #ffffff;
}

.top-bar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.top-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  background: var(--color-success-subtle);
  color: #34d399;
  border: 1px solid rgba(5, 150, 105, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.top-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
}

.top-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--color-text-light-muted);
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-full);
  padding: 3px 10px;
  font-size: 0.725rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.top-action-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--color-border-dark-hover);
}

/* --- 4. Site Header & Modern 21st.dev Navigation --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(9, 13, 22, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border-dark);
  display: flex;
  align-items: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  will-change: transform;
}

/* Smart Reappearing Header states */
.site-header.header-hidden {
  transform: translateY(-100%);
}

.site-header.header-pinned {
  transform: translateY(0);
  background: rgba(9, 13, 22, 0.97);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
  border-bottom-color: rgba(56, 189, 248, 0.2);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  max-width: 1360px;
}

/* Brand Identity */
.brand-identity {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1.15;
}

.brand-title span,
.brand-badge {
  font-size: 0.725rem;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-sm);
  padding: 1px 5px;
}

.brand-subtitle {
  font-size: 0.685rem;
  font-weight: 500;
  color: var(--color-text-light-muted);
  line-height: 1.2;
  margin-top: 2px;
  letter-spacing: 0.01em;
  max-width: 250px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Responsive Header Sizing to guarantee no viewport overflow */
@media (max-width: 1380px) {
  .brand-subtitle {
    display: none !important;
  }
}

html[lang="ta"] .nav-link {
  font-size: 0.815rem;
  padding: 6px 8px;
  gap: 4px;
}

html[lang="ta"] .btn-header-cta {
  padding: 6px 11px;
  font-size: 0.785rem;
}

html[lang="ta"] .header-actions {
  gap: 0.5rem;
}

/* Desktop Navigation */
.site-nav {
  display: flex;
  align-items: center;
}

.nav-menu,
.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-link,
.nav-item-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--color-text-light-muted);
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  font-family: inherit;
}

.nav-link:hover,
.nav-item-btn:hover,
.nav-item:hover > .nav-link,
.nav-item:hover > .nav-item-btn {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-link.active,
.nav-item-btn.active {
  color: #ffffff;
  background: var(--color-accent-subtle);
  border: 1px solid var(--color-accent-border);
  font-weight: 600;
}

.nav-caret {
  transition: transform var(--transition-normal);
  color: var(--color-text-light-muted);
}

.nav-item:hover .nav-caret {
  transform: rotate(180deg);
  color: #ffffff;
}

/* --- Popover Dropdowns (Supports BOTH .nav-popover AND .nav-mega / .nav-mega-menu) --- */
.nav-popover,
.nav-mega,
.nav-mega-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 320px;
  max-width: 92vw;
  background: var(--color-dark-popover);
  border: 1px solid var(--color-border-dark-hover);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-popover);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
  z-index: 1050;
  display: flex;
  flex-direction: column;
}

/* Invisible bridge so mouse hover doesn't break */
.nav-popover::before,
.nav-mega::before,
.nav-mega-menu::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}

.nav-item:hover > .nav-popover,
.nav-item:hover > .nav-mega,
.nav-item:hover > .nav-mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-popover-menu,
.nav-mega-links,
.nav-mega-cols {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-popover-item,
.nav-mega-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 7px 10px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background var(--transition-fast);
}

.nav-popover-item:hover,
.nav-mega-link:hover {
  background: rgba(255, 255, 255, 0.07);
}

.nav-popover-icon,
.nav-mega-ico {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #60a5fa;
  flex-shrink: 0;
  transition: transform var(--transition-fast), color var(--transition-fast), background var(--transition-fast);
}

.nav-popover-icon svg,
.nav-mega-ico svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
}

.nav-popover-item:hover .nav-popover-icon,
.nav-mega-link:hover .nav-mega-ico {
  color: #ffffff;
  background: var(--color-accent);
  border-color: var(--color-accent);
  transform: scale(1.05);
}

.nav-popover-text,
.nav-mega-link > div {
  flex: 1;
  min-width: 0;
}

.nav-popover-text strong,
.nav-mega-link strong {
  display: block;
  font-size: 0.835rem;
  font-weight: 600;
  color: #f1f5f9;
  line-height: 1.25;
}

.nav-popover-item:hover strong,
.nav-mega-link:hover strong {
  color: #ffffff;
}

.nav-popover-text small,
.nav-mega-link small {
  display: block;
  font-size: 0.715rem;
  color: var(--color-text-light-muted);
  line-height: 1.3;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-popover-footer,
.nav-mega-feature {
  display: block;
  margin-top: 4px;
  padding: 7px 10px;
  border-top: 1px solid var(--color-border-dark);
  font-size: 0.76rem;
  font-weight: 600;
  color: #38bdf8;
  text-decoration: none;
  border-radius: var(--radius-xs);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.nav-popover-footer:hover,
.nav-mega-feature:hover {
  background: rgba(56, 189, 248, 0.08);
  color: #7dd3fc;
}

.nav-mega-feature em,
.nav-mega-feature b,
.nav-mega-feature p {
  display: none; /* Hide heavy legacy feature card blocks inside popover */
}

.nav-mega-feature .feature-btn {
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
  color: #38bdf8;
}

/* --- Header Actions (Language Switcher & CTA) --- */
.header-actions,
.header-cta-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* Segmented Language Switcher */
.lang-switcher,
.lang-switch-wrap {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-md);
  padding: 2px;
}

.lang-btn {
  padding: 4px 9px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--color-text-light-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  line-height: 1.2;
}

.lang-btn:hover {
  color: #ffffff;
}

.lang-btn.active {
  background: var(--color-accent);
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Header CTA Button */
.btn-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: #ffffff;
  font-size: 0.815rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: var(--radius-md);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-header-cta:hover {
  background: var(--color-accent-hover);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Mobile Menu Button */
.mobile-menu-btn,
.mm-burger {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-dark);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  cursor: pointer;
  padding: 8px 7px;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  transition: background var(--transition-fast);
}

.burger-bar,
.mm-burger span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: #ffffff;
  border-radius: 1px;
}

/* Mobile Drawer (Supports .mobile-drawer AND .mm-mobile-drawer) */
.mobile-drawer,
.mm-mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 350px;
  height: 100vh;
  background: #090d16;
  border-left: 1px solid var(--color-border-dark);
  z-index: 2000;
  box-shadow: var(--shadow-popover);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform var(--transition-normal), visibility var(--transition-normal);
  overflow-y: auto;
  padding: 1.25rem;
}

.mobile-drawer.is-active,
.mm-mobile-drawer.is-open,
body.mm-menu-open .mm-mobile-drawer,
body.mm-menu-open .mobile-drawer {
  transform: translateX(0) !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border-dark);
  margin-bottom: 1rem;
}

.drawer-close-btn {
  background: transparent;
  border: none;
  color: var(--color-text-light-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.drawer-close-btn:hover {
  color: #ffffff;
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.drawer-link-item a,
.drawer-link {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--color-text-light);
  font-weight: 500;
  border-radius: var(--radius-md);
  text-decoration: none;
}

.drawer-link-item a:hover,
.drawer-link:hover,
.drawer-link.active {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.drawer-accordion-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  color: var(--color-text-light);
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  border-radius: var(--radius-md);
}

.drawer-accordion-btn:hover {
  background: rgba(255, 255, 255, 0.06);
}

.drawer-accordion-content {
  display: none;
  padding-left: 1rem;
  flex-direction: column;
  gap: 0.35rem;
}

.drawer-accordion.is-open .drawer-accordion-content {
  display: flex;
}

.drawer-accordion-content a {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: var(--color-text-light-muted);
  text-decoration: none;
  border-radius: var(--radius-sm);
}

.drawer-accordion-content a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.drawer-footer {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border-dark);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.drawer-contact-info {
  font-size: 0.8rem;
  color: var(--color-text-light-muted);
  margin-top: 0.5rem;
}

/* --- 5. Buttons & Badges --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 0.885rem;
  font-weight: 600;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
  line-height: 1.25;
}

.btn-primary {
  background-color: var(--color-accent);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  border-color: var(--color-border-dark-hover);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--color-text-body);
  border-color: var(--color-border);
}

.btn-outline:hover {
  background: var(--color-surface-subtle);
  border-color: var(--color-border-hover);
  color: var(--color-text);
}

.btn-outline-light {
  background: transparent;
  color: #ffffff;
  border-color: var(--color-border-dark-hover);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.btn-sm {
  padding: 0.45rem 0.95rem;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

.btn-block {
  width: 100%;
}

/* Badges */

.aicpdf-badge-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  max-width: 100%;
}

.aicpdf-emblem-img {
  width: auto !important;
  height: 34px !important;
  max-height: 34px !important;
  border-radius: 4px;
  background: #fedd4f;
  padding: 2px;
  border: 1px solid var(--color-accent);
}

.badge {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  white-space: normal;
  text-align: center;
  word-break: break-word;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 0.725rem;
  font-weight: 600;
  line-height: 1.2;
}

.badge-accent {
  background: var(--color-accent-subtle);
  color: var(--color-accent);
  border: 1px solid var(--color-accent-border);
}

.badge-gold,
.badge-warning {
  background: var(--color-gold-subtle);
  color: var(--color-gold);
  border: 1px solid var(--color-gold-border);
}

.badge-success {
  background: var(--color-success-subtle);
  color: var(--color-success);
  border: 1px solid rgba(5, 150, 105, 0.25);
}

.badge-danger {
  background: var(--color-danger-subtle);
  color: var(--color-danger);
  border: 1px solid rgba(220, 38, 38, 0.25);
}

.badge-navy {
  background: var(--color-primary-light);
  color: var(--color-text-light);
}

/* --- 6. News / Announcement Ticker --- */
.ticker-bar {
  background: #060911;
  color: var(--color-text-light-muted);
  border-bottom: 1px solid var(--color-border-dark);
  padding: 0.45rem 0;
  font-size: 0.815rem;
  display: flex;
  align-items: center;
}

.ticker-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  overflow: hidden;
}

.ticker-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-accent);
  color: #ffffff;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.725rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.ticker-content {
  overflow: hidden;
  white-space: nowrap;
  flex: 1;
}

.ticker-text {
  display: inline-block;
  padding-left: 100%;
  animation: ticker-anim 28s linear infinite;
  color: #cbd5e1;
}

.ticker-text:hover {
  animation-play-state: paused;
}

@keyframes ticker-anim {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-100%, 0, 0); }
}

/* --- 7. Hero Section (21st.dev Executive Edition) --- */
.hero {
  position: relative;
  background-color: var(--color-primary-dark);
  background-image: 
    radial-gradient(circle at 50% -15%, rgba(37, 99, 235, 0.22), transparent 65%),
    radial-gradient(circle at 85% 40%, rgba(14, 165, 233, 0.08), transparent 45%);
  color: #ffffff;
  padding: 4.5rem 0 4rem;
  border-bottom: 1px solid var(--color-border-dark);
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}


/* CSS Grid containment - prevents min-content blowout on mobile */
.hero-grid,
.grid-2,
.grid-3,
.grid-4,
.footer-grid,
.media-grid,
.calc-summary-grid,
.split-row {
  min-width: 0;
  max-width: 100%;
}

.hero-grid > *,
.grid-2 > *,
.grid-3 > *,
.grid-4 > *,
.hero-content,
.hero-card,
.hero-media {
  min-width: 0 !important;
  max-width: 100% !important;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Hero Eyebrow Pill */
.hero-pill,
.hero-badge,
.top-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 12px;
  background: var(--color-accent-subtle);
  color: #93c5fd;
  border: 1px solid var(--color-accent-border);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 1.25rem;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
}

.hero-title,
.page-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin-bottom: 1.25rem;
  word-break: break-word;
  overflow-wrap: break-word;
}

.hero-title > span,
.page-hero-title > span {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background: none !important;
  -webkit-background-clip: border-box !important;
}

.gradient-text,
.hero-title .highlight,
.page-hero-title .highlight,
.hero-title > span > span,
.page-hero-title > span > span {
  background: linear-gradient(135deg, #60a5fa 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

.hero-title {
  color: #ffffff;
}

.hero-title > .lang-en,
.hero-title > .lang-ta {
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  background: none;
}

.gradient-text,
.hero-title .gradient-text,
.hero-title .highlight {
  background: linear-gradient(135deg, #60a5fa 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

.hero-desc {
  font-size: 1.05rem;
  color: #cbd5e1;
  line-height: 1.65;
  margin-bottom: 2rem;
  max-width: 580px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.25rem;
}

/* Hero Stats Strip */
.hero-stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  width: 100%;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border-dark);
}

.stat-item h4,
.stat-item strong,
.stat-item .stat-num {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.stat-item p,
.stat-item span,
.stat-item .stat-lbl {
  font-size: 0.75rem;
  color: var(--color-text-light-muted);
  margin-top: 2px;
  line-height: 1.3;
}

/* Right Hero Card / Portal Links */
.hero-card,
.hero-feature-box,
.hero-visual-frame {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid var(--color-border-dark-hover);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 1.75rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero-card-header h3,
.hero-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.25rem;
  border-bottom: 1px solid var(--color-border-dark);
  padding-bottom: 0.75rem;
}

.portal-links,
.hero-pill-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.portal-link-item,
.hero-pill-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.portal-link-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--color-accent-border);
  transform: translateX(3px);
}

.portal-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--color-accent-subtle);
  border: 1px solid var(--color-accent-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #60a5fa;
  flex-shrink: 0;
}

.portal-icon svg {
  width: 18px;
  height: 18px;
}

.portal-text h5 {
  font-size: 0.885rem;
  font-weight: 600;
  color: #f1f5f9;
  line-height: 1.2;
}

.portal-text p {
  font-size: 0.735rem;
  color: var(--color-text-light-muted);
  line-height: 1.3;
  margin-top: 2px;
}

/* --- 8. Section Global Structure --- */
.section {
  padding: 5rem 0;
}

.section-alt {
  background-color: var(--color-surface-subtle);
}

.section-dark {
  background-color: var(--color-primary-dark);
  color: #ffffff;
  border-block: 1px solid var(--color-border-dark);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: 3.5rem;
}

.section-header.text-left {
  text-align: left;
  margin-inline: 0;
}

.section-tag,
.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: 0.65rem;
}

.section-tag.accent {
  color: var(--color-gold);
}

.section-tag.danger {
  color: var(--color-danger);
}

.section-dark .section-tag,
.section-dark .section-eyebrow {
  color: #60a5fa;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: 0.85rem;
}

.section-dark .section-title {
  color: #ffffff;
}

.section-subtitle,
.section-desc {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.section-dark .section-subtitle,
.section-dark .section-desc {
  color: var(--color-text-light-muted);
}

/* --- 9. Card Grids & Layouts --- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-lg);
}

.card-dark {
  background: var(--color-primary);
  border: 1px solid var(--color-border-dark);
  color: #ffffff;
}

.card-dark:hover {
  border-color: var(--color-border-dark-hover);
  box-shadow: var(--shadow-popover);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--color-accent-subtle);
  border: 1px solid var(--color-accent-border);
  color: var(--color-accent);
  display: grid;
  place-items: center;
  margin-bottom: 1.25rem;
  transition: all var(--transition-fast);
}

.card-icon svg {
  width: 22px;
  height: 22px;
}

.card:hover .card-icon {
  background: var(--color-accent);
  color: #ffffff;
  transform: scale(1.05);
}

.icon-blue {
  background: var(--color-accent-subtle);
  color: var(--color-accent);
  border-color: var(--color-accent-border);
}

.icon-gold {
  background: var(--color-gold-subtle);
  color: var(--color-gold);
  border-color: var(--color-gold-border);
}

.icon-green {
  background: var(--color-success-subtle);
  color: var(--color-success);
  border-color: rgba(5, 150, 105, 0.25);
}

.icon-red {
  background: var(--color-danger-subtle);
  color: var(--color-danger);
  border-color: rgba(220, 38, 38, 0.25);
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.card-dark .card-title {
  color: #ffffff;
}

.card-desc,
.card-body {
  font-size: 0.915rem;
  color: var(--color-text-body);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex: 1;
}

.card-dark .card-desc,
.card-dark .card-body {
  color: var(--color-text-light-muted);
}

.card-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-dark .card-footer {
  border-top-color: var(--color-border-dark);
}

/* --- 10. Executive Leadership Directory --- */
.leader-card {
  text-align: center;
  align-items: center;
  padding: 2rem 1.5rem;
}

.leader-portrait-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #ffffff;
  box-shadow: var(--shadow-md);
  margin-bottom: 1rem;
}

.leader-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}

.leader-role-badge {
  display: inline-block;
  font-size: 0.725rem;
  font-weight: 600;
  color: var(--color-accent);
  background: var(--color-accent-subtle);
  border: 1px solid var(--color-accent-border);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-bottom: 0.5rem;
}

.leader-role-tamil {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.leader-contact-links {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.leader-tel-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 10px;
  background: var(--color-surface-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  color: var(--color-text-body);
}

.leader-tel-pill:hover {
  background: var(--color-accent);
  color: #ffffff;
  border-color: var(--color-accent);
}

.aicpdf-card-box {
  background: var(--color-primary);
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-lg);
  padding: 2rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
}

/* --- 11. FMCG TV Media Showcase --- */
.media-showcase {
  background: var(--color-primary-dark);
  border: 1px solid var(--color-border-dark);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 2.5rem;
}

.media-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
}

.video-frame-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border-dark);
  aspect-ratio: 16 / 9;
  background: #000000;
}

.video-frame-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.video-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.video-list-item {
  display: flex;
  gap: 1rem;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border-dark);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.video-list-item:hover,
.video-list-item.active {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--color-accent-border);
}

.video-thumb-mini {
  width: 90px;
  height: 55px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.video-meta h5 {
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.25;
}

.video-meta span {
  font-size: 0.725rem;
  color: var(--color-text-light-muted);
}

/* --- 12. District Directory Matrix --- */
.district-search-bar {
  display: flex;
  gap: 0.75rem;
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.search-input {
  flex: 1;
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 0.95rem;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.search-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-subtle);
}

.district-chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.district-chip {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: #ffffff;
  border: 1px solid var(--color-border);
  font-size: 0.815rem;
  font-weight: 500;
  color: var(--color-text-body);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.district-chip:hover,
.district-chip.highlight {
  background: var(--color-accent);
  color: #ffffff;
  border-color: var(--color-accent);
  transform: translateY(-1px);
}

/* --- 13. Trade Vigilance Alert Cards --- */
.alert-card {
  border-left: 4px solid var(--color-danger);
}

/* --- 14. Form Styles --- */
.form-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
}

.form-control {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.9rem;
  background: var(--color-bg);
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-accent);
  background: #ffffff;
  box-shadow: 0 0 0 3px var(--color-accent-subtle);
}

/* --- 15. Calculator Component (Fintech SaaS Standard) --- */
.calc-widget,
.calc-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  box-shadow: var(--shadow-lg);
  margin-top: 1rem;
}

.calc-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--color-border);
}

.calc-stat-box {
  background: var(--color-surface-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
}

.calc-stat-box.highlight {
  background: var(--color-primary);
  border-color: var(--color-border-dark);
  color: #ffffff;
}

.calc-stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: 0.35rem;
}

.calc-stat-box.highlight .calc-stat-label {
  color: #94a3b8;
}

.calc-stat-value {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--color-text);
}

.calc-stat-box.highlight .calc-stat-value {
  color: #38bdf8;
}

/* --- 16. Accessible Dialogs / Modals --- */
dialog.custom-dialog {
  border: none;
  background: transparent;
  padding: 0;
  max-width: 640px;
  width: 92vw;
  margin: auto;
  border-radius: var(--radius-xl);
}

dialog.custom-dialog::backdrop {
  background: rgba(9, 13, 22, 0.8);
  backdrop-filter: blur(8px);
}

.dialog-content {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-popover);
}

.dialog-header {
  background: var(--color-primary-dark);
  color: #ffffff;
  padding: 1.25rem 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dialog-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dialog-close-btn,
.dialog-close {
  background: transparent;
  border: none;
  color: var(--color-text-light-muted);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 4px;
}

.dialog-close-btn:hover,
.dialog-close:hover {
  color: #ffffff;
}

.dialog-body {
  padding: 1.75rem;
}

/* --- 17. Data Tables --- */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.885rem;
}

.data-table th {
  background: var(--color-surface-subtle);
  color: var(--color-text);
  font-weight: 700;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--color-border);
}

.data-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-body);
}

.data-table tr:hover {
  background: rgba(0, 0, 0, 0.015);
}

/* --- 18. Accordion Components --- */
.accordion-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  overflow: hidden;
  background: #ffffff;
}

.accordion-trigger {
  width: 100%;
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
}

.accordion-trigger::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--color-accent);
}

.accordion-item.active .accordion-trigger::after {
  content: '−';
}

.accordion-body {
  display: none;
  padding: 0 1.25rem 1.25rem;
  font-size: 0.915rem;
  color: var(--color-text-body);
  line-height: 1.6;
}

.accordion-item.active .accordion-body {
  display: block;
}

/* --- 19. Site Footer (Apex Prestige) --- */
.site-footer {
  background-color: var(--color-primary-dark);
  color: var(--color-text-light-muted);
  border-top: 1px solid var(--color-border-dark);
  padding: 4.5rem 0 2rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.footer-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.footer-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}

.footer-title span {
  color: #38bdf8;
  font-size: 0.85rem;
}

.footer-subtitle {
  font-size: 0.75rem;
  color: var(--color-text-light-muted);
  line-height: 1.3;
}

.footer-desc {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #94a3b8;
  margin-bottom: 1.5rem;
}

.footer-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.footer-badge {
  display: inline-block;
  padding: 3px 9px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 600;
  color: #cbd5e1;
  letter-spacing: 0.04em;
}

.footer-heading,
.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a,
.footer-text-btn {
  color: #94a3b8;
  font-size: 0.85rem;
  text-decoration: none;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: color var(--transition-fast);
}

.footer-links a:hover,
.footer-text-btn:hover {
  color: #ffffff;
}

.footer-address {
  display: flex;
  gap: 8px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #94a3b8;
  margin-bottom: 1rem;
}

.footer-contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.footer-contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #94a3b8;
  font-size: 0.85rem;
}

.footer-contact-links a:hover {
  color: #ffffff;
}

.footer-bank-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.bank-card-title,
.footer-bank-card h5 {
  font-size: 0.785rem;
  font-weight: 700;
  color: #f59e0b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.bank-details,
.footer-bank-card p {
  font-size: 0.75rem;
  color: #cbd5e1;
  line-height: 1.5;
  margin-bottom: 0.25rem;
}

.bank-details code {
  color: #38bdf8;
  font-family: monospace;
}

.footer-powered {
  font-size: 0.825rem;
  color: #94a3b8;
  margin: 0.25rem 0;
}

.footer-powered a {
  color: #38bdf8;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-powered a:hover {
  color: #7dd3fc;
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid var(--color-border-dark);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: center;
  font-size: 0.785rem;
  color: #64748b;
}

/* --- 20. Responsive Media Queries --- */
@media (max-width: 1250px) {
  html[lang="ta"] .btn-header-cta {
    display: none !important;
  }
}

@media (max-width: 1100px) {
  html[lang="ta"] .site-nav {
    display: none !important;
  }
  html[lang="ta"] .mobile-menu-btn,
  html[lang="ta"] .mm-burger {
    display: flex !important;
  }
}

@media (max-width: 1040px) {
  .site-nav {
    display: none !important;
  }
  .mobile-menu-btn,
  .mm-burger {
    display: flex !important;
  }
  
/* CSS Grid containment - prevents min-content blowout on mobile */
.hero-grid,
.grid-2,
.grid-3,
.grid-4,
.footer-grid,
.media-grid,
.calc-summary-grid,
.split-row {
  min-width: 0;
  max-width: 100%;
}

.hero-grid > *,
.grid-2 > *,
.grid-3 > *,
.grid-4 > *,
.hero-content,
.hero-card,
.hero-media {
  min-width: 0 !important;
  max-width: 100% !important;
}

.hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .media-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .calc-summary-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .top-bar-contact {
    display: none !important;
  }
  .top-bar-container,
  .top-bar .container {
    justify-content: center;
  }
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr !important;
  }
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem;
  }
  .brand-subtitle {
    display: none !important;
  }
  .btn-header-cta {
    display: none !important;
  }
  .aicpdf-card-box {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }
}

/* Mobile Specific Ergonomics (<= 680px) */
@media (max-width: 680px) {
  .container {
    padding-inline: 1rem !important;
  }

  .site-header {
    height: 62px;
  }

  .header-container {
    padding-inline: 0.75rem;
    gap: 0.5rem;
  }

  .brand-logo-img {
    width: 36px;
    height: 36px;
  }

  .brand-title {
    font-size: 1.05rem;
  }

  .hero {
    padding: 2.5rem 0 2.25rem !important;
  }

  .hero-title {
    font-size: clamp(1.65rem, 6vw, 2.3rem) !important;
    line-height: 1.2 !important;
    word-break: break-word;
    overflow-wrap: break-word;
    margin-bottom: 1rem;
  }

  .hero-desc {
    font-size: 0.95rem !important;
    line-height: 1.55 !important;
    margin-bottom: 1.5rem !important;
    word-break: break-word;
  }

  /* Full-width Stacked Hero Action Buttons */
  .hero-cta-row {
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    gap: 0.75rem !important;
    margin-bottom: 2rem !important;
  }

  .hero-cta-row .btn {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.925rem !important;
  }

  /* Robust 2-Column Mobile Stats Grid */
  .hero-stats-strip {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.25rem 0.75rem !important;
    padding-top: 1.5rem !important;
  }

  .stat-item {
    min-width: 0 !important;
  }

  .stat-item h4,
  .stat-item strong,
  .stat-item .stat-num {
    font-size: 1.3rem !important;
    line-height: 1.2 !important;
  }

  .stat-item p,
  .stat-item span,
  .stat-item .stat-lbl {
    font-size: 0.725rem !important;
    line-height: 1.35 !important;
    word-break: break-word !important;
  }

  .section {
    padding: 3.5rem 0;
  }

  .section-header {
    margin-bottom: 2.25rem;
  }

  .section-title {
    font-size: 1.65rem !important;
  }
}

/* --- Mobile Ergonomics (<= 680px) --- */
@media (max-width: 680px) {
  .container {
    padding-inline: 1rem !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  .site-header {
    height: 56px !important;
  }

  .header-container {
    padding-inline: 0.5rem !important;
    gap: 0.35rem !important;
  }

  .brand-identity {
    gap: 6px !important;
  }

  .brand-logo-img {
    width: 30px !important;
    height: 30px !important;
  }

  .brand-title {
    font-size: 0.925rem !important;
    white-space: nowrap !important;
  }

  .brand-badge {
    font-size: 0.625rem !important;
    padding: 1px 4px !important;
  }

  .header-actions {
    gap: 0.35rem !important;
  }

  .lang-switcher {
    padding: 2px !important;
    gap: 2px !important;
  }

  .lang-btn {
    padding: 3px 6px !important;
    font-size: 0.725rem !important;
    min-width: 26px !important;
  }

  .mobile-menu-btn {
    width: 34px !important;
    height: 34px !important;
    padding: 6px !important;
    margin: 0 !important;
  }

  /* Image & media containment */
  .hero-visual-column {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  .hero-visual-frame {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .hero-visual-frame img,
  .hero-media img,
  img {
    max-width: 100% !important;
    height: auto !important;
  }

  .table-responsive {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .hero {
    padding: 2.25rem 0 2rem !important;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 2rem !important;
  }

  .hero-title {
    font-size: clamp(1.65rem, 6.2vw, 2.25rem) !important;
    line-height: 1.2 !important;
    margin-bottom: 1rem !important;
  }

  .hero-desc {
    font-size: 0.95rem !important;
    line-height: 1.55 !important;
    margin-bottom: 1.5rem !important;
  }

  /* Full-width Stacked Hero Action Buttons */
  .hero-cta-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    gap: 0.75rem !important;
    margin-bottom: 2rem !important;
  }

  .hero-cta-row .btn {
    width: 100% !important;
    max-width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 0.85rem 1rem !important;
    font-size: 0.925rem !important;
    white-space: normal !important;
    word-break: break-word !important;
  }

  /* Robust 2-Column Mobile Stats Grid */
  .hero-stats-strip {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 1.25rem 0.75rem !important;
    width: 100% !important;
    padding-top: 1.5rem !important;
  }

  .stat-item {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .stat-item h4,
  .stat-item strong,
  .stat-item .stat-num {
    font-size: 1.3rem !important;
    line-height: 1.2 !important;
    word-break: break-word !important;
  }

  .stat-item p,
  .stat-item span,
  .stat-item .stat-lbl {
    font-size: 0.725rem !important;
    line-height: 1.35 !important;
    word-break: break-word !important;
  }

  .hero-card,
  .card-premium {
    width: 100% !important;
    max-width: 100% !important;
    padding: 1.25rem !important;
  }

  .card-meta-strip {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }

  .section {
    padding: 3rem 0 !important;
  }

  .section-header {
    margin-bottom: 2.25rem !important;
  }

  .section-title {
    font-size: 1.65rem !important;
  }
}

