/* ======================================================
   MANJULA MOTORS - PROFESSIONAL LIGHT THEME LANDING PAGE
   DESIGN SYSTEM: Crisp White, Slate Navy, Cobalt & Emerald
   ====================================================== */

:root {
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-navy: #0f172a;
  
  --border-light: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-accent: #bfdbfe;
  
  --text-main: #0f172a;
  --text-body: #475569;
  --text-muted: #64748b;
  --text-white: #ffffff;
  
  --brand-blue: #2563eb;
  --brand-blue-hover: #1d4ed8;
  --brand-blue-light: #eff6ff;
  
  --accent-emerald: #059669;
  --accent-emerald-light: #ecfdf5;
  --accent-amber: #d97706;
  
  --font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 16px -2px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 32px -4px rgba(15, 23, 42, 0.08);
  --shadow-blue: 0 4px 20px rgba(37, 99, 235, 0.2);
  
  --transition: all 0.2s ease-in-out;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-page);
  color: var(--text-body);
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* Typography */
h1, h2, h3, h4, h5 {
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2.15rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }

a {
  color: var(--brand-blue);
  text-decoration: none;
  transition: var(--transition);
}

/* Top Announcement Bar */
.top-bar {
  background-color: var(--bg-navy);
  color: #94a3b8;
  font-size: 0.85rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.top-divider {
  color: #334155;
}

.top-bar-link {
  color: #e2e8f0;
  font-weight: 500;
}
.top-bar-link:hover {
  color: var(--brand-blue-light);
}

/* Main Navbar */
.header {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background-color: var(--brand-blue);
  color: var(--text-white);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  box-shadow: var(--shadow-blue);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  color: var(--text-main);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.brand-sub {
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: var(--text-body);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-link:hover {
  color: var(--brand-blue);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--brand-blue);
  color: var(--text-white);
}
.btn-primary:hover {
  background-color: var(--brand-blue-hover);
  color: var(--text-white);
  box-shadow: var(--shadow-blue);
}

.btn-accent {
  background-color: var(--bg-navy);
  color: var(--text-white);
}
.btn-accent:hover {
  background-color: #1e293b;
  color: var(--text-white);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--border-medium);
  color: var(--text-main);
}
.btn-outline:hover {
  background-color: var(--bg-subtle);
  border-color: var(--text-muted);
}

.btn-dark {
  background-color: var(--bg-navy);
  color: var(--text-white);
  padding: 0.85rem 1.5rem;
}
.btn-dark:hover {
  background-color: #1e293b;
  color: var(--text-white);
}

.btn-full {
  width: 100%;
}

/* Hero Section */
.hero-section {
  padding: 3.5rem 0 4rem 0;
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-page) 100%);
  border-bottom: 1px solid var(--border-light);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.badge-trust {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background-color: var(--accent-emerald-light);
  color: var(--accent-emerald);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
  border: 1px solid rgba(5, 150, 105, 0.2);
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--text-body);
  margin: 1.25rem 0 2rem 0;
  max-width: 600px;
}

/* Hero Search Box */
.hero-search-box {
  display: flex;
  gap: 0.75rem;
  background: var(--bg-surface);
  padding: 0.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-md);
  margin-bottom: 1.25rem;
  max-width: 620px;
}

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  padding-left: 0.75rem;
}

.search-icon {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.search-input-wrap input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 0.95rem;
  color: var(--text-main);
  background: transparent;
  font-family: inherit;
}

.quick-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.tag-label {
  font-size: 0.825rem;
  color: var(--text-muted);
  font-weight: 600;
}

.tag-item {
  font-size: 0.8rem;
  padding: 0.2rem 0.65rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  color: var(--text-body);
  cursor: pointer;
  transition: var(--transition);
}
.tag-item:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  background-color: var(--brand-blue-light);
}

/* Hero Stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.stat-card {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-main);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Hero Interactive Card */
.hero-interactive-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.card-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  background-color: var(--brand-blue-light);
  color: var(--brand-blue);
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.hero-interactive-card h3 {
  margin-bottom: 0.5rem;
}

.hero-interactive-card p {
  color: var(--text-muted);
  font-size: 0.925rem;
  margin-bottom: 1.5rem;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.feature-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.feat-icon {
  color: var(--brand-blue);
  font-size: 1.1rem;
  margin-top: 0.1rem;
}

.feature-item strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-main);
}

