/* ==========================================================================
   MARGI - THE LOAD MOVER (margi.co.in)
   Premium Enterprise Grade Design System (Clean White Background)
   100% Free Platform • Mutual Fare Agreement • All 10 Vehicles
   ========================================================================== */

:root {
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-display: 'Plus Jakarta Sans', var(--font-primary);

  /* Enterprise Clean White & Logistics Blue Palette */
  --bg-white: #ffffff;
  --bg-slate-50: #f8fafc;
  --bg-slate-100: #f1f5f9;
  --bg-slate-200: #e2e8f0;

  --border-subtle: #e2e8f0;
  --border-mid: #cbd5e1;
  --border-active: #2563eb;

  --primary: #1d4ed8;
  --primary-hover: #1e40af;
  --primary-light: #eff6ff;
  --primary-glow: rgba(29, 78, 216, 0.15);

  --accent-emerald: #059669;
  --accent-emerald-light: #ecfdf5;
  --accent-amber: #d97706;
  --accent-amber-light: #fffbeb;

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-subtle: #64748b;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 16px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 16px 36px -4px rgba(15, 23, 42, 0.1), 0 8px 16px -4px rgba(15, 23, 42, 0.04);
  --shadow-hover: 0 20px 40px -8px rgba(29, 78, 216, 0.12);

  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-white);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all var(--transition-fast);
}

img, svg {
  display: block;
  max-width: 100%;
}

button, input, select {
  font-family: inherit;
  font-size: 1rem;
}

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

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

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #38bdf8;
  font-weight: 600;
}

.top-bar-contact {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.top-bar-contact a {
  color: #e2e8f0;
  font-weight: 500;
}

.top-bar-contact a:hover {
  color: #38bdf8;
}

/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  transition: box-shadow var(--transition-fast);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.55rem;
  color: #0f172a;
  letter-spacing: -0.03em;
}

.nav-logo-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(29, 78, 216, 0.25);
  color: #ffffff;
}

.nav-brand-title {
  display: flex;
  flex-direction: column;
}

.nav-brand-title span.brand-name {
  font-size: 1.45rem;
  line-height: 1;
  font-weight: 800;
  color: #0f172a;
}

.nav-brand-title span.brand-sub {
  font-size: 0.72rem;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

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

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(29, 78, 216, 0.2);
}

.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 6px 18px rgba(29, 78, 216, 0.3);
  transform: translateY(-1px);
}

.btn-outline {
  background: #ffffff;
  border-color: var(--border-mid);
  color: var(--text-main);
}

.btn-outline:hover {
  background: var(--bg-slate-50);
  border-color: var(--text-main);
  color: #0f172a;
}

.btn-web-app {
  background: var(--primary-light);
  color: var(--primary);
  border-color: rgba(37, 99, 235, 0.2);
}

.btn-web-app:hover {
  background: #dbeafe;
  color: #1e40af;
}

.btn-emerald {
  background: var(--accent-emerald);
  color: #ffffff;
}

.btn-emerald:hover {
  background: #047857;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.25);
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero-section {
  padding: 3.5rem 0 4.5rem;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  position: relative;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-free-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-full);
  background: var(--accent-emerald-light);
  border: 1px solid rgba(5, 150, 105, 0.25);
  color: var(--accent-emerald);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.hero-free-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 4.2vw, 3.7rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #0f172a;
  margin-bottom: 1.25rem;
}

.hero-title span.highlight {
  color: var(--primary);
  position: relative;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.65;
  max-width: 580px;
}

