/* ================================================
   RESPONSIVE BREAKPOINTS
   ================================================ */

/* ---------- 1024px ---------- */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    .section-title {
        font-size: 2.2rem;
    }

    .hero h1 {
        font-size: 2.8rem;
    }
}

/* ---------- 768px ---------- */
@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    .top-bar {
        display: none;
    }

    /* Mobile Nav Drawer */
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        height: 100dvh;
        background: var(--white);
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
        transition: right 0.4s ease;
        z-index: 1000;
        padding: 100px 30px 30px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav.open {
        right: 0;
    }

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

    .nav-link {
        padding: 16px 15px;
        font-size: 1.1rem;
        border-bottom: 1px solid var(--gray);
        border-radius: 0;
        min-height: 52px;
        display: flex;
        align-items: center;
        color: var(--secondary);
    }

    .nav-link:hover,
    .nav-link.active {
        color: var(--gold);
    }

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

    .header-cta {
        display: none;
    }

    .hamburger {
        display: flex;
        min-width: 44px;
        min-height: 44px;
        align-items: center;
        justify-content: center;
    }

    /* Hero */
    .hero {
        min-height: 85vh;
        min-height: 85dvh;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-content {
        padding: 60px 15px;
    }

    .hero-btns {
        margin-bottom: 40px;
    }

    .trust-badges {
        gap: 20px;
    }

    .badge-number {
        font-size: 1.8rem;
    }

    /* Sections */
    .section {
        padding: 70px 0;
    }

    .section-title {
        font-size: 1.9rem;
    }

    .section-header {
        margin-bottom: 45px;
    }

    /* About */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-highlights {
        grid-template-columns: 1fr 1fr;
    }

    .experience-badge {
        bottom: 20px;
        right: 20px;
        padding: 15px 20px;
    }

    .exp-number {
        font-size: 2rem;
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card {
        padding: 28px 24px;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    /* Testimonials */
    .testimonial-card {
        margin: 0 8px;
        padding: 28px 24px;
    }

    .slider-wrapper {
        padding: 0 20px;
    }

    .slider-arrow {
        width: 44px;
        height: 44px;
    }

    .slider-prev {
        left: -5px;
    }

    .slider-next {
        right: -5px;
    }

    /* FAQ */
    .faq-question {
        padding: 18px 20px;
        font-size: 1rem;
        gap: 12px;
    }

    .faq-answer p {
        padding: 0 20px 18px;
    }

    /* CTA Banner */
    .cta-banner {
        padding: 70px 0;
    }

    .cta-banner h2 {
        font-size: 1.9rem;
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 30px 25px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-social a {
        width: 44px;
        height: 44px;
    }

    /* Lightbox */
    .lightbox-close {
        top: 15px;
        right: 15px;
    }
}

/* ---------- 480px ---------- */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    /* Hero */
    .hero h1 {
        font-size: 1.7rem;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero-content {
        padding: 50px 12px;
    }

    .hero-btns {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 35px;
    }

    .hero-btns .btn {
        width: 100%;
    }

    .trust-badges {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .badge-number {
        font-size: 1.5rem;
    }

    .badge-label {
        font-size: 0.75rem;
    }

    /* Sections */
    .section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 1.5rem;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }

    .section-header {
        margin-bottom: 35px;
    }

    .section-desc {
        font-size: 0.95rem;
    }

    .section-tag {
        font-size: 0.8rem;
        letter-spacing: 1.5px;
    }

    /* About */
    .about-highlights {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .highlight {
        padding: 10px 14px;
    }

    .highlight span {
        font-size: 0.85rem;
    }

    .experience-badge {
        bottom: 15px;
        right: 15px;
        padding: 12px 16px;
    }

    .exp-number {
        font-size: 1.8rem;
    }

    .exp-text {
        font-size: 0.75rem;
    }

    /* Services */
    .service-card {
        padding: 24px 20px;
    }

    .service-icon {
        width: 55px;
        height: 55px;
        margin-bottom: 16px;
    }

    .service-card h3 {
        font-size: 1.1rem;
    }

    .service-card p {
        font-size: 0.9rem;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .gallery-item {
        aspect-ratio: 4/3;
    }

    .gallery-overlay {
        padding: 14px;
    }

    .gallery-play-icon {
        font-size: 2rem;
    }

    /* Testimonials */
    .testimonial-card {
        margin: 0 5px;
        padding: 24px 20px;
    }

    .testimonial-card > p {
        font-size: 0.9rem;
    }

    .slider-wrapper {
        padding: 0 10px;
    }

    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .slider-prev {
        left: -5px;
    }

    .slider-next {
        right: -5px;
    }

    /* FAQ */
    .faq-question {
        padding: 16px 16px;
        font-size: 0.95rem;
        gap: 10px;
    }

    .faq-answer p {
        padding: 0 16px 16px;
        font-size: 0.9rem;
    }

    /* CTA Banner */
    .cta-banner {
        padding: 50px 0;
    }

    .cta-banner h2 {
        font-size: 1.4rem;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }

    .cta-banner p {
        font-size: 1rem;
    }

    .cta-btns {
        flex-direction: column;
        gap: 12px;
    }

    .cta-btns .btn {
        width: 100%;
    }

    /* Contact */
    .contact-form-wrapper {
        padding: 24px 18px;
    }

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

    .contact-card-icon {
        width: 44px;
        height: 44px;
    }

    .contact-card-icon i {
        font-size: 1rem;
    }

    .contact-card a,
    .contact-card p {
        font-size: 0.9rem;
    }



    /* Lightbox */
    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 44px;
        height: 44px;
    }

    .lightbox-prev {
        left: 5px;
        width: 44px;
        height: 44px;
    }

    .lightbox-next {
        right: 5px;
        width: 44px;
        height: 44px;
    }

    /* Footer */
    .footer {
        padding: 50px 0 0;
    }

    .footer-col h4 {
        font-size: 1rem;
        margin-bottom: 15px;
    }

    .footer-col p {
        font-size: 0.85rem;
    }

    /* Back to Top */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }

    /* Buttons */
    .btn {
        padding: 14px 24px;
        min-height: 48px;
        font-size: 0.95rem;
    }

    .btn-lg {
        padding: 16px 28px;
    }
}

/* ---------- 360px (Small phones) ---------- */
@media (max-width: 360px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.35rem;
    }

    .cta-banner h2 {
        font-size: 1.25rem;
    }

    .nav {
        width: 260px;
        padding: 90px 20px 20px;
    }
}

/* ---------- iOS form zoom fix ---------- */
@media screen and (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    select,
    textarea {
        font-size: 16px;
    }
}

/* ---------- Landscape phones ---------- */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        min-height: 100dvh;
    }

    .hero-content {
        padding: 40px 20px;
    }

    .hero-btns {
        margin-bottom: 20px;
    }

    .trust-badges {
        gap: 15px;
    }
}

/* ---------- Safe area (notch devices) ---------- */
@supports (padding: env(safe-area-inset-bottom)) {
    .footer-bottom {
        padding-bottom: calc(25px + env(safe-area-inset-bottom));
    }

    .back-to-top {
        bottom: calc(20px + env(safe-area-inset-bottom));
    }

    .mobile-cta {
        padding-bottom: calc(14px + env(safe-area-inset-bottom));
    }

    .lightbox-prev {
        left: calc(10px + env(safe-area-inset-left));
    }

    .lightbox-next {
        right: calc(10px + env(safe-area-inset-right));
    }
}

@media (max-width: 768px) {
    @supports (padding: env(safe-area-inset-bottom)) {
        .footer-bottom {
            padding-bottom: calc(70px + env(safe-area-inset-bottom));
        }

        .back-to-top {
            bottom: calc(65px + env(safe-area-inset-bottom));
        }
    }
}
