/* ============================================================
   MANGALAM TRADING COMPANY — COMMON B2B PAGES STYLESHEET
   Supports: Daily Market Rates, Industries Served, Packaging & Logistics, About Us, Contact & Visit
============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..800;1,400..800&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --font-display: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --red-dark: #7a1515;
  --red: #9b1e1e;
  --gold: #D4A437;
  --gold-light: #e8c060;
  --ivory: #fdf3e1;
  --ivory-dark: #ede9df;
  --charcoal: #1A1A1A;
  --white: #FFFFFF;
  --text: #2c2c2c;
  --text-muted: #555555;
  --border: #e0dcd3;
  --radius: 12px;
  --shadow: 0 8px 30px rgba(0,0,0,0.06);
}

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

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background-color: var(--ivory);
  line-height: 1.65;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

ul {
  list-style: none;
}

/* ============================================================
   COMPLIANCE STRIP
============================================================ */
.compliance-strip {
  background: linear-gradient(90deg, #5b1111 0%, #7c1818 50%, #5b1111 100%);
  color: #e2f0e8;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 7px 15px;
  border-bottom: 1px solid rgba(212, 164, 55, 0.3);
  overflow-x: auto;
  white-space: nowrap;
  position: relative;
  z-index: 1001;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.compliance-strip__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 1400px;
  margin: 0 auto;
}
.compliance-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.2px;
}
.compliance-badge strong {
  color: var(--gold);
  font-weight: 600;
}
.compliance-divider {
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.9rem;
}
@media (max-width: 992px) {
  .compliance-strip__inner { justify-content: flex-start; gap: 16px; }
  .compliance-strip { padding: 6px 12px; }
}

/* ============================================================
   NAVIGATION
============================================================ */
#navbar {
  position: sticky;
  top: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  background: var(--ivory);
  border-bottom: 1px solid rgba(212,164,55,0.25);
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.2;
}
.nav-logo-text span {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 2px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  margin-left: auto;
  padding: 0;
}
.nav-links a:not(.nav-cta) {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--charcoal);
  text-decoration: none;
  transition: color 0.2s ease;
  position: relative;
  padding: 0 0 4px 0;
}
.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background-color: var(--gold, #D4A437);
  transition: width 0.25s ease-in-out;
}
.nav-links a:not(.nav-cta):hover {
  color: var(--red-dark);
}
.nav-links a:not(.nav-cta):hover::after,
.nav-links a:not(.nav-cta).is-active::after {
  width: 100%;
}
.nav-cta {
  background: var(--red-dark) !important;
  color: var(--white) !important;
  padding: 10px 20px !important;
  border-radius: 4px;
  font-weight: 600 !important;
  border: none !important;
  box-shadow: none;
  transition: background 0.2s ease, transform 0.2s ease;
}
.nav-cta:hover {
  background: var(--red-dark) !important;
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  background: var(--white, #ffffff);
  border: 1px solid rgba(212, 164, 55, 0.45);
  border-radius: 6px;
  cursor: pointer;
  padding: 8px 11px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transition: all 0.2s ease;
  flex-direction: column;
  gap: 5px;
}
.hamburger:active, .hamburger:hover {
  transform: scale(0.96);
  background: #fcfbf8;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.hamburger span {
  width: 22px;
  height: 2.5px;
  background-color: var(--red-dark);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.mobile-nav {
  display: none;
  position: absolute;
  top: 100%; left: 0; right: 0;
  max-height: 85vh;
  overflow-y: auto;
  flex-direction: column;
  background: var(--red-dark, #7a1515);
  padding: 1rem 2rem 1.5rem;
  gap: 0.75rem;
  border-bottom: 2px solid var(--gold, #D4A437);
  box-shadow: 0 15px 35px rgba(0,0,0,0.45);
  z-index: 99999;
}
.mobile-nav.open,
.mobile-nav.is-open { display: flex; }
.mobile-nav a {
  color: white;
  text-decoration: none;
  font-family: var(--font-body, inherit);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
}

/* ============================================================
   PAGE HERO SECTION
============================================================ */
.page-hero {
  position: relative;
  background: var(--ivory);
  color: var(--charcoal);
  padding: 5rem 5% 6rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  border-bottom: 3px solid var(--border);
}

#about-hero {
  position: relative;
  display: flex;
  flex-direction: row;
  height: 520px;
  overflow: hidden;
  border-bottom: 3px solid var(--gold);
}

/* Left panel - vintage sepia */
.about-hero__panel {
  position: relative;
  flex: 1;
  background-size: cover;
  background-position: center;
  transition: flex 0.7s cubic-bezier(0.77, 0, 0.175, 1);
  overflow: hidden;
}

.about-hero__panel--left {
  background-image: url('images/vintage-shop.jpg');
  filter: sepia(0.6) brightness(0.7);
}

.about-hero__panel--right {
  background-image: url('images/modern-grain-sacks.jpg');
  filter: brightness(0.65);
}

#about-hero:hover .about-hero__panel--left {
  flex: 0.6;
}
#about-hero:hover .about-hero__panel--right {
  flex: 1.4;
}

.about-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(6, 20, 10, 0.75) 100%);
}

/* Corner labels */
.about-hero__label {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: white;
  z-index: 2;
}
.about-hero__year {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}
.about-hero__label-text {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  text-shadow: 0 1px 6px rgba(0,0,0,0.8);
}

/* Center divider */
.about-hero__divider {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 64px;
  flex-shrink: 0;
  background: rgba(6, 20, 10, 0.6);
  backdrop-filter: blur(6px);
}
.about-hero__divider-line {
  flex: 1;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
}
.about-hero__divider-badge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--maroon);
  border: 2px solid var(--gold);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: white;
  line-height: 1;
}
.about-hero__divider-badge span {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
}
.about-hero__divider-badge small {
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
}

/* Center floating text overlay */
.about-hero__center-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
  text-align: center;
  width: 60%;
  max-width: 640px;
  color: white;
  pointer-events: none;
}
.about-hero__center-text .page-hero__eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.about-hero__center-text .page-hero__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 2px 20px rgba(0,0,0,0.9);
  margin-bottom: 1rem;
  color: white;
}
.about-hero__center-text .page-hero__subtitle {
  font-size: 1.1rem;
  color: var(--text);
  max-width: 800px;
  line-height: 1.7;
  font-weight: 400;
}

