/* Raghav Food Processing Machine - Public Site Styles */

html {
  scroll-behavior: smooth;
  /* NOTE: Do NOT add -webkit-overflow-scrolling:touch here.
     On html/body it creates a secondary scroll context on iOS, causing
     "double-scroll" where the page AND an inner container both scroll
     simultaneously. Only inner scrollable panels (sidebar) need this. */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}
html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar { width: 0 !important; height: 0 !important; display: none !important; }
* { scrollbar-width: none; -ms-overflow-style: none; }

:root {
  /* Raghav Food brand palette: Deep Luxury Navy + Brushed Bronze Gold */
  --navy:   #16233F;
  --orange: #3D9B28; /* mapped to brand gold; keeps existing accent class names working */
  --gold:   #3D9B28;
  --white:  #FFFFFF;
  --gray:   #F5F5F5;
  --dark:   #1A1A1A;
  --navy-light: #1E3055;
  --orange-dark: #2E7D1E;
  --text-muted: #6c757d;
  --border: #e2e8f0;
  --shadow: 0 4px 24px rgba(10,31,68,0.10);
  --shadow-lg: 0 12px 40px rgba(10,31,68,0.18);
  --radius: 12px;
  --transition: 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Typography ── */
h1,h2,h3,h4,h5,h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── Utilities ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 80px 0; }
.text-orange { color: var(--orange); }
.text-navy { color: var(--navy); }
.text-white { color: var(--white); }
.bg-navy { background: var(--navy); }
.bg-orange { background: var(--orange); }
.bg-gray { background: var(--gray); }

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin-bottom: 12px;
  position: relative;
}
.section-title span { color: var(--orange); }
.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto 50px;
}
.title-center { text-align: center; }
.title-line {
  width: 50px; height: 4px;
  background: var(--orange);
  border-radius: 2px;
  margin: 12px auto 16px;
}
.title-line.left { margin-left: 0; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}
.btn-primary:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(247,108,27,0.35);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
  transform: translateY(-2px);
}
.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline-navy:hover {
  background: var(--navy);
  color: var(--white);
}
.btn-sm { padding: 8px 18px; font-size: 0.82rem; }

/* ── Top Bar ── */
.top-bar {
  background: rgba(10,31,68,0.98);
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  transition: all 0.3s ease;
}
#navbar.scrolled .top-bar {
  display: none;
}
.top-bar-inner {
  display: flex; justify-content: space-between; align-items: center;
}
.top-bar-left {
  display: flex; gap: 20px; align-items: center; white-space: nowrap; flex-shrink: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis;
}
.top-bar-left span {
  color: var(--orange, #3D9B28); font-weight: 600; letter-spacing: 0.5px; font-size: 0.85rem;
  opacity: 1;
}
.top-bar-left span b {
  color: #3D9B28; font-weight: 700;
}
.top-bar-left a {
  color: rgba(255,255,255,0.95); text-decoration: none; display: flex; align-items: center; gap: 6px;
  transition: color 0.3s;
}
.top-bar-left a:hover { color: var(--orange); }
.top-bar-right {
  display: flex; align-items: center; gap: 15px; color: rgba(255,255,255,0.9);
}
.top-bar-right a {
  color: rgba(255,255,255,0.85); text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
  transition: color 0.3s; font-weight: 500;
}
.top-bar-right a:hover { color: var(--orange); }

@media (max-width: 900px) {
  .top-bar-left span { font-size: 0.75rem; }
  .top-bar-right { font-size: 0.72rem; gap: 10px !important; }
  .top-bar-social { display: none !important; }
  .top-bar-right span[style*="opacity"] { display: none !important; }
}
@media (max-width: 768px) {
  .top-bar { display: block; overflow: hidden; white-space: nowrap; padding: 6px 0; }
  .top-bar-right { display: none; }
  .top-bar-inner { display: block; }
  .top-bar-left { display: inline-block; animation: marquee 15s linear infinite; }
  @keyframes marquee { 0% { transform: translateX(100vw); } 100% { transform: translateX(-100%); } }
}

/* ── Navbar ── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: all 0.4s ease;
  background: var(--navy);
}
#navbar .nav-inner { padding: 18px 0; transition: padding 0.3s ease; }
#navbar.scrolled .nav-inner {
  padding: 12px 0;
}
#navbar.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: nowrap;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex: 0 0 auto;
}
.nav-logo-icon {
  width: 44px; height: 44px;
  background: var(--orange);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.nav-logo-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--white);
  line-height: 1.1;
}
.nav-logo-text small {
  display: block;
  font-size: 0.6rem;
  font-weight: 400;
  opacity: 0.7;
  letter-spacing: 1px;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  flex: 0 1 auto;
  min-width: 0;
  flex-wrap: nowrap;
}
.nav-menu li {
  flex: 0 0 auto;
}
.nav-menu a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: rgba(255,255,255,0.85);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 11px;
  border-radius: 6px;
  transition: all var(--transition);
  font-family: 'Montserrat', sans-serif;
  line-height: 1.1;
  white-space: nowrap;
}
.nav-menu a:hover,
.nav-menu a.active {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}
.nav-cta {
  background: var(--orange);
  color: var(--white) !important;
  border-radius: 6px;
  padding: 9px 14px !important;
}
.nav-cta:hover {
  background: var(--orange-dark) !important;
  transform: translateY(-1px);
}
.nav-call-icon-btn {
  width: 42px;
  height: 42px;
  padding: 0 !important;
  border-radius: 8px;
  background: rgba(247,108,27,0.14);
  color: var(--orange) !important;
  border: 1px solid rgba(247,108,27,0.38);
  text-decoration: none;
}
.nav-call-icon-btn:hover {
  background: var(--orange) !important;
  color: var(--white) !important;
  transform: translateY(-1px);
}
.nav-icon-btn {
  position: relative;
}
.nav-cart-icon-btn {
  min-width: 34px;
  min-height: 34px;
}
.nav-cart-count {
  position: absolute;
  top: -7px;
  right: -8px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  border: 2px solid var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 5px 12px rgba(247,108,27,0.35);
}
.nav-cart-count.is-hidden {
  display: none;
}
.nav-signup-btn {
  min-width: max-content;
  white-space: nowrap;
}
.nav-signup-icon,
.nav-signup-text {
  flex: 0 0 auto;
  white-space: nowrap;
}
.nav-signup-icon {
  display: inline-flex;
  align-items: center;
}
.nav-account-btn {
  min-height: 40px;
  border-radius: 8px;
  font-weight: 800;
  color: #fff !important;
  overflow: visible;
}
.nav-account-btn img,
.nav-account-btn > span:first-child {
  flex: 0 0 24px;
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 25px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ── Nav Dropdown (More) ── */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  cursor: pointer;
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
}
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--navy);
  border-radius: 10px;
  min-width: 180px;
  padding: 8px 0;
  list-style: none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.25s ease;
  border: 1px solid rgba(255,255,255,0.1);
  z-index: 2000;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown-menu li { margin: 0; }
