/* =====================================================
   GEO Plastics & Polymers — Responsive Styles
   ===================================================== */

/* ---------- Tablets & small laptops ---------- */

@media (max-width: 1700px) {
    .cta-banner {
        margin: auto;
    }

    .dealer-pipe-left {
        left: 14%;
    }

}

@media (max-width: 1400px) {
    .dealer-pipe-top {
        right: 29%;
    }

    .about-inner {
        gap: 43px;
    }

    .quality-inner {
        padding-top: 61px;
    }

}

/* About — images and text sit side-by-side only at lg+, so give the text
   column real separation on small laptops (992–1400px) */
@media (min-width: 992px) and (max-width: 1400px) {
    .about-inner .col-lg-5 {
        padding-left: 48px;
    }
}


@media (max-width: 1300px) {

    /* Inner-page hero — slight dark gradient so text stays readable */
    .about-hero-bg {
        background: var(--hero-grad, linear-gradient(90deg, rgb(10 25 30 / 70%) 0%, rgb(10 25 30 / 65%) 60%)),
            var(--teal) var(--hero-img, url('../images/about-banner.png')) no-repeat right center / cover;
    }

}


@media (max-width: 1200px) {
    .about-title {
        font-size: 40px;
    }

    .value-card {
        padding: 6px 2px 10px 16px;
    }

    .cta-section {
        padding: 71px 60px 110px;
    }

}



@media (max-width: 992px) {
    .header-inner {
        padding-top: 22px;
        padding-bottom: 22px;
    }

    .main-nav ul {
        gap: 24px;
    }

    .hero-title {
        font-size: 42px;
    }

    /* About */
    .about-section {
        padding: 80px 0;
    }

    .about-text {
        margin-top: 0;
    }

    .about-text .about-desc {
        max-width: none;
    }

    /* About — image column renders below the text column */
    .about-inner .col-lg-7 {
        order: 2;
    }

    /* About page — stats row centered on tablet/mobile */
    .cap-stats {
        justify-content: center;
    }

    .cap-stat {
        text-align: center;
    }

    .about-img-1 {
        height: 300px;
        margin-top: 0;
    }

    .about-img-2 {
        height: 380px;
    }

    /* Products — two cards per row under 992 */
    .products-grid>.col-12 {
        flex: 0 0 auto;
        width: 50%;
    }

    .product-card {
        height: 380px;
    }

    /* Quality — hide decorations, keep photo background */
    .quality-dash,
    .quality-leaf {
        display: none;
    }

    /* Text leaves the container — edge spacing via margin */
    .quality-inner {
        max-width: none;
        padding-left: 0;
        padding-right: 0;
    }

    .quality-text {
        max-width: none;
        margin: 0px 38px;
    }


    .quality-badge {
        left: auto;
        right: 7%;
        top: 44%;
        /* width: 100px; */
    }

    .quality-btn {
        left: 24px;
        top: auto;
        bottom: 40px;
    }

    /* Difference */
    .difference-section {
        padding: 18px 0 70px;
    }

    .difference-list {
        max-width: none;
    }

    .difference-media {
        height: 420px;
        margin-top: 44px;
    }

    /* Gallery — single column, main photo on top */
    .photos-grid-container {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        height: auto;
    }

    .main-photo {
        height: 360px;
    }

    .sub {
        height: auto;
        grid-template-rows: none;
        grid-auto-rows: 1fr;
    }

    .sub .img-box {
        aspect-ratio: 4 / 3;
    }

    /* CTA banner */
    .cta-section {
        padding-bottom: 70px;
    }

    .cta-banner {
        margin: 0 16px;
        padding: 48px 28px;
    }

    .cta-media {
        margin-top: 40px;
    }

    .cta-shape {
        width: 60%;
    }

    /* Dealer */
    .dealer-section {
        padding: 90px 24px;
    }

    .dealer-pipe-top {
        right: 4%;
    }

    .dealer-pipe-left {
        left: 5%;
        /* width: 75px; */
    }

    .dealer-leaf {
        width: 170px;
    }

    /* Footer */
    .footer-brand {
        flex-basis: 100%;
        margin-bottom: 36px;
    }

    .footer-links {
        flex-basis: 45%;
    }

    .footer-grid>.footer-links:nth-child(3) {
        flex-basis: 45%;
    }

    .footer-contact {
        flex-basis: 100%;
        margin-top: 36px;
    }

    .footer-bg-text {
        font-size: 150px;
        bottom: -60px;
    }

    .footer-glow {
        width: 90%;
    }

    /* About page hero */
    .about-hero {
        min-height: 80vh;
        padding: 140px 0 70px;
    }

    .about-hero-title {
        font-size: 49px;
    }

    /* Journey */
    .journey-section {
        padding: 64px 0 72px;
    }

    .journey-year-col {
        margin-bottom: 32px;
    }

    .journey-text {
        padding-top: 0;
    }

    /* Direction */
    .direction-section {
        padding: 64px 0 72px;
    }

    .direction-title {
        margin-bottom: 30px;
    }

    .vm-stage {
        height: 520px;
    }

    .vm-panel {
        left: 20px;
        right: 20px;
        bottom: 20px;
        width: auto;
    }
}