/* Responsive */
@media (max-width: 768px) {
  /* Hotspot Lightbox Mode on Mobile */
  .lightbox-modal.hotspot-mode {
    background-color: rgba(0, 0, 0, 0.7);
    align-items: flex-start;
    padding-top: 100px;
  }
  .lightbox-modal.hotspot-mode .lightbox-modal__content {
    max-width: 80%;
    max-height: 40vh;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 3px solid var(--ivory);
  }
  .lightbox-modal.hotspot-mode .lightbox-close {
    top: 50px;
    right: 20px;
    color: white;
  }

  /* Gallery Coverflow mobile tweaks */
  .coverflow-content {
    padding: 10px 15px;
  }
  .coverflow-content h3 {
    font-size: 1.1rem;
    margin-bottom: 2px;
  }
  .coverflow-content p {
    font-size: 0.85rem;
    -webkit-line-clamp: 1;
  }

  #about-hero {
    flex-direction: column;
    height: auto;
  }
  .about-hero__panel {
    height: 250px;
    flex: none !important;
  }
  .about-hero__panel--left {
    background-position: top center !important;
  }
  .about-hero__panel:hover {
    flex: none !important;
  }
  .about-hero__divider {
    flex-direction: row;
    width: 100%;
    height: 48px;
  }
  .about-hero__divider-line {
    flex: 1;
    height: 2px;
    width: auto;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
  }
  .about-hero__center-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95%;
    margin: 0;
    padding: 0;
    pointer-events: none;
    color: white !important;
    text-align: center !important;
    background: transparent;
    z-index: 20;
  }
  .about-hero__center-text .page-hero__title {
    color: white !important;
    text-align: center !important;
  }
  .about-hero__center-text .page-hero__subtitle {
    color: var(--text) !important;
    text-align: center !important;
    text-shadow: 0 1px 4px rgba(255,255,255,0.8);
  }
  .about-hero__center-text .page-hero__title {
    font-size: 1.6rem !important;
    margin-bottom: 0.5rem !important;
  }
  .about-hero__center-text .page-hero__subtitle {
    font-size: 0.9rem !important;
  }
  .about-hero__label {
    bottom: 0.75rem;
  }
  .about-hero__panel--left .about-hero__label {
    top: 1rem;
    bottom: auto;
  }
  .about-hero__year {
    font-size: 1.8rem;
  }
  .about-hero__divider-badge {
    display: none !important;
  }
  .about-hero__divider {
    height: 4px;
  }
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(rgba(212, 164, 55, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.7;
}
.page-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
}
.page-hero__eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red-dark);
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(155, 30, 30, 0.08);
  padding: 5px 12px;
  border-radius: 4px;
  border: 1px solid rgba(155, 30, 30, 0.2);
}
.page-hero__title {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--red-dark);
  margin-bottom: 1.5rem;
  line-height: 1.15;
  letter-spacing: -0.5px;
}
.page-hero__subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--text-muted);
  max-width: 700px;
  font-weight: 400;
  margin: 0 auto;
}

/* ============================================================
   CONTAINER & SECTION COMMONS
============================================================ */
.content-section {
  padding: 5rem 5%;
  max-width: 1350px;
  margin: 0 auto;
}
.section-header {
  margin-bottom: 3.5rem;
  max-width: 750px;
}
.section-tag {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--red-dark);
  margin-bottom: 0.6rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
  font-weight: 700;
  color: var(--red-dark);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.section-desc {
  font-size: 1.08rem;
  color: var(--text-muted);
}

/* ============================================================
   DAILY MARKET RATES TABLE & LEAD-GEN
============================================================ */
.rates-container {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 4rem;
}
.rates-table-header {
  background: var(--red-dark);
  color: var(--white);
  padding: 1.5rem 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border-bottom: 2px solid var(--gold);
}
.rates-table-title h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--white);
}
.rates-table-title p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
}
.rates-update-badge {
  background: rgba(212, 164, 55, 0.2);
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}
.table-responsive {
  overflow-x: auto;
}
.rates-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 750px;
}
.rates-table th {
  background-color: #f3efe5;
  padding: 1.2rem 1.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--red-dark);
  border-bottom: 2px solid var(--border);
}
.rates-table td {
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.rates-table tbody tr:hover {
  background-color: rgba(155, 30, 30, 0.03);
}
.commodity-name {
  font-weight: 700;
  color: var(--text);
  font-size: 1.05rem;
}
.commodity-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.badge-grade {
  display: inline-block;
  background: #E3EFE9;
  color: var(--red-dark);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  border: 1px solid rgba(11, 93, 59, 0.2);
}
.badge-pack {
  font-family: inherit;
  font-weight: 500;
  font-size: 0.85rem;
  background: #f7f5f0;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid var(--border);
}
.price-action-cell {
  font-weight: 700;
  color: var(--red-dark);
}
.price-call-btn {
  display: inline-block;
  white-space: nowrap;
  text-align: center;
  background: var(--red-dark);
  color: var(--white);
  padding: 8px 18px;
  min-width: 160px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(11, 93, 59, 0.25);
  transition: all 0.2s;
  text-decoration: none;
}
.price-call-btn:hover {
  background: var(--red);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(11, 93, 59, 0.35);
}

.lead-cta-box {
  background: linear-gradient(135deg, #7a1515 0%, #5b1111 100%);
  color: var(--white);
  padding: 3rem 2.5rem;
  border-radius: var(--radius);
  border: 1.5px solid var(--gold);
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
  box-shadow: 0 12px 35px rgba(0,0,0,0.15);
  overflow: hidden;
}
.lead-cta-box h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--white);
  line-height: 1.35;
}
.lead-cta-box p {
  font-size: 0.9rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.85);
  max-width: 760px;
  margin: 0 auto 1.75rem;
}
.call-numbers-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
  margin-top: 1.5rem;
}
.call-number-card {
  background: var(--white);
  color: var(--red-dark);
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 0.92rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  border: 1.5px solid var(--gold);
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: normal;
  text-align: center;
  max-width: 100%;
  word-break: break-word;
}
.call-number-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.25);
  color: var(--red-dark);
}
.call-number-card.btn-theme {
  background: var(--red-dark);
  color: var(--white);
  border: 1.5px solid rgba(212, 164, 55, 0.6);
}
.call-number-card.btn-theme:hover {
  background: var(--red);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.3);
  border-color: var(--gold);
}

