/* ==========================================================================
   Responsive.css
   Global responsive layer — loaded LAST on every page so it can safely
   override main.css / typography.css / about.css / contact-page.css /
   excellence.css / product-detail.css / products-page.css.

   Breakpoints used across this file:
     1279px  - small laptop / small desktop
     991px   - tablet (landscape)
     767px   - tablet (portrait) / large phone
     575px   - phone
     400px   - small phone
   ========================================================================== */

img, video, svg, iframe {
    max-width: 100%;
}

/* Prevent any section from creating horizontal scroll on narrow viewports.
   Scoped to html only: overflow-x on body also forces body's overflow-y to
   auto per spec, turning it into a nested scroll container that breaks
   position: sticky (e.g. the homepage .hero counters section) on mobile. */
html {
    overflow-x: hidden;
}


/* ==========================================================================
   1. SMALL LAPTOP  (<= 1279px)
   ========================================================================== */
@media screen and (max-width: 1279px) {

    .our-products-title {
        font-size: 120px;
    }

    .video-hero-title {
        font-size: 58px;
    }

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


/* ==========================================================================
   2. TABLET  (<= 991px)
   ========================================================================== */
@media screen and (max-width: 991px) {

    /* --- Header --- */
    .site-header {
        padding: 18px 32px 0;
    }

    .site-header-inner {
        padding: 0 16px 0 24px;
        min-height: 72px;
    }

    .site-logo img {
        height: 56px;
    }

    .site-header-actions {
        padding-left: 16px;
    }

    .site-nav-pill {
        gap: 12px;
    }

    .site-header-cta {
        padding: 10px 18px;
        font-size: 14px;
    }

    .site-products-dropdown {
        top: 90px;
    }

    .site-products-backdrop {
        top: 90px;
    }

    /* --- Home page hero --- */
    .video-hero-top {
        padding: 120px 24px 0;
    }

    .video-hero-title {
        font-size: 44px;
    }

    .video-hero-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        padding: 0 24px 40px;
    }

    .video-hero-text {
        max-width: 100%;
        font-size: 17px;
    }

    .data-headline {
        font-size: 40px;
    }

    /* --- Our products marquee section --- */
    .our-products-title {
        font-size: 90px;
    }

    .our-products-top {
        padding: 80px 40px 50px;
    }

    /* --- Sustain section --- */
    .sustain-label,
    .sustain-pill-text {
        font-size: 34px;
    }

    /* --- Services / why choose / footer paddings --- */
    .services,
    .why-choose,
    .home-products,
    .contact,
    .global-expertise {
        padding-left: 0;
        padding-right: 0;
    }

    .services-inner {
        padding: 0 32px;
    }

    .why-choose {
        padding: 60px 32px;
    }

    .site-footer {
        padding: 60px 32px 0;
    }

    /* --- About page --- */
    .pipeline-copy h1 {
        font-size: 84px;
    }

    .about-history-heading,
    .cad-challenge-inner {
        padding-left: 24px;
        padding-right: 24px;
    }

    .about-cta {
        padding: 60px 32px;
    }

    /* --- Contact page --- */
    .contact-hero {
        padding: 160px 32px 70px;
    }

    .contact-message,
    .contact-banner,
    .contact {
        padding-left: 32px;
        padding-right: 32px;
    }

    .contact-info h2 {
        font-size: 42px;
    }

    .contact-info-detail a,
    .contact-info-detail span:not(.contact-info-label) {
        font-size: 30px;
    }

    h2#contactMessageTitle {
        font-size: 48px;
    }

    /* --- Product detail page --- */
    .pd-info h1 {
        font-size: 48px;
    }

    .pd-clients h2 {
        font-size: 40px;
    }

    .pd-clients {
        padding: 60px 32px;
    }

    /* --- Products / category pages --- */
    .product-placeholder,
    .products-landing-hero {
        padding-left: 32px;
        padding-right: 32px;
    }

    .product-promise h2 {
        font-size: clamp(36px, 6vw, 64px);
    }

    /* --- Excellence in Manufacturing --- */
    .excellence-hero {
        padding: 120px 32px 50px;
    }

    .lab-about,
    .excellence-why {
        padding: 60px 32px;
    }

    .lab-about-features {
        flex-direction: column;
        align-items: flex-start;
    }

    .lab-about-features-img {
        width: 120px;
        height: 120px;
    }
}


