/*
Theme Name: Excavator Worldwide
Theme URI: http://localhost/wordpress
Author: Custom Build
Description: High-Fidelity Marketplace - Makana Type Design
Version: 2.0
*/

/* ===========================
   CSS VARIABLES (MAKANA STYLE)
=========================== */
:root {
  --white: #FFFFFF;
  --bg-light: #F9FAFB;
  --bg-section: #F3F4F6;
  --brand-orange: #EF7D00;
  --brand-orange-light: #FF9B33;
  --brand-black: #1A1A1A;
  --brand-black-light: #2A2A2A;
  --text-dark: #111827;
  --text-muted: #6B7280;
  --gray-border: #E5E7EB;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -2px rgb(0 0 0 / 0.05);
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===========================
   RESET & BASE
=========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
html, body {
  overflow-x: hidden !important;
  max-width: 100% !important;
}
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--white);
  color: var(--text-dark);
  line-height: 1.5;
  overflow-x: hidden;
  padding-top: 120px !important; /* Fixed offset for 120px header */
}
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; outline: none; font-family: inherit; }
.container { max-width: 1320px; margin: 0 auto; padding: 0 24px; }
section { max-width: 100% !important; overflow-x: hidden !important; }

/* ===========================
   FIXED HEADER (3-ROW)
=========================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 2000;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

/* ===========================
   MAKANA CLEAN COMPACT HEADER
=========================== */
#site-header { 
  position: fixed !important; top: 0 !important; left: 0 !important; right: 0 !important;
  z-index: 9999 !important; background: #FFF !important; width: 100% !important; 
  height: 120px !important; display: flex !important; align-items: center !important;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05) !important; border-bottom: 2px solid #F3F4F6 !important;
  margin: 0 !important; padding: 0 !important;
}

/* --- DESKTOP CORNER LOGO (APPROVED) --- */
@media (min-width: 1025px) {
  .header-main-inner { 
    display: flex !important; justify-content: space-between !important; 
    align-items: center !important; width: 100% !important; max-width: 100% !important; 
    margin: 0 !important; padding: 0 !important; height: 100% !important;
  }
  .logo, .logo img { margin: 0 !important; padding: 0 !important; display: block !important; margin-left: -5px !important; }
}

/* --- GLOBAL HEADER FALLBACK --- */
.header-main-inner { 
  display: flex; justify-content: space-between; align-items: center; 
}
.logo-img, .custom-logo-link img { 
    height: 85px !important; 
    width: auto !important; 
    display: block !important; 
    image-rendering: -webkit-optimize-contrast !important; /* Forces sharpness on Chrome/Edge */
    image-rendering: crisp-edges !important;
    backface-visibility: hidden !important;
    transform: translateZ(0) !important;
    will-change: transform !important; /* Pre-renders high quality */
    -webkit-font-smoothing: antialiased !important;
}
.footer-logo-wrap img, .footer-custom-img { 
    height: 60px !important; 
    width: auto !important; 
    display: block !important; 
}
/* Only apply white filter if it's the standard custom logo fallback in footer */
.footer-logo-wrap .custom-logo-link img {
    filter: brightness(0) invert(1) !important;
}

.nav-links { display: block !important; margin: 0 !important; padding: 0 !important; }
.nav-links ul { 
  display: flex !important; 
  gap: 30px !important; 
  list-style: none !important; 
  margin: 0 !important; 
  padding: 0 !important; 
  align-items: center !important;
}
.nav-links a { 
  font-size: 14px !important; font-weight: 800 !important; color: #4B5563 !important; 
  text-transform: uppercase !important; letter-spacing: 0.5px !important; transition: 0.3s !important;
  white-space: nowrap !important;
}
.nav-links a:hover { color: #111827 !important; }

.btn-cta-header {
  background: var(--brand-orange) !important; color: #FFF !important; padding: 14px 28px !important; 
  border-radius: 12px !important; font-weight: 800 !important; font-size: 14px !important;
  transition: 0.3s !important;
}
.btn-cta-header:hover { background: var(--brand-orange-light) !important; transform: translateY(-2px) !important; }

.mobile-close-m { display: none; }

/* Mobile Toggle Styling */
.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    padding: 0;
    z-index: 10001;
    cursor: pointer;
}
.mobile-nav-toggle .bar {
    width: 28px;
    height: 3px;
    background: #111;
    border-radius: 4px;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav-toggle.active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.mobile-nav-toggle.active .bar:nth-child(2) { opacity: 0; }
.mobile-nav-toggle.active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Centered Pill Search */
.header-search { flex: 1; max-width: 600px; }
.search-pill {
  display: flex;
  align-items: center;
  background: #F3F4F6;
  border: 1px solid var(--gray-border);
  border-radius: 50px;
  padding: 6px 12px;
  transition: var(--transition);
}
.search-pill:focus-within {
  background: var(--white);
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 4px rgba(239, 125, 0, 0.1);
}
.search-pill input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px 12px;
  font-size: 14px;
  outline: none;
  color: var(--brand-black);
}
.search-pill button {
  width: 36px; height: 36px;
  background: var(--brand-orange);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Header Utilities */
.header-utils { display: flex; align-items: center; gap: 25px; }
.util-item { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--text-muted); }
.util-item:hover { color: var(--brand-orange); }
.util-icon { font-size: 18px; }
.util-label { font-size: 10px; font-weight: 700; text-transform: uppercase; }

.btn-cta-header {
  background: var(--brand-black);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
}
.btn-cta-header:hover { background: var(--brand-orange); transform: translateY(-2px); }

/* Row 3: Bottom Nav */
.header-nav-row {
  background: var(--white);
  padding: 0;
}
.nav-inner { display: flex; justify-content: center; }
.nav-links { display: flex; gap: 35px; list-style: none; }
.nav-links a {
  display: block;
  padding: 15px 0;
  font-size: 12px;
  font-weight: 800;
  color: var(--brand-black);
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 3px;
  background: var(--brand-orange); transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--brand-orange); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