/* ---------- Large phones / small tablets ---------- */
@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap;
        gap: 16px;
    }

    /* Header — CTA out, hamburger in */
    .header-cta {
        display: none;
    }

    .nav-toggle {
        display: flex;
        position: relative;
        z-index: 2;
    }

    /* Nav becomes a full-screen overlay — circular reveal from the toggle corner */
    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background: radial-gradient(130% 100% at 100% 0%, #0d6e73 0%, #133142 60%);
        clip-path: circle(0% at calc(100% - 47px) 47px);
        visibility: hidden;
        transition: clip-path 0.5s cubic-bezier(0.22, 0.8, 0.32, 1), visibility 0.5s;
    }

    .main-nav.open {
        clip-path: circle(150% at calc(100% - 47px) 47px);
        visibility: visible;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        flex-wrap: nowrap;
        gap: 6px;
        width: 100%;
    }

    .main-nav li {
        opacity: 0;
        transform: translateY(16px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .main-nav.open li {
        opacity: 1;
        transform: none;
    }

    /* Staggered reveal */
    .main-nav.open li:nth-child(1) {
        transition-delay: 0.18s;
    }

    .main-nav.open li:nth-child(2) {
        transition-delay: 0.24s;
    }

    .main-nav.open li:nth-child(3) {
        transition-delay: 0.30s;
    }

    .main-nav.open li:nth-child(4) {
        transition-delay: 0.36s;
    }

    .main-nav ul a {
        display: block;
        padding: 10px 20px;
        font-size: 25px;
        /* letter-spacing: 3px; */
        transition: color 0.25s ease, letter-spacing 0.25s ease;
    }

    .main-nav ul a:hover,
    .main-nav ul a.active {
        color: #5fd3d8;
        letter-spacing: 5px;
    }

    /* CTA cloned into the overlay by JS */
    .main-nav .nav-cta {
        display: inline-flex;
        margin-top: 38px;
        padding: 15px 26px;
        font-size: 13px;
    }

    .hero {
        min-height: 560px;
    }

    .hero-title {
        font-size: 34px;
    }

    .hero-desc {
        font-size: 15px;
        max-width: 100%;
    }

    /* About */
    .about-section {
        padding: 64px 0;
    }

    .about-title {
        font-size: 30px;
    }

    .leaf-left {
        width: 140px;
    }

    .leaf-right {
        width: 160px;
    }

    /* Quality */
    .quality-text .about-title {
        font-size: 30px;
    }

    .quality-badge {
        width: 34%;
        top: 44%;
        right: 9%;
    }

    /* About page hero */
    .about-hero {
        padding: 130px 0 60px;
    }

    .about-hero-title {
        font-size: 32px;
    }

    .about-hero-desc {
        font-size: 15px;
        max-width: 100%;
    }

    /* Direction */
    .vm-stage {
        height: 560px;
    }

    .vm-panes {
        min-height: 190px;
    }

    .vm-tab {
        font-size: 17px;
    }

    .cta-section {
        padding: 60px 14px 106px;
    }

    .dealer-pipe-left {
        left: -2%;
        top: 65%;
    }
}

/* ---------- Small phones ---------- */
@media (max-width: 480px) {
    .header-inner {
        padding-top: 18px;
        padding-bottom: 18px;
    }

    .header-cta {
        padding: 9px 14px;
        font-size: 11px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-badge {
        font-size: 11px;
        padding: 6px 12px;
        margin-bottom: 20px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .btn {
        padding: 12px 20px;
        font-size: 12px;
    }

    /* About */
    .about-section {
        padding: 48px 0;
    }

    .about-text {
        margin-top: 32px;
    }

    .about-images {
        gap: 12px;
    }

    /* .about-title {
        font-size: 26px;
    } */

    .about-desc {
        font-size: 16px;
    }

    /* About page hero */
    /* .about-hero-title {
        font-size: 37px;
    } */

    /* Footer bottom — stack the two lines, centered */
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
    }

    /* Footer brand blurb — fill the column instead of the 300px desktop cap */
    .footer-brand-desc {
        max-width: none;
    }

    /* Dealer — decorations must not bleed into the footer */
    .dealer-section {
        overflow: hidden;
    }

    /* Floating contact actions — icon only, no hover label */
    .float-btn .float-label {
        display: none;
    }
}

/* ---------- Core Values decorations ---------- */
@media (max-width: 992px) {
    .value-leaf-left {
        width: 170px;
        bottom: -40px;
    }

    .value-leaf-right {
        width: 260px;
        right: -110px;
    }

    /* Capabilities — stacked layout */
    .capabilities-section {
        padding: 70px 0 76px;
    }

    .capabilities-media {
        margin-bottom: 40px;
    }

    .capabilities-img {
        height: 320px;
    }

    .capabilities-body {
        padding-left: 0;
    }

    .cap-stats {
        gap: 36px;
    }

    /* GEO Difference slider */
    .geo-diff {
        padding: 70px 0 80px;
    }

    .diff-head {
        margin-bottom: 32px;
    }

    .diff-card {
        height: 340px;
    }

    .about-images {
        flex: none;
    }

    br.hero-break {
        display: none;
    }
}

@media (max-width: 480px) {
    .cap-points {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .cap-stats {
        /* flex-wrap: wrap; */
        gap: 24px 34px;
    }

    .diff-head {
        flex-wrap: wrap;
    }

    .diff-card {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .values-section {
        padding: 64px 0 76px;
    }

    .value-leaf {
        opacity: 0.22;
    }
}

@media (max-width: 480px) {
    .value-leaf {
        display: none;
    }
}

/* ---------- Product page — detail section ---------- */
@media (max-width: 992px) {
    #products-heading {
        padding: 70px 0 60px;
    }

    .pde-section {
        padding-bottom: 76px;
    }

    .pde-media {
        margin-bottom: 34px;
    }

    .pde-img {
        height: 380px;
    }

    .pde-body {
        padding-left: 0;
        padding-right: 0;
    }

    /* Even sections (2, 4, 6…) — image above, content below */
    .pde-row:has(> .col-12:nth-child(2) .pde-media)>.col-12:nth-child(2) {
        order: -1;
    }
}

@media (max-width: 480px) {
    .pde-section {
        padding-bottom: 60px;
    }

    .pde-img {
        height: 300px;
    }

    .pde-num {
        font-size: 42px;
        left: 16px;
        bottom: 10px;
    }

    .pde-title {
        font-size: 25px;
    }

    .pde-btn {
        padding: 13px 20px;
        font-size: 13px;
        white-space: nowrap;
    }
}

/* =====================================================
   CONTACT PAGE — RESPONSIVE
   ===================================================== */
@media (max-width: 992px) {
    .con-section {
        padding: 60px 0;
    }

    .con-form {
        padding: 40px 30px;
    }

    .con-media {
        margin-top: 30px;
        min-height: 560px;
    }

    .con-map {
        padding-bottom: 60px;
    }

    .con-map-frame iframe {
        height: 340px;
    }
}

@media (max-width: 700px) {
    .cta-break {
        display: none;

    }

}

@media (max-width: 480px) {
    .con-form {
        padding: 32px 22px;
    }

    .con-media {
        min-height: 540px;
    }

    .con-form-title,
    .con-map-title {
        font-size: 26px;
    }

    .ef-row {
        flex-direction: column;
        gap: 0;
    }

    .con-map-frame iframe {
        height: 280px;
    }
}

@media (max-width: 1270px) {
    .cta-content .about-title {
        font-size: 40px;
    }

    .dealer-pipe-left {
        left: -2%;
    }

    .btn {
        font-size: 13px;
    }

    .quality-dash {
        width: 337px;
    }

}

/* Small laptops — same compact quality treatment as ≤992 so text,
   badge, and CTA never overlap */
@media (min-width: 993px) and (max-width: 1270px) {

    .quality-dash,
    .quality-leaf {
        display: none;
    }

    .quality-inner {
        max-width: none;
        padding-left: 0;
        padding-right: 0;
    }

    .quality-text {
        max-width: 55%;
        margin-left: 38px;
        margin-right: 0;
    }

    .quality-badge {
        left: auto;
        right: 8%;
        top: 45%;
    }

    .quality-btn {
        left: 24px;
        top: auto;
        bottom: 40px;
    }
}

/* Tablets — keep the paragraph inside the dark part of the lab image */
@media (min-width: 483px) and (max-width: 992px) {
    .quality-text {
        max-width: 58%;
    }
}

@media (min-width: 321px) and (max-width: 482px) {

    /* About — images stack full width, one per row */
    .about-images {
        flex-wrap: wrap;
        gap: 16px;
    }

    .about-img-1,
    .about-img-2 {
        width: 100%;
        height: 320px;
        margin: 0;
    }

    .about-img-1 {
        display: none;
    }

    /* About — keep the image clear of the button above it */
    .about-inner .col-lg-7 {
        margin-top: 40px;
    }

    /* Parallax must not push the image into the button */
    .about-images .about-img {
        transform: none !important;
    }

    /* Products heading — left aligned */
    .products-head {
        text-align: left;
    }

    .products-head .about-desc {
        margin-left: 0;
        margin-right: 0;
    }

    /* Product cards — one per row */
    .products-grid>.col-12 {
        width: 100%;
    }

    .products-cta {
        margin-top: 32px;
    }

    /* Quality — swap the clipped desktop image for the mobile background */
    .quality-bg img {
        display: none;
    }

    .quality-bg {
        background: url('../images/mobile-image.png') no-repeat center / cover;
    }

    .quality-inner {
        min-height: 60vh;
    }

    .products-section {
        padding: 60px 0 77px;
    }

    .difference-section {
        padding: 80px 0 70px;
    }

    .quality-badge {
        width: 30%;
        top: 83%;
        right: 0%;
    }

    .home-quality {
        display: none;
    }

    .quality-btn {
        left: 28px;
        bottom: 88px;
    }

    .difference-item-text h3 {
        font-size: 20px;
    }

    .difference-icon svg {
        width: 90%;
        height: 90%;
    }

    .difference-item {
        padding: 20px 0;
    }

    /* Gallery */
    .gallery-section {
        padding: 60px 0;
    }

    .gallery-head {
        margin-bottom: 32px;
    }

    .photos-grid-container {
        gap: 12px;
    }

    .main-photo {
        height: 240px;
    }

    .sub {
        gap: 12px;
    }

    .caption {
        font-size: 22px;
    }

    .cta-section {
        padding: 0px 0px 51px;
    }

    .about-tag {
        font-size: 15px;
    }

    .cta-content .about-title {
        font-size: 32px;
    }

    /* Dealer — left aligned */
    .dealer-section {
        text-align: left;
    }

    .dealer-content .about-title {
        font-size: 35px;
    }

    .dealer-pipe-left {
        top: 78%;
    }

    /* Footer — center the bottom bar texts */
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 4px;
    }

    /* =================================================about page================================= */



    .about-hero-bg {
        background:
            var(--hero-grad, linear-gradient(90deg, rgb(10 25 30 / 70%) 0%, rgb(10 25 30 / 65%) 60%)),
            var(--teal) var(--hero-img-m, var(--hero-img, url('../images/mobile-banner.png'))) no-repeat center / cover;
    }

    .about-break {
        display: none;
    }

    .vm-panel {
        height: 346px;
    }

    .direction-section {
        padding: 29px 0 72px;
    }

    .capabilities-body {
        padding-left: 13px;
    }

    .about-difference {
        display: none;
    }

    .product-break {
        display: none;
    }

    #products-heading {
        padding: 70px 14px 3px;
    }

    .about-hero .about-tag {
        font-size: 14px;
    }

    .cta-banner {
        padding: 48px 15px;
    }

    .product-cta {
        display: none;
    }

}