/* Sub-nav Responsive */

/* Laptops and smaller screens (max-width: 1200px) */
@media (max-width: 1200px) {
    .sub-nav {
        padding: 10px 30px;
    }

    .sub-nav h3 a {
        font-size: 14px;
    }

    .icons {
        gap: 15px;
    }
}

/* Tablets (max-width: 900px) */
@media (max-width: 900px) {
    .sub-nav {
        flex-direction: column;
        height: auto;
        padding: 10px 20px;
        gap: 8px;
        text-align: center;
    }

    .sub-nav h3 a {
        font-size: 14px;
    }

    .icons {
        justify-content: center;
        gap: 15px;
    }
}

/* Mobile devices (max-width: 600px) */
@media (max-width: 600px) {
    .sub-nav {
        padding: 8px 15px;
        gap: 5px;
    }

    .sub-nav h3 a {
        font-size: 13px;
    }

    .icons {
        gap: 10px;
    }

    /* Make icons slightly smaller for mobile */
    .icons a i {
        font-size: 16px;
    }

}

/* ===============================
   NAVBAR RESPONSIVE + HAMBURGER
================================ */

/* Tablets & Mobile */
@media (max-width: 900px) {

    nav {
        position: relative;
        /* IMPORTANT for dropdown */
        padding: 10px 20px;
    }

    /* Show hamburger */
    .hamburger {
        display: flex;
    }

    /* Hide nav links by default */
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        display: none;
        padding: 15px 0;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
        z-index: 100;
    }

    /* Show menu on click */
    .nav-links.active {
        display: block;
    }

    .nav-links ul {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        margin: 0;
    }

    .nav-links ul li a {
        font-size: 16px;
        padding: 8px 0;
        display: block;
    }
}

/* Small mobile */
@media (max-width: 600px) {
    .nav-logo img {
        height: 55px;
        margin-left: 0;
    }

    .nav-links {
        display: none;
    }

    .nav-links.active {
        display: block;
    }

    .nav-links ul li a {
        font-size: 14px;
    }
}

/* ===============================
   HERO SECTION RESPONSIVE
================================ */

/* Tablets */
@media (max-width: 1199px) {
    .hero-carousel {
        height: 70vh;
    }

    .overlay {
        padding-left: 50px;
    }

    .overlay h1 {
        font-size: 34px;
        margin-left: 0;
    }

    .overlay p {
        font-size: 16px;
        max-width: 450px;
        margin-left: 0;
    }

    .btn {
        margin-left: 0;
    }
}