@media (max-width: 768px) {
  /* Hotspot Lightbox Mode on Mobile */
  .lightbox-modal.hotspot-mode {
    background-color: rgba(0, 0, 0, 0.7);
    align-items: flex-start;
    padding-top: 100px;
  }
  .lightbox-modal.hotspot-mode .lightbox-modal__content {
    max-width: 80%;
    max-height: 40vh;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 3px solid var(--ivory);
  }
  .lightbox-modal.hotspot-mode .lightbox-close {
    top: 50px;
    right: 20px;
    color: white;
  }

  /* Gallery Coverflow mobile tweaks */
  .coverflow-content {
    padding: 10px 15px;
  }
  .coverflow-content h3 {
    font-size: 1.1rem;
    margin-bottom: 2px;
  }
  .coverflow-content p {
    font-size: 0.85rem;
    -webkit-line-clamp: 1;
  }

  .lead-cta-box {
    padding: 2.5rem 1.8rem;
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .lead-cta-box {
    padding: 2rem 1.2rem;
    border-radius: 10px;
    margin: 3rem 12px 0;
  }
  .lead-cta-box h3 {
    font-size: 1.3rem;
  }
  .lead-cta-box p {
    font-size: 0.88rem;
    margin-bottom: 1.3rem;
  }
  .call-numbers-wrap {
    flex-direction: column;
    width: 100%;
    gap: 0.85rem;
    margin-top: 1.2rem;
  }
  .call-number-card,
  .call-number-card.btn-theme {
    width: 100%;
    padding: 11px 16px;
    font-size: 0.88rem;
    justify-content: center;
  }
}

/* ============================================================
   GRID & CARDS (Industries, Logistics, About)
============================================================ */
.b2b-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 2.5rem;
  margin-top: 2.5rem;
}
.b2b-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 2rem;
  margin-top: 2rem;
  perspective: 1200px; /* added perspective to parent */
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: visible;
  transform-style: preserve-3d;
  /* perspective moved to parent */
}
.feature-card:hover {
  transform: translateY(-10px) rotateX(10deg) rotateY(-5deg) scale3d(1.05, 1.05, 1.05);
  box-shadow: -20px 30px 40px rgba(0,0,0,0.15);
  border-color: var(--gold);
  z-index: 10;
}
.feature-card__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  transform: translateZ(30px);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.feature-card:hover .feature-card__img {
  transform: translateZ(50px) scale(1.05);
  box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}
/* Pseudo-element for a glowing sheen */
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 50%);
  pointer-events: none;
  transform: translateZ(1px);
}
.feature-card__icon {
  width: 60px;
  height: 60px;
  background: #fdf3e1; /* ivory */
  color: var(--gold);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(212, 164, 55, 0.3);
  transform: translateZ(40px); /* 3D pop out */
  transition: transform 0.4s ease;
}
.feature-card:hover .feature-card__icon {
  transform: translateZ(60px) scale(1.1);
}
.feature-card__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--red-dark);
  margin-bottom: 1rem;
  transform: translateZ(30px);
  transition: transform 0.4s ease;
}
.feature-card:hover .feature-card__title {
  transform: translateZ(40px);
}
.feature-card__text {
  color: var(--text-muted);
  font-size: 0.98rem;
  flex-grow: 1;
  margin-bottom: 1.5rem;
  transform: translateZ(20px);
  transition: transform 0.4s ease;
}
.feature-card:hover .feature-card__text {
  transform: translateZ(25px);
}
.feature-list {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  list-style: none;
  transform: translateZ(10px);
  transition: transform 0.4s ease;
}
.feature-card:hover .feature-list {
  transform: translateZ(15px);
}
.feature-list li {
  position: relative;
  padding-left: 32px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.6rem;
}
.feature-list li::before {
  content: '✓';
  color: var(--gold);
  font-weight: 800;
  background: rgba(212, 164, 55, 0.15);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: 0;
  top: 0; /* Align perfectly with first line of text */
  font-size: 0.75rem;
}

/* ==========================================================================
   3D SWING DOOR COMPONENT
   ========================================================================== */
.feature-card.door-card {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  display: grid;
  perspective: 1500px;
}

/* We override the previous 3D hover from feature-card for the door card */
.feature-card.door-card:hover {
  transform: none;
  box-shadow: none;
  border-color: transparent;
}
.feature-card.door-card::before {
  display: none;
}

.door-card > * {
  grid-area: 1 / 1;
}

.door-card__front {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transform-origin: left center;
  transition: transform 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 2;
  display: flex;
  flex-direction: column;
  /* Reset child pops since the whole door moves */
  transform-style: preserve-3d;
}

.door-card:hover .door-card__front {
  transform: rotateY(-110deg);
  box-shadow: 20px 10px 30px rgba(0,0,0,0.15);
}

/* Inner elements reset 3D pop for door card so they stay on the door */
.door-card__front .feature-card__icon,
.door-card__front .feature-card__title,
.door-card__front .door-card__img {
  transform: none !important;
}

.door-card__img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
}

.door-card__hint {
  margin-top: auto;
  padding-top: 1rem;
  color: var(--gold);
  font-weight: bold;
  font-size: 0.85rem;
  text-align: right;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.door-card__inside {
  background: var(--ivory);
  padding: 1.5rem;
  border-radius: 20px;
  border: 1px solid var(--gold);
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center; /* Vertically center content */
  box-shadow: inset 0 10px 20px rgba(0,0,0,0.05);
}

/* Remove 3D pop from inside elements */
.door-card__inside .feature-card__text,
.door-card__inside .feature-list {
  transform: none !important;
}

/* Tighten inside text to reduce overall card height */
.door-card__inside .feature-card__text {
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
  line-height: 1.4;
  flex-grow: 0; /* Override flex-grow so it doesn't push the list down */
}

.door-card__inside .feature-list {
  padding-top: 0.8rem;
}

.door-card__inside .feature-list li {
  font-size: 0.82rem;
  margin-bottom: 0.4rem;
}

/* ============================================================
   LOGISTICS TIMELINE & SPECS
============================================================ */
.spec-box {
  background: var(--white);
  border-left: 5px solid var(--gold);
  padding: 1.8rem 2.2rem;
  margin-bottom: 1.5rem;
  border-radius: 0 12px 12px 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
.spec-box h4 {
  font-size: 1.2rem;
  color: var(--red-dark);
  margin-bottom: 0.5rem;
  font-weight: 700;
}
.spec-box p {
  color: var(--text-muted);
  font-size: 0.96rem;
}

/* ============================================================
   ABOUT & CONTACT CUSTOM STYLES
============================================================ */
.about-hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 1.5rem;
  margin: 3.5rem 0;
}
.stat-card-b2b {
  background: var(--white);
  padding: 2rem;
  text-align: center;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.stat-num {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--red-dark);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}
.stat-lbl {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 992px) {
  .contact-layout, .b2b-grid-2 { grid-template-columns: 1fr; }
}
.contact-info-panel {
  background: var(--red-dark);
  color: var(--white);
  padding: 3rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(212, 164, 55, 0.3);
}
.contact-info-panel h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--gold);
}
.contact-row {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 2rem;
}
.contact-row-icon {
  font-size: 1.6rem;
  color: var(--gold);
  flex-shrink: 0;
}
.contact-row-text h5 {
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
  color: var(--white);
}
.contact-row-text p {
  font-size: 0.94rem;
  color: rgba(255,255,255,0.8);
}

