/* ========================================
   Responsive — Mobile / iPad / Desktop
   ======================================== */

/* ----- Large desktop ----- */
@media (min-width: 1400px) {
    .hero-title {
        font-size: 3rem;
    }
}

/* ----- Desktop / Laptop ----- */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-title {
        font-size: 2.4rem;
    }

    .hero-features {
        padding: 1.5rem 1rem;
    }

    .feature-text h4 {
        font-size: 0.9rem;
    }

    .feature-text p {
        font-size: 0.75rem;
    }

    .navbar-nav .nav-link {
        padding: 0.5rem 0.7rem !important;
        font-size: 0.9rem;
    }
}

/* ----- Tablet (iPad) ----- */
@media (min-width: 768px) and (max-width: 991.98px) {
    :root {
        --header-h: 68px;
    }

    .hero-slide {
        min-height: 520px;
        max-height: none;
        background-position: center;
    }

    .hero-slide::before {
        background: linear-gradient(90deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 50%, rgba(255, 255, 255, 0.3) 100%);
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-content {
        max-width: 480px;
        padding: 2.5rem 0 5rem;
    }

    .hero-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .feature-item {
        border-right: none;
        padding: 0.5rem;
    }

    .feature-item:nth-child(odd) {
        border-right: 1px solid var(--border);
    }

    .hero-features-wrap {
        margin-top: -50px;
    }

    .hero-section {
        margin-bottom: 60px;
    }

    .section-services,
    .section-why {
        padding: 70px 0 60px;
    }

    .section-product {
        padding: 70px 0;
    }

    .product-title {
        font-size: 1.85rem;
    }

    .cta-btns {
        justify-content: flex-start;
        margin-top: 1.5rem;
    }

    .section-cta {
        padding: 55px 0;
    }

    /* Collapsed navbar on tablet if needed — expand-lg keeps menu open at lg */
    .navbar-collapse {
        background: var(--white);
    }
}

/* ----- Mobile ----- */
@media (max-width: 767.98px) {
    :root {
        --header-h: 64px;
    }

    .logo-img {
        height: 30px;
    }

    .site-header .navbar-collapse {
        background: var(--white);
        padding: 1rem 0 1.25rem;
        border-top: 1px solid var(--border);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    }

    .navbar-nav {
        margin-bottom: 1rem !important;
    }

    .navbar-nav .nav-link {
        padding: 0.7rem 0 !important;
        font-size: 1rem;
    }

    .navbar-nav .nav-link.active::after {
        left: 0;
        transform: none;
    }

    .btn-consult {
        width: 100%;
        justify-content: center;
    }

    .hero-slide {
        min-height: 480px;
        max-height: none;
        background-position: 70% center;
    }

    .hero-slide::before {
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 55%, rgba(255, 255, 255, 0.4) 100%);
    }

    .hero-content {
        max-width: 100%;
        padding: 2rem 0 4.5rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-desc {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn {
        justify-content: center;
        width: 100%;
    }

    .hero-pagination {
        bottom: 80px !important;
    }

    .hero-features-wrap {
        margin-top: -40px;
    }

    .hero-features {
        grid-template-columns: 1fr 1fr;
        padding: 1.25rem 1rem;
        gap: 1rem;
    }

    .feature-item {
        border-right: none;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0.5rem 0.25rem;
        gap: 0.5rem;
    }

    .feature-text h4 {
        font-size: 0.85rem;
    }

    .feature-text p {
        font-size: 0.72rem;
    }

    .hero-section {
        margin-bottom: 40px;
    }

    .section-title {
        font-size: 1.6rem;
        margin-bottom: 1.75rem;
    }

    .section-services,
    .section-why {
        padding: 60px 0 50px;
    }

    .section-product {
        padding: 60px 0;
    }

    .section-cases {
        padding: 60px 0 70px;
    }

    .badge-core {
        font-size: 0.75rem;
    }

    .product-title {
        font-size: 1.65rem;
    }

    .product-subtitle {
        font-size: 1.05rem;
    }

    .product-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .why-item {
        padding: 1.5rem 1rem;
    }

    .why-icon {
        width: 60px;
        height: 60px;
        font-size: 1.35rem;
    }

    .case-img {
        height: 180px;
    }

    .cta-title {
        font-size: 1.4rem;
    }

    .cta-desc {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }

    .cta-btns {
        justify-content: stretch;
        flex-direction: column;
    }

    .cta-btns .btn {
        width: 100%;
        justify-content: center;
    }

    .section-cta {
        padding: 50px 0;
        text-align: center;
    }

    .site-footer {
        padding-top: 50px;
    }

    .footer-heading {
        margin-top: 0.5rem;
    }

    .footer-qr {
        align-items: flex-start;
    }

    .back-to-top {
        right: 16px;
        bottom: 16px;
        width: 40px;
        height: 40px;
    }
}

/* ----- Small phones ----- */
@media (max-width: 399.98px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-features {
        grid-template-columns: 1fr;
    }

    .feature-item {
        flex-direction: row;
        text-align: left;
        border-bottom: 1px solid var(--border);
        padding: 0.75rem 0;
    }

    .feature-item:last-child {
        border-bottom: none;
    }
}

/* ----- Inner pages responsive ----- */
@media (max-width: 991.98px) {
    .side-nav {
        position: static;
        margin-bottom: 1.5rem;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767.98px) {
    .page-banner {
        padding: 50px 0 40px;
    }

    .page-banner-title {
        font-size: 1.65rem;
    }

    .page-section {
        padding: 55px 0;
    }

    .about-stats {
        grid-template-columns: 1fr 1fr;
        gap: 0.85rem;
    }

    .about-stat .num {
        font-size: 1.5rem;
    }

    .contact-form {
        padding: 1.35rem;
    }

    .price-table th,
    .price-table td {
        padding: 0.7rem 0.75rem;
        font-size: 0.82rem;
    }
}