/* ===========================
   MAKANA PREMIUM HERO
=========================== */
#hero-slider-section {
  padding: 40px 0 20px;
  background: transparent; /* Remove shared background to ensure separation */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-inner-wrapper { width: 100%; display: flex; flex-direction: column; align-items: center; }

.hero-card-viewport {
  width: 88%; 
  max-width: 1180px; 
  height: 480px; /* Exact replication of live site height */
  background: #111;
  border-radius: 48px; 
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
  margin: 0 auto;
}

.hero-slider {
  height: 100%;
  display: flex;
  transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}

.hero-slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
  padding: 0;
}

.hero-slide-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 15px;
  width: 100%;
  height: 100%;
  padding: 0 60px; /* Exact Makana padding-left */
}

.hero-slide-full {
  width: 100%;
  height: 100%;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 40px;
  background: #111;
}

.hs-text { max-width: 550px; z-index: 10; }
.hs-label { 
  display: inline-block; font-size: 13px; font-weight: 800; color: #6B7280; 
  text-transform: uppercase; letter-spacing: 2.5px; margin-bottom: 20px; 
}
.hs-text h1 { 
  font-size: 56px; font-weight: 950; color: #FFF; line-height: 1.1; 
  letter-spacing: -2px; margin-bottom: 24px;
}
.hs-text h1 span { color: #4B5563; font-weight: 500; }

.hs-text p { 
  font-size: 20px; color: #9CA3AF; line-height: 1.6; margin-bottom: 12px; 
}

/* Banner 1 specific text styles */
.hs-sub-cta {
  font-size: 13px !important; font-weight: 800; color: var(--brand-orange) !important;
  text-transform: uppercase; letter-spacing: 2px; margin-bottom: 8px !important;
}
.hs-delivery {
  font-size: 15px !important; font-weight: 700; color: #FFF !important;
  margin-bottom: 6px !important; letter-spacing: 1px;
}
.hs-tagline {
  font-size: 13px !important; color: rgba(255,255,255,0.55) !important;
  font-weight: 600; letter-spacing: 1px; margin-bottom: 28px !important;
}

/* Banner 3 sub-heading style */
.hs-sub-heading {
  font-size: 16px !important; color: rgba(255,255,255,0.85) !important;
  font-weight: 800; letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 12px !important;
}

.hs-specs {
  font-size: 14px !important; color: rgba(255,255,255,0.7) !important;
  font-weight: 700; letter-spacing: 1.5px; margin-bottom: 16px !important;
  border-top: 1px solid rgba(255,255,255,0.15);
  border-bottom: 1px solid rgba(255,255,255,0.15);
  padding: 8px 0;
}
.hs-checks {
  list-style: none; padding: 0; margin: 0 0 28px 0;
}
.hs-checks li {
  font-size: 14px; color: #FFF; font-weight: 600;
  padding: 4px 0; letter-spacing: 0.5px;
}

/* Makana High-Contrast Buttons (Updated to Brand Orange) */
.btn-makana-lime {
  padding: 16px 36px; background: var(--brand-orange); color: #FFF;
  border-radius: 12px; font-weight: 800; font-size: 15px; 
  box-shadow: 0 10px 30px rgba(239, 125, 0, 0.2);
  transition: all 0.3s ease;
}
.btn-makana-lime:hover { 
  transform: translateY(-3px); 
  background: var(--brand-orange-light);
  box-shadow: 0 15px 40px rgba(239, 125, 0, 0.3); 
  color: #FFF;
}

.btn-makana-outline {
  padding: 16px 36px; border: 2px solid rgba(255,255,255,0.2); color: #FFF;
  border-radius: 12px; font-weight: 800; font-size: 15px; margin-left: 15px;
  transition: all 0.3s ease;
}
.btn-makana-outline:hover { background: rgba(255,255,255,0.05); border-color: #FFF; }

/* Hero Visual & Float Animation */
.hero-premium-viewport { 
  position: relative; width: 100%; height: 100%; 
  display: flex; align-items: center; justify-content: center;
}
.hero-main-img { 
  width: 120%; max-width: none; height: auto; 
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.6));
  transform-origin: center;
}

.animate-float {
  animation: floatMachine 6s ease-in-out infinite;
}

@keyframes floatMachine {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-20px) rotate(1deg); }
}