/* ==========================================================================
   3. LARGE PHONE / TABLET PORTRAIT  (<= 767px)
   ========================================================================== */
@media screen and (max-width: 767px) {

    /* --- Header --- */
    .site-header {
        padding: 14px 15px 0;
    }

    .site-header-inner {
        padding: 0 12px 0 16px;
        min-height: 64px;
        gap: 12px;
    }

    .site-logo img {
        height: 44px;
    }

    .site-products-link {
        font-size: 12px;
    }

    .site-header-actions {
        padding-left: 12px;
    }

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

    .site-products-dropdown {
        top: 78px;
    }

    .site-products-backdrop {
        top: 78px;
    }

    /* --- Buttons / forms used site-wide --- */
    .button {
        font-size: 16px;
        padding: 12px 20px;
    }

    .form-field input,
    .form-field textarea,
    .pd-field input,
    .pd-field textarea {
        font-size: 17px;
        padding: 13px;
    }

    .form-field label,
    .pd-field label {
        font-size: 16px;
    }

    /* --- Home page --- */
    .video-hero-top {
        padding: 100px 16px 0;
    }

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

    .video-hero-bottom {
        padding: 0 16px 32px;
    }

    .video-hero-cta {
        font-size: 14px;
        padding: 12px 20px;
    }

    .data-top {
        padding: 40px 16px 60px;
    }

    .data-headline {
        font-size: 28px;
    }

    .data-content {
        gap: 28px;
    }

    .data-side,
    .data-headline {
        width: 100%;
    }

    .data-side-inner {
        margin-left: 0;
        max-width: 100%;
    }

    .data-value .number,
    .data-value .plus,
    .data-value .unit {
        font-size: 26px;
    }

    .data-card {
        padding: 14px 16px;
        gap: 14px;
    }

    .data-card .image-container {
        min-width: 44px;
        max-width: 44px;
    }

    .data-card .label {
        font-size: 14px;
    }

    .our-products-title {
        font-size: 56px;
    }

    .our-products-top {
        padding: 60px 20px 40px;
    }

    .our-products-image-stack {
        width: 150px;
    }

    .product-item span {
        font-size: 18px;
    }

    .products-title {
        font-size: 24px;
        left: 20px;
        top: 20px;
    }

    .products-text {
        right: 20px;
        bottom: 20px;
        max-width: 80%;
    }

    .contact-top {
        flex-direction: column;
        gap: 8px;
    }

    .services {
        padding: 60px 0;
    }

    .services-inner {
        padding: 0 15px;
    }

    .service-name {
        font-size: 30px;
    }

    .service-num {
        font-size: 64px;
    }

    .service-brand {
        font-size: 48px;
    }

    .why-choose {
        padding: 40px 16px;
    }

    .why-choose-visual,
    .why-choose-panel {
        min-height: 380px;
    }

    .why-doctors {
        left: 50%;
        height: 50%;
        max-width: 80%;
    }

    .why-panel-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .why-stat strong {
        font-size: 64px;
    }

    .home-products {
        padding: 60px 0;
    }

    .home-products-inner {
        width: min(calc(100% - 32px), 1612px);
    }

    .home-products-grid {
        grid-template-columns: 1fr;
    }

    .site-footer {
        padding: 40px 15px 0;
    }

    .footer-top {
        gap: 24px;
        margin-bottom: 36px;
    }

    /* Kept below the 18vw desktop size (not raised) so "TRIPADA" stays
       inside the footer's padded width instead of clipping on phones. */
    .footer-wordmark {
        font-size: 17vw;
    }

    .footer-tag,
    .footer-value {
        font-size: 14px;
    }

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

    .ge-item-name {
        font-size: 26px;
    }

    .ge-globe-wrap {
        min-height: 300px;
    }

    /* --- About page --- */
    .pipeline-copy {
        padding: 120px 16px 0;
    }

    .pipeline-copy h1 {
        font-size: 52px;
    }

    .pipeline-copy p {
        font-size: 18px;
    }

    .about-history {
        padding: 48px 16px 60px;
    }

    .about-history-heading,
    .about-history-container {
        width: 100%;
        padding-left: 0;
        padding-right: 0;
    }

    .about-history-event h3 {
        font-size: 22px;
    }

    .about-risk-copy {
        padding: 100px 16px 20px;
    }

    .about-risk-item p {
        font-size: 22px;
    }

    .cad-challenge-inner {
        padding: 24px 16px 40px;
        width: 100%;
    }

    .cad-challenge-intro h2 {
        font-size: 32px;
        margin: 24px 0 20px;
    }

    .cad-challenge-intro p {
        font-size: 18px;
    }

    .cad-problem-item p {
        font-size: 20px;
    }

    .about-cta {
        padding: 40px 16px;
        min-height: auto;
    }

    .about-cta-copy h2 {
        font-size: 30px;
    }

    /* --- Contact page --- */
    .contact-hero {
        padding: 130px 16px 50px;
    }

    .contact-hero h1 {
        font-size: 42px;
    }

    .contact-hero p {
        font-size: 18px;
    }

    .contact-message,
    .contact-banner,
    .contact,
    .contact-map {
        padding-left: 16px;
        padding-right: 16px;
    }

    .contact-form-panel {
        padding: 24px;
    }

    .contact-info h2 {
        font-size: 32px;
        margin-bottom: 24px;
    }

    .contact-info-detail a,
    .contact-info-detail span:not(.contact-info-label) {
        font-size: 24px;
    }

    h2#contactMessageTitle {
        font-size: 34px;
    }

    /* --- Product detail page --- */
    .pd-info {
        padding: 40px 16px 60px;
    }

    .pd-info h1 {
        font-size: 36px;
        margin-bottom: 24px;
    }

    .pd-label,
    .pd-spec-row dt {
        font-size: 16px;
    }

    .pd-block p,
    .pd-block div,
    .pd-spec-row dd {
        font-size: 19px;
    }

    .pd-breadcrumb {
        font-size: 13px;
    }

    .pd-clients {
        padding: 40px 16px;
    }

    .pd-clients h2 {
        font-size: 28px;
        margin-bottom: 32px;
    }

    .pd-more-title {
        font-size: 32px;
    }

    .pd-enquiry-form {
        padding: 32px 20px 24px;
    }

    /* --- Products landing / category pages --- */
    .product-placeholder,
    .products-landing-hero {
        padding: 130px 16px 50px;
    }

    .product-placeholder h1,
    .products-landing-hero h1 {
        font-size: 34px;
        margin-top: 24px;
    }

    .product-placeholder p,
    .products-landing-hero p {
        font-size: 17px;
    }

    .product-search-field input,
    .product-category-toggle {
        font-size: 22px;
    }

    /* --- Excellence in manufacturing --- */
    .excellence-hero {
        padding: 100px 16px 40px;
    }

    .excellence-hero-copy h1 {
        font-size: 30px;
    }

    .excellence-hero-copy p {
        font-size: 16px;
    }

    .lab-about,
    .excellence-why,
    .process-wave {
        padding: 40px 16px;
    }

    .lab-about-title {
        font-size: 28px;
    }

    .excellence-cube-slide h3 {
        font-size: 22px;
    }

    .excellence-cube-copy {
        min-height: 100px;
    }

    .excellence-why-copy p {
        font-size: 18px;
    }

    .excellence-why-feature {
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 16px;
        padding: 24px 0;
    }

    .process-wave-label {
        font-size: 13px !important;
        width: 110px;
    }
}


