/* ================================================================
   aluplast® — Advanced Mobile Responsive Overrides
   Applied after style.css — fills gaps & polishes all breakpoints
   Breakpoints:  768px · 640px · 480px · 375px
   ================================================================ */

/* ----------------------------------------------------------------
   GLOBAL — prevent horizontal overflow everywhere
   ---------------------------------------------------------------- */
html, body {
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

* {
  -webkit-tap-highlight-color: transparent;
}

/* ----------------------------------------------------------------
   NAVIGATION — ensure nav height is accessible on mobile
   ---------------------------------------------------------------- */
@media (max-width: 480px) {
  .nav-inner {
    padding-inline: 1rem;
  }
  .nav-logo {
    font-size: 1.3rem;
  }
}

/* ----------------------------------------------------------------
   SECTION THEME TOGGLE — shrink on mobile so it doesn't cover content
   ---------------------------------------------------------------- */
@media (max-width: 640px) {
  .section-theme-toggle {
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.3rem 0.5rem;
    gap: 0.4rem;
    border-radius: 20px;
  }
  .section-theme-toggle__label {
    display: none;
  }
  .section-theme-toggle__switch {
    width: 38px;
    height: 20px;
  }
  .section-theme-toggle__knob {
    width: 14px;
    height: 14px;
  }
  .section-theme-toggle__switch.active .section-theme-toggle__knob {
    transform: translateX(18px);
  }
}

/* ----------------------------------------------------------------
   HERO SECTION — Polish at small breakpoints
   ---------------------------------------------------------------- */
@media (max-width: 640px) {
  .hero-ctas {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }
  .hero-ctas .magnetic-wrap {
    width: 100%;
  }
  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
  }
  .hero-sub {
    font-size: clamp(0.85rem, 3vw, 1rem);
  }
  .hero-eyebrow {
    font-size: 0.65rem;
    margin-bottom: 1.25rem;
  }
}

@media (max-width: 480px) {
  .hero-split {
    padding: 1.25rem 1rem;
    border-radius: 1rem;
    gap: 1.5rem;
    margin-left: 0.75rem;
    margin-right: 0.75rem;
    width: calc(100% - 1.5rem);
  }
  .hero-line span {
    font-size: clamp(1.9rem, 10vw, 2.5rem);
  }
  .hero-profile-img {
    height: clamp(180px, 38vw, 260px);
  }
  .hero-profile-label {
    font-size: 0.6rem;
    bottom: 0.5rem;
    padding: 0.4rem 0.75rem;
  }
  /* shapes are decorative — hide on tiny screens */
  .hero-shape {
    display: none;
  }
}

@media (max-width: 375px) {
  .hero-split {
    padding: 1rem 0.875rem;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    width: calc(100% - 1rem);
  }
  .hero-line span {
    font-size: clamp(1.7rem, 9.5vw, 2.2rem);
  }
  .btn {
    padding: 0.85em 1.6em;
    font-size: 0.72rem;
  }
}

/* ----------------------------------------------------------------
   HERO PRODUCT SELECTOR — vertical on very small screens
   ---------------------------------------------------------------- */
@media (max-width: 480px) {
  .hero-product-selector {
    gap: 0.4rem;
  }
  .product-tab {
    padding: 0.6rem 1rem;
  }
  .product-tab-name {
    font-size: 0.72rem;
  }
  .product-tab-spec {
    font-size: 0.6rem;
  }
}

/* ----------------------------------------------------------------
   MZA CAROUSEL — touch-friendly with scroll snap
   ---------------------------------------------------------------- */
.mzaCarousel-viewport {
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}

.mzaCarousel-slide {
  scroll-snap-align: center;
}

@media (max-width: 640px) {
  .mzaSection,
  .mza-section {
    padding-block: clamp(3rem, 6vh, 4rem);
  }
  .mzaCarousel-controls {
    margin-top: 1rem;
  }
  .mzaBtn-cta {
    font-size: 0.72rem;
    padding: 0.75rem 1.75rem;
  }
  .mzaCarousel-pagination {
    gap: 0.4rem;
  }
}