.hero-stats-row {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.hero-stat h4 {
  font-size: 1.75rem;
  font-weight: 800;
  font-family: var(--font-display);
  color: #0f172a;
}

.hero-stat p {
  font-size: 0.85rem;
  color: var(--text-subtle);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Clean White Trip Posting & Matching Card */
.booking-widget-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.widget-tabs {
  display: flex;
  background: var(--bg-slate-100);
  border-radius: var(--radius-full);
  padding: 0.35rem;
  margin-bottom: 1.5rem;
}

.widget-tab {
  flex: 1;
  text-align: center;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  border: none;
  background: transparent;
  transition: all var(--transition-fast);
}

.widget-tab.active {
  background: #ffffff;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-main);
  margin-bottom: 0.45rem;
}

.form-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.form-input-icon {
  position: absolute;
  left: 1rem;
  font-size: 1.1rem;
  pointer-events: none;
  color: var(--text-subtle);
}

.form-input {
  width: 100%;
  background: #ffffff;
  border: 1.5px solid var(--border-mid);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem 0.85rem 2.85rem;
  color: #0f172a;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
}

/* Vehicle Selector Scroll / Grid */
.vehicle-selector-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin: 1.25rem 0;
  max-height: 240px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.vehicle-pill {
  background: var(--bg-slate-50);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.vehicle-pill:hover {
  background: #ffffff;
  border-color: var(--primary);
  transform: translateY(-2px);
}

.vehicle-pill.active {
  background: var(--primary-light);
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.2);
}

.vehicle-pill-icon {
  font-size: 1.6rem;
  margin-bottom: 0.3rem;
}

.vehicle-pill-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}

.vehicle-pill-cap {
  font-size: 0.72rem;
  color: var(--text-subtle);
  margin-top: 0.2rem;
}

/* Mutual Direct Fare Info Box */
.mutual-fare-info-box {
  background: var(--accent-emerald-light);
  border: 1.5px solid rgba(5, 150, 105, 0.25);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.35rem;
}

.mutual-fare-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.mutual-fare-text h5 {
  font-size: 0.95rem;
  font-weight: 800;
  color: #065f46;
  margin-bottom: 0.15rem;
}

.mutual-fare-text p {
  font-size: 0.82rem;
  color: #047857;
  line-height: 1.4;
}

/* Showcase Banner Section (For User's Uploaded Fleet Infographic) */
.fleet-banner-section {
  padding: 2rem 0 4rem;
  background: #ffffff;
}

.fleet-banner-card {
  background: #ffffff;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-fast);
}

.fleet-banner-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
}

.fleet-banner-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Direct App Links Grid */
.download-strip-section {
  background: var(--bg-slate-50);
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.download-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 1.75rem;
}

.download-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.download-card:hover {
  border-color: var(--border-active);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.download-card-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.download-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  flex-shrink: 0;
}

.download-card-icon.blue {
  background: var(--primary-light);
  color: var(--primary);
}

.download-card-icon.green {
  background: var(--accent-emerald-light);
  color: var(--accent-emerald);
}

.download-card-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
}

.download-card-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  display: inline-block;
}

.download-card-badge.free {
  background: var(--accent-emerald-light);
  color: var(--accent-emerald);
}

.download-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.55;
}

/* Sections */
.section {
  padding: 5rem 0;
  position: relative;
}

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

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* Fleet Grid - 10 Full Vehicles (No Pricing) */
.fleet-grid-all {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.fleet-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.fleet-card:hover {
  border-color: var(--border-active);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.fleet-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 0.25rem 0.75rem;
  background: var(--bg-slate-100);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
}

.fleet-img-wrapper {
  height: 85px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  font-size: 3.2rem;
}

.fleet-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.35rem;
}

.fleet-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.fleet-specs-list {
  list-style: none;
  margin: auto 0 1rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.75rem;
  font-size: 0.82rem;
}

.fleet-specs-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 0;
  color: var(--text-muted);
}

.fleet-specs-list li span:last-child {
  color: #0f172a;
  font-weight: 700;
}

/* Material Directory Grid */
.material-category-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.material-category-card:hover {
  border-color: var(--border-active);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.material-card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.material-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.material-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.material-tag {
  background: var(--bg-slate-100);
  border: 1px solid var(--border-subtle);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-main);
}

/* Comparison Table */
.comparison-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.comparison-table th, .comparison-table td {
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.comparison-table th {
  background: var(--bg-slate-50);
  font-family: var(--font-display);
  font-weight: 800;
  color: #0f172a;
}

.comparison-table th.highlight-col {
  background: var(--primary-light);
  color: var(--primary);
  border-left: 2px solid var(--primary);
  border-right: 2px solid var(--primary);
}

.comparison-table td.highlight-col {
  background: #f0f7ff;
  font-weight: 600;
  color: #0f172a;
  border-left: 2px solid var(--primary);
  border-right: 2px solid var(--primary);
}

.check-icon {
  color: var(--accent-emerald);
  font-weight: bold;
}

.cross-icon {
  color: #ef4444;
}

/* FAQ Accordion */
.faq-container {
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  background: #ffffff;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--border-mid);
}

.faq-item.active {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  padding: 1.35rem 1.65rem;
  background: transparent;
  border: none;
  color: #0f172a;
  font-weight: 700;
  font-size: 1.05rem;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-arrow {
  transition: transform var(--transition-fast);
  color: var(--text-subtle);
}

.faq-item.active .faq-arrow {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 1.65rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 1.65rem 1.35rem;
}

/* Footer */
.footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 5rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.4fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  color: #94a3b8;
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.footer-contact-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  font-size: 0.88rem;
  line-height: 1.8;
}

.footer-contact-box a {
  color: #38bdf8;
  font-weight: 600;
}

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ffffff;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.65rem;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #64748b;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .top-bar-inner {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
  .nav-menu, .nav-actions .btn-outline {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .hero-stats-row {
    flex-direction: column;
    gap: 1.25rem;
  }
  .vehicle-selector-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