.nav-dropdown-menu a {
  display: block;
  padding: 10px 20px !important;
  font-size: 0.85rem !important;
  color: rgba(255,255,255,0.8) !important;
  border-radius: 0 !important;
  transition: all 0.2s ease;
}
.nav-dropdown-menu a:hover {
  background: rgba(255,255,255,0.1) !important;
  color: #fff !important;
  padding-left: 24px !important;
}

/* ── Header Search Bar ── */
.nav-search {
  display: flex;
  align-items: center;
  position: relative;
  flex: 1 0 360px;
  min-width: 340px;
  max-width: 520px;
  margin: 0 18px 0 22px;
}
.nav-search-icon {
  position: absolute;
  left: 12px;
  color: rgba(255,255,255,0.45);
  pointer-events: none;
}
.nav-search-input {
  width: 100%;
  box-sizing: border-box;
  min-height: 42px;
  line-height: 1.45;
  padding: 10px 14px 10px 38px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  outline: none;
  transition: all 0.3s ease;
}
.nav-search-input::placeholder { color: rgba(255,255,255,0.4); }
.nav-search-input:focus {
  background: rgba(255,255,255,0.1);
  border-color: rgba(247,108,27,0.5);
  box-shadow: 0 0 0 3px rgba(247,108,27,0.12);
}
@media (max-width: 900px) {
  .nav-search { display: none; }
}
@media (min-width: 1161px) {
  .nav-account-btn {
    width: auto;
    min-width: max-content;
    overflow: visible;
    white-space: nowrap;
    justify-content: center;
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
}
@media (min-width: 1161px) and (max-width: 1320px) {
  .nav-search {
    flex-basis: 320px;
    min-width: 300px;
    max-width: 420px;
    margin-left: 14px;
    margin-right: 14px;
  }
  .nav-menu a {
    padding-left: 9px;
    padding-right: 9px;
    font-size: 0.82rem;
  }
  .nav-signup-btn .nav-signup-text {
    display: inline;
  }
}
@media (min-width: 901px) and (max-width: 1160px) {
  .nav-search {
    flex-basis: 230px;
    min-width: 210px;
    max-width: 300px;
    margin: 0 10px;
  }
  .nav-brand-text {
    font-size: 1.35rem !important;
    letter-spacing: 1px !important;
  }
  .nav-logo-img {
    height: 42px !important;
  }
  .nav-menu { gap: 6px; }
  .nav-menu a {
    padding-left: 8px;
    padding-right: 8px;
    font-size: 0.78rem;
  }
  .nav-cta { padding-left: 11px !important; padding-right: 11px !important; }
  .nav-call-icon-btn {
    width: 40px;
    height: 40px;
  }
  .nav-account-btn {
    width: auto;
    min-width: max-content;
    overflow: visible;
    white-space: nowrap;
    justify-content: center;
  }
  .nav-signup-btn .nav-signup-text { display: inline; }
}

/* Search results page — extra horizontal room so card shadows are not clipped */
.search-results-page .container {
  padding-left: 28px;
  padding-right: 28px;
}
@media (max-width: 600px) {
  .search-results-page .container {
    padding-left: 16px;
    padding-right: 16px;
  }
}
.search-results-page .search-results-grid {
  padding-inline: 10px;
  box-sizing: border-box;
}
.search-results-page .search-results-grid--single {
  max-width: 440px;
  margin-inline: auto;
}
.search-results-page .search-result-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #16233F 0%, #1E3055 50%, #0d2550 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(247,108,27,0.15);
  border: 1px solid rgba(247,108,27,0.4);
  color: var(--orange);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
  white-space: nowrap;
  max-width: 100%;
}