/* ----------------------------------------------------------------
   PRODUCTS DUAL SHOWCASE — additional polish below 480px
   ---------------------------------------------------------------- */
@media (max-width: 480px) {
  .products-tabs-container {
    padding-inline: 0.75rem;
  }
  .products-tabs-premium {
    width: 100%;
    margin: 0;
    border-radius: 0.5rem 0.5rem 0 0;
  }
  .products-tab {
    padding: 0.7rem 0.5rem;
    font-size: 0.52rem;
    gap: 0.3rem;
  }
  .product-pane__header {
    padding-bottom: 1rem;
  }
  .product-pane__title {
    font-size: clamp(2.5rem, 10vw, 3.5rem);
    line-height: 0.9;
  }
  .title-accent {
    font-size: clamp(3rem, 12vw, 4.5rem);
  }
  .spec-grid-2col {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .spec-item-minimal {
    padding: 0.75rem;
  }
  .spec-item-minimal__value {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }
  .product-pane__image {
    height: 240px;
  }
  .feature-pills {
    flex-wrap: wrap;
    gap: 0.4rem;
  }
}

/* ----------------------------------------------------------------
   PRODUCT SHOWCASE PANEL (3 cards)
   ---------------------------------------------------------------- */
@media (max-width: 640px) {
  .showcase-panel-header {
    padding-inline: 1rem;
  }
  .showcase-panel-title {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
  }
  .showcase-card {
    min-width: min(85vw, 320px);
  }
}

@media (max-width: 480px) {
  .showcase-panel-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem;
    padding-inline: 1rem;
  }
  .showcase-card__glass {
    flex-direction: row;
    align-items: center;
  }
  .showcase-card__img {
    width: 100px;
    min-width: 100px;
    height: 100px;
  }
  .showcase-card__img img {
    object-fit: contain;
    height: 100%;
    width: 100%;
  }
}

/* ----------------------------------------------------------------
   WOODEN WINDOWS SECTION
   ---------------------------------------------------------------- */