/* Mobile devices */
@media (max-width: 768px) {
    .hero-carousel {
        height: 90vh;
    }

    .overlay {
        padding: 0 20px;
        align-items: center;
        text-align: center;
        padding: 40px 0px;
    }

    .overlay h1 {
        font-size: 28px;
        margin-left: 0;
    }

    .overlay p {
        font-size: 15px;
        max-width: 100%;
        margin-left: 0;
    }

    .btn {
        margin-left: 0;
        padding: 10px 24px;
        font-size: 15px;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .hero-carousel {
        height: 80vh;
    }

    .overlay h1 {
        margin-top: 40px;
        font-size: 20px;
    }

    .overlay p {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 40px;
    }

    .btn {
        font-size: 14px;
        padding: 9px 22px;
    }
}

/* ===============================
   TESTIMONIAL RESPONSIVE
================================ */

/* Tablets */
@media (max-width: 1024px) {
    .testimonial-section {
        height: auto;
        padding: 80px 8%;
    }

    .testimonial-wrapper {
        gap: 50px;
    }

    .testimonial-left h2 {
        font-size: 36px;
    }
}

/* Tablet & Mobile */
@media (max-width: 900px) {
    .testimonial-wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .testimonial-left {
        max-width: 600px;
    }

    .avatars {
        justify-content: center;
    }

    .testimonial-right {
        max-width: 100%;
    }

    .testimonial-slider {
        min-height: 260px;
    }

    /* Move arrows inside */
    .prev {
        left: 10px;
    }

    .next {
        right: 10px;
    }
}

/* Mobile devices */
@media (max-width: 600px) {
    .testimonial-section {
        padding: 60px 20px;
    }

    .testimonial-left h2 {
        font-size: 28px;
    }

    .rating-text {
        font-size: 16px;
    }

    .review-card {
        padding: 25px 20px;
    }

    .review-card p {
        font-size: 14px;
    }

    .nav-btn {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .testimonial-left h2 {
        font-size: 24px;
    }

    .testimonial-slider {
        min-height: 300px;
    }
}


/* ===============================
   COUNTER SECTION RESPONSIVE
================================ */

/* Tablets */
@media (max-width: 1024px) {
    .counter-section {
        padding: 80px 8%;
        gap: 40px;
    }

    .counter-container {
        gap: 40px;
    }

    .counter-card h3 {
        font-size: 36px;
    }

    .counter-card span {
        font-size: 28px;
    }
}

/* Tablet & Mobile */
@media (max-width: 900px) {
    .counter-container {
        flex-wrap: wrap;
        gap: 30px;
    }

    .counter-card {
        width: 260px;
        padding: 35px 25px;
        text-align: center;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .counter-section {
        padding: 60px 20px;
        gap: 30px;
    }

    .counter-section h2 {
        font-size: 28px;
        text-align: center;
    }

    .counter-container {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }

    .counter-card {
        width: 100%;
        max-width: 320px;
    }

    .counter-card h3 {
        font-size: 32px;
    }

    .counter-card span {
        font-size: 24px;
    }

    .counter-card p {
        font-size: 14px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .counter-card {
        padding: 30px 20px;
    }

    .counter-card h3 {
        font-size: 28px;
    }
}

/* ===============================
   HIDE GET IN TOUCH (TABLET & MOBILE)
================================ */

/* Tablet and below */
@media (max-width: 1024px) {
    .get-in-touch {
        display: none;
    }
}



/* ===============================
   FOOTER RESPONSIVE (CORRECT WAY)
================================ */

/* Laptop & Tablet — KEEP 4 IN A ROW */
@media (max-width: 1024px) {
    footer {
        height: auto;
        padding: 40px 30px;
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 20px;
        flex-wrap: nowrap;

        /* IMPORTANT */
    }

    footer>div {
        width: 25%;
        height: auto;
    }

    .footer-map {
        height: 250px;
    }

    .footer-links h1,
    .footer-contact h1 {
        font-size: 26px;
    }
}

/* Mobile — STACK INTO COLUMN */
@media (max-width: 768px) {
    footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0px 20px;
        padding-bottom: 20%;
    }

    footer>div {
        width: 100%;
        max-width: 500px;
    }

    .footer-contact {
        padding: none;
    }

    .footer-links ul,
    .footer-contact ul {
        align-items: center;
    }

    .footer-links ul li a:hover {
        transform: translateX(0);
        /* stop side shift */
    }

    .footer-map {
        width: 100%;
        height: 260px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .footer-map {
        height: 220px;
    }

    .footer-info p {
        font-size: 14px;
        line-height: 1.5;
    }

    .footer-links h1,
    .footer-contact h1 {
        font-size: 24px;
    }
}

/* ===============================
   ABOUT SECTION RESPONSIVE
================================ */

/* Tablet */
@media (max-width: 1024px) {
    .about-section {
        padding: 80px 6%;
    }

    .about-wrapper {
        gap: 50px;
    }

    .about-content h2 {
        font-size: 34px;
    }

    .about-content p {
        font-size: 15px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .about-section {
        padding: 60px 5%;
    }

    .about-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .about-img-box {
        width: 100%;
        max-width: 300px;
        height: 230px;
        margin: 0 auto;
    }

    /* Reduce hover movement on mobile */
    .about-img-box:hover img {
        transform: translate(-8px, 8px);
    }

    .img-frame {
        border-width: 6px;
        transform: translate(12px, -12px);
    }

    .about-content {
        max-width: 100%;
    }

    .about-content h2 {
        font-size: 28px;
        margin-bottom: 12px;
    }

    .about-content p {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 20px;
    }

    .about-btn {
        padding: 10px 26px;
        font-size: 14px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .about-section {
        padding: 50px 20px;
    }

    .about-img-box {
        max-width: 260px;
        height: 200px;
    }

    .about-content h2 {
        font-size: 24px;
    }

    .about-content p {
        font-size: 13px;
    }

    .about-btn {
        font-size: 13px;
        padding: 9px 22px;
    }
}


/* ===============================
 hero section button (MOBILE)
================================ */

/* Tablet and below */
@media (max-width: 500px) {
    .overlay .btn {
        display: none;
    }

    .overlay h1 {
        font-size: 22px;
    }
}