@media (max-width: 480px) {
  .hero-badge {
    font-size: 0.65rem;
    padding: 4px 12px;
    margin-bottom: 16px;
  }
}
.hero-badge::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--orange);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}
.hero-title {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 0.95;
  letter-spacing: -1px;
  margin-bottom: 8px;
}
.hero-title .accent { color: var(--orange); }
.hero-tagline {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1rem, 3vw, 1.5rem);
  color: rgba(255,255,255,0.7);
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero-desc {
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 560px;
}
.hero-desc strong { color: var(--orange); }
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}
.hero-float-card {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 14px 20px;
  animation: float 4s ease-in-out infinite;
}
.hero-float-card .icon {
  width: 44px; height: 44px;
  background: var(--orange);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.hero-float-card .label { font-size: 0.7rem; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 1px; }
.hero-float-card .value { font-family: 'Montserrat',sans-serif; font-weight: 700; color: var(--white); font-size: 1.05rem; }
@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ── Stats Bar ── */
.stats-bar {
  background: var(--orange);
  padding: 0;
}
.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-item {
  text-align: center;
  padding: 28px 20px;
  border-right: 1px solid rgba(255,255,255,0.2);
  position: relative;
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

/* ── About Snippet ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-text .section-title { text-align: left; }
.about-title {
  font-weight: 500;
  color: var(--dark);
}
.about-brand-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.22em;
  margin-left: 0.08em;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.02em;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 0.95;
  text-transform: uppercase;
}
.about-brand-wordmark .brand-knit {
  color: var(--navy);
}
.about-brand-wordmark .brand-aid {
  color: var(--orange);
}
.about-features {
  list-style: none;
  margin: 24px 0 32px;
}
.about-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.about-features li::before {
  content: '✓';
  width: 24px; height: 24px;
  background: var(--orange);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}
.about-visual {
  background: linear-gradient(135deg, var(--navy) 0%, #1a3a6b 100%);
  border-radius: 20px;
  padding: 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.about-logo-big {
  font-family: 'Montserrat', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 2px;
}
.about-logo-big span { color: var(--orange); }
.about-logo-sub {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  letter-spacing: 3px;
  margin-top: 8px;
}
.about-gst {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.gst-badge {
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 10px 12px;
  text-align: left;
}
.gst-badge .region {
  font-size: 0.7rem;
  color: var(--orange);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.gst-badge .gst-num {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.6);
  margin-top: 2px;
  word-break: break-all;
}

/* ── Products Section ── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: all var(--transition);
  border: 1px solid var(--border);
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.product-card-img {
  height: 200px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}
.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
  box-sizing: border-box;
}
.product-card-img::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(10,31,68,0.5), transparent);
}
.product-card-body { padding: 20px; }
.product-card-tag {
  display: inline-block;
  background: rgba(247,108,27,0.1);
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.product-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.product-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

/* ── Services Section ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--orange);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform var(--transition);
}
.service-card:hover::before { transform: scaleY(1); }
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.service-icon {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, var(--orange) 0%, #ff8c42 100%);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  box-shadow: 0 8px 20px rgba(247,108,27,0.3);
}
.service-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.service-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; }

/* ── Why Choose Us ── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.why-card {
  text-align: center;
  padding: 40px 24px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.why-card:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-5px);
  border-color: rgba(247,108,27,0.4);
}
.why-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}
.why-card h3 { color: var(--white); font-size: 1.05rem; margin-bottom: 10px; }
.why-card p { color: rgba(255,255,255,0.65); font-size: 0.875rem; line-height: 1.6; }

/* ── Offices ── */
.offices-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}
.offices-grid .office-card {
  flex: 1 1 300px;
  max-width: 420px;
}
.office-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.office-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--orange);
}
.office-icon {
  width: 48px; height: 48px;
  background: var(--navy);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}
.office-card h3 { font-size: 1rem; margin-bottom: 8px; }
.office-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
}
.office-tag {
  display: inline-block;
  background: var(--gray);
  color: var(--navy);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}
.maps-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--orange);
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: 10px;
  transition: gap var(--transition);
}
.maps-link:hover { gap: 10px; }

/* ── CTA Banner ── */
.cta-banner {
  background: var(--navy);
  padding: 70px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%; left: -10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(247,108,27,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.cta-banner h2 {
  color: var(--white);
  font-size: clamp(1.6rem,4vw,2.2rem);
  margin-bottom: 12px;
}
.cta-banner p { color: rgba(255,255,255,0.7); margin-bottom: 36px; font-size: 1rem; }
.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-action-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  padding: 14px 22px;
  color: var(--white);
  font-weight: 600;
  transition: all var(--transition);
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  cursor: pointer;
}
.cta-action-item:hover {
  background: var(--orange);
  border-color: var(--orange);
  transform: translateY(-3px);
}

/* ── Footer ── */
.footer {
  background: #0d0d0d;
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand p {
  color: rgba(255,255,255,0.55);
  font-size: 0.875rem;
  line-height: 1.7;
  margin: 16px 0 20px;
}
.social-links { display: flex; gap: 10px; }
.social-link {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: all var(--transition);
  text-decoration: none;
}
.social-link:hover { background: var(--orange); color: var(--white); }
.footer h4 {
  color: var(--white);
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}
.footer h4::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 30px; height: 2px;
  background: var(--orange);
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  color: rgba(255,255,255,0.55);
  font-size: 0.875rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--orange); }
