
/* =========================================
   GANDTT PRODUCTS
   Responsive Design
========================================= */


/* =========================================
   01. TABLETS AND SMALLER DESKTOPS
========================================= */

@media (max-width: 1200px) {

    .navbar {
        gap: var(--space-sm);
    }

    .nav-menu {
        gap: var(--space-sm);
    }

    .nav-list {
        gap: var(--space-sm);
    }

}


/* =========================================
   02. TABLETS AND MOBILE NAVIGATION
========================================= */

@media (max-width: 1024px) {

    .navbar {
        min-height: 74px;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .nav-menu {
        display: none;

        position: absolute;
        top: 100%;
        left: 0;
        right: 0;

        flex-direction: column;
        align-items: stretch;

        gap: var(--space-md);
        padding: var(--space-md);

        max-height: calc(100dvh - 74px);
        overflow-y: auto;

        background-color: var(--color-ivory);

        border: 1px solid var(--color-border);
        border-radius: 0 0
            var(--radius-md) var(--radius-md);

        box-shadow: var(--shadow-md);
    }

    .nav-menu.is-open {
        display: flex;
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .nav-link {
        display: block;
        padding: 0.85rem 0;

        border-bottom: 1px solid var(--color-border);
    }

    .nav-link::after {
        display: none;
    }

    .nav-menu > .btn {
        width: 100%;
    }

}


/* =========================================
   03. MOBILE DEVICES
========================================= */

@media (max-width: 768px) {

    .announcement-bar__inner {
        justify-content: center;
        text-align: center;
    }

    .announcement-bar__contacts {
        display: none;
    }

    .brand__name {
        font-size: 1.6rem;
    }

    .brand__symbol {
        width: 40px;
        height: 40px;
    }

    .brand__symbol svg {
        width: 23px;
        height: 23px;
    }

    .section-heading {
        margin-bottom: var(--space-md);
    }

}


/* =========================================
   04. SMALL MOBILE DEVICES
========================================= */

@media (max-width: 480px) {

    .container {
        width: 90%;
    }

    .brand__name {
        font-size: 1.45rem;
    }

    .brand__tagline {
        font-size: 0.6rem;
    }

    .btn--lg {
        padding: 0.85rem 1.25rem;
        font-size: var(--text-sm);
    }

}


/* =========================================
   05. HOMEPAGE RESPONSIVE STYLES
========================================= */


/* Smaller Desktops */

@media (max-width: 1200px) {

    .hero__inner {
        min-height: auto;
    }

    .hero__image {
        min-height: 480px;
    }

}


/* Tablets */

@media (max-width: 1024px) {

    .hero__inner {
        gap: var(--space-lg);
    }

    .hero__image {
        min-height: 440px;
    }

    .hero__description {
        font-size: var(--text-base);
    }

    .home-about__grid {
        gap: var(--space-lg);
    }

    .home-about__image {
        min-height: 420px;
    }

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

}


/* Mobile Devices */

@media (max-width: 768px) {

    .hero__inner {
        grid-template-columns: 1fr;
    }

    .hero__content {
        max-width: 100%;
    }

    .hero__title {
        font-size: clamp(2.25rem, 7vw, 3.5rem);
    }

    .hero__image {
        min-height: 360px;
    }

    .hero__image-caption {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;

        padding: 1rem;
    }

    .company-stats__grid {
        gap: var(--space-sm);
    }

    .stat-item {
        padding: 0.5rem;
    }

    .stat-item__value {
        font-size: 2rem;
    }

    .stat-item__label {
        font-size: var(--text-sm);
    }

    .stat-item__description {
        font-size: var(--text-xs);
    }

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

    .home-about__image {
        min-height: 360px;
    }

    .category-grid {
        gap: var(--space-sm);
    }

    .category-card__body {
        padding: var(--space-sm);
    }

    .category-card__title {
        font-size: var(--text-xl);
    }

}


/* Small Mobile Devices */

@media (max-width: 480px) {

    .hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero__actions .btn {
        width: 100%;
    }

    .hero__image {
        min-height: 300px;
    }

    .company-stats__grid {
        grid-template-columns: 1fr;
    }

    .stat-item:not(:last-child) {
        border-right: none;

        border-bottom:
            1px solid rgba(255, 255, 255, 0.2);

        padding-bottom: var(--space-md);
    }

    .home-about__image {
        min-height: 300px;
    }

    .home-about__badge {
        bottom: 1rem;
        right: 1rem;

        padding: 1rem 1.25rem;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .category-card__body {
        padding: var(--space-md);
    }

}


/* =========================================
   06. HOMEPAGE PART 2 RESPONSIVE STYLES
========================================= */


/* Smaller Desktops */

@media (max-width: 1200px) {

    .footer-grid {
        gap: var(--space-lg);
    }

}


/* Tablets */

@media (max-width: 1024px) {

    .split-layout {
        gap: var(--space-lg);
    }

    .split-layout__image {
        min-height: 400px;
    }

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

    .quality-card {
        padding: var(--space-md);
    }

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

}


/* Mobile Devices */

@media (max-width: 768px) {

    .split-layout {
        grid-template-columns: 1fr;
    }

    .split-layout__image {
        min-height: 360px;
    }

    .home-resources .split-layout__content {
        order: -1;
    }

    .featured-grid {
        gap: var(--space-sm);
    }

    .product-card__title {
        font-size: var(--text-xl);
    }

    .quality-grid {
        grid-template-columns: 1fr;
    }

    .business-cta__inner {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .footer-bottom__inner {
        flex-direction: column;
        text-align: center;
    }

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

}


/* Small Mobile Devices */

@media (max-width: 480px) {

    .split-layout__image {
        min-height: 300px;
    }

    .image-label {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;

        padding: var(--space-sm);
    }

    .image-label strong {
        font-size: var(--text-lg);
    }

    .resource-highlight {
        left: 1rem;
        bottom: 1rem;

        padding: var(--space-sm);
    }

    .resource-highlight strong {
        font-size: 2.5rem;
    }

    .featured-grid {
        grid-template-columns: 1fr;
    }

    .market-grid {
        gap: var(--space-sm);
    }

    .market-card {
        padding: var(--space-md) var(--space-xs);
    }

    .market-card h3 {
        font-size: var(--text-base);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .site-footer {
        padding-top: var(--space-xl);
    }

    .footer-grid {
        padding-bottom: var(--space-xl);
    }

}



/* =========================================
   CORPORATE PAGES RESPONSIVE STYLES
========================================= */


/* Tablets */

@media (max-width: 1024px) {

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

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

}


/* Mobile */

@media (max-width: 768px) {

    .page-hero {
        padding-block: 4rem;
    }

    .page-hero__description {
        font-size: var(--text-base);
    }

    .content-block h2 {
        font-size: var(--text-2xl);
    }

    .info-card {
        padding: var(--space-md);
    }

    .lightbox__content {
        padding: 3rem 1rem;
    }

}


/* Small Mobile */

@media (max-width: 480px) {

    .info-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .page-hero__title {
        font-size: 2.25rem;
    }

    .gallery-filter {
        padding: 0.6rem 0.9rem;

        font-size: var(--text-xs);
    }

    .breadcrumb__list {
        font-size: var(--text-xs);
    }

    .lightbox__previous,
    .lightbox__next {
        width: 40px;
        height: 40px;
    }

}



/* =========================================
   PRODUCT CATALOGUE RESPONSIVE STYLES
========================================= */


/* Tablet */

@media (max-width: 1024px) {

    .catalogue-filters {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

    }

    .product-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

    }

    .product-detail-grid {

        gap: var(--space-lg);

    }

}


/* Mobile */

@media (max-width: 768px) {

    .product-detail-grid {

        grid-template-columns: 1fr;

    }

    .product-detail__title {

        font-size: 2.5rem;

    }

    .product-detail__actions {

        flex-direction: column;

        align-items: stretch;

    }

    .product-detail__actions .btn {

        width: 100%;

    }

}


/* Small Mobile */

@media (max-width: 480px) {

    .catalogue-filters {

        grid-template-columns: 1fr;

        padding: var(--space-sm);

    }

    .product-grid {

        grid-template-columns: 1fr;

    }

    .catalogue-toolbar {

        flex-wrap: wrap;

    }

    .product-card__actions {

        flex-wrap: wrap;

    }

    .product-card__actions .btn {

        flex: 1;

    }

    .product-empty {

        padding: var(--space-lg);

    }

    .product-detail__title {

        font-size: 2rem;

    }

}


/* ========================================
   PHASE 06 RESPONSIVE DESIGN
======================================== */

@media (max-width: 1024px) {

    .contact-layout,
    .quotation-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--space-xl);
    }

    .quotation-sidebar {
        max-width: 100%;
    }
}


@media (max-width: 768px) {

    .form-card {
        padding: var(--space-md);
    }

    .form-card h2 {
        font-size: var(--text-2xl);
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }

    .floating-whatsapp {
        right: 16px;
        bottom: 16px;
        width: 54px;
        height: 54px;
        padding: 0;
    }

    .floating-whatsapp span {
        display: none;
    }

    body {
        padding-bottom: 80px;
    }
}


@media (max-width: 480px) {

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

    .form-section-title {
        font-size: var(--text-xl);
    }

    .quotation-sidebar {
        padding: var(--space-md);
    }

    .legal-content h2 {
        font-size: var(--text-xl);
    }
}

