/* ==========================================================================
   goodlabel RESPONSIVE OVERHAUL v2 — Full Cross-Device Fix
   Appended after all existing rules. Fixes all identified issues.
   ========================================================================== */

/* ── 1. PERFORMANCE: Disable heavy body animation on mobile ──────────────── */
@media (max-width: 768px) {
  body {
    animation: none !important;
    background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 36px 36px, 100% 100% !important;
    background-attachment: scroll !important;
  }
}

/* ── 2. ACCESSIBILITY: Respect prefers-reduced-motion ────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .floating-card,
  .blur-circle,
  .hero-motto,
  .spin-loop,
  body {
    animation: none !important;
  }
  /* Exception: Keep marquee tracks auto-moving */
  .customers-track {
    animation: scroll-left-fast 32s linear infinite !important;
  }
  .labels-track {
    animation: scroll-left-slow 40s linear infinite !important;
  }
}

/* ── 3. IMAGES: Universal lazy-load performance defaults ─────────────────── */
img {
  max-width: 100%;
  height: auto;
  display: block;
}
.product-image {
  will-change: transform;
}

/* ── 4. SUBPAGE: Fix about.html's inline padding-top: 100px on <main> ──── */
/* The about page has main style="padding-top:100px" which stacks under the 
   hero band — correct this with the CSS class override */
main.subpage-content[style*="padding-top: 100px"] {
  padding-top: 0 !important;
}

/* ── 5. CONTAINER: Safe padding at every breakpoint ─────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding-left: clamp(14px, 4vw, 40px);
  padding-right: clamp(14px, 4vw, 40px);
}

/* ── 6. HEADER / NAVBAR: Proper floating pill → flat strip transition ────── */
/* On tablet and below, the floating pill navbar creates left/right gaps 
   and z-index clipping issues on narrow viewports */
@media (max-width: 1024px) {
  .header {
    top: 12px !important;
    width: 95% !important;
  }
}
@media (max-width: 768px) {
  .header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
    transform: none !important;
    z-index: 2000 !important;
  }
  .header.scrolled {
    top: 0 !important;
  }
  .navbar {
    padding: 10px 16px !important;
    min-height: 56px;
  }
  .logo {
    font-size: clamp(0.9rem, 4vw, 1.1rem) !important;
  }
  .logo i {
    font-size: clamp(1rem, 4.5vw, 1.3rem) !important;
  }
  .nav-actions {
    gap: 16px !important;
    padding-right: 8px !important;
  }
  .theme-toggle {
    min-width: 44px !important;
    min-height: 44px !important;
    width: 44px !important;
    height: 44px !important;
  }
  .mobile-nav-toggle {
    min-width: 44px !important;
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  /* Full-screen mobile menu */
  .nav-links.nav-open {
    top: 56px !important;
    padding: 48px 24px !important;
    gap: 2.5rem !important;
  }
  .nav-links.nav-open .nav-link {
    font-size: clamp(1.35rem, 6vw, 1.75rem) !important;
    padding: 8px 0 !important;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

/* ── 7. HERO SECTION: Padding and layout fixes ───────────────────────────── */
.hero {
  /* Accounts for flat navbar height (≈54px) with premium balanced breathing room */
  padding-top: clamp(80px, 8vw, 110px) !important;
  padding-bottom: clamp(60px, 6vw, 100px) !important;
}

@media (max-width: 1024px) {
  .hero {
    padding-top: 100px !important;
    padding-bottom: 70px !important;
  }
  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: clamp(28px, 5vw, 48px) !important;
    text-align: center;
  }
  .hero-content {
    align-items: center;
    display: flex;
    flex-direction: column;
  }
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-ctas {
    justify-content: center;
  }
  .hero-visual {
    height: clamp(300px, 45vw, 420px) !important;
  }
}

@media (max-width: 768px) {
  .hero {
    padding-top: 80px !important;
    padding-bottom: 50px !important;
  }
  .hero-title {
    font-size: clamp(1.75rem, 7.5vw, 2.35rem) !important;
    line-height: 1.2 !important;
  }
  .hero-desc {
    font-size: clamp(0.9rem, 3.5vw, 1rem) !important;
    padding: 0 !important;
  }
  .hero-ctas {
    flex-direction: column !important;
    width: 100% !important;
    gap: 10px !important;
    align-items: stretch !important;
  }
  .hero-ctas .btn {
    width: 100% !important;
    justify-content: center !important;
    min-height: 48px !important;
  }
  .hero-visual {
    display: none !important;
  }
  .drag-hint-badge {
    font-size: 0.7rem !important;
    padding: 6px 12px !important;
    top: -10px !important;
    white-space: normal !important;
    text-align: center !important;
    max-width: calc(100% - 20px) !important;
    width: auto !important;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: 72px !important;
    padding-bottom: 40px !important;
  }
  .hero-title {
    font-size: clamp(1.55rem, 8vw, 1.9rem) !important;
  }
  .floating-card {
    width: 130px !important;
    height: 90px !important;
    padding: 9px !important;
  }
  .floating-card .card-logo {
    font-size: 0.8rem !important;
  }
  .floating-card .card-name {
    font-size: 0.9rem !important;
  }
}

@media (max-width: 380px) {
  .hero-title {
    font-size: 1.45rem !important;
  }
  .floating-card {
    width: 112px !important;
    height: 80px !important;
    padding: 8px !important;
  }
}

/* iPhone SE (320px) */
@media (max-width: 320px) {
  .hero-title {
    font-size: 1.35rem !important;
  }
  .hero-motto {
    font-size: 0.65rem !important;
    padding: 5px 10px !important;
    letter-spacing: 0.02em !important;
  }
  .hero-ctas .btn {
    font-size: 0.85rem !important;
    padding: 10px 16px !important;
  }
  .floating-card {
    width: 100px !important;
    height: 72px !important;
  }
  .container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}

/* ── 8. HERO 3D CANVAS: keep inside bounds ────────────────────────────────── */
#hero-3d-scroll-container {
  overflow: hidden;
}
@media (max-width: 768px) {
  #hero-3d-scroll-container {
    top: 0 !important;
    height: 100% !important;
    min-height: 0 !important;
  }
}