.footer-contact p {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
  margin-bottom: 12px;
  line-height: 1.5;
}
.footer-contact span.icon { flex-shrink: 0; color: var(--orange); margin-top: 2px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p {
  color: rgba(255,255,255,0.35);
  font-size: 0.8rem;
}

/* ── Page Header (for pages like Testimonials) ── */
.page-header {
  background: linear-gradient(135deg, var(--navy) 0%, #1a3a6b 100%);
  padding: 140px 0 50px;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.page-header h1 {
  color: var(--white); font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 8px;
}
.page-header h1 span { color: var(--orange); }
.page-header p {
  color: rgba(255,255,255,0.6); font-size: 0.95rem;
  max-width: 600px; margin: 0 auto;
}

/* ── About Visual — Logo White Circle ── */
.about-visual img[alt*="Logo"] {
  background: #fff;
  border-radius: 50%;
  padding: 14px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

/* ── Page Banner ── */
.page-banner {
  background: linear-gradient(135deg, var(--navy) 0%, #1a3a6b 100%);
  padding: 140px 0 60px;
  position: relative;
  overflow: hidden;
}
.page-banner::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 60px;
  background: var(--white);
  clip-path: polygon(0 100%, 100% 100%, 100% 0);
}
.page-banner h1 { color: var(--white); font-size: clamp(1.8rem, 4vw, 2.8rem); }
.page-banner .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
}
.page-banner .breadcrumb a { color: var(--orange); text-decoration: none; }
.page-banner .breadcrumb a:hover { text-decoration: underline; }

/* ── Gallery ── */
.gallery-grid {
  column-count: 4;
  column-gap: 14px;
}
.gallery-item {
  display: block;
  break-inside: avoid;
  margin-bottom: 14px;
  background: linear-gradient(135deg, var(--navy) 0%, #1a3a6b 100%);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition);
  position: relative;
  text-decoration: none;
}
/* Images keep their FULL natural aspect ratio — no crop */
.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}
.gallery-item:hover { transform: scale(1.02); }
.gallery-item:hover img { transform: scale(1.05); }

/* ── Contact ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  align-items: start;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
  font-family: 'Montserrat', sans-serif;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--dark);
  transition: border-color var(--transition);
  background: var(--white);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--orange); }
.form-group textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 0.875rem; }
.alert-success { background: #d4edda; color: #155724; border-left: 4px solid #28a745; }
.alert-error { background: #f8d7da; color: #721c24; border-left: 4px solid #dc3545; }

/* ── About Timeline ── */
.timeline {
  position: relative;
  padding: 20px 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0; bottom: 0;
  width: 2px;
  background: var(--border);
}
.timeline-item {
  display: flex;
  gap: 30px;
  margin-bottom: 40px;
  position: relative;
}
.timeline-item:nth-child(even) { flex-direction: row-reverse; }
.timeline-year {
  width: 80px;
  height: 80px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.1;
  padding: 6px;
  word-break: break-word;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  color: var(--white);
  font-size: 1.9rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  border: 4px solid var(--orange);
  margin: 0 auto;
  align-self: flex-start;
}
.timeline-content {
  flex: 1;
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.timeline-content h3 { font-size: 1rem; margin-bottom: 6px; }
.timeline-content p { font-size: 0.875rem; color: var(--text-muted); }

/* ── Spare Parts Tabs ── */
.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.filter-tab {
  padding: 8px 20px;
  border-radius: 50px;
  border: 2px solid var(--border);
  background: var(--white);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-family: 'Montserrat', sans-serif;
}
.filter-tab:hover,
.filter-tab.active {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

/* ── Machines Detail ── */
.machine-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all var(--transition);
  display: grid;
  grid-template-columns: 300px 1fr;
}
.machine-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.machine-img {
  background: linear-gradient(135deg, var(--navy) 0%, #1a3a6b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  min-height: 200px;
}
.machine-body { padding: 28px; }
.machine-body h3 { font-size: 1.25rem; margin-bottom: 10px; }
.machine-body p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 16px; line-height: 1.6; }
.feature-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gray);
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 20px;
}
.feature-tag::before {
  content: '✓';
  color: var(--orange);
  font-weight: 700;
  font-size: 0.75rem;
}

/* ── Nav Logo Image ── */
.nav-logo-img {
  transition: height 0.3s ease;
}
#navbar.scrolled .nav-logo-img {
  height: 36px !important;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { order: -1; }
  .gallery-grid { column-count: 3; }
}

@media (max-width: 768px) {
  .section-padding { padding: 55px 0; }
  .nav-menu { display: none; flex-direction: column; position: fixed; top: 0; right: 0; bottom: 0; width: 280px; background: var(--navy); padding: 80px 20px 30px; overflow-y: auto; box-shadow: -10px 0 30px rgba(0,0,0,0.3); gap: 4px; z-index: 10002; transform: translateX(100%); transition: transform 0.35s ease; }
  .nav-menu.open { display: flex; transform: translateX(0); }
  .nav-dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; background: rgba(255,255,255,0.05); box-shadow: none; border: none; border-radius: 8px; margin-top: 4px; }
  .nav-dropdown-toggle span { display: none; }
  .hamburger { display: flex; z-index: 1001; }
  .stats-inner { grid-template-columns: 1fr 1fr; }
  .stat-item:nth-child(2) { border-right: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .machine-card { grid-template-columns: 1fr; }
  .machine-img { min-height: 180px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .timeline::before { left: 40px; }
  .timeline-item,
  .timeline-item:nth-child(even) { flex-direction: column; padding-left: 90px; }
  .timeline-year { position: absolute; left: 0; }
  .hero-title { font-size: 3rem; }
  .about-gst { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .gallery-grid { column-count: 2; column-gap: 10px; }
  .page-header { padding: 120px 0 40px; }
  .page-banner { padding: 120px 0 50px; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .cta-actions { flex-direction: column; align-items: center; }
  /* Phone: keep a clean 2×2 grid (not one tall column) */
  .stats-inner { grid-template-columns: 1fr 1fr; }
  .stat-item { padding: 22px 12px; border-right: none; border-bottom: none; }
  .stat-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.2); }
  .stat-item:nth-child(1), .stat-item:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,0.2); }
  .products-grid { grid-template-columns: 1fr; }
  .gallery-grid { column-count: 2; column-gap: 8px; }
  .services-grid { grid-template-columns: 1fr; }
}

/* =========================================================================
   Mobile Sidebar Drawer (Dark Premium DZanT Inspired)
   ========================================================================= */

/* Hide desktop menu on mobile */
@media (max-width: 900px) {
  .desktop-menu { display: none !important; }
  .mobile-menu-btn { display: flex !important; }
}

/* Hide mobile menu button on desktop */
@media (min-width: 901px) {
  .mobile-menu-btn { display: none !important; }
  .mobile-sidebar { display: none !important; }
  .mobile-sidebar-overlay { display: none !important; }
}

.mobile-sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10009;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

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

.mobile-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  max-width: 85vw;
  height: 100vh;
  height: 100dvh;
  background: linear-gradient(180deg, #141414 0%, #0d0d0d 100%);
  color: #fff;
  z-index: 10010;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 40px rgba(0,0,0,0.5);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  border-left: none;
}

