/**
 * Mittimart Commerce Private Limited
 * Main Website Stylesheet
 * Brand: DugDug Mobility
 * Palette: Forest Green (#2d6a4f), Warm Cream (#faf6ef), Yellow Accent (#f9c74f)
 */

:root {
  --primary: #2d6a4f;
  --primary-dark: #1b4332;
  --primary-deep: #081c15;
  --primary-light: #40916c;
  --primary-subtle: #d8f3dc;
  --primary-glow: rgba(45, 106, 79, 0.15);

  --accent: #f9c74f;
  --accent-hover: #f3b524;
  --accent-light: #fef3c7;
  --accent-dark: #d97706;

  --cream: #faf6ef;
  --cream-light: #fdfbf7;
  --cream-dark: #f2ebe0;
  --cream-border: #e8ded1;

  --dark: #16241c;
  --dark-soft: #27382d;
  --text-main: #2d3748;
  --text-muted: #5c6b61;
  --white: #ffffff;

  --border: #e5ded4;
  --border-light: #f0ebe2;

  --shadow-sm: 0 2px 8px rgba(22, 36, 28, 0.05);
  --shadow-md: 0 8px 24px rgba(22, 36, 28, 0.08);
  --shadow-lg: 0 16px 40px rgba(22, 36, 28, 0.12);
  --shadow-hover: 0 20px 48px rgba(45, 106, 79, 0.16);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ================= BASE & RESET ================= */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-main);
  background-color: var(--cream-light);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  padding-top: 76px; /* offset for fixed navbar */
}

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

a:hover {
  color: var(--primary-dark);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--dark);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

p {
  margin-bottom: 1.15rem;
}

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

/* ================= TYPOGRAPHY & UTILITIES ================= */
.text-forest { color: var(--primary) !important; }
.text-accent { color: var(--accent) !important; }
.text-accent-dark { color: var(--accent-dark) !important; }
.bg-cream { background-color: var(--cream) !important; }
.bg-cream-light { background-color: var(--cream-light) !important; }
.bg-forest { background-color: var(--primary) !important; color: #fff !important; }
.bg-forest-subtle { background-color: var(--primary-subtle) !important; }
.bg-forest-dark { background-color: var(--primary-dark) !important; color: #fff !important; }
.bg-accent-subtle { background-color: var(--accent-light) !important; }

.section-label {
  display: inline-block;
  background: var(--primary-subtle);
  color: var(--primary-dark);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
  border: 1px solid rgba(45, 106, 79, 0.15);
}

.section-heading {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.section-subtext {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.section-pad {
  padding: 85px 0;
}

@media (max-width: 768px) {
  .section-pad {
    padding: 55px 0;
  }
}

/* ================= NAVBAR ================= */
.navbar-mittimart {
  background: rgba(253, 251, 247, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  min-height: 76px;
  transition: var(--transition);
  z-index: 1030;
}

.navbar-mittimart.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.navbar-brand {
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--dark) !important;
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.brand-icon-sm {
  width: 34px;
  height: 34px;
  font-size: 1rem;
  border-radius: 9px;
}

.navbar-mittimart .nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark-soft);
  padding: 8px 14px !important;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.navbar-mittimart .nav-link:hover,
.navbar-mittimart .nav-link.active {
  color: var(--primary) !important;
  background: rgba(45, 106, 79, 0.08);
}

.dugdug-brand {
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-subtle);
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.9rem;
}

.nav-contact-btn {
  background: var(--primary) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  padding: 9px 20px !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 14px var(--primary-glow);
  transition: var(--transition);
}

.nav-contact-btn:hover {
  background: var(--primary-dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px var(--primary-glow);
}

.dropdown-menu-mittimart {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  background: #ffffff;
  min-width: 230px;
}

.dropdown-menu-mittimart .dropdown-item {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--dark-soft);
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.dropdown-menu-mittimart .dropdown-item:hover,
.dropdown-menu-mittimart .dropdown-item.active {
  background: var(--cream);
  color: var(--primary);
}

/* ================= BUTTONS ================= */
.btn-green {
  background: var(--primary);
  color: #ffffff;
  font-weight: 700;
  padding: 12px 26px;
  border-radius: 12px;
  border: 2px solid var(--primary);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-green:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--primary-glow);
}

.btn-yellow {
  background: var(--accent);
  color: var(--dark);
  font-weight: 700;
  padding: 12px 26px;
  border-radius: 12px;
  border: 2px solid var(--accent);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-yellow:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(249, 199, 79, 0.35);
}

.btn-outline-green {
  background: transparent;
  color: var(--primary);
  font-weight: 700;
  padding: 12px 26px;
  border-radius: 12px;
  border: 2px solid var(--primary);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-outline-green:hover {
  background: var(--primary);
  color: #ffffff;
  transform: translateY(-2px);
}

/* ================= HERO SECTIONS ================= */
.page-hero {
  background: linear-gradient(145deg, var(--cream-light) 0%, var(--cream) 50%, #e2efe6 100%);
  padding: 80px 0 65px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.page-hero::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -80px;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(249, 199, 79, 0.18), transparent 70%);
  pointer-events: none;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.page-hero .lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.hero-visual-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 36px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  position: relative;
}

/* ================= CARDS & BOXES ================= */
.custom-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 32px;
  transition: var(--transition);
  height: 100%;
}

.custom-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(45, 106, 79, 0.3);
}

.card-icon-box {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  margin-bottom: 22px;
  background: var(--cream);
  color: var(--primary);
  border: 1px solid var(--border);
}

.feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: var(--cream);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark-soft);
  margin: 4px;
  border: 1px solid var(--border);
}

