/* ==========================================================================
   AGASTHYAA BHARAT MOBILITY - OFFICIAL DESIGN SYSTEM
   Pearl White (#FFFFFF / #F8FAFC) + Midnight Navy (#0A1931) + Electric Cyan (#0284C7 / #06B6D4)
   ========================================================================== */

:root {
  --color-midnight: #0A1931;
  --color-midnight-light: #152C4F;
  --color-cyan-primary: #0284C7;
  --color-cyan-light: #06B6D4;
  --color-cyan-subtle: #E0F2FE;
  --color-gold-accent: #CA8A04;
  --color-slate-900: #0F172A;
  --color-slate-700: #334155;
  --color-slate-600: #475569;
  --color-slate-500: #64748B;
  --color-slate-400: #94A3B8;
  --color-slate-200: #E2E8F0;
  --color-slate-100: #F1F5F9;
  --color-white: #FFFFFF;
  --bg-canvas: #F8FAFC;
  --border-light: rgba(15, 23, 42, 0.08);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-brand: 'Montserrat', sans-serif;
  --font-mono: 'Space Grotesk', monospace;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-canvas);
  color: var(--color-slate-700);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.bg-light-grid {
  background-color: #F8FAFC;
  background-image: radial-gradient(rgba(2, 132, 199, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.corp-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: all 0.2s ease;
}

.corp-header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.corp-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.corp-brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.corp-brand-text {
  display: flex;
  flex-direction: column;
}

.corp-brand-title {
  font-family: var(--font-brand);
  font-size: 16px;
  font-weight: 800;
  color: var(--color-midnight);
  letter-spacing: 0.05em;
  line-height: 1.1;
}

.corp-brand-subtitle {
  font-family: var(--font-brand);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-cyan-primary);
  text-transform: uppercase;
}

.corp-nav-menu {
  display: flex;
  list-style: none;
  gap: 28px;
}

.corp-nav-link {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-slate-600);
  transition: color 0.15s ease;
}

.corp-nav-link:hover, .corp-nav-link.active {
  color: var(--color-cyan-primary);
}

.corp-header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Group Dropdown */
.corp-group-dropdown {
  position: relative;
}

.corp-group-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--color-slate-100);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  font-family: var(--font-brand);
  font-size: 12px;
  font-weight: 700;
  color: var(--color-midnight);
  cursor: pointer;
  transition: background 0.15s ease;
}

.corp-group-btn:hover {
  background: #E2E8F0;
}

.corp-group-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 8px;
  width: 240px;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  list-style: none;
  padding: 8px 0;
  z-index: 110;
}

.corp-group-dropdown:hover .corp-group-menu {
  display: block;
}

.corp-group-item {
  padding: 0;
}

.corp-group-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-slate-700);
  text-decoration: none;
  transition: background 0.15s ease;
}

.corp-group-link:hover {
  background: var(--color-slate-100);
  color: var(--color-midnight);
}

.corp-group-link.current {
  font-weight: 700;
  color: var(--color-cyan-primary);
  background: var(--color-cyan-subtle);
}

.corp-entity-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 6px;
  font-family: var(--font-brand);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
  border: none;
}

.btn-midnight {
  background: var(--color-midnight);
  color: #FFFFFF;
}

.btn-midnight:hover {
  background: var(--color-midnight-light);
  box-shadow: 0 4px 14px rgba(10, 25, 49, 0.25);
}

.btn-cyan {
  background: var(--color-cyan-primary);
  color: #FFFFFF;
}

.btn-cyan:hover {
  background: #0369A1;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.25);
}

.btn-outline-midnight {
  background: transparent;
  color: var(--color-midnight);
  border: 1px solid var(--color-midnight);
}

.btn-outline-midnight:hover {
  background: var(--color-midnight);
  color: #FFFFFF;
}

/* Hero Carousel */
.hero-slider-section {
  position: relative;
  background: #0A1931;
  overflow: hidden;
}

.hero-slider-container {
  position: relative;
  width: 100%;
  height: 580px;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
  display: flex;
  align-items: center;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

.hero-slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(10, 25, 49, 0.92) 0%, rgba(10, 25, 49, 0.65) 60%, rgba(10, 25, 49, 0.3) 100%);
}

.hero-slide-content {
  position: relative;
  z-index: 5;
  max-width: 720px;
  color: #FFFFFF;
}

.hero-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(2, 132, 199, 0.2);
  border: 1px solid rgba(2, 132, 199, 0.4);
  border-radius: 999px;
  font-family: var(--font-brand);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #7DD3FC;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.hero-slide-title {
  font-family: var(--font-brand);
  font-size: 46px;
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.hero-slide-subtitle {
  font-size: 16px;
  line-height: 1.65;
  color: #CBD5E1;
  margin-bottom: 28px;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 48px;
  height: 48px;
  background: rgba(10, 25, 49, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #FFFFFF;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
  backdrop-filter: blur(8px);
}

.slider-btn:hover {
  background: var(--color-cyan-primary);
}

.slider-prev { left: 24px; }
.slider-next { right: 24px; }

.slider-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  gap: 10px;
}