.mobile-sidebar.active {
  transform: translateX(0);
}

.mobile-sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
  flex-shrink: 0;
}

.mobile-sidebar-header img {
  filter: drop-shadow(0 0 8px rgba(247,108,27,0.25));
}

.mobile-close {
  background: rgba(255,255,255,0.08);
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.25s ease;
}

.mobile-close:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
  transform: rotate(90deg);
}

.mobile-sidebar-content {
  flex: 1 1 auto;
  padding: 1.25rem 1.5rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.sidebar-section {
  margin-bottom: 1.75rem;
}

.sidebar-section-title {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(255,255,255,0.35);
  letter-spacing: 2px;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  font-family: 'Montserrat', sans-serif;
}

.sidebar-section a {
  display: flex;
  align-items: center;
  padding: 0.8rem 0.75rem;
  margin: 0 -0.75rem;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  border-bottom: none;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.sidebar-section a:last-child {
  border-bottom: none;
}

.sidebar-section a svg {
  margin-right: 14px;
  color: var(--orange, #3D9B28);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.sidebar-section a:hover,
.sidebar-section a.active {
  color: #fff;
  background: rgba(255,255,255,0.06);
}

.sidebar-section a:active {
  background: rgba(255,255,255,0.1);
  transform: scale(0.98);
}

.sidebar-section a:hover svg {
  transform: translateX(3px);
}

.mobile-sidebar-footer {
  padding: 1.25rem 1.5rem calc(90px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

.sidebar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.5px;
  transition: all 0.25s ease;
}

.btn-call {
  background: rgba(247, 108, 27, 0.08);
  border: 1px solid rgba(247, 108, 27, 0.5);
  color: #3D9B28;
}

.btn-call:hover,
.btn-call:active {
  background: rgba(247, 108, 27, 0.15);
  border-color: #3D9B28;
}

.btn-whatsapp {
  background: #25D366;
  color: #fff;
  border: 1px solid #25D366;
}

.btn-whatsapp:hover,
.btn-whatsapp:active {
  background: #20bd5a;
}


/* ═══════════════════════════════════════════════════════════════════════════
   SINGLE PRODUCT PAGE
   ═══════════════════════════════════════════════════════════════════════════ */

.product-hero {
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.product-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.product-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,28,60,0.3) 0%, rgba(0,28,60,0.85) 100%);
}

.product-hero-content {
  position: relative;
  z-index: 1;
  padding: 80px 0 40px;
}

.product-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
}

.product-breadcrumb a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.2s;
}

.product-breadcrumb a:hover {
  color: #3D9B28;
}

.product-badge {
  display: inline-block;
  background: linear-gradient(135deg, #3D9B28, #ff9553);
  color: #fff;
  padding: 4px 14px;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 20px;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.product-category-badge {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.9);
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 16px;
  margin-bottom: 10px;
  margin-left: 6px;
  backdrop-filter: blur(6px);
}

.product-hero-title {
  font-size: 2.4rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

/* Product Detail Grid */
.product-detail {
  background: #f8fafc;
  overflow-x: hidden;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  min-width: 0;
}

.product-img-box {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,28,60,0.08);
  border: 1px solid rgba(0,28,60,0.06);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.product-img-box:hover img {
  transform: scale(1.05);
}

.product-img-placeholder {
  background: linear-gradient(135deg, #001C3C, #003366);
}

.product-img-placeholder span {
  font-size: 5rem;
}

.product-detail-info h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #001C3C;
  margin-bottom: 16px;
}

.product-description {
  font-size: 1rem;
  color: #4a5568;
  line-height: 1.75;
  margin-bottom: 28px;
}

/* Features */
.product-features-section {
  margin-bottom: 28px;
}

.product-features-section h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #001C3C;
  margin-bottom: 14px;
}

.product-features-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.product-features-list li {
  font-size: 0.92rem;
  color: #334155;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 12px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid rgba(0,28,60,0.06);
  transition: background 0.2s;
}

.product-features-list li:hover {
  background: #f1f5f9;
}

.feature-check {
  color: #10b981;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

/* CTA Group */
.product-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 12px;
}

.btn-outline-navy {
  background: transparent;
  color: #001C3C;
  border: 2px solid #001C3C;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-outline-navy:hover {
  background: #001C3C;
  color: #fff;
}

/* Trust Badges */
.product-trust {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 20px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(0,28,60,0.06);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
}

.trust-item span {
  font-size: 1.2rem;
}

/* Related Products */
.bg-gray {
  background: #f0f4f8;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.product-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,28,60,0.06);
  border: 1px solid rgba(0,28,60,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,28,60,0.12);
}

.product-card-img {
  height: 180px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  overflow: hidden;
}

.product-card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-card-body .btn {
  margin-top: auto;
}

.product-card-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #001C3C;
  margin-bottom: 6px;
}

.product-card-body p {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.5;
}

.product-card-tag {
  display: inline-block;
  background: #FFF3E8;
  color: #3D9B28;
  padding: 2px 10px;
  border-radius: 10px;
  font-size: 0.68rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.btn-sm {
  padding: 6px 16px;
  font-size: 0.8rem;
}


/* ── Hide FABs when sidebar is open ── */
body.sidebar-open #ka-chat-root {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
body:not(.sidebar-open) #ka-chat-root {
  opacity: 1;
  pointer-events: all;
  transition: opacity 0.3s ease 0.2s;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE SEARCH BAR
   ═══════════════════════════════════════════════════════════════════════════ */

.mobile-search-wrapper {
  display: none;
}

@media (max-width: 768px) {
  .mobile-search-wrapper {
    display: flex;
    align-items: center;
    flex: 1;
    max-width: 140px;
    margin-left: 8px;
  }

  .mobile-search-wrapper form {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.12);
    border-radius: 20px;
    padding: 4px 10px;
    width: 100%;
    border: 1px solid rgba(255,255,255,0.15);
    transition: background 0.2s, border-color 0.2s;
  }

  .mobile-search-wrapper form:focus-within {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.3);
  }

  .mobile-search-wrapper input {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 0.78rem;
    outline: none;
    width: 100%;
    box-sizing: border-box;
    min-height: 28px;
    line-height: 1.45;
    padding: 6px 0;
  }

  .mobile-search-wrapper input::placeholder {
    color: rgba(255,255,255,0.55);
  }

  .mobile-search-wrapper .search-icon {
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    flex-shrink: 0;
    margin-right: 6px;
  }
}