/* ============================================================
   SHARED SITE FOOTER (matches index.html and products.html)
============================================================ */
footer {
  background: var(--red-dark, #7a1515);
  color: #f8f5ee;
  padding: 64px 32px 24px;
  border-top: none;
  font-size: 0.93rem;
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr auto auto 1.3fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(248,245,238,0.15);
}
.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(248,245,238,0.75);
  margin: 0 0 14px;
}
.footer-tagline {
  display: block;
  font-family: 'Playfair Display', 'Georgia', serif;
  font-style: italic;
  font-size: 0.92rem;
  color: var(--gold-light, #e8c060);
}
footer h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold-light, #e8c060);
  margin: 0 0 16px;
}
footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
footer ul a {
  font-size: 0.88rem;
  color: rgba(248,245,238,0.8);
  text-decoration: none;
  transition: color 0.2s ease;
}
footer ul a:hover { color: var(--gold-light, #e8c060); }

.footer-contact-item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.85rem;
  color: rgba(248,245,238,0.85);
  line-height: 1.5;
}
.footer-contact-item svg {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  max-width: 16px !important;
  flex: 0 0 16px !important;
  margin-top: 3px;
  color: var(--gold-light, #e8c060);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  text-align: center;
  display: block;
}
.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(248,245,238,0.6);
  margin: 4px 0;
}

@media (max-width: 768px) {
  /* Hotspot Lightbox Mode on Mobile */
  .lightbox-modal.hotspot-mode {
    background-color: rgba(0, 0, 0, 0.7);
    align-items: flex-start;
    padding-top: 100px;
  }
  .lightbox-modal.hotspot-mode .lightbox-modal__content {
    max-width: 80%;
    max-height: 40vh;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 3px solid var(--ivory);
  }
  .lightbox-modal.hotspot-mode .lightbox-close {
    top: 50px;
    right: 20px;
    color: white;
  }

  /* Gallery Coverflow mobile tweaks */
  .coverflow-content {
    padding: 10px 15px;
  }
  .coverflow-content h3 {
    font-size: 1.1rem;
    margin-bottom: 2px;
  }
  .coverflow-content p {
    font-size: 0.85rem;
    -webkit-line-clamp: 1;
  }

  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  footer { padding: 48px 20px 24px; }
}
.whatsapp-widget-container {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 9999;
  font-family: 'Inter', sans-serif;
}
.whatsapp-float-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #1f2c25 0%, #0f1813 100%);
  color: #ffffff;
  padding: 8px 18px 8px 10px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 6px 25px rgba(18, 140, 68, 0.35), 0 2px 10px rgba(0,0,0,0.4);
  border: 1.5px solid #25D366;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
.whatsapp-float-btn:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.5), 0 4px 15px rgba(0,0,0,0.5);
  border-color: #4fe885;
}
.whatsapp-icon-wrap {
  width: 42px; height: 42px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  position: relative; z-index: 2;
}
.whatsapp-svg { width: 26px; height: 26px; }
.whatsapp-pulse {
  position: absolute; left: 10px; top: 8px; width: 42px; height: 42px;
  background: #25D366; border-radius: 50%; z-index: 1;
  animation: whatsappPulse 2s infinite;
}
@keyframes whatsappPulse {
  0% { transform: scale(1); opacity: 0.8; }
  70% { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}
.whatsapp-text { display: flex; flex-direction: column; justify-content: center; }
.whatsapp-label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.8px; color: #25D366; font-weight: 700; line-height: 1.2; }
.whatsapp-cta { font-size: 0.95rem; font-weight: 700; color: #ffffff; line-height: 1.3; }
@media (max-width: 768px) {
  /* Hotspot Lightbox Mode on Mobile */
  .lightbox-modal.hotspot-mode {
    background-color: rgba(0, 0, 0, 0.7);
    align-items: flex-start;
    padding-top: 100px;
  }
  .lightbox-modal.hotspot-mode .lightbox-modal__content {
    max-width: 80%;
    max-height: 40vh;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 3px solid var(--ivory);
  }
  .lightbox-modal.hotspot-mode .lightbox-close {
    top: 50px;
    right: 20px;
    color: white;
  }

  /* Gallery Coverflow mobile tweaks */
  .coverflow-content {
    padding: 10px 15px;
  }
  .coverflow-content h3 {
    font-size: 1.1rem;
    margin-bottom: 2px;
  }
  .coverflow-content p {
    font-size: 0.85rem;
    -webkit-line-clamp: 1;
  }

  .whatsapp-widget-container { bottom: 20px; right: 20px; }
  .whatsapp-text { display: none; }
  .whatsapp-float-btn { padding: 6px; border-radius: 50%; }
  .whatsapp-pulse { left: 6px; top: 6px; }
}

/* ============================================================
   PHOTO GALLERY & INFRASTRUCTURE SHOWCASE STYLES
============================================================ */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 350px), 1fr));
  gap: 2rem;
  margin: 2.5rem 0;
}
@media (max-width: 600px) {
  
.gallery-grid { grid-template-columns: 1fr; }
}
.gallery-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}
.gallery-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(212, 164, 55, 0.6);
}

/* 3D COVERFLOW CAROUSEL */
.coverflow-wrapper {
  width: 100%;
  padding: 40px 0 80px 0;
  overflow: hidden;
  background: linear-gradient(180deg, var(--ivory), #f5ebd3);
}
.swiper {
  width: 100%;
  padding-top: 50px;
  padding-bottom: 50px;
}
.swiper-slide {
  background-position: center;
  background-size: cover;
  width: 600px; /* Base width of the center card */
  height: 400px;
  border-radius: var(--radius);
  box-shadow: 0 15px 50px rgba(0,0,0,0.3);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
@media (max-width: 768px) {
  /* Hotspot Lightbox Mode on Mobile */
  .lightbox-modal.hotspot-mode {
    background-color: rgba(0, 0, 0, 0.7);
    align-items: flex-start;
    padding-top: 100px;
  }
  .lightbox-modal.hotspot-mode .lightbox-modal__content {
    max-width: 80%;
    max-height: 40vh;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 3px solid var(--ivory);
  }
  .lightbox-modal.hotspot-mode .lightbox-close {
    top: 50px;
    right: 20px;
    color: white;
  }

  /* Gallery Coverflow mobile tweaks */
  .coverflow-content {
    padding: 10px 15px;
  }
  .coverflow-content h3 {
    font-size: 1.1rem;
    margin-bottom: 2px;
  }
  .coverflow-content p {
    font-size: 0.85rem;
    -webkit-line-clamp: 1;
  }

  .swiper-slide {
    width: 300px;
    height: 350px;
  }
}
.swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.swiper-slide-active img {
  transform: scale(1.05); /* Slight zoom on active card */
}

/* Glassmorphism content block at the bottom of each slide */
.coverflow-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(122, 21, 21, 0.85); /* Deep red translucent */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 20px;
  color: var(--ivory);
  transform: translateY(10px);
  opacity: 0.9;
  transition: transform 0.4s ease, opacity 0.4s ease;
}
.swiper-slide-active .coverflow-content {
  transform: translateY(0);
  opacity: 1;
}
.coverflow-content h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--gold);
  margin-bottom: 5px;
}
.coverflow-content p {
  font-size: 0.95rem;
  color: #fdf3e1;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.swiper-pagination-bullet {
  background: var(--red-dark);
  opacity: 0.5;
}
.swiper-pagination-bullet-active {
  background: var(--gold);
  opacity: 1;
}

