/* ==========================================================================
   MAHADEV EARTHMOVER - Light Earth / Kraft Brown & Dark Earth Header/Footer
   Theme: Light Kraft Earth (#C6A27E) + Solid Black (#111111) Typography
   Header & Footer: Dark Earth Brown (#3D2B1F)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Natural Kraft Earth & Soil Palette (APPROVED) */
  --bg-primary: #c6a27e;       /* Natural Kraft Brown / Dry Soil */
  --bg-secondary: #b58f69;     /* Slightly deeper earthy tone */
  --bg-tertiary: #d2b38f;      /* Lighter sand/soil highlight */
  --bg-card: #dfc8af;         /* Card surface */
  --bg-card-hover: #e8d5c0;   /* Card hover */
  
  /* Dark Earth Brown (Unified Header & Footer) */
  --bg-header-footer: #3d2b1f; /* Dark Earth Brown */
  --earth-deep: #4a3525;       /* Heavy Earth Brown */
  --earth-dark: #5a3f2b;       /* Dark Earth Tone */
  --earth-light: #e6ceb5;      /* Light Cream Sand */
  
  /* High-Contrast 100% Black Typography on Light Background */
  --text-main: #111111;        /* Solid Pure Black for Titles/Headings */
  --text-heading: #111111;     /* Pure Black for Section Titles */
  --text-body: #241e19;        /* Deep Charcoal for Body Paragraphs */
  --text-muted: #4a3e35;       /* Muted Dark Charcoal */
  --text-dim: #6e5f53;         /* Secondary Info */
  
  /* Consistent Standard Type Scale (8 Distinct Sizes) */
  --font-size-xs: 0.75rem;     /* 12px - Badges / Small Meta */
  --font-size-sm: 0.875rem;    /* 14px - Subtext / Captions / Form labels */
  --font-size-base: 1rem;      /* 16px - Base Body Paragraphs */
  --font-size-md: 1.125rem;    /* 18px - Card Titles / Lead text */
  --font-size-lg: 1.25rem;     /* 20px - Subheadings / Service Titles */
  --font-size-xl: 1.5rem;      /* 24px - Highlights / Stat Subheads */
  --font-size-2xl: 2rem;       /* 32px - Section Titles */
  --font-size-3xl: 2.6rem;     /* 42px - Stat Numbers / Display */

  /* Consistent Standard Border Radii (5 Distinct Tokens) */
  --radius-xs: 4px;            /* Badges / Pill tags */
  --radius-sm: 6px;            /* Inputs / Small Buttons */
  --radius-md: 8px;            /* Icons / Standard Cards */
  --radius-lg: 12px;           /* Large Feature Cards */
  --radius-full: 9999px;       /* Rounded Pills / Circles */

  /* Borders & Shadows */
  --border-light: rgba(61, 43, 31, 0.2);
  --border-dark: rgba(17, 17, 17, 0.28);
  --border-accent: rgba(90, 63, 43, 0.45);
  
  --shadow-sm: 0 4px 12px rgba(61, 43, 31, 0.12);
  --shadow-md: 0 10px 25px rgba(61, 43, 31, 0.18);
  --shadow-lg: 0 20px 35px -5px rgba(50, 35, 25, 0.25);
  
  /* Fonts */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Global Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
}

body {
  background-color: var(--bg-primary);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Typography Defaults */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
  letter-spacing: -0.015em;
}

p {
  color: var(--text-body);
  font-weight: 450;
  font-size: var(--font-size-base);
}

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

a:hover {
  color: var(--text-main);
}

.text-earth-light {
  color: var(--earth-light) !important;
}

.hover-white:hover {
  color: #ffffff !important;
}

/* -------------------------------------------------------------
   HEADER TOPBAR & NAVIGATION (Unified Dark Earth Brown)
   ------------------------------------------------------------- */
.header-topbar {
  background: #312218;
  border-color: rgba(255, 255, 255, 0.08) !important;
  font-size: var(--font-size-sm);
  color: #d8c2ab;
}