.slider-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.2s ease;
}

.slider-dots .dot.active {
  background: var(--color-cyan-light);
  width: 32px;
  border-radius: 6px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  box-shadow: 0 0 10px currentColor;
}

/* Metrics Grid */
.corp-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.corp-metric-box {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.corp-metric-value {
  font-family: var(--font-brand);
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 4px;
}

.corp-metric-label {
  font-size: 13px;
  color: var(--color-slate-500);
  font-weight: 500;
}

/* Catalog & Search */
.live-search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 8px 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  width: 320px;
}

.live-search-box input {
  border: none;
  outline: none;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--color-slate-700);
  width: 100%;
}

.catalog-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border-light);
}

.cat-tab {
  padding: 10px 18px;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  font-family: var(--font-brand);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-slate-600);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.cat-tab:hover, .cat-tab.active {
  background: var(--color-midnight);
  color: #FFFFFF;
  border-color: var(--color-midnight);
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.prod-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.prod-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.prod-img-box {
  position: relative;
  width: 100%;
  height: 190px;
  background: #F1F5F9;
  overflow: hidden;
}

.prod-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.prod-card:hover .prod-img-box img {
  transform: scale(1.04);
}

.prod-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 4px;
  font-family: var(--font-brand);
  font-size: 10px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.prod-brand-tag {
  position: absolute;
  bottom: 8px;
  right: 8px;
  padding: 3px 8px;
  background: rgba(10, 25, 49, 0.85);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

.prod-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.prod-title {
  font-family: var(--font-brand);
  font-size: 16px;
  font-weight: 800;
  color: var(--color-midnight);
  line-height: 1.3;
  margin-bottom: 4px;
}

.prod-tamil-title {
  font-size: 12px;
  font-weight: 600;
  color: #0369A1;
  margin-bottom: 10px;
}

.prod-desc {
  font-size: 13px;
  color: var(--color-slate-600);
  line-height: 1.5;
  margin-bottom: 16px;
}

.prod-specs-preview {
  background: var(--color-slate-100);
  border-radius: 6px;
  padding: 10px 12px;
  margin-bottom: 16px;
  font-size: 11px;
}

.spec-bullet {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.spec-bullet:last-child {
  margin-bottom: 0;
}

.spec-k {
  font-weight: 600;
  color: var(--color-slate-600);
}

.spec-v {
  font-weight: 700;
  color: var(--color-midnight);
}

.prod-actions {
  margin-top: auto;
  display: flex;
  gap: 10px;
}

/* Modals */
.spec-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 25, 49, 0.7);
  backdrop-filter: blur(6px);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.spec-modal-overlay.open {
  display: flex;
}

.spec-modal-content {
  background: #FFFFFF;
  border-radius: 12px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.spec-modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.spec-modal-close {
  background: none;
  border: none;
  font-size: 28px;
  color: var(--color-slate-400);
  cursor: pointer;
}

.spec-modal-close:hover {
  color: var(--color-midnight);
}

.spec-modal-body {
  padding: 24px;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.spec-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-light);
}

.spec-table tr:nth-child(even) {
  background: #F8FAFC;
}

/* Calculator Grid */
.calc-container-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 28px;
}

.calc-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.calc-card-header {
  padding: 20px 24px;
  background: #F8FAFC;
  border-bottom: 1px solid var(--border-light);
}

.calc-card-body {
  padding: 24px;
}

.calc-field {
  margin-bottom: 20px;
}

.calc-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-midnight);
  margin-bottom: 8px;
}

.calc-slider {
  width: 100%;
  height: 6px;
  background: #E2E8F0;
  border-radius: 4px;
  outline: none;
  accent-color: var(--color-cyan-primary);
}

.calc-results-box {
  background: #F1F5F9;
  border-radius: 8px;
  padding: 16px;
  margin-top: 16px;
}

.calc-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 6px 0;
}

.calc-row.total-row {
  border-top: 1px dashed #CBD5E1;
  border-bottom: 1px dashed #CBD5E1;
  padding: 10px 0;
  margin: 6px 0;
}

/* Footer */
.corp-footer {
  background: #0A1931;
  color: #FFFFFF;
  padding: 70px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.corp-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 50px;
}

.corp-footer-brand p {
  font-size: 13px;
  color: #94A3B8;
  line-height: 1.6;
  margin: 16px 0;
}

.corp-footer-heading {
  font-family: var(--font-brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #7DD3FC;
  margin-bottom: 18px;
}

.corp-footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.corp-footer-links a {
  color: #CBD5E1;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.15s ease;
}

.corp-footer-links a:hover {
  color: var(--color-cyan-light);
}

.corp-footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: #64748B;
  flex-wrap: wrap;
  gap: 12px;
}

/* Responsive */
@media (max-width: 900px) {
  .corp-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero-slide-title {
    font-size: 34px;
  }
  .corp-nav-menu {
    display: none;
  }
}

@media (max-width: 600px) {
  .corp-footer-grid {
    grid-template-columns: 1fr;
  }
}