/* INTERACTIVE HOTSPOT FLOORPLAN */
.hotspot-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #000;
}
.hotspot-bg-image {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.8;
  transition: opacity 0.4s;
}
.hotspot-container:hover .hotspot-bg-image {
  opacity: 0.6; /* Dim background when hovering over floorplan */
}

/* The Hotspot Pin */
.hotspot-pin {
  position: absolute;
  width: 30px;
  height: 30px;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 10;
}

/* Pulsing Dot */
.hotspot-dot {
  width: 16px;
  height: 16px;
  background: var(--gold);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 0 rgba(212, 164, 55, 0.7);
  animation: pulse-hotspot 2s infinite cubic-bezier(0.66, 0, 0, 1);
}
@keyframes pulse-hotspot {
  to {
    box-shadow: 0 0 0 20px rgba(212, 164, 55, 0);
  }
}

/* Tooltip Card */
.hotspot-tooltip {
  position: absolute;
  bottom: 40px; /* Above the pin */
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: max-content;
  max-width: 250px;
  background: var(--white);
  padding: 15px;
  border-radius: var(--radius);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
  z-index: 20;
  text-align: center;
  border-bottom: 3px solid var(--red-dark);
}
/* Tooltip Arrow */
.hotspot-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 8px;
  border-style: solid;
  border-color: var(--white) transparent transparent transparent;
}

/* Hover State */
.hotspot-pin:hover .hotspot-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.hotspot-pin:hover .hotspot-dot {
  background: var(--white);
  animation: none;
  box-shadow: 0 0 10px rgba(255,255,255,0.8);
}

.hotspot-tooltip::after {
  content: "Click to view product";
  display: block;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(0,0,0,0.1);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-dark, #b59244);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.hotspot-tooltip h4 {
  font-family: var(--font-display);
  color: var(--red-dark);
  font-size: 1.1rem;
  margin-bottom: 5px;
}
.hotspot-tooltip p {
  font-size: 0.85rem;
  color: #555;
  line-height: 1.4;
}

@media (max-width: 768px) {
  /* Hotspot Lightbox Mode on Mobile */
  .lightbox-modal.hotspot-mode {
    background-color: rgba(0, 0, 0, 0.7);
    align-items: flex-start;
    padding-top: 100px;
  }
  .lightbox-modal.hotspot-mode .lightbox-modal__content {
    max-width: 80%;
    max-height: 40vh;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 3px solid var(--ivory);
  }
  .lightbox-modal.hotspot-mode .lightbox-close {
    top: 50px;
    right: 20px;
    color: white;
  }

  /* Gallery Coverflow mobile tweaks */
  .coverflow-content {
    padding: 10px 15px;
  }
  .coverflow-content h3 {
    font-size: 1.1rem;
    margin-bottom: 2px;
  }
  .coverflow-content p {
    font-size: 0.85rem;
    -webkit-line-clamp: 1;
  }

  .hotspot-tooltip {
    max-width: 180px;
    font-size: 0.8rem;
  }
  /* Prevent edge tooltips from going off screen */
  .hotspot-pin:first-of-type .hotspot-tooltip {
    transform: translateX(-20%) translateY(10px);
  }
  .hotspot-pin:first-of-type:hover .hotspot-tooltip {
    transform: translateX(-20%) translateY(0);
  }
  .hotspot-pin:last-of-type .hotspot-tooltip {
    left: auto;
    right: -10px;
    transform: translateY(10px);
  }
  .hotspot-pin:last-of-type:hover .hotspot-tooltip {
    left: auto;
    right: -10px;
    transform: translateY(0);
  }
}

.gallery-card__tag {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(11, 93, 59, 0.9);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.gallery-card__content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.gallery-card__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--red-dark);
  margin-bottom: 0.6rem;
}
.gallery-card__desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 100000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.lightbox-modal.active {
  display: flex;
}
.lightbox-modal__content {
  max-width: 900px;
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 15px 50px rgba(0,0,0,0.8);
  border: 2px solid var(--gold);
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 25px;
  right: 35px;
  color: var(--white);
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}
.lightbox-close:hover {
  color: var(--gold);
  transform: scale(1.1);
}

/* ============================================================
   DARK MODE — COMPATIBILITY STYLES (B2B PAGES)
============================================================ */

/* MANDI RATES HERO BANNER */
#mandi-hero {
  background: url('images/mandi-hero.jpg') center right / cover no-repeat;
  padding-top: 140px;
  padding-bottom: 80px;
  min-height: 400px;
  border-bottom: none;
  text-align: left;
  align-items: flex-start;
}
#mandi-hero .page-hero__inner {
  margin: 0;
}
#mandi-hero .page-hero__title,
#mandi-hero .page-hero__subtitle {
  text-align: left;
}
#mandi-hero::before {
  display: none;
}
#mandi-hero .page-hero__title,
#mandi-hero .page-hero__subtitle {
  color: var(--charcoal);
}
#mandi-hero .page-hero__eyebrow {
  color: var(--red);
  border-color: var(--red);
  background: rgba(155, 30, 30, 0.1);
}

/* ==========================================================================
   INDUSTRIES SERVED REDESIGN
   ========================================================================== */

/* 1. Mosaic Hero Banner */
.mosaic-hero {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 2rem;
}

.mosaic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 250px 250px;
  gap: 1.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.mosaic-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}