/* Dots and Feature Strip Refinement */
/* Dots Navigation - Positioned at the bottom of the card but definitely separate from the box below */
.hero-dots-container { 
  display: flex; justify-content: center; gap: 12px; margin-top: 20px; 
  position: relative; z-index: 60;
}
.dot { width: 10px; height: 10px; background: #D1D5DB; border-radius: 50%; cursor: pointer; transition: 0.3s; }
.dot.active { background: #111827; width: 32px; border-radius: 20px; }


.features-box-section { 
  background: #f3f4f6;
  padding: 60px 0 100px; 
  display: flex;
  justify-content: center;
  width: 100%;
}

.hero-feature-strip { 
  width: 88%; max-width: 1100px; background: #FFF; margin: 0 auto; 
  position: relative; z-index: 50;
  border-radius: 28px; box-shadow: 0 25px 60px rgba(0,0,0,0.08); padding: 40px;
}
.fs-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 60px; }
.fs-item { display: flex; align-items: center; gap: 24px; }
.fs-icon { font-size: 32px; }
.fs-text { font-size: 14px; color: #4B5563; font-weight: 600; }
.fs-text span { display: block; color: #111827; font-weight: 900; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }

/* ===========================
   MACHINERY GALLERY GRID
=========================== */
/* Machinery Gallery Grid - Specificity for standalone section */
.standalone-gallery-section .machinery-gallery-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 20px !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 0 40px 0 !important;
  list-style: none !important;
}

@media (min-width: 768px) {
  .standalone-gallery-section .machinery-gallery-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

.gallery-item-makana {
  position: relative !important;
  border-radius: 15px !important;
  overflow: hidden !important;
  height: 220px !important;
  background: #111 !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
}

.gallery-item-makana img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-item-makana:hover img {
  transform: scale(1.05);
}

.gallery-item-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
  color: #FFF;
  font-size: 12px;
  font-weight: 700;
  padding: 10px 12px 8px;
  border-radius: 0 0 15px 15px;
}


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

/* ===========================
   MARKET DISCOVERY GRID
=========================== */
.discovery-section { padding: 100px 0; background: var(--bg-light); }
.section-header-makana {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 50px;
}
.sh-title h2 { font-size: 36px; font-weight: 950; color: var(--brand-black); letter-spacing: -1.5px; }
.sh-title p { font-size: 16px; color: var(--text-muted); font-weight: 600; margin-top: 10px; }
.btn-view-all { font-size: 13px; font-weight: 800; color: var(--brand-orange); text-transform: uppercase; letter-spacing: 1px; border-bottom: 2px solid var(--brand-orange); padding-bottom: 4px; }

.discovery-tabs { display: flex; gap: 20px; margin-bottom: 40px; border-bottom: 1px solid var(--gray-border); }
.shop-tab {
  padding: 12px 24px; font-size: 14px; font-weight: 800; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 1px; position: relative; background: transparent;
}
.shop-tab.active { color: var(--brand-orange); }
.shop-tab.active::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 100%; height: 3px; background: var(--brand-orange); }

.discovery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 24px; }
.disc-pill-item {
  position: relative; height: 220px; background: var(--brand-black); border-radius: var(--radius-xl);
  overflow: hidden; display: flex; align-items: flex-end; padding: 30px; transition: var(--transition);
}
.dpi-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.5; transition: var(--transition); }
.disc-pill-item:hover .dpi-bg { transform: scale(1.1); opacity: 0.7; }
.dpi-content { position: relative; z-index: 2; }
.dpi-content h3 { font-size: 24px; font-weight: 900; color: var(--white); letter-spacing: -1px; }
.dpi-content p { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.7); text-transform: uppercase; letter-spacing: 1px; margin-top: 5px; }

/* ===========================
   MACHINE INVENTORY CARDS
=========================== */
/* ===========================
   MACHINE INVENTORY CARDS (MAKANA REDESIGN)
=========================== */
.inventory-section { padding-bottom: 100px; background: #FFF; }
.machine-discovery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.machine-card-makana {
  background: #F3F4F6; /* Light Grey background per Makana design */
  border-radius: 24px; /* Large modern radius */
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: flex;
  flex-direction: column;
}
.machine-card-makana:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.06); }

