/**
 * Global Lindus — site-wide responsive (all pages except hero overrides)
 */

/* ---- Layout safety ---- */
.site-main {
    overflow-x: clip;
}

.site-main iframe,
.site-main video,
.site-main embed {
    max-width: 100%;
}

.site-main table:not(.pdp-config-table--spec) {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.site-main {
    padding-bottom: 4.5rem;
}

/* ---- Header & logo ---- */
@media (max-width: 991.98px) {
    .main-header__inner {
        gap: 0.75rem;
    }

    .logo {
        gap: 0.5rem;
        min-width: 0;
    }

    .logo__text {
        min-width: 0;
    }
}

@media (max-width: 480px) {
    .logo__img {
        height: 44px;
        max-width: 96px;
    }

    .logo--header .logo__name-line {
        font-size: 0.62rem;
        white-space: normal;
        line-height: 1.15;
    }

    .logo--header .logo__tagline {
        display: none;
    }
}

/* ---- Inner page heroes & sections ---- */
@media (max-width: 768px) {
    .page-hero {
        padding: 2.75rem 0;
    }

    .page-hero h1 {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    .page-hero p {
        font-size: 0.9375rem;
        padding: 0 0.5rem;
    }

    .section {
        padding: 3rem 0;
    }

    .section__header {
        margin-bottom: 2rem;
    }

    .section__title {
        font-size: clamp(1.35rem, 5vw, 1.75rem);
    }

    .about-intro {
        padding: 3rem 0;
    }

    .about-page {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .cta-band {
        padding: 2.5rem 1rem;
        text-align: center;
    }

    .cta-band h2 {
        font-size: clamp(1.35rem, 5vw, 1.75rem);
    }

    .cta-band .btn {
        width: 100%;
        max-width: 320px;
    }
}

@media (max-width: 576px) {
    .breadcrumb {
        flex-wrap: wrap;
        justify-content: center;
        row-gap: 0.25rem;
        font-size: 0.8125rem;
    }

    .page-hero--about,
    .page-hero--contact,
    .page-hero--blog,
    .page-hero--product,
    .page-hero--product-detail {
        padding: 2.25rem 0;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 380px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* ---- About page ---- */
@media (max-width: 992px) {
    .about-intro--page .about-intro__panel,
    .about-intro__panel {
        border-left: none;
        border-top: 1px solid #f1f5f9;
    }

    .about-intro--page .about-intro__media,
    .about-intro--page .about-intro__media-frame {
        min-height: 300px;
    }
}

@media (max-width: 576px) {
    .about-intro__actions {
        flex-direction: column;
    }

    .about-intro__actions .btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .about-intro--page .about-intro__panel {
        padding: 1.5rem 1.25rem;
    }

    .about-stats-section {
        padding: 2rem 0;
    }

    .about-values-section {
        padding-bottom: 2.5rem;
    }
}

/* ---- Homepage sections (not hero) ---- */
@media (max-width: 992px) {
    .about-intro--v2 .about-intro__panel {
        border-left: none;
        border-top: 1px solid #f1f5f9;
    }

    .about-intro--v2 .about-intro__features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .top-selling,
    .eng-stack,
    .industries-marquee,
    .process-work,
    .plants-showcase {
        padding: 3.25rem 0;
    }

    .home-section__header {
        margin-bottom: 2rem;
        padding: 0 0.25rem;
    }

    .home-section__title {
        font-size: clamp(1.45rem, 5.5vw, 2rem);
    }

    .about-intro--v2 .about-intro__panel {
        padding: 2rem 1.25rem;
    }

    .about-intro--v2 .about-intro__actions {
        flex-direction: column;
    }

    .about-intro--v2 .about-intro__actions .btn {
        width: 100%;
        justify-content: center;
    }

    .plants-showcase__tags {
        justify-content: center;
    }

    .plants-showcase__tags li {
        font-size: 0.625rem;
    }

    .cta-premium {
        padding: 3rem 0;
    }

    .cta-premium__box {
        padding: 2rem 1.25rem;
    }

    .product-card {
        flex: 0 0 min(280px, 85vw);
        width: min(280px, 85vw);
    }
}

@media (max-width: 576px) {
    .about-intro--v2 .about-intro__features {
        grid-template-columns: 1fr;
    }

    .about-intro--v2 .about-intro__card {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .about-intro--v2 .about-intro__card:last-child {
        border-bottom: none;
    }

    .industry-tile {
        flex: 0 0 min(260px, 78vw);
        width: min(260px, 78vw);
        height: 320px;
    }

    .eng-card {
        padding: 1.5rem 1.25rem;
    }

    .plant-card {
        padding: 1.5rem 1.25rem;
    }
}

/* ---- Contact page ---- */
@media (max-width: 992px) {
    .contact-info__intro {
        max-width: none;
    }
}

@media (max-width: 576px) {
    .contact-info__item {
        gap: 0.75rem;
    }

    .contact-info__icon {
        width: 40px;
        height: 40px;
    }

    .contact-info__item p,
    .contact-info__item a {
        word-break: break-word;
    }

    .contact-form-card {
        padding: 1.25rem 1rem;
    }

    .contact-form__submit {
        width: 100%;
    }
}

/* ---- Product detail pages ---- */
@media (max-width: 768px) {
    .pdp-section {
        padding: 2.5rem 0;
    }

    .pdp-section-head {
        flex-direction: column;
        gap: 0.75rem;
        margin-bottom: 1.75rem;
    }

    .pdp-section-head__line {
        display: none;
    }

    .pdp-section-head__title {
        white-space: normal;
        text-align: center;
        font-size: 0.95rem;
        letter-spacing: 0.08em;
    }

    .pdp-crumb-bar {
        padding: 0.65rem 0;
    }

    .pdp-crumb {
        font-size: 0.75rem;
    }

    .pdp-config-table-wrap {
        margin-left: -0.25rem;
        margin-right: -0.25rem;
    }

    .pdp-quote-form .pdp-btn--block,
    .pdp-faq-quote .pdp-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) and (min-width: 641px) {
    .pdp-config-table-wrap--spec {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .pdp-config-table--spec {
        min-width: 520px;
    }
}

/* ---- Blog ---- */
@media (max-width: 576px) {
    .blog-page__subtitle {
        font-size: clamp(1.25rem, 5vw, 1.5rem);
    }

    .blog-grid--row {
        gap: 1.25rem;
    }
}

/* ---- Gallery lightbox ---- */
@media (max-width: 576px) {
    .gallery-lightbox {
        padding: 0.75rem;
    }

    .gallery-lightbox__content {
        max-height: calc(100vh - 2rem);
    }

    .gallery-lightbox__img {
        max-height: calc(100vh - 6rem);
    }

    .gallery-lightbox__close {
        top: 0.5rem;
        right: 0.5rem;
    }

    .gallery-lightbox__caption {
        font-size: 0.875rem;
        padding: 0 0.5rem;
    }
}

/* ---- Footer & floating buttons ---- */
@media (max-width: 576px) {
    .footer-brand .logo__tagline {
        display: block;
    }

    .float-btn {
        bottom: 0.85rem;
        width: 44px;
        height: 44px;
    }

    .float-btn--whatsapp {
        left: 0.85rem;
    }

    .float-btn--top {
        right: 0.85rem;
    }
}