/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE RESPONSIVE — PRODUCT PAGE
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .product-hero-title {
    font-size: 1.6rem;
  }

  .product-hero-content {
    padding: 60px 0 28px;
  }

  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .product-features-list {
    grid-template-columns: 1fr;
  }

  .product-cta-group {
    flex-direction: column;
  }

  .product-cta-group .btn-lg {
    text-align: center;
    width: 100%;
  }

  .product-trust {
    grid-template-columns: 1fr;
  }

  .products-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .product-card-img {
    height: 120px;
    font-size: 2rem;
  }

  .product-card-body {
    padding: 12px;
  }

  .product-card-body h3 {
    font-size: 0.88rem;
  }
}


/* ═══════════════════════════════════════════════════════════════════════════
   GALLERY MARQUEE (Home Page Infinite Scroll)
   ═══════════════════════════════════════════════════════════════════════════ */

.gallery-marquee-wrap {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

.gallery-marquee {
  overflow: hidden;
  width: 100%;
}

.gallery-marquee-track {
  display: flex;
  gap: 16px;
  animation: galleryScroll 35s linear infinite;
  width: max-content;
}

.gallery-marquee-wrap:hover .gallery-marquee-track {
  animation-play-state: paused;
}

@keyframes galleryScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.gallery-marquee-item {
  flex-shrink: 0;
  width: 260px;
  height: 180px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #16233F, #1E3055);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.gallery-marquee-item:hover {
  transform: scale(1.04);
}
.gallery-marquee-item {
  cursor: pointer;
}

.gallery-marquee-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-marquee-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.gallery-marquee-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(0deg, rgba(10,31,68,0.9), transparent);
  padding: 24px 12px 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 768px) {
  .gallery-marquee-item {
    width: 200px;
    height: 140px;
  }
  .gallery-marquee-track {
    gap: 12px;
    animation-duration: 25s;
  }
}

@media (max-width: 480px) {
  .gallery-marquee-item {
    width: 160px;
    height: 120px;
  }
}


/* ═══════════════════════════════════════════════════════════════════════════
   HOME PAGE TESTIMONIALS
   ═══════════════════════════════════════════════════════════════════════════ */

.home-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.home-testim-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  transition: all 0.35s ease;
  position: relative;
}

.home-testim-card::before {
  content: '"';
  position: absolute;
  top: 16px;
  right: 24px;
  font-size: 3.5rem;
  color: rgba(247,108,27,0.08);
  font-family: serif;
  line-height: 1;
}

.home-testim-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(247,108,27,0.12);
  border-color: rgba(247,108,27,0.15);
}

.home-testim-stars {
  color: #FBBF24;
  font-size: 0.95rem;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.home-testim-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  line-height: 1.7;
  color: #4B5563;
  flex-grow: 1;
  margin-bottom: 20px;
}

.home-testim-author {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid rgba(0,0,0,0.06);
  padding-top: 16px;
}

.home-testim-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--orange));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(247,108,27,0.25);
}

.home-testim-author strong {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.88rem;
  color: var(--navy);
}

.home-testim-author span {
  font-size: 0.75rem;
  color: #6B7280;
}

@media (max-width: 1024px) {
  .home-testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .home-testimonials-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .home-testim-card {
    padding: 22px 18px;
  }
}


/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE UI FIXES
   ═══════════════════════════════════════════════════════════════════════════ */

/* Fix white space on page refresh */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* ── Mobile Header Polish ── */
@media (max-width: 768px) {
  #navbar .nav-inner {
    padding: 12px 0;
  }
  .nav-logo-img {
    height: 38px !important;
  }
  #navbar.scrolled .nav-logo-img {
    height: 32px !important;
  }
  .nav-brand-text {
    font-size: 1.4rem !important;
  }
  .hamburger {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background 0.2s ease;
    flex-shrink: 0;
  }
  .hamburger:active {
    background: rgba(255,255,255,0.1);
  }
}