.feature-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Section Header */
.section-header {
  margin-bottom: 3rem;
}

.text-center {
  text-align: center;
}

.section-sub {
  color: var(--brand-blue);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 0.5rem;
}

/* Categories Section */
.categories-section {
  padding: 5rem 0;
  background-color: var(--bg-surface);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
}

.cat-card {
  background-color: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: var(--transition);
  position: relative;
}

.cat-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-md);
  background-color: #ffffff;
}

.cat-icon-wrap {
  width: 52px;
  height: 52px;
  background-color: var(--brand-blue-light);
  color: var(--brand-blue);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}

.cat-card h3 {
  margin-bottom: 0.5rem;
}

.cat-card p {
  color: var(--text-body);
  font-size: 0.925rem;
  margin-bottom: 1.25rem;
}

.cat-count {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand-blue);
  background-color: var(--brand-blue-light);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
}

/* Why Us Section */
.why-us-section {
  padding: 5rem 0;
  background-color: var(--bg-page);
}

.why-us-box {
  background-color: var(--bg-navy);
  color: var(--text-white);
  border-radius: var(--radius-lg);
  padding: 3.5rem 3rem;
  box-shadow: var(--shadow-lg);
}

.why-header {
  margin-bottom: 3rem;
  max-width: 700px;
}

.why-header h2 {
  color: var(--text-white);
  margin-bottom: 1rem;
}

.why-header p {
  color: #94a3b8;
  font-size: 1.05rem;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.why-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: var(--radius-md);
}

.why-icon {
  width: 42px;
  height: 42px;
  background: rgba(37, 99, 235, 0.2);
  color: #60a5fa;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.why-card h4 {
  color: var(--text-white);
  margin-bottom: 0.5rem;
}

.why-card p {
  color: #cbd5e1;
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Branches Section */
.branches-section {
  padding: 5rem 0;
  background-color: var(--bg-surface);
}

.branches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.branch-card {
  background-color: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
}

.branch-card:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-md);
}

.branch-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  background-color: var(--bg-subtle);
  color: var(--text-muted);
  border-radius: var(--radius-full);
}

.branch-card h3 {
  margin-bottom: 0.5rem;
  padding-right: 4rem;
}

.branch-address {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.branch-info {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: var(--text-body);
  margin-bottom: 2rem;
  flex: 1;
}

.branch-info i {
  color: var(--brand-blue);
  width: 20px;
}

/* Footer */
.footer {
  background-color: var(--bg-navy);
  color: #94a3b8;
  padding-top: 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
}

.footer-logo .brand-title {
  color: var(--text-white);
}

.footer-desc {
  margin-top: 1rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #94a3b8;
  max-width: 320px;
}

.footer-col h4 {
  color: var(--text-white);
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.9rem;
}
.footer-links a:hover {
  color: var(--text-white);
}

.footer-contact-item {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;

  strong {
    color: var(--text-white);
  }
}

.footer-bottom {
  background-color: #020617;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-subtext {
  color: #64748b;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  h1 { font-size: 2.25rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-menu { display: none; }
  .top-bar-content { flex-direction: column; align-items: flex-start; }
  .top-divider { display: none; }
  .hero-search-box { flex-direction: column; }
  .btn-accent { width: 100%; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; }
}
/* Database Switcher UI */
.top-db-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.db-badge {
  font-size: 0.8rem;
  color: #94a3b8;
  font-weight: 500;
}
.db-select-input {
  background: transparent;
  color: #ffffff;
  border: none;
  font-size: 0.82rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}
.db-select-input option {
  background: #0f172a;
  color: #ffffff;
}

.header-db-wrap {
  display: flex;
  align-items: center;
  margin-right: 0.75rem;
}
.header-db-select {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
}
.header-db-select:hover, .header-db-select:focus {
  border-color: #2563eb;
  background: #ffffff;
}

.hero-db-switcher {
  margin: 1.25rem 0 1rem 0;
  background: #f8fafc;
  padding: 0.85rem 1.15rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}
.switcher-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: #334155;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.switcher-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.btn-db-tab {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease-in-out;
}
.btn-db-tab:hover {
  border-color: #2563eb;
  color: #2563eb;
  transform: translateY(-1px);
}
.btn-db-tab.active {
  background: #eff6ff;
  border-color: #2563eb;
  color: #1d4ed8;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.15);
}