/* ================= FORMS ================= */
.contact-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 40px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.form-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--dark-soft);
  margin-bottom: 6px;
}

.form-control, .form-select {
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.95rem;
  background-color: #ffffff;
  transition: var(--transition);
}

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

textarea.form-control {
  min-height: 130px;
  resize: vertical;
}

/* ================= BADGES & ALERTS ================= */
.badge-service {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-full);
}

.emergency-alert {
  background-color: #fee2e2;
  border: 1.5px solid #ef4444;
  color: #991b1b;
  border-radius: var(--radius-md);
  padding: 18px 22px;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ================= GALLERY ================= */
.gallery-grid-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border);
  background: #ffffff;
  transition: var(--transition);
}

.gallery-grid-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.gallery-thumb {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.video-play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 58px;
  height: 58px;
  background: rgba(45, 106, 79, 0.9);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

/* ================= FOOTER ================= */
.site-footer {
  background: var(--dark);
  color: #e2e8f0;
  border-top: 4px solid var(--primary);
  font-size: 0.92rem;
}

.site-footer a {
  color: #cbd5e1;
}

.site-footer a:hover {
  color: var(--accent);
}

.footer-brand-name {
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.footer-tagline {
  color: #94a3b8;
  font-size: 0.95rem;
}

.footer-heading {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

.footer-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2.5px;
  background: var(--accent);
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  color: #cbd5e1;
}

.footer-contact-list i {
  color: var(--accent);
  font-size: 1.1rem;
}

.footer-divider {
  border-color: rgba(255, 255, 255, 0.12);
  margin: 0;
}

.footer-copyright {
  color: #94a3b8;
  font-size: 0.88rem;
}

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

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

.footer-legal-sep {
  color: #64748b;
  margin: 0 8px;
}

.footer-powered {
  color: #94a3b8;
  font-size: 0.82rem;
}

.dugdug-brand-footer {
  color: var(--accent);
  font-weight: 700;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social-link {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff !important;
  transition: var(--transition);
}

.footer-social-link:hover {
  background: var(--primary);
  transform: translateY(-2px);
}

.footer-app-cta {
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  padding: 14px;
  border-radius: var(--radius-md);
}

.footer-app-label {
  display: block;
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
}

/* ================= ANIMATIONS ================= */
.fade-in-up {
  animation: fadeInUp 0.5s ease-out both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Keep address text aligned beside its location icon. */
.footer-body-address { display:flex; align-items:flex-start; gap:10px; }
.footer-body-address > i, .footer-contact-list > li > i { flex-shrink:0; }
.footer-body-address > span, .footer-contact-list address { min-width:0; line-height:1.65; font-style:normal; text-align:left; }

/* Match the address and GSTIN text columns. */
.footer-body-address, .footer-body-gstin { display:grid; grid-template-columns:18px minmax(0,1fr); column-gap:10px; align-items:start; }
.footer-body-address > i, .footer-body-gstin > i { width:18px; margin:0 !important; }
.footer-body-gstin > span { min-width:0; line-height:1.65; }

/* Readable text on dark banners and download panels. */
.readable-dark { color:#F1F5F9; }
.readable-dark :is(h1,h2,h3,h4,h5,h6) { color:#FFFFFF !important; }
.readable-dark .text-muted, .readable-dark .lead { color:#E2E8F0 !important; }
.readable-dark .opacity-75 { opacity:1 !important; color:#E2E8F0; }
.readable-dark .breadcrumb-item, .readable-dark .breadcrumb-item::before { color:#E2E8F0 !important; }
.readable-dark .bg-white :is(h1,h2,h3,h4,h5,h6), .readable-dark .bg-light :is(h1,h2,h3,h4,h5,h6) { color:#172D25 !important; }
.bg-forest :is(h1,h2,h3,h4,h5,h6), .bg-forest-dark :is(h1,h2,h3,h4,h5,h6) { color:#fff; }

/* High contrast footer notification button, including all states. */
.footer-app-cta a.btn-yellow,
.footer-app-cta a.btn-yellow:visited { background:#FFD05A !important; border-color:#FFD05A !important; color:#14251D !important; font-weight:700; opacity:1; }
.footer-app-cta a.btn-yellow i { color:inherit !important; }
.footer-app-cta a.btn-yellow:hover,
.footer-app-cta a.btn-yellow:focus,
.footer-app-cta a.btn-yellow:active { background:#FFE38A !important; border-color:#FFE38A !important; color:#14251D !important; }
.footer-app-cta a.btn-yellow:focus-visible { outline:3px solid #fff; outline-offset:3px; }