@media (max-width: 640px) {
  .ww-container {
    padding-inline: 1rem;
  }
  .ww-header__title {
    font-size: clamp(2rem, 8vw, 2.75rem);
  }
  .ww-product-card__inner {
    flex-direction: column;
  }
  .ww-product-card__media {
    height: 220px;
  }
  .ww-product-card__content {
    padding: 1.25rem;
  }
  .ww-spec__value {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .ww-style-selector {
    gap: 0.2rem;
  }
  .ww-style-tab__desc {
    display: none;
  }
  .ww-carousel__track {
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }
  .ww-product-card {
    scroll-snap-align: start;
  }
  .ww-wood-species__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
  }
  .ww-wood-chip__name {
    font-size: 0.6rem;
  }
  .ww-wood-chip__count,
  .ww-wood-chip__tag {
    font-size: 0.55rem;
  }
  .ww-tech-strip {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  .ww-tech-item {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
  .ww-cta-banner__text h3 {
    font-size: clamp(1.2rem, 5vw, 1.6rem);
  }
}

/* ----------------------------------------------------------------
   CREATED FOR — BENTO GRID — bottom padding on mobile
   ---------------------------------------------------------------- */
@media (max-width: 540px) {
  .cf-container {
    padding-inline: 0.875rem;
  }
  .cf-card {
    border-radius: 0.75rem;
  }
  .cf-card__body {
    padding: 1.25rem;
  }
  .cf-card__title {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }
  .cf-card__desc {
    font-size: 0.82rem;
    line-height: 1.55;
  }
  .cf-title {
    font-size: clamp(2rem, 9vw, 3rem);
  }
  .cf-desc {
    font-size: 0.875rem;
  }
  .cf-hover-hint {
    display: none;
  }
}

@media (max-width: 375px) {
  .cf-bento {
    grid-template-rows: repeat(5, 240px) !important;
  }
}

/* ----------------------------------------------------------------
   STAT BAR (sn-section) — single column on very small screens
   ---------------------------------------------------------------- */
@media (max-width: 420px) {
  .sn-grid {
    grid-template-columns: 1fr 1fr !important;
  }
  .sn-section {
    padding-inline: 0.75rem;
  }
  .sn-val {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }
  .sn-lbl {
    font-size: 0.6rem;
  }
}

@media (max-width: 340px) {
  .sn-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ----------------------------------------------------------------
   GLOBAL PRESENCE (gp-section) — spec panel on mobile
   ---------------------------------------------------------------- */
@media (max-width: 640px) {
  .gp-container {
    padding-inline: 1rem;
  }
  .gp-spec-item {
    gap: 0.75rem;
    padding: 0.875rem;
  }
  .gp-spec-grade {
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
  }
  .gp-actions {
    flex-direction: column;
    width: 100%;
  }
  .gp-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .gp-btn--ghost {
    width: 100%;
    justify-content: center;
  }
}

/* ----------------------------------------------------------------
   GLOBAL SECTION (globe) — compact on small phones
   ---------------------------------------------------------------- */
@media (max-width: 480px) {
  .global-container {
    padding-inline: 1rem;
  }
  .global-globe-center canvas {
    width: 200px;
    height: 200px;
  }
  .global-stat__ring {
    width: 60px;
    height: 60px;
  }
  .global-stat__value {
    font-size: 0.9rem;
  }
  .global-stat__label {
    font-size: 0.6rem;
  }
  .global-stats--left,
  .global-stats--right {
    gap: 1rem;
  }
  .global-regions {
    gap: 0.75rem;
  }
  .global-title {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }
  .region-card {
    border-radius: 0.75rem;
  }
  .region-card__content {
    padding: 1.25rem;
  }
  .region-card__title {
    font-size: clamp(1rem, 4vw, 1.2rem);
  }
}

/* ----------------------------------------------------------------
   CERTIFICATIONS — belt sizing on mobile
   ---------------------------------------------------------------- */
@media (max-width: 480px) {
  .cert-container {
    padding-inline: 1rem;
  }
  .cert-title {
    font-size: clamp(1.5rem, 7vw, 2.2rem);
  }
  .cert-card {
    min-width: 100px;
    padding: 0.75rem 0.5rem;
  }
  .cert-name {
    font-size: 0.6rem;
  }
  .cert-logo-wrap {
    height: 32px;
  }
}

/* ----------------------------------------------------------------
   CONTACT SECTION — full polish at small screens
   ---------------------------------------------------------------- */
@media (max-width: 480px) {
  .contact-section {
    padding-inline: 0;
  }
  .contact-section .container {
    padding-inline: 1rem;
    gap: 2rem;
  }
  .contact-cta h2 {
    font-size: clamp(1.75rem, 8vw, 2.25rem);
  }
  .contact-cta p {
    font-size: 0.875rem;
  }
  .contact-cta-buttons {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }
  .contact-cta-buttons .magnetic-wrap {
    width: 100%;
  }
  .contact-cta-buttons .btn {
    width: 100%;
    justify-content: center;
  }
  .contact-form {
    padding: 1.5rem 1.125rem;
  }
  .contact-form__title {
    font-size: 1.25rem;
  }
  .contact-cta__trust {
    flex-direction: column;
    align-items: center;
    gap: 0.875rem;
  }
}

/* ----------------------------------------------------------------
   FOOTER — single column on smallest screens
   ---------------------------------------------------------------- */
@media (max-width: 480px) {
  .footer-inner {
    grid-template-columns: 1fr !important;
    gap: 2rem;
    padding-block: 3rem !important;
  }
  .footer-brand {
    grid-column: 1 !important;
  }
  .footer-col {
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .footer-col:last-child {
    border-bottom: none;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding-block: 1.5rem;
  }
}

/* ----------------------------------------------------------------
   INFO POPUP — full-screen bottom sheet on mobile
   ---------------------------------------------------------------- */
@media (max-width: 640px) {
  .ip-overlay {
    padding: 0;
    align-items: flex-end;
  }
  .ip-panel {
    max-height: 92dvh;
    border-radius: 1.5rem 1.5rem 0 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .ip-imgstrip {
    flex-direction: row;
    height: 160px;
  }
  .ip-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .ip-stat__val {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }
  .ip-cta-row {
    flex-direction: column;
    gap: 0.75rem;
  }
  .ip-cta-btn,
  .ip-link-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .ip-comparison {
    flex-direction: column;
    gap: 1rem;
  }
  .ip-header {
    flex-direction: column-reverse;
    gap: 0.75rem;
    align-items: flex-start;
  }
  .ip-close {
    align-self: flex-end;
  }
  .ip-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }
}

/* ----------------------------------------------------------------
   SCROLL INDICATOR — already hidden at 768px. Hide toggle on small.
   ---------------------------------------------------------------- */
@media (max-width: 480px) {
  .scroll-indicator {
    display: none;
  }
}

/* ----------------------------------------------------------------
   SECTION PADDING — ensure generous breathing room across all screens
   ---------------------------------------------------------------- */
@media (max-width: 640px) {
  .section-padding {
    padding-block: clamp(3rem, 8vh, 5rem);
  }
  .section-padding-lg {
    padding-block: clamp(3.5rem, 8vh, 5.5rem);
  }
}

@media (max-width: 480px) {
  .section-padding {
    padding-block: clamp(2.5rem, 6vh, 4rem);
  }
  .section-padding-lg {
    padding-block: clamp(3rem, 6vh, 4.5rem);
  }
  .container {
    padding-inline: 1rem;
  }
}

/* ----------------------------------------------------------------
   BUTTON TOUCH TARGETS — minimum 44px everywhere on touch devices
   ---------------------------------------------------------------- */
@media (hover: none) and (pointer: coarse) {
  .btn,
  .ww-btn,
  .gp-btn,
  .mzaBtn-cta,
  .showcase-card__cta,
  .ww-style-tab,
  .products-tab,
  .product-tab,
  .cf-card__read-more,
  .ww-carousel-nav__btn,
  .mzaCarousel-prev,
  .mzaCarousel-next {
    min-height: 44px;
    min-width: 44px;
  }
  /* Prevent hover transforms interfering with tap on cards */
  .cf-card:hover,
  .region-card:hover,
  .sn-item:hover,
  .ww-product-card:hover {
    transform: none;
  }
  /* Form inputs — prevent iOS auto-zoom */
  .form-field input,
  .form-field textarea,
  .form-field select {
    font-size: 16px !important;
  }
}

/* ----------------------------------------------------------------
   LANDSCAPE PHONE — prevent content from being too compressed
   ---------------------------------------------------------------- */
@media (max-height: 500px) and (orientation: landscape) and (max-width: 900px) {
  .hero {
    min-height: auto;
    padding-block: 1rem 2rem;
  }
  .hero-split {
    margin-top: calc(var(--nav-height) + 2.75rem + 0.5rem);
    grid-template-columns: 1fr 1fr;
  }
  .hero-profile-img {
    height: 180px;
  }
  .mobile-menu {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 4rem 2rem 2rem;
    gap: 1rem 3rem;
    align-content: center;
  }
  .mobile-menu a {
    font-size: 1.25rem;
  }
}

/* ----------------------------------------------------------------
   IMAGES — ensure no overflow or distortion
   ---------------------------------------------------------------- */
img {
  max-width: 100%;
  height: auto;
}

/* Profile images in hero get contained properly */
.hero-profile-img {
  object-fit: contain;
  object-position: center;
}

/* ----------------------------------------------------------------
   SECTION HEADERS — tighten up at mobile
   ---------------------------------------------------------------- */
@media (max-width: 640px) {
  .section-header {
    margin-bottom: clamp(2rem, 5vh, 3rem);
    gap: 0.75rem;
  }
  .section-header h2 {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
  }
  .lux-divider {
    width: 40px;
    margin-block: 1rem;
  }
}

/* ----------------------------------------------------------------
   WOODEN WINDOWS TECH STRIP — horizontal scroll fallback
   ---------------------------------------------------------------- */
@media (max-width: 768px) {
  .ww-tech-strip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .ww-tech-item {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
    padding: 1rem 0.75rem;
  }
  .ww-tech-item__icon {
    margin: 0 auto;
  }
}

/* ----------------------------------------------------------------
   GLOBAL PRESENCE — gp-stats strip on mobile
   ---------------------------------------------------------------- */
@media (max-width: 640px) {
  .gp-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding-top: 1.5rem;
  }
  .gp-stat {
    text-align: center;
  }
  .gp-stat-val {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
  }
}

/* ----------------------------------------------------------------
   PRODUCT PANE IMAGE — fix aspect ratio on mobile
   ---------------------------------------------------------------- */
@media (max-width: 640px) {
  .product-pane__image {
    height: 260px;
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .product-pane__image img {
    object-fit: contain;
    padding: 1rem;
  }
  .product-pane__inner {
    gap: 0;
  }
}

/* ----------------------------------------------------------------
   NUMBERS TICKER — sn-section polishes
   ---------------------------------------------------------------- */
@media (max-width: 640px) {
  .sn-container {
    padding-inline: 1rem;
  }
  .sn-item {
    border-radius: 0.75rem;
  }
  .sn-face {
    padding: 1.25rem;
    gap: 0.75rem;
  }
  .sn-icon {
    width: 36px;
    height: 36px;
  }
  .sn-icon svg {
    width: 18px;
    height: 18px;
  }
}

/* ----------------------------------------------------------------
   MOBILE MENU — full viewport coverage, bigger tap targets
   ---------------------------------------------------------------- */
@media (max-width: 480px) {
  .mobile-menu {
    padding-inline: 2rem;
  }
  .mobile-menu a {
    font-size: clamp(1.5rem, 8vw, 2.5rem);
    padding: 0.3rem 0;
  }
}

/* ----------------------------------------------------------------
   SHOWCASE PANEL INNER — padding on mobile
   ---------------------------------------------------------------- */
@media (max-width: 640px) {
  .showcase-panel-inner {
    padding-inline: 1rem;
  }
  .showcase-panel-header {
    padding-inline: 0;
  }
  .showcase-panel-eyebrow {
    font-size: 0.6rem;
  }
  .showcase-panel-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }
}

/* ----------------------------------------------------------------
   REGION CARDS — stack properly on mobile
   ---------------------------------------------------------------- */
@media (max-width: 640px) {
  .global-regions {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.75rem;
  }
}

@media (max-width: 440px) {
  .global-regions {
    grid-template-columns: 1fr !important;
  }
}

/* ----------------------------------------------------------------
   CERTIFICATIONS HEADER — text alignment on mobile
   ---------------------------------------------------------------- */
@media (max-width: 640px) {
  .cert-header {
    text-align: center;
  }
  .cert-header__left {
    text-align: center;
  }
  .cert-sub {
    text-align: center;
    font-size: 0.875rem;
  }
  .cert-eyebrow {
    justify-content: center;
  }
}

/* ----------------------------------------------------------------
   CF-HEADER right side CTA alignment on mobile
   ---------------------------------------------------------------- */
@media (max-width: 768px) {
  .cf-header__right {
    align-items: flex-start;
  }
  .cf-header__right .btn {
    align-self: flex-start;
  }
}

@media (max-width: 540px) {
  .cf-header__right .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ----------------------------------------------------------------
   GLOBAL IMPACT HEADER — compact
   ---------------------------------------------------------------- */
@media (max-width: 480px) {
  .global-header {
    text-align: center;
    padding-inline: 0.5rem;
  }
  .global-title {
    font-size: clamp(1.5rem, 8vw, 2.2rem);
  }
  .global-subtitle {
    font-size: 0.875rem;
  }
}

/* ----------------------------------------------------------------
   PRODUCTS TABS — scroll horizontally if needed
   ---------------------------------------------------------------- */
@media (max-width: 480px) {
  .products-tabs-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .products-tabs-container::-webkit-scrollbar {
    display: none;
  }
  .products-tabs-premium {
    min-width: max-content;
  }
}

/* ----------------------------------------------------------------
   SHOWCASE CARD STATS — wrap nicely on small sizes
   ---------------------------------------------------------------- */
@media (max-width: 480px) {
  .showcase-card__stats {
    gap: 0.75rem;
  }
  .showcase-stat__val {
    font-size: 1rem;
  }
  .showcase-stat__key {
    font-size: 0.6rem;
  }
}

/* ----------------------------------------------------------------
   HERO PROFILE — position adjustments for mobile
   ---------------------------------------------------------------- */
@media (max-width: 640px) {
  .hero-profile {
    position: relative;
    overflow: visible;
  }
  .hero-profile-variant {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

/* ----------------------------------------------------------------
   CONTACT FORM CTA — center everything below 640px
   ---------------------------------------------------------------- */
@media (max-width: 640px) {
  .contact-cta {
    text-align: center;
  }
  .contact-cta p,
  .contact-cta h2 {
    max-width: 100%;
  }
  .contact-cta__badge {
    margin-inline: auto;
  }
}

/* ----------------------------------------------------------------
   GP SPEC PANEL — stack spec items cleanly
   ---------------------------------------------------------------- */
@media (max-width: 480px) {
  .gp-spec-panel {
    padding: 1.5rem 1.125rem;
    border-radius: 1.25rem;
  }
  .gp-spec-item {
    flex-wrap: nowrap;
  }
  .gp-spec-text strong {
    font-size: 0.875rem;
  }
  .gp-spec-text small {
    font-size: 0.72rem;
  }
  .gp-exclusive {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
}

/* ----------------------------------------------------------------
   INFO POPUP — reading typography on mobile
   ---------------------------------------------------------------- */
@media (max-width: 480px) {
  .ip-panel {
    padding: 0;
  }
  .ip-content {
    padding: 0 1.125rem 1.5rem;
  }
  .ip-header {
    padding: 1rem 1.125rem 0.75rem;
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }
  .ip-callout {
    margin-inline: 0;
  }
  .ip-section {
    flex-direction: column;
    gap: 0.5rem;
  }
  .ip-section__title {
    font-size: 1rem;
  }
  .ip-section__text {
    font-size: 0.875rem;
  }
  .ip-comparison {
    flex-direction: column;
  }
}

/* ----------------------------------------------------------------
   PRODUCTS PANEL (old ideal-2000/ideal-4000 sections)
   ---------------------------------------------------------------- */
@media (max-width: 480px) {
  .product-panel__specs {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .product-panel__features li {
    font-size: 0.875rem;
  }
}

/* ----------------------------------------------------------------
   SMOOTH CONTENT FLOW — ensure all sections use proper width
   ---------------------------------------------------------------- */
@media (max-width: 640px) {
  section {
    width: 100%;
    max-width: 100vw;
  }
  .products-dual-showcase,
  .wooden-windows-section,
  .created-for-section,
  .gp-section,
  .global-section,
  .cert-section,
  .contact-section,
  .sn-section {
    overflow: hidden;
  }
}

/* ----------------------------------------------------------------
   GLASS PANELS — reduce blur on mobile for performance
   ---------------------------------------------------------------- */
@media (max-width: 768px) {
  .glass-panel {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
  .hero-split {
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
  }
  .ip-panel {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }
}

/* ----------------------------------------------------------------
   WW WOOD SPECIES — responsive grid adjustments
   ---------------------------------------------------------------- */
@media (max-width: 375px) {
  .ww-wood-species__grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  .ww-wood-chip {
    padding: 0.5rem;
  }
}

/* ----------------------------------------------------------------
   HERO BACKGROUND OBJECT-POSITION on mobile phones
   ---------------------------------------------------------------- */
@media (max-width: 640px) {
  .hero-bg img {
    object-position: 60% center;
  }
}

/* ----------------------------------------------------------------
   LOADING SCREEN — compact on mobile
   ---------------------------------------------------------------- */
@media (max-width: 480px) {
  .loading-logo {
    font-size: 2rem;
  }
  .loading-bar-track {
    width: 200px;
  }
}

/* ----------------------------------------------------------------
   ACCESSIBILITY — ensure focus styles visible on mobile
   ---------------------------------------------------------------- */
@media (max-width: 768px) {
  :focus-visible {
    outline-width: 3px;
    outline-offset: 4px;
  }
}

/* ================================================================
   ENERGETO NEO SHOWCASE CARD — full-width featured card
   ================================================================ */

/* Full-row span in the 3/2-column grid */
.showcase-card--energeto {
  grid-column: 1 / -1;
}

/* Wider image area to showcase the spec-sheet image */
.showcase-card__glass--energeto {
  grid-template-columns: 1.8fr 1fr;
  border: 1px solid rgba(178, 0, 29, 0.25);
  box-shadow: 0 0 0 1px rgba(178, 0, 29, 0.1), 0 24px 64px rgba(0,0,0,0.35);
}

.showcase-card__img--energeto {
  padding: 0;
  min-height: 200px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.showcase-card__img--energeto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  display: block;
}

/* Responsive — stack on small screens */
@media (max-width: 600px) {
  .showcase-card__glass--energeto {
    grid-template-columns: 1fr;
  }
  .showcase-card__img--energeto {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    height: 200px;
    min-height: unset;
  }
  .showcase-card__img--energeto img {
    object-position: left top;
  }
}

/* ================================================================
   PRODUCTS DUAL SHOWCASE — responsive polish at tablet range
   ================================================================ */

/* Between 768px and 1024px — ensure cards don't overflow */
@media (max-width: 900px) {
  .products-split {
    padding: 0.75rem 1rem 2rem;
    gap: 1rem;
  }
  .product-pane__inner {
    gap: 1rem;
  }
  .product-pane__title {
    font-size: clamp(2.5rem, 8vw, 4rem);
  }
}

@media (max-width: 640px) {
  .products-dual-showcase {
    padding-block: clamp(3rem, 6vh, 4.5rem);
  }
  .products-split {
    padding: 0.5rem 0.75rem 1.5rem;
    gap: 0.75rem;
  }
  .product-pane {
    padding: 1rem;
  }
  .product-pane__footer {
    display: none;
  }
}

/* ================================================================
   SHOWCASE PANEL — 4-card responsive grid
   ================================================================ */
@media (max-width: 768px) {
  .showcase-panel-grid {
    /* ensure 2-column layout at tablet */
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  .showcase-card--energeto {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .showcase-panel-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding-inline: 0.75rem;
  }
  .showcase-card--energeto {
    grid-column: 1;
  }
}

/* ================================================================
   GLOBAL SECTION STATS — extra polish at 480px
   ================================================================ */
@media (max-width: 480px) {
  .global-showcase {
    gap: 1.5rem;
  }
  .global-stats--left,
  .global-stats--right {
    gap: 1.25rem;
  }
  .global-stat__ring {
    width: 62px;
    height: 62px;
  }
  .global-stat__value {
    font-size: 0.85rem;
  }
  .global-stat__label {
    font-size: 0.58rem;
  }
}

/* ================================================================
   PRODUCT SHOWCASE PANEL SECTION PADDING
   ================================================================ */
@media (max-width: 768px) {
  .product-showcase-panel {
    padding-block: clamp(3rem, 7vh, 5rem);
  }
  .showcase-panel-inner {
    padding-inline: 1.25rem;
  }
}

@media (max-width: 480px) {
  .product-showcase-panel {
    padding-block: clamp(2.5rem, 6vh, 4rem);
  }
  .showcase-panel-inner {
    padding-inline: 0.75rem;
  }
}

/* ================================================================
   HERO PROFILE — ensure new cross-section images scale correctly
   ================================================================ */
@media (max-width: 768px) {
  .hero-profile-img {
    height: clamp(220px, 42vw, 340px);
    max-height: 340px;
  }
}

@media (max-width: 480px) {
  .hero-profile-img {
    height: clamp(180px, 44vw, 280px);
  }
}

/* ================================================================
   PRODUCTS TABS — prevent overflow at 640px
   ================================================================ */
@media (max-width: 640px) {
  .products-tabs-container {
    padding-inline: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .products-tabs-container::-webkit-scrollbar { display: none; }
  .products-tabs-premium {
    min-width: max-content;
    width: auto;
    margin: 0;
  }
}
