/* ============================================================
   MOBILE.CSS — Mobile-First Responsive Overrides
   Loaded on ALL pages AFTER page-specific CSS
   Breakpoints: base=mobile, 480px=mobile-L, 768px=tablet, 1024px=desktop
   ============================================================ */


/* ============================================================
   1. HAMBURGER BUTTON
   ============================================================ */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 300;
  border-radius: 12px;
  padding: 8px;
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.nav-hamburger:hover {
  background: rgba(15, 77, 58, 0.06);
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--forest);
  border-radius: 2px;
  transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1),
              opacity 0.25s ease,
              width 0.25s ease;
  transform-origin: center;
}

/* Animate to X when open */
.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
  width: 0;
}
.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* ============================================================
   2. MOBILE NAV OVERLAY DRAWER
   ============================================================ */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 190;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(4px);
}

.mobile-nav-overlay.active {
  opacity: 1;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(320px, 85vw);
  height: 100dvh;
  background: rgba(245, 250, 248, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 250;
  display: flex;
  flex-direction: column;
  padding: 5rem 2rem 3rem;
  gap: 0.5rem;
  border-left: 1px solid rgba(15, 77, 58, 0.08);
  transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  overflow-y: auto;
}

.mobile-nav-drawer.open {
  right: 0;
}

.mobile-nav-drawer .drawer-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 2.5rem;
  width: 100%;
}

.mobile-nav-drawer .drawer-logo img {
  height: 80px;
  width: auto;
  object-fit: contain;
}

.drawer-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  color: var(--forest);
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.drawer-close:hover {
  transform: scale(1.1) rotate(90deg);
  opacity: 0.8;
}

.mobile-nav-drawer a {
  display: flex;
  align-items: center;
  padding: 1rem 1.2rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--forest);
  text-decoration: none;
  border-radius: 14px;
  transition: background 0.2s ease, transform 0.2s ease;
  border-left: 3px solid transparent;
}

.mobile-nav-drawer a:hover,
.mobile-nav-drawer a.active {
  background: rgba(15, 77, 58, 0.06);
  border-left-color: var(--forest);
  transform: translateX(4px);
}

.mobile-nav-drawer .drawer-divider {
  height: 1px;
  background: rgba(15, 77, 58, 0.08);
  margin: 1rem 0;
}