/* ── 9. ABOUT SECTION ────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr !important;
    gap: 36px !important;
  }
  .about-stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 768px) {
  .about {
    padding: 60px 0 !important;
  }
  .about-grid {
    text-align: center !important;
  }
  .about-content {
    align-items: center !important;
  }
  .about-desc {
    text-align: left !important;
  }
  .stat-card {
    padding: 18px 16px !important;
  }
  .stat-number {
    font-size: 1.8rem !important;
  }
}
@media (max-width: 480px) {
  .about-stats-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ── 10. ABOUT HERO BAND (About page) ────────────────────────────────────── */
@media (max-width: 1024px) {
  .kinetic-stats-row {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 768px) {
  .about-hero-band .container {
    padding-top: 80px !important;
    padding-bottom: 44px !important;
  }
  .about-hero-headline {
    font-size: clamp(1.9rem, 9vw, 3.25rem) !important;
    letter-spacing: -0.025em !important;
  }
  .about-hero-sub {
    font-size: clamp(0.9rem, 3.5vw, 1rem) !important;
    max-width: 100% !important;
  }
  .kinetic-stats-row {
    grid-template-columns: repeat(2, 1fr) !important;
    margin-top: 36px !important;
  }
  .kinetic-stat {
    padding: 20px 14px 12px !important;
  }
  .kinetic-stat-number {
    font-size: clamp(1.75rem, 6vw, 2.5rem) !important;
  }
  .kinetic-stat-label {
    font-size: 0.7rem !important;
  }
}
@media (max-width: 480px) {
  .about-hero-headline {
    font-size: clamp(1.65rem, 9vw, 2.4rem) !important;
  }
  .about-hero-eyebrow {
    font-size: 0.68rem !important;
    letter-spacing: 0.18em !important;
  }
  .about-hero-eyebrow::before {
    width: 24px !important;
  }
}

/* ── 11. ABOUT SHOWCASE / MARQUEE ────────────────────────────────────────── */
@media (max-width: 768px) {
  .about-showcase {
    padding: 50px 0 !important;
  }
  .showcase-header {
    margin-bottom: 36px !important;
  }
  /* Title wraps onto its own line, live-pill drops below */
  .showcase-header .section-title {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 10px !important;
    font-size: clamp(1.25rem, 5.5vw, 1.75rem) !important;
  }
  .live-pill {
    margin-left: 0 !important;
    align-self: center;
  }
  .subsection-title {
    font-size: 1.1rem !important;
    flex-wrap: wrap;
  }
  .customer-card {
    width: 180px !important;
    padding: 14px 16px !important;
  }
  .label-card {
    width: 215px !important;
    height: 140px !important;
    padding: 16px !important;
  }
  .label-name {
    font-size: 1.05rem !important;
  }
  /* Reduce marquee mask to avoid clipping on narrow screens */
  .marquee-container {
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%) !important;
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%) !important;
  }
}
@media (max-width: 480px) {
  .customer-card {
    width: 155px !important;
    padding: 12px !important;
  }
  .label-card {
    width: 190px !important;
    height: 130px !important;
    padding: 14px !important;
  }
}