.mosaic-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.mosaic-item.img-1 { grid-column: 1 / 2; grid-row: 1 / 2; }
.mosaic-item.img-2 { grid-column: 3 / 4; grid-row: 1 / 2; }
.mosaic-item.img-3 { grid-column: 1 / 2; grid-row: 2 / 3; }
.mosaic-item.img-4 { grid-column: 3 / 4; grid-row: 2 / 3; }

.mosaic-item.text-center {
  grid-column: 2 / 3;
  grid-row: 1 / 3;
  background: var(--red-dark);
  color: var(--ivory);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 3rem;
  border-radius: var(--radius);
}

.mosaic-item.text-center .page-hero__eyebrow {
  color: var(--gold);
  margin-bottom: 1rem;
}

.mosaic-item.text-center .page-hero__title {
  color: var(--ivory);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2.1rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.mosaic-item.text-center .page-hero__subtitle {
  color: rgba(253, 243, 225, 0.9);
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* 2. Floating Overlap Cards */
.overlap-cards-section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 1000px;
  margin: 2rem auto 4rem; /* Changed from negative margin to fix overlap */
  padding: 0 2rem;
  position: relative;
  z-index: 10;
}

.overlap-card {
  display: flex;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.overlap-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.overlap-card__image {
  flex: 0 0 32%;
  position: relative;
}

.overlap-card__image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overlap-card__content {
  flex: 1;
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 900px) {
  .mosaic-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
  }
  .mosaic-item.text-center {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
  }
  .mosaic-item.img-1 { grid-column: 1 / 2; grid-row: 2 / 3; }
  .mosaic-item.img-2 { grid-column: 2 / 3; grid-row: 2 / 3; }
  .mosaic-item.img-3 { grid-column: 1 / 2; grid-row: 3 / 4; }
  .mosaic-item.img-4 { grid-column: 2 / 3; grid-row: 3 / 4; }
  
}

@media (max-width: 600px) {
  .mosaic-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 220px 220px;
    gap: 8px;
    position: relative;
  }
  .mosaic-item.img-1 { grid-column: 1 / 2; grid-row: 1 / 2; }
  .mosaic-item.img-2 { grid-column: 2 / 3; grid-row: 1 / 2; }
  .mosaic-item.img-3 { grid-column: 1 / 2; grid-row: 2 / 3; }
  .mosaic-item.img-4 { grid-column: 2 / 3; grid-row: 2 / 3; }

  .mosaic-item.text-center {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 75%;
    height: auto;
    padding: 16px 12px;
    background: rgba(94, 21, 21, 0.85);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    z-index: 10;
  }
  .mosaic-item.text-center .page-hero__eyebrow {
    font-size: 0.65rem !important;
    margin-bottom: 0.5rem !important;
  }
  .mosaic-item.text-center .page-hero__title {
    font-size: 1.25rem !important;
    margin-bottom: 0.4rem !important;
  }
  .mosaic-item.text-center .page-hero__subtitle {
    font-size: 0.75rem !important;
    line-height: 1.4 !important;
  }
}

/* ==========================================================================
   FLIP CARDS GRID (Replaces Overlap Cards)
   ========================================================================== */

/* 2x2 Grid Layout */
.flip-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  max-width: 1100px;
  margin: 4rem auto;
  padding: 0 2rem;
  position: relative;
  z-index: 10;
}

/* Flip Card Container */
.flip-card {
  background-color: transparent;
  width: 100%;
  height: 450px;
  perspective: 1000px;
  cursor: pointer;
}

/* Card Inner Container - Handles the flip */
.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
  border-radius: 40px; /* Enhanced curvature */
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* Hover Effect */
.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

/* Front and Back common styles */
.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 40px; /* Enhanced curvature */
  overflow: hidden;
}

/* FRONT SIDE */
.flip-card-front {
  background-color: var(--white);
  color: var(--text-dark);
}

.flip-card-front img {
  width: 100%;
  height: 70%;
  object-fit: cover;
}

.flip-card-title {
  height: 30%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--red-dark);
  padding: 0 1.5rem;
  margin: 0;
  line-height: 1.2;
  background: linear-gradient(to top, var(--ivory) 0%, #ffffff 100%);
  border-top: 4px solid var(--gold);
}

/* BACK SIDE */
.flip-card-back {
  background-color: var(--red-dark);
  color: var(--ivory);
  transform: rotateY(180deg);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.flip-card-back h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: var(--gold);
}

.flip-card-back p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  color: rgba(253, 243, 225, 0.9);
}

.flip-card-back ul {
  list-style-type: none;
  padding-left: 0;
  margin: 0;
}

.flip-card-back li {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.flip-card-back li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: bold;
}

/* Mobile Responsiveness for Flip Cards */
@media (max-width: 768px) {
  /* Hotspot Lightbox Mode on Mobile */
  .lightbox-modal.hotspot-mode {
    background-color: rgba(0, 0, 0, 0.7);
    align-items: flex-start;
    padding-top: 100px;
  }
  .lightbox-modal.hotspot-mode .lightbox-modal__content {
    max-width: 80%;
    max-height: 40vh;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 3px solid var(--ivory);
  }
  .lightbox-modal.hotspot-mode .lightbox-close {
    top: 50px;
    right: 20px;
    color: white;
  }

  /* Gallery Coverflow mobile tweaks */
  .coverflow-content {
    padding: 10px 15px;
  }
  .coverflow-content h3 {
    font-size: 1.1rem;
    margin-bottom: 2px;
  }
  .coverflow-content p {
    font-size: 0.85rem;
    -webkit-line-clamp: 1;
  }

  .flip-cards-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: 2rem auto;
  }
  
  .flip-card {
    height: 400px;
  }
}

/* ==========================================================================
   LOGISTICS SCROLL ANIMATION HERO
   ========================================================================== */

/* The Scroll Container */
.animation-track {
  height: 300vh; /* Creates 3 viewports worth of scrolling space */
  position: relative;
  background-color: var(--ivory);
}

/* The Sticky Scene */
.scene {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(to right, rgba(253,248,238,0.98) 0%, rgba(253,248,238,0.85) 30%, rgba(253,248,238,0) 100%), url('images/market-background.jpg') center right / cover no-repeat;
  color: var(--charcoal);
}

/* Typography */
.scene-content {
  position: absolute;
  top: 20%;
  left: 5%;
  z-index: 2;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}
.scene-content .page-hero__title {
  text-align: left;
  color: var(--black);
}
.scene-content .page-hero__subtitle {
  text-align: left;
  margin: 0;
  color: var(--charcoal);
}


.scene-content .page-hero__eyebrow {
  margin-bottom: 1rem;
}

.scene-content .page-hero__title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
}

.scene-content .page-hero__subtitle {
  font-size: 1.2rem;
  max-width: 600px;
  line-height: 1.6;
  color: var(--charcoal);
}