.mobile-nav-drawer .drawer-cta {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.mobile-nav-drawer .drawer-cta a {
  justify-content: center;
  border-left: none;
  border-radius: 50px;
  background: var(--forest);
  color: var(--white);
  font-size: 0.95rem;
  transform: none;
}

.mobile-nav-drawer .drawer-cta a:hover {
  background: var(--forest-mid);
  transform: none;
  border-left: none;
}

.mobile-nav-drawer .drawer-cta a.secondary-cta {
  background: transparent;
  color: var(--forest);
  border: 1.5px solid rgba(15, 77, 58, 0.2);
}

.mobile-nav-drawer .drawer-cta a.secondary-cta:hover {
  background: rgba(15, 77, 58, 0.05);
}


/* ============================================================
   3. HEADER — MOBILE OVERRIDES
   ============================================================ */
@media (max-width: 768px) {
  header {
    top: 0.75rem;
    width: calc(100% - 2rem);
    height: 60px;
    padding: 0 1.2rem;
  }

  header.scrolled {
    top: 0.5rem;
    width: calc(100% - 1.5rem);
    height: 56px;
    padding: 0 1rem;
  }

  .logo {
    width: 100px;
  }

  .logo img {
    height: 70px;
  }

  header.scrolled .logo img {
    height: 58px;
  }

  /* Hide desktop nav links on mobile */
  header nav {
    display: none;
  }

  /* Show hamburger on mobile */
  .nav-hamburger {
    display: flex;
  }

  /* Show overlay when active */
  .mobile-nav-overlay.active {
    display: block;
  }
}


/* ============================================================
   4. GLOBAL TYPOGRAPHY — FLUID SCALE
   ============================================================ */
@media (max-width: 768px) {
  /* Splash screen removed in mobile view */
  #splash-screen,
  .splash-overlay {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  /* Ensure body and page content remain visible and scrollable in mobile view */
  body.loading {
    overflow: visible !important;
    overflow-x: clip !important;
  }

  body.loading main,
  body.loading #bg-canvas {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
  }

  body.loading #site-header {
    opacity: 1 !important;
    transform: translateX(-50%) translateY(0) !important;
    visibility: visible !important;
  }

  h1 {
    font-size: clamp(1.9rem, 6vw, 2.8rem) !important;
    line-height: 1.15 !important;
  }

  /* Product hero layout constraints & typography — prevent mobile overflow */
  .ph-hero {
    padding: 6.5rem 1rem 3.5rem !important;
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }
  .ph-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
    gap: 1.5rem 0 !important;
  }
  .ph-content {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
    align-items: center !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }
  .ph-badge {
    max-width: 100% !important;
    font-size: 0.76rem !important;
    padding: 0.38rem 0.85rem !important;
    white-space: normal !important;
    text-align: center !important;
    margin-bottom: 1rem !important;
  }
  .ph-title {
    font-size: clamp(1.65rem, 5.2vw, 2.1rem) !important;
    line-height: 1.2 !important;
    max-width: 100% !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .ph-desc {
    font-size: 0.92rem !important;
    line-height: 1.6 !important;
    max-width: 100% !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 1.5rem !important;
  }
  .ph-tabs {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }
  .ph-tabs-label {
    text-align: center !important;
    display: block !important;
    width: 100% !important;
    margin-bottom: 0.6rem !important;
  }
  .ph-tabs-row,
  .product-pills-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    justify-content: flex-start !important;
    padding: 4px 6px 10px !important;
    gap: 0.45rem !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  .ph-tabs-row::-webkit-scrollbar,
  .product-pills-row::-webkit-scrollbar {
    display: none !important;
  }
  .ph-tabs-row .palette-item,
  .product-pills-row .palette-item {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    font-size: 0.8rem !important;
    padding: 0.42rem 0.75rem !important;
  }
  .ph-visual {
    min-height: 280px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  h2 {
    font-size: clamp(1.6rem, 5vw, 2.2rem) !important;
    line-height: 1.2 !important;
  }

  h3 {
    font-size: clamp(1.1rem, 4vw, 1.4rem) !important;
  }

  p {
    font-size: clamp(0.9rem, 3.5vw, 1rem);
    line-height: 1.65;
  }

  .btn {
    min-height: 44px;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
}


/* ============================================================
   5. INDEX.HTML — HERO: Mobile App Screen Design (Split side-by-side)
   ============================================================ */
@media (max-width: 960px) {
  /* Side-by-side layout for tablets/medium screens */
  .hero-slide-content {
    grid-template-columns: 1.1fr 0.9fr !important;
    gap: 2rem !important;
    text-align: left !important;
    padding-top: 6rem !important;
    padding-bottom: 2rem !important;
    display: grid !important;
  }
  .hero-slide-info {
    align-items: flex-start !important;
  }
  .hero-slide-ctas {
    justify-content: flex-start !important;
  }
  .hero-slide-ctas .btn,
  .hero-slide-ctas .btn-primary,
  .hero-slide-ctas .btn-secondary {
    min-height: 34px !important;
    padding: 0.5rem 1rem !important;
    font-size: 0.8rem !important;
  }
}

@media (max-width: 768px) {
  #hero {
    height: auto !important;
  }

  .hero-stage {
    position: relative !important;
    top: 0 !important;
    aspect-ratio: auto !important;
    height: 360px !important;
    min-height: 360px !important;
    max-height: none !important;
    overflow: hidden !important;
    border-radius: 24px !important;
    margin: 10px !important;
    margin-top: 72px !important;
    width: calc(100% - 20px) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.22) !important;
  }

  .hero-slide {
    border-radius: 24px !important;
    overflow: hidden !important;
  }

  /* Make slide content a side-by-side layout matching desktop with slightly more room for image */
  .hero-slide-content {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    align-items: center !important;
    gap: 0.6rem !important;
    text-align: left !important;
    padding: 0 1.1rem !important;
    width: 100% !important;
    height: 100% !important;
    box-sizing: border-box !important;
    padding-top: 0.5rem !important;
  }

  .hero-slide-info {
    align-items: flex-start !important;
    gap: 0.45rem !important;
    width: 100% !important;
  }

  .hero-slide-tagline {
    font-size: 0.55rem !important;
    letter-spacing: 2px !important;
    color: rgba(255, 255, 255, 0.75) !important;
    margin: 0 !important;
  }

  .hero-slide-title {
    font-size: clamp(0.95rem, 4.2vw, 1.4rem) !important;
    line-height: 1.15 !important;
    margin: 0 !important;
  }

  .hero-slide-desc {
    font-size: clamp(0.58rem, 2.5vw, 0.72rem) !important;
    line-height: 1.3 !important;
    color: rgba(255, 255, 255, 0.8) !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  .hero-slide-ctas {
    display: flex !important;
    flex-direction: row !important;
    gap: 0.35rem !important;
    width: 100% !important;
    margin-top: 0.2rem !important;
  }

  .hero-slide-ctas .btn,
  .hero-slide-ctas .btn-primary,
  .hero-slide-ctas .btn-secondary {
    width: auto !important;
    flex: 1 !important;
    min-height: 22px !important;
    padding: 0.25rem 0.4rem !important;
    font-size: clamp(0.5rem, 1.8vw, 0.62rem) !important;
    text-align: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
  }

  /* Right Side: Paint Can Visual - Prominent image size */
  .hero-slide-visual {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin-top: 0 !important;
  }

  .hero-slide .product-can-wrap {
    width: 170px !important;
    height: 270px !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .hero-slide .product-can-img {
    height: 270px !important;
    max-height: 270px !important;
    width: auto !important;
    max-width: 100% !important;
    object-fit: contain !important;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.45)) !important;
  }

  .hero-slide .can-glow {
    width: 150px !important;
    height: 150px !important;
    filter: blur(25px) !important;
  }

  /* Decorative background elements styling on mobile */
  .hero-slide .slide-ghost-word {
    font-size: clamp(2.8rem, 8vw, 3.8rem) !important;
    right: 2% !important;
    bottom: 8% !important;
    transform: none !important;
  }

  /* Re-enable and scale down background orbs/rings for premium look */
  .hero-slide .slide-orb {
    width: 100px !important;
    height: 100px !important;
    filter: blur(35px) !important;
  }

  .hero-slide .slide-ring {
    display: block !important;
    border-width: 1px !important;
    width: 130px !important;
    height: 130px !important;
  }

  /* Compact pagination dots */
  .hero-pagination {
    bottom: 0.75rem !important;
  }

  /* ── Mobile Carousel Arrow Buttons ── */
  .hero-arrow {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 30px !important;
    height: 30px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.18) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.35) !important;
    color: #fff !important;
    font-size: 0.72rem !important;
    cursor: pointer !important;
    z-index: 20 !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    transition: background 0.2s ease, transform 0.15s ease, opacity 0.2s ease !important;
    outline: none !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25) !important;
    padding: 0 !important;
  }

  .hero-arrow:active {
    transform: translateY(-50%) scale(0.9) !important;
    background: rgba(255, 255, 255, 0.32) !important;
  }

  .hero-arrow--disabled {
    opacity: 0.3 !important;
    pointer-events: none !important;
  }

  .hero-arrow-prev {
    left: 10px !important;
  }

  .hero-arrow-next {
    right: 10px !important;
  }
}