/* ── 12. STUDIO SECTION (homepage teaser) ────────────────────────────────── */
@media (max-width: 768px) {
  .studio {
    padding: 60px 0 !important;
  }
  /* Override the inline style="padding: clamp(20px, 5vw, 50px)" glass-card */
  .studio .glass-card {
    padding: clamp(20px, 5vw, 36px) !important;
  }
  .studio .section-title {
    font-size: clamp(1.35rem, 5.5vw, 1.85rem) !important;
  }
  .studio .section-desc {
    font-size: 0.92rem !important;
  }
  /* CTA button group inside inline flex div */
  .studio .glass-card > div[style*="flex"] {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .studio .glass-card .btn {
    width: 100% !important;
    justify-content: center !important;
    min-height: 48px !important;
  }
}

/* ── 13. STUDIO PAGE (studio.html full customizer) ───────────────────────── */
@media (max-width: 1024px) {
  .studio-grid {
    flex-direction: column !important;
    display: flex !important;
  }
  .studio-viewport-container {
    order: -1 !important;
  }
  .studio-panel {
    max-height: none !important;
  }
  .studio-viewport {
    height: clamp(360px, 55vw, 520px) !important;
  }
}
@media (max-width: 768px) {
  .studio-grid {
    gap: 20px !important;
  }
  .studio-panel {
    padding: 18px 14px !important;
  }
  .studio-viewport {
    height: clamp(280px, 60vw, 380px) !important;
  }
  .studio-section-title {
    font-size: 1.1rem !important;
  }
  .options-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
  }
  .option-card {
    padding: 8px 4px !important;
    font-size: 0.75rem !important;
    gap: 4px;
  }
  .option-card i {
    font-size: 1rem !important;
  }
  .studio-bar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 14px !important;
  }
  .studio-bar .btn {
    width: 100% !important;
    justify-content: center !important;
    min-height: 48px !important;
  }
  .studio-bar-price {
    font-size: 1.2rem !important;
    text-align: center;
  }
  /* Studio tabs horizontal scroll */
  .studio-tabs-bar {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding: 6px 4px !important;
    gap: 4px !important;
    justify-content: flex-start !important;
  }
  .studio-tabs-bar::-webkit-scrollbar {
    display: none !important;
  }
  .studio-tabs-bar .btn {
    flex-shrink: 0 !important;
    min-width: 130px !important;
    padding: 10px 16px !important;
    font-size: 0.85rem !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    border-radius: var(--radius-full) !important;
  }
}
@media (max-width: 480px) {
  .studio-viewport {
    height: 260px !important;
  }
  .options-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .option-card {
    font-size: 0.7rem !important;
  }
}

/* ── 14. PRODUCT GRID & CARDS ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
  }
}
@media (max-width: 768px) {
  .products {
    padding: 60px 0 !important;
  }
  .section-header {
    margin-bottom: 36px !important;
  }
  /* 2-col on phones ≥ 420px for a pleasant grid */
  .product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
  }
  .product-card {
    padding: 18px 14px !important;
    min-height: auto !important;
  }
  .product-image-container {
    margin-bottom: 12px !important;
  }
  .product-title {
    font-size: 1.05rem !important;
    margin-bottom: 8px !important;
  }
  .product-desc {
    font-size: 0.82rem !important;
    margin-bottom: 14px !important;
  }
  .product-card .btn-text {
    font-size: 0.85rem !important;
  }
}
@media (max-width: 480px) {
  /* Single column on small phones */
  .product-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
}