@media (max-width: 400px) {
  .nav-logo-img {
    height: 32px !important;
  }
  .nav-brand-text {
    font-size: 1.2rem !important;
    letter-spacing: 1px !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE RESPONSIVE MEGA-FIX
   Services 2×2 grid, Why Choose compact, Product overflow, Office cards
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Global overflow fix (mobile) ── */
img, video, iframe, table, pre, code { max-width: 100%; }
.container { overflow-x: hidden; }

/* ── CRITICAL: Navbar container must NOT clip dropdown menus ──
   .container { overflow-x: hidden } creates a clipping context that hides
   absolutely-positioned dropdown children. Override it here so nav dropdowns
   can escape the container boundary and render correctly. */
#navbar .container,
#navbar .nav-inner,
#navbar .nav-menu,
#navbar .nav-dropdown {
  overflow: visible !important;
}

/* ── CRITICAL: Section-padding containers must NOT clip AOS-animated titles ──
   AOS applies transform: translateY(30px) initially. Combined with overflow-x:hidden
   on the container, this can create a clipping context that cuts off text on mobile.
   The section containers only need horizontal overflow control, not vertical. */
.section-padding > .container,
section > .container {
  overflow-x: clip; /* clip only X, not Y — prevents horizontal scrollbar but allows
                       vertically-transformed AOS elements to render without clipping */
}

@media (max-width: 768px) {

  /* ── Services: 2×2 compact cards ── */
  .services-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
  }
  .service-card {
    padding: 18px 14px;
    text-align: center;
  }
  .service-icon {
    width: 48px; height: 48px;
    font-size: 1.2rem;
    margin: 0 auto 12px;
    border-radius: 12px;
  }
  .service-card h3 {
    font-size: 0.85rem;
    margin-bottom: 6px;
  }
  .service-card p {
    font-size: 0.75rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .service-card::before { display: none; }

  /* ── Why Choose: 2×2 compact cards ── */
  .why-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
  }
  .why-card {
    padding: 22px 14px;
  }
  .why-icon {
    font-size: 1.8rem;
    margin-bottom: 10px;
  }
  .why-card h3 {
    font-size: 0.85rem;
    margin-bottom: 6px;
  }
  .why-card p {
    font-size: 0.72rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* ── Offices: 2×2 compact cards ── */
  .offices-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
  }
  .office-card {
    padding: 18px 14px;
  }
  .office-icon {
    width: 40px; height: 40px;
    font-size: 1.1rem;
    margin-bottom: 10px;
  }
  .office-card h3 { font-size: 0.88rem; margin-bottom: 4px; }
  .office-card p {
    font-size: 0.72rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* ── Machine cards: stack nicely ── */
  .machine-card {
    grid-template-columns: 1fr !important;
    border-left: none !important;
    border-top: 3px solid transparent;
  }
  .machine-card:hover { border-top-color: #3D9B28; }
  .machine-img {
    min-height: 140px !important;
    max-height: 180px !important;
  }
  .machine-body {
    padding: 16px !important;
  }
  .machine-body h3 {
    font-size: 1.05rem;
    word-break: break-word;
    overflow-wrap: break-word;
  }
  .machine-body p {
    font-size: 0.82rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .feature-tags {
    gap: 6px;
  }
  .feature-tag {
    font-size: 0.7rem;
    padding: 3px 8px;
  }

  /* ── Product detail page: fix overflow ── */
  .product-detail-info h2 {
    font-size: 1.3rem !important;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }
  .product-description {
    font-size: 0.88rem !important;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  /* Trust badges: ensure no overflow */
  .trust-grid-v2 {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .trust-card-v2 {
    padding: 10px;
    gap: 8px;
  }
  .trust-text-v2 strong {
    font-size: 0.7rem;
    word-break: break-word;
  }
  .trust-text-v2 span {
    font-size: 0.62rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* Product CTA buttons: full width stacked */
  .product-cta-group {
    flex-direction: column !important;
  }
  .product-cta-group .btn,
  .product-cta-group .btn-lg {
    width: 100% !important;
    text-align: center;
    justify-content: center;
    padding: 14px 20px !important;
    font-size: 0.92rem !important;
  }

  /* CTA Banner compact */
  .cta-banner { padding: 45px 0; }
  .cta-banner h2 { font-size: 1.3rem; }
  .cta-banner p { font-size: 0.85rem; margin-bottom: 20px; }

  /* About section stack */
  .about-grid {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }
  .about-visual { order: -1; padding: 30px; }
  .about-logo-big { font-size: 2rem; }

  /* Section padding compact */
  .section-padding { padding: 50px 0 !important; }
  .section-subtitle { font-size: 0.85rem; margin: 0 auto 30px; }

  /* Contact grid */
  .contact-grid { grid-template-columns: 1fr !important; gap: 30px !important; }

  /* Gallery */
  .gallery-grid { column-count: 2 !important; }

  /* Stats bar */
  .stats-inner { grid-template-columns: 1fr 1fr !important; }

  /* Testimonials: horizontal scroll on mobile */
  .home-testimonials-grid {
    display: flex !important;
    grid-template-columns: unset !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    padding-bottom: 12px;
    scrollbar-width: none;
  }
  .home-testimonials-grid::-webkit-scrollbar { display: none; }
  .home-testim-card {
    flex-shrink: 0;
    width: 85vw;
    max-width: 320px;
    scroll-snap-align: start;
  }
}

@media (max-width: 480px) {

  /* Services: keep 2x2 on small phones too */
  .services-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }
  .service-card { padding: 14px 10px; }
  .service-icon { width: 36px; height: 36px; font-size: 1rem; }
  .service-card h3 { font-size: 0.78rem; }
  .service-card p { font-size: 0.68rem; -webkit-line-clamp: 2; }

  /* Why Choose: keep 2 col but tighter */
  .why-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }
  .why-card {
    padding: 16px 10px;
  }
  .why-icon { font-size: 1.5rem; }
  .why-card h3 { font-size: 0.78rem; }
  .why-card p { -webkit-line-clamp: 2; font-size: 0.68rem; }

  /* Offices: keep 2x2 on small phones */
  .offices-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }
  .office-card { padding: 14px 10px; }
  .office-icon { font-size: 1.4rem; }
  .office-card h3 { font-size: 0.78rem; }
  .office-card p { font-size: 0.68rem; -webkit-line-clamp: 2; }

  /* Trust badges single col */
  .trust-grid-v2 {
    grid-template-columns: 1fr !important;
  }

  /* Stats — clean 2×2 grid on phone (not one tall column) */
  .stats-inner { grid-template-columns: 1fr 1fr !important; }
  .stat-item { padding: 22px 12px !important; border-right: none !important; border-bottom: none !important; }
  .stat-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.2) !important; }
  .stat-item:nth-child(1), .stat-item:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,0.2) !important; }
  .stat-number { font-size: 1.8rem !important; }

  /* Hero */
  .hero-title { font-size: 2.2rem !important; }
  .hero-desc { font-size: 0.88rem; }
  .hero-actions { flex-direction: column; gap: 10px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   DARK SECTION TEXT COLOR FIXES
   "Why Choose" section has bg-navy. Global h-tag rule sets color: var(--navy)
   which is invisible on dark background. Override here explicitly.
   ═══════════════════════════════════════════════════════════════════════════ */

/* Force white text inside all dark (bg-navy) section cards */
.bg-navy .why-card h3,
.bg-navy .why-card p,
.bg-navy .why-card {
  color: rgba(255, 255, 255, 0.9) !important;
}
.bg-navy .why-card h3 {
  color: #ffffff !important;
}
/* The section-title "Why Choose RAGHAV FOOD?" — also inside bg-navy,
   already forced inline via style="color:#fff" but reinforce here */
.bg-navy .section-title {
  color: #ffffff !important;
}
/* Ensure span (orange) stays orange inside navy sections */
.bg-navy .section-title span {
  color: var(--orange) !important;
}
/* Why-icon: emoji stays as-is (color: auto) */
.bg-navy .why-icon {
  color: inherit;
}

/* ═══════════════════════════════════════════════════════════════════════════
   GALLERY MARQUEE — TOUCH UX & SWIPE CURSOR
   Show grab cursor so mobile users understand it is interactive
   ═══════════════════════════════════════════════════════════════════════════ */

.gallery-marquee-wrap {
  /* Contain swipe motion within the gallery band — do NOT use overflow:hidden
     on the track itself or it clips the animation. Use the wrap instead. */
  overflow: hidden;
  /* Hint for desktop users */
  cursor: grab;
}
.gallery-marquee-wrap:active { cursor: grabbing; }

/* Touch devices: show a subtle "swipe" hint shadow on edges */
.gallery-marquee-wrap::before,
.gallery-marquee-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40px;
  pointer-events: none;
  z-index: 2;
}
.gallery-marquee-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--gray, #F5F5F5), transparent);
}
.gallery-marquee-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--gray, #F5F5F5), transparent);
}
/* Give the wrap position:relative so pseudo-elements anchor correctly */
.gallery-marquee-wrap { position: relative; }