.btn-topbar-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(230, 206, 181, 0.12);
  border: 1px solid rgba(230, 206, 181, 0.3);
  color: #ffffff !important;
  font-weight: 700;
  font-size: var(--font-size-xs);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-topbar-cta:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: #312218 !important;
  transform: translateY(-1px);
}

.navbar-mahadev {
  background: var(--bg-header-footer);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 0;
  transition: var(--transition);
  z-index: 1050;
}

.navbar-mahadev.scrolled {
  padding: 10px 0;
  background: #34241a;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid rgba(230, 206, 181, 0.2);
}

.brand-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 42px;
  height: 42px;
  background: #ffffff;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-header-footer);
  font-size: var(--font-size-lg);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.brand-title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: var(--font-size-lg);
  letter-spacing: 0.04em;
  color: #ffffff;
  line-height: 1.1;
  text-transform: uppercase;
}

.brand-tagline {
  font-size: var(--font-size-xs);
  color: #e6ceb5;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.nav-link-mahadev {
  color: #d8c2ab !important;
  font-weight: 600;
  font-size: var(--font-size-sm);
  padding: 8px 16px !important;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}

.nav-link-mahadev:hover,
.nav-link-mahadev.active {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.08);
}

.nav-link-mahadev.active::after {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: #e6ceb5;
  border-radius: var(--radius-xs);
}