/* ==========================================================================
   4. PHONE  (<= 575px)
   ========================================================================== */
@media screen and (max-width: 575px) {

    .video-hero-title {
        font-size: 28px;
    }

    .video-hero-text {
        font-size: 15px;
    }

    .our-products-title {
        font-size: 42px;
    }

    .sustain-label,
    .sustain-pill-text {
        font-size: 20px;
    }

    /* Stack "We" at the top and the rotating pill at the bottom, with the
       growing video centered between them, instead of cramming all three
       into one horizontal row. */
    .sustain {
        align-items: stretch;
    }

    .sustain-row {
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        height: 100%;
        padding: 110px 20px 40px;
        gap: 0;
    }

    .sustain-label {
        text-align: center;
    }

    .sustain-connector {
        display: none;
    }

    .contact-form .button.outline.blue,
    .our-products-top .button.outline.blue {
        width: 100%;
    }

    .home-product-pack,
    .product-pack {
        width: min(50%, 150px);
    }

    .footer-nav {
        gap: 4px;
        padding: 6px;
    }

    .footer-nav-link,
    .footer-nav-contact {
        padding: 8px 12px;
        font-size: 13px;
    }

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

    /* --- About page --- */
    .pipeline-copy h1 {
        font-size: 42px;
    }

    .pipeline-frame {
        width: 480px;
    }

    .about-history-century,
    .about-history-year {
        font-size: 96px;
    }

    /* --- Contact page --- */
    .contact-hero h1 {
        font-size: 34px;
    }

    .contact-map iframe {
        height: 300px;
    }

    /* --- Product detail --- */
    .pd-info h1 {
        font-size: 28px;
    }

    /* Let it hug its text (like the base .button's width: max-content)
       instead of stretching full-width, which was making it look oversized. */
    .pd-cta .button {
        width: max-content;
        padding: 12px 22px;
        font-size: 15px;
    }

    /* Same selector as product-detail.css's [data-pd-enquire-open] rule so
       this (later-loaded) font-size actually wins on specificity. */
    .pd-cta button[data-pd-enquire-open] {
        font-size: 15px;
    }

    .pd-enquiry-fields-grid {
        grid-template-columns: 1fr;
    }

    /* "More products" — horizontal scrollable carousel of the 4 cards
       instead of the stacked single column, on phone widths only. */
    .pd-more .product-grid {
        display: flex;
        grid-template-columns: none;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 0;
        padding-bottom: 8px;
    }

    .pd-more .product-grid::-webkit-scrollbar {
        display: none;
    }

    .pd-more .product-grid .product-card {
        flex: 0 0 100%;
        width: 100%;
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    .pd-more-carousel {
        position: relative;
    }

    .pd-more-arrow {
        position: absolute;
        top: 40%;
        z-index: 5;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, .9);
        box-shadow: 0 4px 12px rgba(4, 28, 44, .18);
        color: var(--product-ink, #073c56);
        transform: translateY(-50%);
    }

    .pd-more-arrow[hidden] {
        display: none;
    }

    .pd-more-arrow:disabled {
        opacity: .35;
    }

    .pd-more-arrow--prev {
        left: 8px;
    }

    .pd-more-arrow--next {
        right: 8px;
    }

    .pd-more-dots {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        margin: 16px 0 0;
    }

    .pd-more-dot {
        flex: 0 0 auto;
        width: 8px;
        height: 8px;
        padding: 0;
        border: 0;
        border-radius: 999px;
        background: rgba(0, 0, 0, .2);
        cursor: pointer;
        transition: background-color .25s ease, transform .25s ease;
    }

    .pd-more-dot.is-active {
        background: var(--product-ink-deep, #14213d);
        transform: scale(1.2);
    }

    /* "Our Products" (home page) — same horizontal carousel treatment as
       the product-detail "More products" section, on phone widths only. */
    .home-products-grid {
        display: flex;
        grid-template-columns: none;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 0;
        padding-bottom: 8px;
    }

    .home-products-grid::-webkit-scrollbar {
        display: none;
    }

    .home-products-grid .home-product-card {
        flex: 0 0 100%;
        width: 100%;
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    .home-products-carousel {
        position: relative;
    }

    .home-products-arrow {
        position: absolute;
        top: 40%;
        z-index: 5;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, .9);
        box-shadow: 0 4px 12px rgba(4, 28, 44, .18);
        color: var(--product-ink, #073c56);
        transform: translateY(-50%);
    }

    .home-products-arrow[hidden] {
        display: none;
    }

    .home-products-arrow:disabled {
        opacity: .35;
    }

    .home-products-arrow--prev {
        left: 8px;
    }

    .home-products-arrow--next {
        right: 8px;
    }

    .home-products-dots {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        margin: 16px 0 0;
    }

    .home-products-dot {
        flex: 0 0 auto;
        width: 8px;
        height: 8px;
        padding: 0;
        border: 0;
        border-radius: 999px;
        background: rgba(0, 0, 0, .2);
        cursor: pointer;
        transition: background-color .25s ease, transform .25s ease;
    }

    .home-products-dot.is-active {
        background: var(--product-ink-deep, #14213d);
        transform: scale(1.2);
    }

    /* --- Products / category --- */
    .product-placeholder h1,
    .products-landing-hero h1 {
        font-size: 28px;
    }

    .product-search-field input,
    .product-category-toggle {
        font-size: 18px;
        min-height: 76px;
    }

    .product-filter-options {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .product-empty {
        font-size: 18px;
    }

    /* --- Excellence --- */
    .excellence-cube-section {
        padding: 16px;
        gap: 24px;
    }

    .lab-about-badge {
        font-size: 14px;
    }
}


/* ==========================================================================
   5. SMALL PHONE  (<= 400px)
   ========================================================================== */
@media screen and (max-width: 400px) {

    .site-header-inner {
        padding: 0 8px 0 12px;
        gap: 8px;
    }

    .site-logo img {
        height: 38px;
    }

    .site-products-link {
        font-size: 11px;
    }

    .site-header-cta {
        padding: 8px 12px;
        font-size: 11px;
    }

    .video-hero-title {
        font-size: 24px;
    }

    .video-hero-top {
        padding-top: 88px;
    }

    .our-products-title {
        font-size: 34px;
    }

    .our-products-image-stack {
        width: 110px;
    }

    .product-item span {
        font-size: 15px;
    }

    .data-value .number,
    .data-value .plus,
    .data-value .unit {
        font-size: 22px;
    }

    .contact-form .button.outline.blue {
        font-size: 15px;
    }

    .site-footer {
        padding: 32px 15px 0;
    }

    .footer-wordmark {
        font-size: 15vw;
    }

    .why-stat strong {
        font-size: 48px;
    }

    .service-num {
        font-size: 48px;
    }

    .service-brand {
        font-size: 36px;
    }

    /* --- About --- */
    .pipeline-copy h1 {
        font-size: 34px;
    }

    .about-history-century,
    .about-history-year {
        font-size: 72px;
    }

    .cad-challenge-intro h2 {
        font-size: 26px;
    }

    /* --- Contact / product-detail / products headings --- */
    .contact-hero h1,
    .pd-info h1,
    .product-placeholder h1,
    .products-landing-hero h1 {
        font-size: 24px;
    }

    .contact-info h2 {
        font-size: 26px;
    }

    /* --- Excellence --- */
    .excellence-hero-copy h1 {
        font-size: 24px;
    }

    .lab-about-title {
        font-size: 24px;
    }

    .process-wave-label {
        width: 88px;
        font-size: 12px !important;
    }
}

@media screen and (max-width: 425px) {

        .products-split-content {
        bottom: -51px;
    }

    .products-split-half {
        min-height: 574px;
    }

    .products-split {
       gap: 50px;
    }

     .pd-specs {
        gap: 20px 60px;
    }

    .products-video-container {
        top: 42%;
    }

    .products {
        height: 80vh;
    }

    .products-title {
        font-weight: 500;
        font-size: 30px;
    }

    .contact-message, .contact-banner, .contact, .contact-map {
        padding-left: 15px;
        padding-right: 15px;
        padding-top: 0px;
    }

}


@media screen and (max-width: 375px) {

    .video-hero {
        height: 86vh;
    }

    .video-hero-title {
        font-size: 30px;
    }

    .video-hero-top {
        padding-left: 15px;
        padding-right: 15px;
    }

    .video-hero-bottom {
        padding-left: 15px;
        padding-right: 15px;
    }

    .products-split-content {
        bottom: -60px;
    }

    .products-split-half {
        min-height: 584px;
    }

    .products-split {
       gap: 50px;
    }

    .products-split-photo {
        width: min(85%, 580px);
    }

    .pd-specs {
        gap: 20px 60px;
    }

    .products-video-container {
        top: 42%;
    }

    .products {
        height: 80vh;
    }

    .products-title {
        font-weight: 400;
        font-size: 30px;
    }

    .contact-message, .contact-banner, .contact, .contact-map {
        padding-left: 15px;
        padding-right: 15px;
        padding-top: 0px;
    }

    .contact-title {
    font-family: 'AktivGrotesk', sans-serif;
    font-weight: 400;
    font-size: 30px;
    line-height: 1.2;
    color: #005478;
    margin: 0;
    }

    .services, .why-choose, .home-products, .contact, .global-expertise {
    padding-left: 15px;
    padding-right: 15px;
    }

    .ge-item-name {
    font-size: 18px;
    }

    .reveal-text.is-visible {
        margin-top: 18px;
    }

    .service-desc {
        margin-left: 40px;
    }


}


@media screen and (max-width: 1300px) {


    .products-split-half {
        min-height: 340px;
    }

    .products-split {
        min-height: 100vh;
    }

}