/* The Truck */
.truck-container {
  position: absolute;
  bottom: 5%;
  left: -400px; /* Start off screen to the left */
  width: 400px;
  z-index: 1;
  /* Will-change optimizes rendering for the animation */
  will-change: transform;
}

.truck-container svg {
  filter: drop-shadow(0 15px 25px rgba(0,0,0,0.5));
}

/* Scroll Instruction */
.scroll-down-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.9rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 600;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
  40% { transform: translateY(-20px) translateX(-50%); }
  60% { transform: translateY(-10px) translateX(-50%); }
}

@media (max-width: 768px) {
  /* Hotspot Lightbox Mode on Mobile */
  .lightbox-modal.hotspot-mode {
    background-color: rgba(0, 0, 0, 0.7);
    align-items: flex-start;
    padding-top: 100px;
  }
  .lightbox-modal.hotspot-mode .lightbox-modal__content {
    max-width: 80%;
    max-height: 40vh;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 3px solid var(--ivory);
  }
  .lightbox-modal.hotspot-mode .lightbox-close {
    top: 50px;
    right: 20px;
    color: white;
  }

  /* Gallery Coverflow mobile tweaks */
  .coverflow-content {
    padding: 10px 15px;
  }
  .coverflow-content h3 {
    font-size: 1.1rem;
    margin-bottom: 2px;
  }
  .coverflow-content p {
    font-size: 0.85rem;
    -webkit-line-clamp: 1;
  }

  .scene-content {
    top: 15%;
    left: 5%;
    right: 5%;
  }
  .truck-container {
    width: 280px;
    bottom: 15%;
  }
}

/* Data Card Layout Fixes */
.data-card .feature-card__text {
  margin-bottom: 0.8rem;
  flex-grow: 0; /* Prevent paragraph from stretching and pushing list down */
}
.data-card .feature-list {
  padding-top: 0.5rem;
}

/* ============================================================
   SVG LOGISTICS ANIMATIONS
============================================================ */
.animated-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 1rem;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.animated-icon svg {
  width: 100%;
  height: 100%;
}

/* Weighing Scale Animation */
.scale-beam {
  animation: seesaw 3s ease-in-out infinite alternate;
}
.scale-pan {
  /* Counter-rotate to stay upright */
  animation: counter-tilt 3s ease-in-out infinite alternate;
}

@keyframes seesaw {
  0% { transform: rotate(-20deg); }
  100% { transform: rotate(20deg); }
}
@keyframes counter-tilt {
  0% { transform: rotate(20deg); }
  100% { transform: rotate(-20deg); }
}

/* Truck Animation */
.truck-body {
  animation: drive 3s linear infinite;
}

@keyframes drive {
  0% { transform: translateX(-120px); }
  100% { transform: translateX(120px); }
}

/* Speed Lines (Wind effect for truck) */
.speed-lines {
  position: absolute;
  top: 10%;
  right: -50px;
  width: 250px;
  height: 80%;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

.speed-line {
  position: absolute;
  background: rgba(255, 255, 255, 0.7);
  height: 3px;
  border-radius: 3px;
  animation: wind-flow linear infinite;
}

@keyframes wind-flow {
  0% { transform: translateX(250px); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateX(-250px); opacity: 0; }
}

.speed-line:nth-child(1) { top: 20%; width: 50px; animation-duration: 0.6s; animation-delay: 0s; }
.speed-line:nth-child(2) { top: 40%; width: 90px; animation-duration: 0.8s; animation-delay: 0.2s; }
.speed-line:nth-child(3) { top: 60%; width: 60px; animation-duration: 0.5s; animation-delay: 0.1s; }
.speed-line:nth-child(4) { top: 80%; width: 100px; animation-duration: 0.7s; animation-delay: 0.3s; }
.speed-line:nth-child(5) { top: 30%; width: 70px; animation-duration: 0.9s; animation-delay: 0.5s; }

/* ==========================================================================
   ABOUT PAGE — MAP CARDS (Idea A)
   ========================================================================== */

.map-card {
  position: relative;
  overflow: hidden;
}

/* SVG map watermark — pinned to right side of card */
.india-map-bg {
  position: absolute;
  top: 50%;
  right: -10px;
  transform: translateY(-50%);
  width: 220px;
  height: 260px;
  opacity: 0.85;
  pointer-events: none;
  z-index: 0;
}

.scale-bg {
  position: absolute;
  top: 50%;
  right: -10px;
  transform: translateY(-50%);
  width: 200px;
  height: 200px;
  opacity: 0.9;
  pointer-events: none;
  z-index: 0;
}

/* Card content sits above the watermark */
.map-card__content {
  position: relative;
  z-index: 1;
}

/* Pulsing dots on the map */
.map-dot {
  animation: dot-pulse 2s ease-in-out infinite;
}

.map-pulse {
  animation: pulse-ring 2s ease-out infinite;
}

@keyframes dot-pulse {
  0%, 100% { r: 5; opacity: 0.9; }
  50% { r: 4; opacity: 0.6; }
}

@keyframes pulse-ring {
  0% { r: 5; opacity: 0.6; }
  100% { r: 14; opacity: 0; }
}

/* Gentle seesaw on the scale watermark */
.scale-beam-bg {
  transform-origin: 100px 81px;
  animation: seesaw-slow 4s ease-in-out infinite alternate;
}

@keyframes seesaw-slow {
  0% { transform: rotate(-8deg); }
  100% { transform: rotate(8deg); }
}

/* ==========================================================================
   ABOUT PAGE — COUNTER CARDS (Idea F)
   ========================================================================== */

.counter-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Large faded background icon */
.counter-card__bg-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 8rem;
  opacity: 0.06;
  pointer-events: none;
  line-height: 1;
  user-select: none;
}

/* The big animated number */
.counter-num-wrap {
  margin-bottom: 0.5rem;
}

.counter-num {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  letter-spacing: -0.02em;
}

.counter-card__label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.75rem;
  letter-spacing: 0.03em;
}

/* Hover glow effect on counter cards */
.counter-card:hover {
  border-color: var(--gold);
  box-shadow: 0 8px 40px rgba(212, 164, 55, 0.2);
  transform: translateY(-4px);
}

.counter-card:hover .counter-num {
  text-shadow: 0 0 20px rgba(212, 164, 55, 0.5);
}