/* Header Action Buttons */
.btn-header-action {
  background: #ffffff;
  color: #3d2b1f !important;
  font-weight: 700;
  font-size: var(--font-size-sm);
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  border: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.btn-header-action:hover {
  background: #f0e5d8;
  color: #111111 !important;
  transform: translateY(-1px);
}

.btn-header-outline {
  background: transparent;
  color: #ffffff !important;
  font-weight: 600;
  font-size: var(--font-size-sm);
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-header-outline:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff !important;
}

/* -------------------------------------------------------------
   BUTTON STYLES - SOLID BLACK & EARTH
   ------------------------------------------------------------- */
.btn-mahadev-primary {
  background: #111111;
  color: #ffffff !important;
  font-weight: 700;
  font-size: var(--font-size-sm);
  letter-spacing: 0.02em;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  border: 1.5px solid #111111;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-mahadev-primary:hover {
  background: var(--earth-deep);
  border-color: var(--earth-deep);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.btn-mahadev-secondary {
  background: rgba(61, 43, 31, 0.08);
  color: #111111 !important;
  font-weight: 700;
  font-size: var(--font-size-sm);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  border: 1.5px solid #111111;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-mahadev-secondary:hover {
  background: #111111;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

/* -------------------------------------------------------------
   HERO SECTION - REALISTIC TRUCK STAGING (Zero Border/Card)
   ------------------------------------------------------------- */
.hero-section {
  min-height: 86vh;
  max-height: 880px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding-top: 20px;
  padding-bottom: 50px;
  overflow: hidden;
  background: linear-gradient(180deg, #d4b595 0%, #c6a27e 50%, #ae8761 100%);
}

/* Natural Ground Shadow Horizon */
.hero-road-horizon {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 35%;
  background: linear-gradient(to top, rgba(74, 52, 36, 0.4) 0%, rgba(140, 98, 57, 0.12) 60%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
}

/* Hero Badge Tag */
.hero-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(38, 25, 16, 0.08);
  border: 1px solid rgba(38, 25, 16, 0.18);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 700;
  color: #111111;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.hero-badge-tag i {
  color: #3d2b1f;
}

/* Hero Typography: 100% Solid Black, Lower-Left Position */
.hero-main-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 3.5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #111111 !important;
  text-transform: uppercase;
  margin-bottom: 14px;
  text-shadow: 0 2px 8px rgba(198, 162, 126, 0.4);
}

.hero-main-title span {
  color: #111111 !important;
}

.hero-subtitle {
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: #261910;
  max-width: 520px;
  font-weight: 500;
}

.hero-cta-group {
  margin-top: 16px;
}

/* Photorealistic Tipper Truck Stage (Natural blend, no border, grounded) */
.hero-truck-cinema-stage {
  position: relative;
  width: 100%;
  max-width: 680px;
  margin-left: auto;
  user-select: none;
}

.truck-cinema-layer {
  position: relative;
  width: 100%;
  filter: contrast(1.03) saturate(1.02);
  transform-origin: bottom center;
}

.truck-render-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.truck-render-img.driving-img {
  position: relative;
  z-index: 2;
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
}

/* Secondary dumping overlay image */
.truck-render-img.dumping-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

/* Soil Particle Canvas for Real Earth Dumping Physics */
.soil-particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 4;
}

/* Soil Pile Accumulator at Rear Dump Site */
.soil-pile-accumulator {
  position: absolute;
  bottom: 6%;
  left: 14%;
  width: 120px;
  height: 24px;
  background: radial-gradient(ellipse at 50% 80%, #4a3424 0%, #684a32 50%, transparent 75%);
  border-radius: var(--radius-full);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
  z-index: 2;
}

/* Dynamic Rising Dust Cloud */
.soil-dust-cloud {
  position: absolute;
  bottom: 4%;
  left: 10%;
  width: 160px;
  height: 70px;
  background: radial-gradient(ellipse at center, rgba(198, 162, 126, 0.45) 0%, rgba(181, 143, 105, 0.2) 50%, transparent 75%);
  filter: blur(12px);
  border-radius: var(--radius-full);
  opacity: 0;
  transform: scale(0.5) translateY(10px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  pointer-events: none;
  z-index: 5;
}

/* Soft contact shadow beneath the photorealistic truck */
.truck-natural-shadow {
  position: absolute;
  bottom: -12px;
  left: 6%;
  right: 6%;
  height: 30px;
  background: radial-gradient(ellipse at center, rgba(38, 25, 16, 0.8) 0%, rgba(38, 25, 16, 0.4) 50%, transparent 75%);
  filter: blur(10px);
  z-index: 1;
  transform-origin: center center;
}

/* -------------------------------------------------------------
   SECTIONS & CONTROLLED SECTION TITLES
   ------------------------------------------------------------- */
.section-padding {
  padding: 80px 0;
  position: relative;
}

.section-header {
  margin-bottom: 40px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.85rem, 2.6vw, 2.3rem);
  font-weight: 900;
  letter-spacing: -0.01em;
  color: #111111;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-description {
  color: var(--text-body);
  max-width: 660px;
  font-size: var(--font-size-base);
  line-height: 1.7;
}

/* -------------------------------------------------------------
   STATS COUNTER STRIP
   ------------------------------------------------------------- */
.stats-strip {
  background: #b58f69;
  border-top: 1.5px solid var(--border-light);
  border-bottom: 1.5px solid var(--border-light);
  padding: 40px 0;
  position: relative;
  z-index: 5;
}

.stat-item {
  text-align: center;
  padding: 10px;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: var(--font-size-3xl);
  font-weight: 900;
  color: #111111;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  color: #241e19;
  font-size: var(--font-size-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* -------------------------------------------------------------
   SERVICE CARDS
   ------------------------------------------------------------- */
.service-card-3d {
  background: var(--bg-card);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.service-card-3d:hover {
  transform: translateY(-5px);
  border-color: #111111;
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-md);
}

.service-icon-box {
  width: 50px;
  height: 50px;
  background: #111111;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-lg);
  color: var(--bg-primary);
  margin-bottom: 20px;
  transition: var(--transition);
}

.service-card-3d:hover .service-icon-box {
  background: var(--earth-deep);
  color: #ffffff;
  transform: scale(1.05);
}

.service-card-title {
  font-size: var(--font-size-md);
  font-weight: 800;
  color: #111111;
  margin-bottom: 10px;
}

.service-card-3d p {
  color: var(--text-body);
  font-size: var(--font-size-sm);
  line-height: 1.6;
  margin-bottom: 0;
}

/* -------------------------------------------------------------
   FLEET SHOWCASE CARDS
   ------------------------------------------------------------- */
.fleet-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
  box-shadow: var(--shadow-sm);
}

.fleet-card:hover {
  transform: translateY(-5px);
  border-color: #111111;
  box-shadow: var(--shadow-md);
}

.fleet-img-wrap {
  height: 230px;
  overflow: hidden;
  position: relative;
  background: #a9825e;
}

.fleet-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.fleet-card:hover .fleet-img-wrap img {
  transform: scale(1.05);
}

.fleet-capacity-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #111111;
  color: #ffffff;
  font-weight: 700;
  font-size: var(--font-size-xs);
  padding: 4px 10px;
  border-radius: var(--radius-xs);
}

.fleet-content {
  padding: 22px;
}

.fleet-card-title {
  color: #111111;
  font-size: var(--font-size-md);
  font-weight: 800;
  margin-bottom: 6px;
}

.fleet-spec-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: var(--font-size-sm);
  color: var(--text-body);
  font-weight: 500;
}

.fleet-spec-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
}

.fleet-spec-list i {
  color: #111111;
  margin-top: 3.5px;
  font-size: var(--font-size-sm);
  flex-shrink: 0;
}

/* -------------------------------------------------------------
   CAPABILITY & LEADERSHIP ITEMS
   ------------------------------------------------------------- */
.capability-item {
  background: var(--bg-card);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: var(--transition);
  height: 100%;
}

.capability-item:hover {
  border-color: #111111;
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.capability-title {
  color: #111111;
  font-size: var(--font-size-md);
  font-weight: 800;
  margin-bottom: 8px;
}

.capability-item p {
  color: var(--text-body);
  font-size: var(--font-size-sm);
  margin-bottom: 0;
  line-height: 1.55;
}

.owner-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.owner-img-frame {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid #111111;
  box-shadow: var(--shadow-md);
}

.owner-img-frame img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

/* -------------------------------------------------------------
   CONTACT FORM & INPUTS
   ------------------------------------------------------------- */
.form-control-mahadev {
  background: #f0e2d3;
  border: 1.5px solid var(--border-light);
  color: #111111;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: var(--font-size-sm);
  font-weight: 500;
  transition: var(--transition);
}

.form-control-mahadev:focus {
  background: #ffffff;
  border-color: #111111;
  color: #111111;
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.12);
  outline: none;
}

.form-control-mahadev::placeholder {
  color: #7a6b5e;
}

/* -------------------------------------------------------------
   FOOTER (Unified Dark Earth Brown matching Header)
   ------------------------------------------------------------- */
.footer-mahadev {
  background: var(--bg-header-footer);
  border-top: 2px solid #291d15;
  padding: 65px 0 28px;
  color: #e6ceb5;
}

.footer-col-title {
  color: #ffffff;
  font-size: var(--font-size-md);
  letter-spacing: 0.02em;
}

.footer-mahadev p {
  color: #d8c2ab;
  font-size: var(--font-size-sm);
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: var(--font-size-lg);
  font-weight: 900;
  color: #ffffff;
  text-transform: uppercase;
}

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

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

.footer-links a {
  color: #d8c2ab;
  font-size: var(--font-size-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-links a:hover {
  color: #ffffff;
  transform: translateX(4px);
}

.footer-bottom {
  margin-top: 45px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: var(--font-size-sm);
  color: #bfa58c;
}

/* -------------------------------------------------------------
   RESPONSIVE BREAKPOINTS
   ------------------------------------------------------------- */
@media (max-width: 991px) {
  .hero-section {
    min-height: 75vh;
    padding-bottom: 40px;
    text-align: center;
  }
  .hero-main-title {
    font-size: var(--font-size-2xl);
  }
  .hero-truck-cinema-stage {
    margin: 25px auto 0 auto;
    max-width: 520px;
  }
  .section-title {
    font-size: var(--font-size-2xl);
  }
  .section-padding {
    padding: 60px 0;
  }
}

@media (max-width: 767px) {
  .hero-section {
    min-height: 70vh;
    padding-top: 15px;
    padding-bottom: 30px;
  }
  .hero-main-title {
    font-size: var(--font-size-xl);
    line-height: 1.15;
  }
  .hero-cta-group {
    justify-content: center;
  }
  .section-title {
    font-size: var(--font-size-xl);
  }
  .section-padding {
    padding: 45px 0;
  }
  .stat-number {
    font-size: var(--font-size-2xl);
  }
}

@media (max-width: 390px) {
  .hero-main-title {
    font-size: 1.75rem;
  }
}