.mc-img-wrap { 
  position: relative; 
  height: 240px; 
  margin: 12px; 
  background: #FFF; 
  border-radius: 18px; 
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mc-img-wrap img { 
  width: 90%; 
  height: 90%; 
  object-fit: contain; 
}

.mc-badges { position: absolute; top: 15px; left: 15px; display: flex; gap: 6px; z-index: 5; }
.mc-badge { 
  padding: 6px 12px; 
  border-radius: 8px; 
  font-size: 11px; 
  font-weight: 800; 
  display: flex; 
  align-items: center; 
  gap: 5px; 
  background: #FFF;
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}
.badge-hot { color: #D97706; }
.badge-certified { color: #2563EB; }

.mc-wish {
  position: absolute; top: 15px; right: 15px; width: 36px; height: 36px;
  background: #FFF; border-radius: 10px; display: flex; align-items: center;
  justify-content: center; z-index: 5; color: #111; font-size: 16px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.mc-body { padding: 0 24px 24px; }
.mc-serial { 
  font-size: 10px; 
  font-weight: 800; 
  color: #9CA3AF; 
  text-transform: uppercase; 
  letter-spacing: 0.5px; 
  margin-bottom: 6px; 
  display: block; 
}
.mc-title { 
  font-size: 18px; 
  font-weight: 900; 
  color: #111; 
  line-height: 1.3; 
  margin-bottom: 12px; 
}

.mc-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.m-pill { 
  padding: 5px 12px; 
  background: #E5E7EB; 
  color: #4B5563; 
  font-size: 11px; 
  font-weight: 700; 
  border-radius: 6px; 
}

.mc-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 15px; }
.mc-price { font-size: 18px; font-weight: 950; color: #111; }
.btn-mc-view { 
  font-size: 20px; 
  color: #111; 
  transition: transform 0.3s;
}
.machine-card-makana:hover .btn-mc-view { transform: translateX(5px); }

/* ===========================
   RECENT EXPORTS GALLERY
=========================== */
.gallery-section { padding: 100px 0; background: var(--white); }
.gallery-grid-makana { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery-item-makana { 
  position: relative; height: 350px; border-radius: var(--radius-xl); overflow: hidden; 
  box-shadow: var(--shadow-md); transition: var(--transition);
}
.gallery-item-makana:hover { transform: scale(1.02); box-shadow: var(--shadow-lg); }
.gallery-item-makana img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.gallery-item-makana:hover img { transform: scale(1.1); filter: brightness(0.6); }

.gi-overlay { 
  position: absolute; bottom: 0; left: 0; right: 0; padding: 30px; 
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%); 
  color: var(--white); transform: translateY(20px); opacity: 0; transition: var(--transition);
}
.gallery-item-makana:hover .gi-overlay { transform: translateY(0); opacity: 1; }
.gi-overlay span { font-size: 11px; font-weight: 800; color: var(--brand-orange); text-transform: uppercase; letter-spacing: 1.5px; display: block; margin-bottom: 8px; }
.gi-overlay h4 { font-size: 20px; font-weight: 950; letter-spacing: -0.5px; }

/* ===========================
   EXPERT REVIEWS SECTION (MAKANA STYLE)
=========================== */
.expert-reviews-section { padding: 80px 0; background: #FFF; }
.expert-container-makana {
    background: #DDEBFF; /* Makana Light Blue */
    border-radius: 40px;
    padding: 60px;
    display: flex;
    gap: 60px;
    align-items: flex-start; /* Ensure top alignment */
    min-height: 500px;
}

.er-left { flex: 1.2; max-width: 500px; }
.er-left h2 { font-size: 60px; font-weight: 950; letter-spacing: -3px; line-height: 0.95; margin-bottom: 30px; color: #111; }
.text-white { color: #FFF !important; }

.er-experts { display: flex; align-items: center; gap: 15px; margin-bottom: 40px; }
.er-avatars { display: flex; margin-left: 10px; }
.er-avatars img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid #DDEBFF; margin-left: -10px; object-fit: cover; }
.er-experts p { font-size: 14px; font-weight: 700; color: #111; }

/* Filter Box UI */
.er-filter-box {
    background: #FFF;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.05);
}
.er-filter-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 25px; }
.er-field label { display: block; font-size: 12px; font-weight: 800; color: #9CA3AF; margin-bottom: 8px; }
.er-field select, .er-field input { 
    width: 100%; border: 1.5px solid #F3F4F6; border-radius: 10px; padding: 12px; font-weight: 700; background: #F9FAFB;
}
.btn-find-review {
    width: 100%; padding: 15px; background: var(--brand-orange); color: #FFF; border-radius: 12px; font-weight: 800; border: none;
    display: flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; transition: 0.3s;
}
.btn-find-review:hover { background: var(--brand-orange-light); transform: scale(1.02); }

.er-right { flex: 1; min-width: 400px; }
.er-right-header { 
    display: flex; align-items: center; gap: 12px; margin-bottom: 25px; 
    font-weight: 950; font-size: 19px; color: #3B82F6; 
}
.best-ranked-highlight { 
    background: #DBEAFE; /* Light Blue selection style */
    padding: 4px 12px; border-radius: 6px; 
}
.check-marker-blue {
    background: #3B82F6; color: #FFF; width: 22px; height: 22px; 
    display: flex; align-items: center; justify-content: center; 
    border-radius: 50%; font-size: 12px; font-weight: 950;
}

.review-card-makana {
    background: #FFF;
    border-radius: 20px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    border: 1px solid transparent;
}
.review-card-makana:hover { transform: translateX(10px); border-color: #3B82F6; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }
.review-card-makana.hidden { display: none; }

.rc-img { width: 100px; height: 80px; background: #F3F4F6; border-radius: 15px; overflow: hidden; flex-shrink: 0; }
.rc-img img { width: 100%; height: 100%; object-fit: cover; }

.rc-content { flex: 1; overflow: hidden; }
.rc-meta { display: flex; gap: 10px; margin-bottom: 5px; }
.rc-tag { font-size: 10px; font-weight: 850; color: #3B82F6; background: #DBEAFE; padding: 2px 8px; border-radius: 4px; }
.rc-title { font-size: 15px; font-weight: 950; margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-foot { display: flex; align-items: center; justify-content: space-between; font-size: 12px; }
.rc-rating { font-weight: 900; color: #059669; }
.rc-author { display: flex; align-items: center; gap: 6px; color: #6B7280; font-weight: 700; }
.rc-author img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }

@media (max-width: 1024px) {
    .expert-container-makana { flex-direction: column; gap: 40px; padding: 40px 20px; }
    .er-left h2 { font-size: 40px; }
    .er-left, .er-right { max-width: 100%; min-width: 100%; }
}

/* ===========================
   TOP BRANDS & TABS (MAKANA STYLE)
=========================== */
.top-picks-section { padding: 80px 0 20px 0; background: #FFF; }
.top-picks-header { margin-bottom: 40px; }
.top-picks-header h2 { font-size: 38px; font-weight: 950; letter-spacing: -1.5px; color: #111; }
.top-picks-header h2 span { color: #9CA3AF; font-weight: 600; }

.tabs-bar-makana {
    background: #F3F4F6;
    padding: 6px;
    border-radius: 12px;
    display: inline-flex;
    gap: 5px;
    margin-bottom: 40px;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
}
.tab-btn-makana {
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    color: #6B7280;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}
.tab-btn-makana.active { background: #FFF; color: #111; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); }
.tab-btn-makana:hover:not(.active) { color: #111; background: rgba(255,255,255,0.5); }

/* Tab Content Visibility Logic */
.top-content-view { position: relative; min-height: 250px; }
.top-content-pane { 
    display: none; 
    opacity: 0; 
    transform: translateY(10px);
    transition: all 0.4s ease;
}
.top-content-pane.active { 
    display: block; 
    opacity: 1; 
    transform: translateY(0);
}

.brands-grid-makana {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}
.brand-card-makana {
    background: #FFF;
    border: 1.2px solid #E5E7EB;
    border-radius: 18px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: all 0.3s;
    cursor: pointer;
}
.brand-card-makana:hover { transform: translateY(-5px); border-color: #111; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }
.brand-card-makana h4 { font-size: 18px; font-weight: 950; color: #111; text-transform: uppercase; letter-spacing: -0.5px; }

/* Special Shop By Brand Card */
.brand-card-shop {
    background: var(--brand-orange);
    border: none;
    color: #FFF;
}
.brand-card-shop h4 { color: #FFF; font-size: 16px; }
.brand-card-shop:hover { background: var(--brand-orange-light); box-shadow: 0 10px 15px -3px rgba(239, 125, 0, 0.3); }

@media (max-width: 1024px) {
    .brands-grid-makana { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 768px) {
    .brands-grid-makana { grid-template-columns: repeat(2, 1fr); }
}

/* ===========================
   WELCOME GREETING SECTION (MAKANA STYLE)
=========================== */
.welcome-makana-section { padding: 40px 0; background: #FFF; }
.welcome-container-makana {
    background: #F9FAFB !important;
    border-radius: 40px;
    display: flex;
    overflow: hidden;
    align-items: stretch;
}

.wm-left { flex: 1; padding: 80px 60px; }
.about-label-premium {
    display: inline-block;
    font-size: 11px;
    font-weight: 900;
    color: var(--brand-orange);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    background: rgba(239, 125, 0, 0.1);
    padding: 4px 12px;
    border-radius: 6px;
}
.wm-left h2 { font-size: 48px; font-weight: 850; margin-bottom: 20px; color: #111; line-height: 1.1; }
.wm-span { color: #9CA3AF; font-weight: 500; }
.wm-left h3 { font-size: 24px; font-weight: 700; color: #4B5563; margin-bottom: 30px; line-height: 1.2; }
.wm-left p { font-size: 16px; line-height: 1.6; color: #4B5563; margin-bottom: 40px; max-width: 500px; }

.btn-explore-makana {
    display: inline-block;
    padding: 14px 28px;
    border: 2px solid #111;
    border-radius: 12px;
    font-weight: 800;
    font-size: 14px;
    transition: 0.3s;
}
.btn-explore-makana:hover { background: #111; color: #FFF; }

.wm-right { flex: 1; position: relative; min-height: 400px; }
.wm-right img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 1024px) {
    .welcome-container-makana { flex-direction: column; }
    .wm-left { padding: 40px 30px; }
    .wm-right { min-height: 300px; }
}

/* ===========================
   WHY US & HOW IT WORKS (MAKANA REDESIGN)
=========================== */
.why-us-section { padding: 120px 0; background: #FFF; color: #111; }
.why-us-header { text-align: left; margin-bottom: 60px; }
.why-us-header h2 { font-size: 42px; font-weight: 950; letter-spacing: -2px; line-height: 1.1; margin-bottom: 10px; }
.why-us-header h2 span { color: #9CA3AF; font-weight: 500; }

.why-grid-makana { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-bottom: 80px; }
.why-card-makana { 
    background: transparent; 
    padding: 0; 
    border-radius: 0; 
    border: none; 
    display: flex; 
    flex-direction: column;
}
.why-card-makana:hover { transform: translateY(-5px); }

.why-card-img { 
    width: 100%; 
    height: 220px; /* Increased height for better visibility */
    border-radius: 20px; 
    overflow: hidden; 
    margin-bottom: 24px; 
    background: #F3F4F6;
    display: flex;
    align-items: center;
    justify-content: center;
}
.why-card-img img { 
    width: 100%; 
    height: 100%; 
    object-fit: contain !important; /* Forces entire image to show */
    padding: 10px; /* Safe padding so edges aren't tight */
}

/* --- EXPERT CARD PORTRAITS (PERFECT CIRCLES) --- */
.expert-card-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    background: #F3F4F6;
    border: 3px solid #FFF;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.expert-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover !important; /* Fills the circle with the expert's face */
    padding: 0 !important; /* Removes Why Us section padding */
}

.why-card-makana h4 { 
    font-size: 20px; 
    font-weight: 900; 
    margin-bottom: 12px; 
    color: #111;
    letter-spacing: -0.5px;
}
.wc-desc { 
    font-size: 14px; 
    color: #6B7280; 
    line-height: 1.6; 
    font-weight: 500; 
    margin-bottom: 24px;
}

/* NEW: Global Learn More Button */
.btn-learn-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: #FFF;
    border: 1.5px solid #111;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 800;
    color: #111;
    width: fit-content;
    transition: all 0.3s;
}
.btn-learn-more:hover { background: #F9FAFB; transform: translateX(5px); }

/* Bottom Request Banner */
.request-banner-makana {
    width: 100%;
    background: #1A1A1A;
    border-radius: 30px;
    padding: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #FFF;
    position: relative;
    overflow: hidden;
}
.rb-left h3 { font-size: 36px; font-weight: 950; letter-spacing: -1.5px; margin-bottom: 10px; }
.rb-left p { font-size: 18px; color: #9CA3AF; font-weight: 500; }

.btn-request-machine {
    padding: 20px 40px;
    background: var(--brand-orange);
    color: #FFF;
    border-radius: 12px;
    font-weight: 900;
    font-size: 16px;
    white-space: nowrap;
    box-shadow: 0 10px 20px rgba(239, 125, 0, 0.2);
}
.btn-request-machine:hover { transform: scale(1.05); background: var(--brand-orange-light); }

@media (max-width: 1024px) {
    .why-grid-makana { grid-template-columns: repeat(2, 1fr); }
    .request-banner-makana { flex-direction: column; text-align: center; gap: 30px; padding: 40px; }
}
@media (max-width: 768px) {
    .why-grid-makana { grid-template-columns: 1fr; }
    .rb-left h3 { font-size: 28px; }
}

/* ===========================
   CONTACT & SUPPORT
=========================== */
.contact-row-section { padding: 100px 0; background: var(--white); }
.contact-card-makana {
  display: grid; grid-template-columns: 1fr 400px; gap: 60px;
  background: var(--brand-black); border-radius: var(--radius-xl); padding: 60px; color: var(--white);
  box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}
.cc-left h2 { font-size: 42px; font-weight: 950; letter-spacing: -1.5px; margin-bottom: 20px; }
.cc-left p { font-size: 18px; color: #999; margin-bottom: 40px; }
.cc-info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.cci-item h5 { font-size: 12px; font-weight: 800; color: var(--brand-orange); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 10px; }
.cci-item a { font-size: 18px; font-weight: 900; }

.cc-form-panel { background: #2A2A2A; padding: 40px; border-radius: var(--radius-lg); }
.cc-form h4 { margin-bottom: 20px; font-size: 20px; font-weight: 900; }
.cc-field { margin-bottom: 15px; }
.cc-field input, .cc-field textarea {
  width: 100%; padding: 15px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  color: var(--white); border-radius: 8px; outline: none; font-size: 14px;
}
.cc-field :focus { border-color: var(--brand-orange); background: rgba(255,255,255,0.1); }
.btn-cc-submit { width: 100%; padding: 15px; background: var(--brand-orange); color: var(--white); font-weight: 900; border-radius: 8px; text-transform: uppercase; letter-spacing: 1px; margin-top: 10px; }

/* ===========================
   FOOTER (CHARCOAL)
=========================== */
.site-footer { background: #0D0D0D; color: #FFF; padding-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px; margin-bottom: 60px; }
.fg-brand h3 { font-size: 24px; font-weight: 950; margin-bottom: 24px; letter-spacing: -0.5px; }
.fg-brand h3 span { color: var(--brand-orange); }
.fg-brand p { font-size: 14px; color: #777; line-height: 1.8; margin-bottom: 30px; font-weight: 500; }

.fs-links { display: flex; gap: 15px; }
.fs-link { width: 40px; height: 40px; background: rgba(255,255,255,0.05); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; transition: var(--transition); border: 1px solid rgba(255,255,255,0.1); }
.fs-link:hover { background: var(--brand-orange); border-color: var(--brand-orange); transform: translateY(-3px); }

.fg-item h4 { 
    font-size: 14px; 
    font-weight: 900; 
    text-transform: uppercase; 
    letter-spacing: 1.5px; 
    color: #FFF; 
    margin-bottom: 24px; 
    padding-left: 0 !important; /* Forces header flush left */
    margin-left: 0 !important;
}
.fg-item ul { 
    list-style: none !important; 
    padding: 0 !important; 
    margin: 0 !important; 
}
.fg-item ul li { margin-bottom: 12px; }
.fg-item ul li a { font-size: 14px; color: #777; font-weight: 600; }
.fg-item ul li a:hover { color: var(--brand-orange); }

.footer-base { padding: 30px 0; border-top: 1px solid rgba(255,255,255,0.05); display: flex; justify-content: space-between; align-items: center; }
.footer-base p { font-size: 12px; color: #555; font-weight: 600; }
.fb-links { display: flex; gap: 20px; }
.fb-links a { font-size: 12px; color: #555; font-weight: 600; }

/* ===========================
   UTILITIES & ANIMATIONS
=========================== */
.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* ===========================
   PREMIUM FLOATING WHATSAPP
=========================== */
.floating-whatsapp-wrap {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    align-items: center;
}

.wa-float-btn {
    background: #25D366;
    color: #FFF;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: wa-pulse 2s infinite;
}

.wa-float-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.5);
    background: #128C7E;
}

@keyframes wa-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@media (max-width: 768px) {
    .wa-float-btn span { display: none; }
    .wa-float-btn { padding: 15px; border-radius: 50%; }
}

/* ===========================
   INQUIRY MODAL STYLES
=========================== */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: #FFF;
  width: 900px;
  max-width: 95vw;
  border-radius: 40px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 30px 60px rgba(0,0,0,0.15);
  transform: translateY(30px);
  transition: var(--transition);
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 25px;
  right: 25px;
  width: 40px;
  height: 40px;
  background: #F3F4F6;
  border-radius: 50%;
  font-size: 24px;
  z-index: 10;
  transition: 0.3s;
}
.modal-close:hover { background: #E5E7EB; transform: rotate(90deg); }

.modal-content-wrap {
  display: flex;
  min-height: 500px;
}

.modal-left {
  flex: 1;
  background: #F1F5F9;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px;
}

.modal-img-container {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
}
.modal-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

.modal-left-text {
  position: relative;
  z-index: 5;
  color: #111;
}
.modal-left-text h2 { font-size: 32px; font-weight: 950; margin-bottom: 5px; }
.modal-left-text p { font-size: 14px; font-weight: 800; text-transform: uppercase; color: #4B5563; }

.modal-right {
  flex: 1;
  padding: 60px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.modal-form-head h3 { font-size: 20px; font-weight: 900; color: #111; margin-bottom: 5px; text-transform: uppercase; }
.modal-form-head p { font-size: 14px; font-weight: 700; color: #4B5563; margin-bottom: 30px; letter-spacing: 0.5px; }

.modal-form .mf-field { margin-bottom: 15px; }
.modal-form input {
  width: 100%;
  padding: 18px 25px;
  border-radius: 20px;
  border: 1.5px solid #E5E7EB;
  background: #F9FAFB;
  font-size: 15px;
  font-weight: 600;
  outline: none;
  transition: 0.3s;
}
.modal-form input:focus { border-color: #EF7D00; background: #FFF; box-shadow: 0 0 0 4px rgba(239, 125, 0, 0.1); }

.btn-modal-submit {
  width: 100%;
  padding: 20px;
  background: linear-gradient(135deg, #EF7D00 0%, #FFB64D 100%);
  color: #FFF;
  border-radius: 20px;
  font-weight: 900;
  font-size: 16px;
  margin-top: 10px;
  box-shadow: 0 10px 20px rgba(239, 125, 0, 0.2);
}

@media (max-width: 768px) {
  .modal-content-wrap { flex-direction: column; }
  .modal-left { min-height: 250px; }
  .modal-right { padding: 40px 25px; }
}

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

.animate-fade-in {
  animation: fadeInUp 0.8s ease forwards;
}

/* ===========================
   PREMIUM MOBILE RESPONSIVENESS
=========================== */

/* ---- TABLET (max 1024px) ---- */
@media (max-width: 1024px) {

    /* BODY & GLOBAL OVERFLOW FIX */
    body { padding-top: 80px !important; }
    html, body, #page, .site, main {
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }
    img { max-width: 100% !important; height: auto !important; }
    .container { padding: 0 16px !important; max-width: 100% !important; }
    section { width: 100% !important; max-width: 100% !important; overflow-x: hidden !important; }

    /* ---- HEADER ---- */
    #site-header { 
        height: 70px !important; 
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .header-main-inner { 
        display: flex !important;
        flex-direction: row !important; 
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 16px !important;
        margin: 0 !important;
        height: 70px !important;
        box-sizing: border-box !important;
    }
    .logo, .custom-logo-link { 
        margin: 0 !important; 
        padding: 0 !important;
        flex-shrink: 0 !important;
    }
    .logo-img, .custom-logo-link img { 
        height: 45px !important; 
        width: auto !important; 
    }

    /* HIDE DESKTOP NAV & CTA */
    .header-cta, .nav-links:not(.mobile-active) { display: none !important; }

    /* HAMBURGER BUTTON */
    .mobile-nav-toggle { 
        display: flex !important; 
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        background: #000 !important;
        border-radius: 50% !important;
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
        z-index: 100001 !important;
        border: none !important;
        flex-shrink: 0 !important;
    }
    .mobile-nav-toggle .bar {
        display: block;
        width: 18px;
        height: 2px;
        background: #fff !important;
        border-radius: 2px;
        transition: 0.3s;
    }

    /* DRAWER MENU CLOSE BUTTON */
    .mobile-close-m {
        display: block;
        position: absolute;
        top: 20px;
        right: 25px;
        font-size: 45px;
        color: #111;
        cursor: pointer;
        line-height: 1;
        z-index: 100005;
    }

    /* DRAWER MENU */
    .nav-links.mobile-active {
        display: flex !important;
        position: fixed !important;
        top: 0; right: 0; 
        width: 280px; height: 100vh;
        background: #ffffff;
        z-index: 100000 !important;
        padding: 80px 20px;
        box-shadow: -20px 0 60px rgba(0,0,0,0.3);
        flex-direction: column !important;
        align-items: center !important;
    }
    .nav-links.mobile-active ul { 
        display: flex !important; 
        width: 100%;
        flex-direction: column !important;
        align-items: center !important;
        gap: 30px !important;
        padding: 0 !important;
    }
    .nav-links.mobile-active a {
        font-size: 20px !important;
        font-weight: 900 !important;
        color: #111 !important;
        text-transform: uppercase;
        border-bottom: 2px solid #f0f0f0;
        width: 100%; text-align: center;
        padding-bottom: 5px;
    }

    /* ---- HERO SLIDER ---- */
    .hero-container { padding: 10px 0 20px; }
    .hero-card-viewport { 
        width: 100% !important; /* Full width on mobile for cleaner look */
        margin: 0 !important;
        height: auto !important;
        aspect-ratio: 16 / 9 !important; /* Standard banner ratio */
        min-height: 220px !important;
        border-radius: 0 !important; /* Flush edges usually look better for full banners on mobile */
        overflow: hidden !important;
    }
    /* Slider track and slide sizing */
    .hero-slider {
        width: 100% !important;
        height: 100% !important;
    }
    .hero-slide { 
        min-width: 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        height: 100% !important;
    }
    /* CONTENT SLIDE (Slide 1) - improved text contrast */
    .hero-slide-content { 
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: flex-start !important;
        padding: 30px 20px !important;
        height: 100% !important;
        width: 100% !important;
        background: rgba(0,0,0,0.3); /* Subtle overlay for text readability */
    }
    .hs-text h1 { 
        font-size: 24px !important; 
        text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }
    .hs-text p { 
        font-size: 14px !important; 
        font-weight: 500 !important;
        text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    }
    
    /* BANNER SLIDES (2-5) - NO BORDERS */
    .hero-slide-full {
        width: 100% !important;
        height: 100% !important;
        background: transparent !important;
    }
    .hero-bg-img { 
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important; 
        object-position: center !important;
        image-rendering: -webkit-optimize-contrast !important;
        image-rendering: crisp-edges !important;
        transform: translateZ(0); /* Hardware acceleration for sharpness */
    }

    /* TRUST STRIP */
    .hero-feature-strip { 
        width: 94% !important;
        margin: 15px auto 0 !important;
        padding: 20px 15px !important;
        border-radius: 15px !important;
    }
    .fs-inner { 
        display: flex !important; 
        flex-direction: column !important; 
        gap: 15px !important; 
    }
    .fs-item { 
        display: flex !important;
        align-items: center !important;
        gap: 15px !important;
        text-align: left !important;
    }

    /* ---- DISCOVERY & GRIDS ---- */
    .discovery-tabs {
        flex-wrap: wrap !important;
        gap: 0 !important;
        overflow-x: auto !important;
    }
    .shop-tab {
        padding: 10px 14px !important;
        font-size: 11px !important;
        flex: 1 !important;
        text-align: center !important;
        white-space: nowrap !important;
    }
    .machine-discovery-grid { 
        grid-template-columns: 1fr !important; 
        gap: 25px !important;
        padding: 0 !important;
    }
    .machine-card-makana {
        width: 100% !important;
        margin-bottom: 0 !important;
    }
    .discovery-grid, .why-grid-makana {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .brands-grid-makana {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 12px !important;
    }
    .er-filter-grid { grid-template-columns: 1fr !important; }
}

/* ---- MOBILE ONLY (max 768px) ---- */
@media (max-width: 768px) {

    /* MACHINE CARDS */
    .machine-card-makana {
        margin-bottom: 25px !important;
        width: 100% !important;
        text-align: center !important;
    }
    .mc-badges { 
        top: 10px !important; 
        left: 10px !important; 
        flex-wrap: wrap !important;
        gap: 4px !important;
    }
    .mc-badge { padding: 4px 8px !important; font-size: 10px !important; }
    .mc-body { 
        padding: 0 15px 25px !important; 
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    .mc-title { 
        font-size: 18px !important; 
        text-align: center !important;
        margin-bottom: 12px !important;
    }
    .mc-meta { justify-content: center !important; margin-bottom: 20px !important; }
    .btn-learn-more { 
        margin: 0 auto !important; 
        display: inline-block !important;
    }

    /* BRANDS */
    .brands-grid-makana { grid-template-columns: repeat(3, 1fr) !important; gap: 8px !important; }
    .brand-card-makana { height: 70px !important; padding: 8px !important; }
    .brand-card-makana img { max-height: 35px !important; }

    /* SECTION HEADINGS */
    .sh-title h2 { font-size: 26px !important; }
    .er-left h2 { font-size: 30px !important; }

    /* FOOTER */
    .footer-grid { grid-template-columns: 1fr !important; gap: 40px; }
    .footer-base { flex-direction: column; text-align: center; gap: 20px; }

    /* CONTACT */
    .contact-card-makana { 
        padding: 30px 20px !important; 
        grid-template-columns: 1fr !important;
    }
    .cc-left h2 { font-size: 28px !important; }
    .cc-form-panel { padding: 25px !important; }
    .cc-info-grid { 
        display: flex !important; 
        flex-direction: column !important; 
        gap: 25px !important; 
        margin-top: 30px !important;
    }
    .cci-item a { font-size: 18px !important; word-break: break-all !important; }

    /* ABOUT US MOBILE OVERRIDES */
    .welcome-container-makana { 
        border-radius: 24px !important; 
        margin: 0 10px !important;
    }
    .wm-left { 
        padding: 35px 20px !important; 
        text-align: left !important;
    }
    .wm-left h2 { 
        font-size: 26px !important; 
        margin-bottom: 12px !important; 
        line-height: 1.2 !important; 
    }
    .wm-span { 
        display: block !important; 
        font-size: 18px !important; 
        margin-top: 5px !important;
    }
    .wm-left h3 { 
        font-size: 17px !important; 
        margin-bottom: 20px !important; 
        line-height: 1.4 !important;
    }
    .wm-left p { 
        font-size: 14px !important; 
        margin-bottom: 30px !important; 
    }
    .wm-right { min-height: 250px !important; }
}

/* --- Brand Logos Scaling --- */
.brand-card-makana {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    height: 120px;
    padding: 20px;
    transition: all 0.3s ease;
}
.brand-card-makana img {
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
    opacity: 1 !important; /* Always clear, not just on hover */
    image-rendering: -webkit-optimize-contrast;
    transition: transform 0.3s ease;
}
.brand-card-makana:hover { border-color: #000; }
.brand-card-makana:hover img { opacity: 1; transform: scale(1.02); }
.brand-card-shop { background: var(--brand-orange) !important; }
.brand-card-shop h4 {
    color: #fff !important;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
}

/* --- HIDE LEARN MORE BUTTON IN WHY US SECTION --- */
.why-card-makana .btn-learn-more {
    display: none !important;
}

/* --- MACHINERY GALLERY GRID --- */
.machinery-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.gallery-item-makana {
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 15px;
    background: transparent !important;
    box-shadow: none !important;
    transition: transform 0.3s ease;
}
.gallery-item-makana:hover {
    transform: translateY(-5px);
}

@media (max-width: 768px) {
    .machinery-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .gallery-item-makana {
        border-radius: 10px;
    }
}
@media (max-width: 480px) {
    .machinery-gallery-grid {
        /* Force 2 columns on very small mobile for true gallery feel */
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* ==========================================================
   EXACT MAKANA MOBILE HERO FIX (FORCED PRIORITY)
   Fixes CTA visibility and spacing for 'tall' card layout.
   ========================================================== */
@media (max-width: 768px) {
    .hero-container { 
        padding: 10px 0 30px !important; 
        background: #F9FAFB !important;
    }
    .hero-card-viewport { 
        width: 94% !important; 
        height: 520px !important; 
        border-radius: 32px !important; 
        margin: 0 auto !important;
        box-shadow: 0 15px 40px rgba(0,0,0,0.1) !important;
        overflow: hidden !important;
    }
    .hero-slide { 
        height: 520px !important; 
    }
    .hero-slide-content { 
        padding: 0 25px !important; 
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important; /* Lock text to top area */
        background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0) 100%) !important;
    }
    .hs-text {
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        padding-top: 80px !important; 
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        text-align: left !important;
    }
    /* Shift slides with less content further down on mobile */
    .hero-slide:nth-child(2) .hs-text,
    .hero-slide:nth-child(3) .hs-text,
    .hero-slide:nth-child(4) .hs-text {
        padding-top: 130px !important;
    }
    .hs-text h1 { 
        font-size: 26px !important; 
        margin-bottom: 10px !important; 
        line-height: 1.1 !important; 
        letter-spacing: -1px !important;
        min-height: 55px !important; 
    }
    .hs-text p, .hs-text ul { 
        font-size: 13px !important; 
        margin-bottom: 10px !important; 
        line-height: 1.4 !important; 
        color: rgba(255,255,255,0.85) !important;
        min-height: 10px !important; 
    }
    .hs-btns { 
        display: flex !important; 
        flex-direction: column !important; 
        gap: 10px !important; 
        width: 100% !important; 
        margin-top: auto !important; 
        margin-bottom: 25px !important;
    }
    .btn-makana-lime, .btn-makana-outline { 
        width: 100% !important; 
        margin: 0 !important; 
        padding: 14px 20px !important; 
        font-size: 14px !important; 
        text-align: center !important; 
        border-radius: 12px !important;
        display: block !important;
    }
}