/* GALLERY HERO FILMSTRIP */
.gallery-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 50vh;
  padding: 6rem 2rem;
  background: var(--ivory);
}
.gallery-hero__filmstrip {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  transform: translateY(-50%);
  display: flex;
  opacity: 0.4;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.gallery-hero__filmstrip-track {
  display: flex;
  gap: 15px;
  animation: filmstrip-slide 30s linear infinite;
}
.gallery-hero__filmstrip-track img {
  height: 250px;
  width: 350px;
  object-fit: cover;
  border-radius: var(--radius);
}
@keyframes filmstrip-slide {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 7.5px)); }
}
.gallery-hero__content {
  position: relative;
  z-index: 2;
  background: var(--ivory);
  padding: 3rem 4rem;
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  border: 1px solid var(--border);
  max-width: 800px;
  text-align: center;
}
@media (max-width: 768px) {
  /* Hotspot Lightbox Mode on Mobile */
  .lightbox-modal.hotspot-mode {
    background-color: rgba(0, 0, 0, 0.7);
    align-items: flex-start;
    padding-top: 100px;
  }
  .lightbox-modal.hotspot-mode .lightbox-modal__content {
    max-width: 80%;
    max-height: 40vh;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 3px solid var(--ivory);
  }
  .lightbox-modal.hotspot-mode .lightbox-close {
    top: 50px;
    right: 20px;
    color: white;
  }

  /* Gallery Coverflow mobile tweaks */
  .coverflow-content {
    padding: 10px 15px;
  }
  .coverflow-content h3 {
    font-size: 1.1rem;
    margin-bottom: 2px;
  }
  .coverflow-content p {
    font-size: 0.85rem;
    -webkit-line-clamp: 1;
  }

  .gallery-hero__content {
    padding: 2rem;
    transform: scale(0.85);
  }
}




/* GLOBAL RESPONSIVE FIXES */
@media (max-width: 768px) {
  /* Hotspot Lightbox Mode on Mobile */
  .lightbox-modal.hotspot-mode {
    background-color: rgba(0, 0, 0, 0.7);
    align-items: flex-start;
    padding-top: 100px;
  }
  .lightbox-modal.hotspot-mode .lightbox-modal__content {
    max-width: 80%;
    max-height: 40vh;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 3px solid var(--ivory);
  }
  .lightbox-modal.hotspot-mode .lightbox-close {
    top: 50px;
    right: 20px;
    color: white;
  }

  /* Gallery Coverflow mobile tweaks */
  .coverflow-content {
    padding: 10px 15px;
  }
  .coverflow-content h3 {
    font-size: 1.1rem;
    margin-bottom: 2px;
  }
  .coverflow-content p {
    font-size: 0.85rem;
    -webkit-line-clamp: 1;
  }

  .page-hero {
    padding: 3rem 5% 4rem;
  }
  .page-hero__title {
    font-size: clamp(2rem, 8vw, 2.5rem) !important;
  }
  .content-section {
    padding: 3rem 5% !important;
  }
  .b2b-grid-2, .b2b-grid-3, .b2b-grid-4 {
    gap: 1.5rem !important;
  }
  .section-header {
    margin-bottom: 2rem !important;
  }
  .contact-info-panel {
    padding: 1.5rem !important;
  }
}

/* ========================================================================== */

@media (max-width: 768px) {
  /* Hotspot Lightbox Mode on Mobile */
  .lightbox-modal.hotspot-mode {
    background-color: rgba(0, 0, 0, 0.7);
    align-items: flex-start;
    padding-top: 100px;
  }
  .lightbox-modal.hotspot-mode .lightbox-modal__content {
    max-width: 80%;
    max-height: 40vh;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 3px solid var(--ivory);
  }
  .lightbox-modal.hotspot-mode .lightbox-close {
    top: 50px;
    right: 20px;
    color: white;
  }

  /* Gallery Coverflow mobile tweaks */
  .coverflow-content {
    padding: 10px 15px;
  }
  .coverflow-content h3 {
    font-size: 1.1rem;
    margin-bottom: 2px;
  }
  .coverflow-content p {
    font-size: 0.85rem;
    -webkit-line-clamp: 1;
  }

  #mandi-hero {
    background: linear-gradient(to right, rgba(253,248,238,0.95) 0%, rgba(253,248,238,0.2) 80%), url('images/mandi-hero.jpg') 60% center / cover no-repeat !important;
    text-align: left !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    padding: 70px 20px 40px !important;
    min-height: auto !important;
  }
  #mandi-hero .page-hero__inner {
    text-align: left !important;
    margin: 0 !important;
    width: 100% !important;
  }
  #mandi-hero .page-hero__title {
    text-align: left !important;
    font-size: 2.2rem !important; /* Scale it down a bit to match products */ /* Scale it down a bit to match products */
  }
  #mandi-hero .page-hero__subtitle {
    margin: 0 !important;
    text-align: left !important;
    font-size: 0.95rem !important;
  }
}

@media (max-width: 768px) {
  /* Hotspot Lightbox Mode on Mobile */
  .lightbox-modal.hotspot-mode {
    background-color: rgba(0, 0, 0, 0.7);
    align-items: flex-start;
    padding-top: 100px;
  }
  .lightbox-modal.hotspot-mode .lightbox-modal__content {
    max-width: 80%;
    max-height: 40vh;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 3px solid var(--ivory);
  }
  .lightbox-modal.hotspot-mode .lightbox-close {
    top: 50px;
    right: 20px;
    color: white;
  }

  /* Gallery Coverflow mobile tweaks */
  .coverflow-content {
    padding: 10px 15px;
  }
  .coverflow-content h3 {
    font-size: 1.1rem;
    margin-bottom: 2px;
  }
  .coverflow-content p {
    font-size: 0.85rem;
    -webkit-line-clamp: 1;
  }

  .animation-track {
    height: auto !important; 
  }
  .scene {
    position: relative !important;
    top: 0 !important;
    height: 60vh !important; /* Adjusted slightly so it's a good banner size */
    min-height: 400px;
    padding: 0 !important;
    background: linear-gradient(to bottom, rgba(253,248,238,0.95) 0%, rgba(253,248,238,0.85) 40%, rgba(253,248,238,0.2) 100%), url('images/market-background.jpg') 70% center / cover no-repeat !important;
    justify-content: flex-start !important;
  }
  .scene-content {
    position: absolute !important;
    top: 8% !important; 
    left: 5% !important;
    right: 5% !important;
    width: 90% !important;
    padding: 0 !important;
  }
  .scene-content .page-hero__title {
    font-size: 1.8rem !important;
    line-height: 1.15 !important;
    margin-bottom: 12px !important;
  }
  .scene-content .page-hero__subtitle {
    font-size: 0.95rem !important;
  }
  .truck-container {
    display: block !important;
    width: 240px !important; 
    bottom: 5% !important; /* Truck is pushed to the bottom of the 70vh container */
  }
}