/* ── 15. SIMULATOR SECTION ────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .simulator-card {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
    padding: 32px 24px !important;
  }
  .simulator-visual {
    height: clamp(260px, 45vw, 360px) !important;
    order: -1 !important;
  }
}
@media (max-width: 768px) {
  .simulator-sec {
    padding: 60px 0 !important;
  }
  .simulator-card {
    padding: 24px 16px !important;
    gap: 24px !important;
  }
  .simulator-content {
    gap: 12px !important;
  }
  .simulator-title {
    font-size: clamp(1.35rem, 5.5vw, 1.9rem) !important;
  }
  .simulator-visual {
    height: clamp(230px, 55vw, 320px) !important;
  }
  .sim-container {
    width: 105px !important;
    height: 230px !important;
  }
  .sim-sleeve {
    height: 185px !important;
  }
}
@media (max-width: 480px) {
  .sim-container {
    width: 90px !important;
    height: 200px !important;
  }
  .sim-sleeve {
    height: 160px !important;
  }
}

/* ── 16. QUOTE / CONTACT SECTION ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .contact-calculator {
    padding: 60px 0 !important;
  }
  /* Override inline style="padding: clamp(20px, 5vw, 50px)" */
  .contact-calculator .glass-card {
    padding: clamp(20px, 5.5vw, 36px) !important;
    max-width: 100% !important;
    margin: 0 !important;
  }
  .contact-calculator .section-title {
    font-size: clamp(1.3rem, 5.5vw, 1.75rem) !important;
  }
  /* CTA buttons in inline flex */
  .contact-calculator div[style*="display: flex"] {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .contact-calculator .btn {
    width: 100% !important;
    justify-content: center !important;
    min-height: 48px !important;
  }
  .form-card {
    padding: 24px 16px !important;
  }
  .form-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  .form-group-full {
    grid-column: span 1 !important;
  }
  .calc-row {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .form-input {
    padding: 12px 14px !important;
    font-size: 16px !important; /* Prevents iOS zoom-on-focus */
  }
  select.form-input {
    font-size: 16px !important;
  }
  textarea.form-input {
    font-size: 16px !important;
  }
}
@media (max-width: 480px) {
  .form-card {
    padding: 20px 14px !important;
  }
}

/* ── 17. FOOTER ───────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 36px !important;
  }
}
@media (max-width: 768px) {
  .footer {
    padding: 56px 0 28px !important;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 28px !important;
    margin-bottom: 40px !important;
  }
  .footer-col-title {
    font-size: 0.95rem !important;
  }
  .footer-links a {
    padding: 5px 0 !important;
    display: inline-block;
    min-height: 32px;
    line-height: 1.4;
  }
  .footer-bottom {
    flex-direction: column !important;
    text-align: center !important;
    gap: 14px !important;
    padding-top: 20px !important;
  }
  .footer-socials {
    justify-content: center !important;
    gap: 10px !important;
  }
  .social-icon {
    width: 44px !important;
    height: 44px !important;
  }
}
@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  .footer {
    padding: 44px 0 24px !important;
  }
  .footer-logo {
    font-size: 0.95rem !important;
  }
}

/* ── 18. SECTION TYPOGRAPHY: Single fluid scale, no conflicts ─────────────── */
.section-title {
  font-size: clamp(1.45rem, 3.5vw, 2.5rem) !important;
  word-break: break-word;
  overflow-wrap: break-word;
}
.section-desc {
  font-size: clamp(0.9rem, 2vw, 1.125rem) !important;
}
h1 {
  font-size: clamp(1.75rem, 5vw, 4rem) !important;
}
h2 {
  font-size: clamp(1.45rem, 3.5vw, 2.5rem);
  word-break: break-word;
  overflow-wrap: break-word;
}
h3 {
  word-break: break-word;
  overflow-wrap: break-word;
}
p, li {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* ── 19. GLOBAL TOUCH TARGET & BUTTON MINIMUMS ───────────────────────────── */
.btn {
  min-height: 44px !important;
  touch-action: manipulation !important;
  -webkit-tap-highlight-color: transparent !important;
}
a, button {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.nav-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* ── 20. INLINE STYLE OVERRIDES: Fix glass-card padding used via style= ──── */
/* Some sections use style="padding: clamp(20px, 5vw, 50px)" which breaks 
   mobile. We use a media query to cap it. */
@media (max-width: 768px) {
  section .glass-card[style*="padding"] {
    padding: clamp(18px, 5vw, 32px) !important;
  }
  /* Fix quote page calc-grid max-width to not cut off */
  .calc-grid {
    max-width: 100% !important;
    padding: 0 !important;
  }
}

/* ── 21. SUBPAGE MAIN PADDING: Accounts for navbar height ────────────────── */
.subpage-content {
  padding-top: clamp(80px, 8vw, 110px) !important;
  padding-bottom: clamp(60px, 6vw, 90px) !important;
}
/* About page has hero band immediately after header — no extra pad needed */
.about-hero-band + .subpage-content,
.about-hero-band ~ * .subpage-content {
  padding-top: 0 !important;
}
@media (max-width: 768px) {
  .subpage-content {
    padding-top: 72px !important;
    padding-bottom: 56px !important;
  }
}
@media (max-width: 480px) {
  .subpage-content {
    padding-top: 64px !important;
    padding-bottom: 44px !important;
  }
}

/* ── 22. MATERIALS GRID ────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .materials-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 768px) {
  .materials {
    padding: 60px 0 !important;
  }
  .materials-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }
  .material-card {
    padding: 18px 12px !important;
  }
  .material-sample {
    width: 72px !important;
    height: 72px !important;
    margin-bottom: 14px !important;
  }
  .material-card-title {
    font-size: 0.95rem !important;
  }
  .material-card-desc {
    font-size: 0.78rem !important;
  }
}

/* ── 23. OVERFLOW HARDENING: Nothing should cause horizontal scroll ─────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html, body {
  overflow-x: clip !important;
  width: 100% !important;
}
section,
.container,
header,
footer,
nav {
  max-width: 100%;
  overflow-x: hidden;
}
.blur-circle {
  max-width: min(40vw, 350px) !important;
  max-height: min(40vw, 350px) !important;
}
canvas,
video,
iframe,
embed {
  max-width: 100%;
}

/* ── 24. PRODUCT DETAIL PAGES (beverages.html, food-dairy.html, etc.) ──────── */
/* These pages use about-grid with inline minmax - fix on mobile */
@media (max-width: 768px) {
  .about-grid[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
  /* Table overflow for tech specs */
  .glass-card[style*="overflow-x: auto"] table {
    min-width: 500px;
  }
  /* Increase product detail padding */
  .product-details-sec {
    padding-top: 24px !important;
    padding-bottom: 60px !important;
  }
}
@media (max-width: 480px) {
  .glass-card[style*="margin-top: 60px"] {
    margin-top: 36px !important;
    padding: 20px 14px !important;
  }
}

/* ── 25. BEVERAGE TYPES GRID ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .beverage-types-grid,
  [class*="types-grid"] {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}

/* ── 26. STAT CARD NUMBERS: don't overflow their containers ──────────────── */
.stat-number,
.kinetic-stat-number {
  word-break: break-word;
  overflow-wrap: break-word;
}

/* ── 27. SCROLL PROGRESS BAR: always above everything ───────────────────── */
#scroll-progress-bar {
  z-index: 9999 !important;
}

/* ── 28. SECTION SPACING RHYTHM: consistent vertical cadence ─────────────── */
@media (max-width: 768px) {
  .hero, .about, .about-showcase, .studio, .products,
  .simulator-sec, .contact-calculator {
    padding-top: clamp(48px, 10vw, 80px) !important;
    padding-bottom: clamp(48px, 10vw, 80px) !important;
  }
  .hero {
    padding-top: clamp(82px, 14vw, 110px) !important;
  }
}

/* ── 29. GLASS-CARD HOVER: disable on touch devices to prevent sticky hover */
@media (hover: none) {
  .glass-card:not(.header):hover {
    transform: none !important;
    box-shadow: var(--shadow-md) !important;
    border-color: var(--glass-border) !important;
  }
  .product-card:hover {
    transform: none !important;
  }
  .product-card:hover .product-image {
    transform: none !important;
  }
  .marquee-card:hover {
    transform: none !important;
  }
}

/* ── 30. LARGE DESKTOP CAPPING (1440px+) ─────────────────────────────────── */
@media (min-width: 1440px) {
  .hero {
    padding-top: 200px !important;
    padding-bottom: 120px !important;
  }
  .hero-title {
    font-size: clamp(3.5rem, 3.5vw, 4.5rem) !important;
  }
  .about,
  .studio,
  .products,
  .simulator-sec,
  .contact-calculator {
    padding-top: 120px !important;
    padding-bottom: 120px !important;
  }
  .footer {
    padding-top: 100px !important;
  }
}

/* ── 31. SECTION BADGE MOBILE ────────────────────────────────────────────── */
@media (max-width: 480px) {
  .section-badge {
    font-size: 0.72rem !important;
    padding: 5px 12px !important;
  }
}

/* ── 32. FORM INPUT: Prevent iOS 16+ zoom on focus ─────────────────────────── */
@media (max-width: 768px) {
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  input[type="password"],
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   33. NAV FIX — DEFINITIVE
   • Hamburger is COMPLETELY HIDDEN on desktop (769px+)
   • Desktop nav-links always display as horizontal row
   • Mobile overlay works reliably at every screen size
   ══════════════════════════════════════════════════════════════════════════ */

/* DESKTOP — always horizontal, no hamburger */
@media (min-width: 769px) {
  .mobile-nav-toggle {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
  .nav-links {
    display: flex !important;
    position: static !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 32px !important;
    background: transparent !important;
    padding: 0 !important;
    height: auto !important;
    width: auto !important;
    bottom: auto !important;
    opacity: 1 !important;
    overflow: visible !important;
    animation: none !important;
  }
  .nav-links .nav-link {
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    min-height: unset !important;
    padding: 0 !important;
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}

/* MOBILE — hamburger visible, nav hidden until toggled */
@media (max-width: 768px) {
  .mobile-nav-toggle {
    display: flex !important;
    visibility: visible !important;
    pointer-events: auto !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
  }

  .nav-links {
    display: none !important;
  }

  /* Full-screen slide-in overlay */
  .nav-links.nav-open {
    display: flex !important;
    position: fixed !important;
    top: 56px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2.5rem !important;
    background: var(--bg-primary) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    z-index: 1500 !important;
    padding: 48px 24px !important;
    overflow-y: auto !important;
    animation: mobile-nav-in 0.28s cubic-bezier(0.22, 1, 0.36, 1) both !important;
  }

  .nav-links.nav-open .nav-link {
    font-size: clamp(1.4rem, 6vw, 1.8rem) !important;
    font-weight: 700 !important;
    padding: 10px 0 !important;
    min-height: 48px !important;
    display: flex !important;
    align-items: center !important;
    color: var(--text-primary) !important;
    opacity: 0;
    transform: translateY(16px);
    animation: nav-link-reveal 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards !important;
  }

  .nav-links.nav-open .nav-link:nth-child(1) { animation-delay: 0.04s !important; }
  .nav-links.nav-open .nav-link:nth-child(2) { animation-delay: 0.09s !important; }
  .nav-links.nav-open .nav-link:nth-child(3) { animation-delay: 0.14s !important; }
  .nav-links.nav-open .nav-link:nth-child(4) { animation-delay: 0.19s !important; }
  .nav-links.nav-open .nav-link:nth-child(5) { animation-delay: 0.24s !important; }
}

@keyframes mobile-nav-in {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* DRAG HINT BADGE: only on desktop — hidden on tablet and phones */
@media (max-width: 1024px) {
  .drag-hint-badge {
    display: none !important;
  }
}

/* ── 34. BRAND IMAGE CARDS (Brands We Work With marquee) ─────────────────── */
/* We reset this to default customer-card horizontal name layout styling */
.customer-card {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 16px !important;
  width: 230px !important;
  height: auto !important;
  padding: 16px 20px !important;
  background: var(--bg-secondary) !important;
  border: 1.5px solid var(--glass-border) !important;
  border-radius: var(--radius-md) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.customer-card:hover {
  border-color: var(--primary) !important;
  transform: translateY(-4px) !important;
  box-shadow: 0 8px 24px rgba(37,99,235,0.12) !important;
}
.customer-card i {
  font-size: 1.35rem !important;
  color: var(--accent-orange) !important;
}
.customer-card span {
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  color: var(--text-primary) !important;
}

/* ── 35. LABEL PHOTO CARDS (Portfolio marquee) ───────────────────────────── */
/* Clean horizontal boxes that contain the logos */
.label-card.label-photo-card {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 320px !important;
  height: 140px !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.label-card.label-photo-card:hover {
  border: none !important;
  box-shadow: none !important;
  transform: translateY(-6px) !important;
}

/* Rotated logos: contain within card */
.label-card.label-photo-card img {
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  padding: 0 !important;
  display: block !important;
}

/* Custom positioning for upright vertical/square logos - using contain to fit fully */
.label-card.label-photo-card img[src*="brand_himalaya"] {
  object-fit: contain !important;
  padding: 0 !important;
}
.label-card.label-photo-card img[src*="brand_h2oalpha"] {
  object-fit: contain !important;
  padding: 0 !important;
}

@media (max-width: 480px) {
  .customer-card {
    width: 185px !important;
    padding: 12px 14px !important;
    gap: 12px !important;
  }
  .customer-card i {
    font-size: 1.15rem !important;
  }
  .customer-card span {
    font-size: 0.85rem !important;
  }
  .label-card.label-photo-card {
    width: 220px !important;
    height: 100px !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }
  .label-card.label-photo-card img {
    padding: 0 !important;
  }
  .label-card.label-photo-card img[src*="brand_himalaya"] {
    object-fit: contain !important;
  }
  .label-card.label-photo-card img[src*="brand_h2oalpha"] {
    object-fit: contain !important;
  }
}

/* ── 36. HERO VISUAL: Hidden globally (floating cards removed per client request) */
/* JS applyMobileCardLayout() must NOT set display:block on .hero-visual */
.hero-visual,
.floating-container,
.floating-card,
#hero-3d-scroll-container {
  display: none !important;
}

/* ── 37. HERO CENTERED LAYOUT: Full-width centered hero content ──────────── */
.hero-grid {
  display: flex !important;
  justify-content: center !important;
  text-align: center !important;
}
.hero-content {
  align-items: center !important;
  display: flex !important;
  flex-direction: column !important;
  max-width: 800px !important;
  margin: 0 auto !important;
  width: 100% !important;
}
.hero-desc {
  max-width: 650px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.hero-ctas {
  justify-content: center !important;
  margin-bottom: 0 !important;
}

/* ── 38. MOBILE HERO POLISH ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Hero section: tighter vertical padding now that cards are gone */
  .hero {
    padding-top: clamp(80px, 18vw, 110px) !important;
    padding-bottom: clamp(44px, 10vw, 72px) !important;
  }

  /* Badge (motto pill) */
  .hero-motto {
    font-size: clamp(0.65rem, 2.8vw, 0.82rem) !important;
    padding: 8px 16px !important;
    letter-spacing: 0.08em !important;
    gap: 8px !important;
    margin-bottom: 20px !important;
    max-width: 92vw !important;
    white-space: normal !important;
    text-align: center !important;
  }

  /* Hero headline */
  .hero-title {
    font-size: clamp(1.8rem, 8vw, 2.4rem) !important;
    line-height: 1.18 !important;
    margin-bottom: 18px !important;
  }

  /* Sub-heading accent italic */
  .hero-title .accent-text {
    display: block !important;
    font-size: clamp(1.6rem, 7.5vw, 2.2rem) !important;
  }

  /* Description paragraph */
  .hero-desc {
    font-size: clamp(0.9rem, 3.8vw, 1.05rem) !important;
    line-height: 1.65 !important;
    padding: 0 !important;
    margin-bottom: 32px !important;
  }

  /* CTA buttons: full-width stacked */
  .hero-ctas {
    flex-direction: column !important;
    width: 100% !important;
    gap: 12px !important;
    align-items: stretch !important;
  }
  .hero-ctas .btn {
    width: 100% !important;
    justify-content: center !important;
    min-height: 52px !important;
    font-size: 1rem !important;
    border-radius: 999px !important;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: clamp(72px, 20vw, 96px) !important;
    padding-bottom: clamp(36px, 10vw, 56px) !important;
  }
  .hero-title {
    font-size: clamp(1.6rem, 9vw, 2rem) !important;
  }
  .hero-motto {
    font-size: 0.68rem !important;
    padding: 7px 14px !important;
    letter-spacing: 0.06em !important;
  }
  .hero-desc {
    font-size: clamp(0.875rem, 4vw, 1rem) !important;
    margin-bottom: 28px !important;
  }
  .hero-ctas .btn {
    font-size: 0.95rem !important;
    min-height: 50px !important;
  }
}

@media (max-width: 380px) {
  .hero-title {
    font-size: 1.5rem !important;
  }
  .hero-motto {
    font-size: 0.63rem !important;
    padding: 6px 12px !important;
  }
}

@media (max-width: 320px) {
  .hero-title {
    font-size: 1.35rem !important;
  }
  .hero-ctas .btn {
    font-size: 0.88rem !important;
    min-height: 46px !important;
    padding: 10px 14px !important;
  }
}