/* Extra small screens adjustments */
@media (max-width: 380px) {
  .hero-stage {
    height: 320px !important;
    min-height: 320px !important;
  }
  .hero-slide-content {
    grid-template-columns: 1.1fr 0.9fr !important;
    padding: 0 0.8rem !important;
    gap: 0.4rem !important;
  }
  .hero-slide-title {
    font-size: 0.95rem !important;
  }
  .hero-slide-desc {
    font-size: 0.58rem !important;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .hero-slide .product-can-wrap {
    width: 150px !important;
    height: 240px !important;
  }
  .hero-slide .product-can-img {
    height: 230px !important;
    max-height: 230px !important;
  }
}


@media (max-width: 480px) {
  .hero-slide .hero-slide-visual {
    transform: translateX(20px) scale(0.92) !important;
    opacity: 0 !important;
  }
  .hero-slide.active .hero-slide-visual {
    transform: translateX(0) scale(1) !important;
    opacity: 1 !important;
  }
}



/* ============================================================
   6. INDEX.HTML — PRODUCTS / CARDS GRID
   ============================================================ */
@media (max-width: 768px) {
  /* Generic multi-col grids → 1 col */
  .products-grid,
  .products-row,
  .product-cards-row {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  /* Feature / Why-us 2×3 → 1 col */
  .features-grid,
  .why-us-grid,
  .why-cards-grid {
    grid-template-columns: 1fr !important;
    gap: 1.2rem !important;
  }

  /* Comparison section full-width scroll */
  .comparison-table-wrap,
  .comp-table-outer {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Split sections (50/50) → stack */
  .split-section,
  .split-layout,
  .section-split {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  /* Color palette wall */
  .color-palette-grid,
  .colour-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  /* Section padding — exclude hero & special sections */
  section:not(.hero-section):not(.product-hero-section):not(.story-hero-section):not(.ph-hero) {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }

  /* Hero section: no side padding (slides handle their own padding) */
  .hero-section {
    padding: 0 !important;
  }

  .section-inner,
  .container,
  .inner-wrap {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}


/* Pricing Selector Tabs Row Fix */
@media (max-width: 768px) {
  .pricing-tabs-bar {
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 0.5rem !important;
    padding: 0.5rem 1rem 1.2rem 1rem !important;
    margin-left: -1rem !important;
    margin-right: -1rem !important;
    margin-bottom: 2rem !important;
  }
  .price-tab-btn {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    padding: 0.6rem 1.2rem !important;
    font-size: 0.85rem !important;
  }
}


/* ============================================================
   7. INDEX.HTML — FAQ SECTION
   ============================================================ */
@media (max-width: 768px) {
  .faq-grid {
    grid-template-columns: 1fr !important;
  }

  .faq-item {
    padding: 1.2rem !important;
  }
}


/* ============================================================
   8. FOOTER — MOBILE
   ============================================================ */
@media (max-width: 768px) {
  .footer-newsletter {
    padding: 2.5rem 1.5rem !important;
  }

  .newsletter-inner {
    flex-direction: column !important;
    gap: 1.5rem !important;
    align-items: flex-start !important;
  }

  .newsletter-form {
    width: 100% !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
  }

  .nl-input-wrap {
    width: 100% !important;
  }

  .nl-btn {
    width: 100% !important;
    justify-content: center !important;
  }

  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .footer-bottom {
    flex-direction: column !important;
    text-align: center !important;
    gap: 0.8rem !important;
    padding: 1.5rem !important;
  }

  .footer-legal {
    flex-wrap: wrap !important;
    justify-content: center !important;
  }

  .footer-made-in {
    justify-content: center !important;
  }

  .footer-quick-actions {
    flex-direction: column !important;
    gap: 0.6rem !important;
  }
}

/* ============================================================
   9. PRODUCT PAGE
   ============================================================ */
@media (max-width: 768px) {
  /* Product hero grid split → stack (legacy classes safety net) */
  .product-hero-grid,
  .product-intro-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }



  /* Product cards 4-col → 1 col */
  .categories-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
    max-width: 480px !important;
    margin: 0 auto !important;
  }

  .card-visual {
    height: 270px !important;
    padding: 1.2rem !important;
    border-top-left-radius: 20px !important;
    border-top-right-radius: 20px !important;
  }

  .card-product-img {
    max-height: 230px !important;
    max-width: 88% !important;
    width: auto !important;
    object-fit: contain !important;
  }

  .card-content {
    padding: 1.2rem !important;
    gap: 1rem !important;
  }

  .category-card {
    border-radius: 20px !important;
  }

  /* Product cards 4-col → 1 col */
  .prod-cards-grid,
  .products-catalog-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  /* Product popup → full screen */
  .product-popup,
  .prod-modal {
    width: 100vw !important;
    height: 100dvh !important;
    max-width: none !important;
    border-radius: 0 !important;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
  }

  /* Comparison tabs → scroll */
  .comparison-tabs {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 0.5rem !important;
    padding: 0.5rem 1rem 1rem !important;
    width: 100% !important;
  }

  .tab-btn {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    font-size: 0.8rem !important;
    padding: 0.6rem 1.2rem !important;
  }

  /* Creative Shades color chips → scroll */
  .color-section-container {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .color-content-side {
    width: 100% !important;
    overflow-x: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem !important;
    box-sizing: border-box !important;
  }

  .color-collections-filters {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 0.5rem !important;
    padding: 0.5rem 0.5rem 1.2rem 0.5rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .filter-chip {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    font-size: 0.8rem !important;
    padding: 0.5rem 1.1rem !important;
  }

  /* Application steps → stack */
  .app-steps-row {
    flex-direction: column !important;
    gap: 1.5rem !important;
  }

  .app-step-connector {
    display: none !important;
  }
}


/* ============================================================
   10. STORY PAGE
   ============================================================ */
@media (max-width: 768px) {
  /* Hero split → stack */
  .story-hero-section {
    flex-direction: column !important;
    min-height: auto !important;
    padding-top: 7rem !important;
  }

  .hero-left-col,
  .hero-right-col {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Timeline → single column */
  .timeline-grid,
  .timeline-row {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  /* Values grid */
  .values-grid,
  .team-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
}


/* ============================================================
   11. PRICING PAGE
   ============================================================ */
@media (max-width: 768px) {
  .pricing-split-header-row {
    grid-template-columns: 1fr !important;
    text-align: center !important;
  }

  .pricing-image-showcase {
    display: none !important;
  }

  .packages-grid {
    grid-template-columns: 1fr !important;
  }

  .package-card.featured {
    transform: none !important;
  }

  .margins-cards-grid {
    grid-template-columns: 1fr !important;
  }

  .distribution-grid {
    grid-template-columns: 1fr !important;
  }
}


/* ============================================================
   12. CONTACT PAGE
   ============================================================ */
@media (max-width: 768px) {
  .options-grid {
    grid-template-columns: 1fr !important;
  }

  .form-map-grid {
    grid-template-columns: 1fr !important;
  }

  .why-connect-grid {
    grid-template-columns: 1fr !important;
  }

  .final-cta-section {
    margin: 0 1rem 1rem !important;
    border-radius: 20px !important;
    padding: 5rem 1.5rem !important;
  }

  .final-cta-buttons {
    flex-direction: column !important;
    align-items: center !important;
  }

  .final-cta-buttons a {
    width: 100% !important;
    max-width: 300px !important;
    justify-content: center !important;
  }
}


/* ============================================================
   13. GENERAL OVERFLOW / PREVENT HORIZONTAL SCROLL
   ============================================================ */
@media (max-width: 768px) {
  html, body {
    overflow-x: clip !important;
    position: relative !important;
    width: 100% !important;
  }

  main, section, div, header {
    max-width: 100% !important;
  }

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

  /* Tables → horizontal scroll */
  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Remove large decorative elements on tiny screens */
  @media (max-width: 480px) {
    .organic-blob,
    .slide-ring,
    .slide-hex-grid {
      display: none !important;
    }
  }
}


/* ============================================================
   14. SMALL PHONE (360-480px) EXTRA FIXES
   ============================================================ */
@media (max-width: 480px) {
  header {
    width: calc(100% - 1.5rem) !important;
    height: 54px !important;
    padding: 0 1rem !important;
    border-radius: 60px !important;
  }

  /* Allow hero and product visuals to scale naturally based on section 5 and 5.5 rules */
  .hero-slide-visual {
    width: auto !important;
    height: auto !important;
  }

  .btn {
    font-size: 0.75rem !important;
    padding: 0.45rem 0.9rem !important;
    min-height: 32px !important;
  }

  .color-palette-grid,
  .colour-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .footer-quick-actions {
    flex-direction: column !important;
  }
}

/* ============================================================
   15. INDEX.HTML — PRODUCT SHOWCASE: Large, appealing product cans on mobile
   ============================================================ */
@media (max-width: 768px) {
  .products-sticky-wrap {
    height: 580vh !important; /* Keep final slide pinned longer */
  }

  .products-stage {
    position: sticky !important;
    top: 74px !important; /* Keep below floating header on mobile */
    height: calc(100vh - 74px) !important; /* Fits viewport area below nav bar */
  }

  .product-slide {
    padding: 2.2rem 1.25rem 4.5rem !important;
    gap: 1rem !important;
    box-sizing: border-box !important;
  }

  .product-slide .slide-info {
    padding-bottom: 2rem !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  .product-slide .slide-title {
    font-size: 1.6rem !important;
    margin-bottom: 0.3rem !important;
  }

  .product-slide .slide-desc {
    font-size: 0.78rem !important;
    line-height: 1.35 !important;
    margin-bottom: 0.5rem !important;
    max-width: 90% !important;
  }

  /* Display features in a 2x2 grid to save substantial vertical space and avoid pushing the button off-screen */
  .product-slide .slide-features {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.4rem 1rem !important;
    margin: 0.4rem auto 0.8rem !important;
    padding: 0 !important;
    list-style: none !important;
    max-width: 320px !important;
    text-align: left !important;
  }

  .product-slide .slide-features li {
    font-size: 0.78rem !important;
    white-space: nowrap !important;
  }

  .product-slide .slide-cta {
    align-self: center !important;
    margin-top: 0.2rem !important;
  }

  .product-slide .slide-visual {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin-bottom: 0.2rem !important;
  }

  /* Prominent paint can visual size for mobile viewports */
  .product-slide .product-can-wrap {
    width: 220px !important;
    height: 250px !important;
    max-width: 85% !important;
    margin: 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .product-slide .product-can-img {
    height: 230px !important;
    width: auto !important;
    max-width: 100% !important;
    max-height: 230px !important;
    object-fit: contain !important;
    filter: drop-shadow(0 18px 32px rgba(0, 0, 0, 0.42)) !important;
  }

  .product-slide .can-glow {
    width: 190px !important;
    height: 190px !important;
    filter: blur(28px) !important;
  }
}

@media (max-width: 480px) {
  .product-slide {
    padding: 1.6rem 1rem 3.8rem !important;
  }

  .product-slide .slide-visual {
    margin-bottom: 0.4rem !important;
  }

  .product-slide .slide-info {
    padding-bottom: 1.2rem !important;
  }

  .product-slide .slide-title {
    font-size: 1.45rem !important;
  }

  .product-slide .slide-desc {
    font-size: 0.76rem !important;
    line-height: 1.3 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .product-slide .slide-features li {
    font-size: 0.74rem !important;
  }

  .product-slide .product-can-wrap {
    width: 200px !important;
    height: 230px !important;
    max-width: 85% !important;
    margin: 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .product-slide .product-can-img {
    height: 210px !important;
    max-height: 210px !important;
    width: auto !important;
    max-width: 100% !important;
    object-fit: contain !important;
    filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.42)) !important;
  }

  .product-slide .can-glow {
    width: 170px !important;
    height: 170px !important;
    filter: blur(25px) !important;
  }
}

/* ============================================================
   MOBILE BOTTOM NAVIGATION (APP-LIKE)
   ============================================================ */
.mobile-bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  /* Hide the top hamburger button and any extra links on mobile top header */
  .nav-hamburger,
  #nav-hamburger,
  .mobile-nav-overlay,
  .mobile-nav-drawer {
    display: none !important;
  }

  /* Center the logo in the top nav bar on mobile */
  header, #site-header {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
  }
  
  header .logo, #site-header .logo {
    margin: 0 auto !important;
    width: 110px !important;
    display: flex !important;
    justify-content: center !important;
  }

  /* Bottom Nav Container */
  .mobile-bottom-nav {
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 60px !important;
    background: rgba(245, 250, 248, 0.96) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-top: 1px solid rgba(15, 77, 58, 0.08) !important;
    justify-content: space-around !important;
    align-items: center !important;
    z-index: 9999 !important;
    box-shadow: 0 -4px 20px rgba(15, 77, 58, 0.05) !important;
    padding-bottom: env(safe-area-inset-bottom) !important; /* support iPhone notch bottom space */
    box-sizing: content-box !important;
  }

  .mobile-bottom-nav .nav-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    color: rgba(15, 77, 58, 0.55) !important;
    text-decoration: none !important;
    font-size: 0.65rem !important;
    font-weight: 600 !important;
    gap: 3px !important;
    width: 20% !important;
    height: 100% !important;
    transition: color 0.2s ease, transform 0.2s ease !important;
  }

  .mobile-bottom-nav .nav-item i {
    font-size: 1.1rem !important;
    transition: transform 0.2s ease !important;
  }

  /* Active state */
  .mobile-bottom-nav .nav-item.active {
    color: var(--forest, #0F4D3A) !important;
  }
  
  .mobile-bottom-nav .nav-item.active i {
    transform: scale(1.08) !important;
  }

  /* Shift standard content padding bottom slightly to avoid content hidden behind bottom nav */
  body {
    padding-bottom: 70px !important;
  }
}