/* ═══════════════════════════════════════════════════════════════════════════
   IMAGE PROTECTION — Prevent drag-save on all site images.
   This adds a transparent overlay preventing casual drag-to-desktop
   and right-click-save on product/gallery images specifically.
   Regular UI images (logos, icons) are excluded via the :not selector.
   ═══════════════════════════════════════════════════════════════════════════ */

/* Disable native drag AND right-click context menu on ALL content images:
   - Gallery marquee (homepage slider)
   - Product card thumbnails (machines/spare-parts listing pages)
   - machine-img (older machine card pattern)
   - gallery-grid (gallery page)
   - gallery-main-img (product detail page — main large image)
   - gallery-thumb-item img (product detail page — thumbnail strip)
   - #lightboxImg (full-screen lightbox overlay image)
   - cross-sell-img img (related/cross-sell product cards)
*/
.gallery-marquee-item img,
.product-card-img img,
.machine-img img,
.gallery-grid img,
.gallery-main-img,
.gallery-thumb-item img,
#lightboxImg,
.cross-sell-img img,
/* Spare-parts page: all card image areas */
.sp-card-media img,
.sp-card img,
/* Hero orbit floating icons — blocks right-click "Save Image" on the revolving machine icons */
.floating-icon img,
.visual-container > .central-icon img {
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-user-select: none;
  user-select: none;
  pointer-events: none; /* blocks right-click context menu on these specific images */
}

/* Re-enable pointer on the parent card so click events still fire
   for lightbox / navigation. The img tag itself blocks right-click,
   the parent div handles the click. */
.gallery-marquee-item,
.product-card-img,
.machine-img,
.gallery-main-wrap,      /* product detail: click opens lightbox */
.gallery-thumb-item,     /* product detail: click switches main image */
.cross-sell-img,
/* Hero orbit: the anchor/div wrapping the image handles the click */
.floating-icon,
.orbit-counter-spin {
  pointer-events: auto;
  position: relative;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FAB MOBILE TOUCH FIX
   Ensure floating action buttons (WhatsApp, Call, Chat) are always
   tappable on mobile. Explicit pointer-events + touch-action overrides
   any inherited pointer-events:none from scroll-hide logic or image
   protection rules above that might bleed into the FAB z-stack.
   ═══════════════════════════════════════════════════════════════════════════ */
#ka-fab-stack,
#ka-fab-stack .ka-fab,
#ka-fab-stack .ka-fab-circle,
#ka-fab-stack .ka-fab > a,
#ka-chat-root {
  /* Force clicks/taps to always register — never inherit none from parent */
  pointer-events: auto !important;
  /* Use manipulation to eliminate 300ms tap delay on mobile Safari/Chrome */
  touch-action: manipulation;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER / MOBILE NAV GAP
   NOTE: body padding-bottom for the mobile sticky bottom nav bar is managed
   inside footer.php inline CSS (the .ka-mobile-nav media query block).
   We only handle footer margin cleanup here to avoid double-declaring.
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  /* Ensure no accidental extra margin on the footer element itself */
  footer, .site-footer, .ka-footer-v2 {
    margin-bottom: 0 !important;
  }
}

/* Phone header fit: keep search usable without crowding logo/account/menu controls. */
@media (max-width: 480px) {
  .nav-inner {
    gap: 8px;
  }
  .nav-logo {
    gap: 6px;
  }
  .nav-brand-text {
    display: none !important;
  }
  .mobile-search-wrapper {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    margin-left: 2px;
  }
  .mobile-quick-actions {
    flex: 0 0 auto;
    margin-left: 0 !important;
    margin-right: 6px !important;
  }
}
