/* ==================== MOBILE RESPONSIVE - PROFESSIONAL ==================== */
/* Comprehensive mobile styles for all landing page sections                  */

/* ==================== BASE ==================== */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }

body { overflow-x: hidden; width: 100%; }

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

/* ==================== NAVBAR ==================== */
@media (max-width: 991px) {
    .custom-navbar .container-fluid { padding: 0 14px; }

    .navbar-brand img { height: 50px !important; }

    /* Mobile nav menu */
    #navbarNav.show {
        background: rgba(8, 50, 28, 0.98);
        backdrop-filter: blur(12px);
        border-top: 1px solid rgba(255,255,255,0.08);
        padding: 12px 0 16px;
        border-radius: 0 0 16px 16px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    }

    #navbarNav .nav-link {
        padding: 12px 20px !important;
        font-size: 15px !important;
        border-radius: 8px;
        margin: 2px 8px;
        transition: background 0.2s;
    }

    #navbarNav .nav-link:hover,
    #navbarNav .nav-link:active {
        background: rgba(255,255,255,0.08);
    }

    .nav-actions {
        padding: 8px 16px 4px !important;
        align-items: stretch !important;
    }

    .btn-cta {
        width: 100%;
        justify-content: center;
        padding: 13px 20px !important;
        font-size: 15px !important;
        border-radius: 10px !important;
    }
}

/* ==================== SECTION TITLES ==================== */
@media (max-width: 768px) {
    .section-title {
        font-size: clamp(1.5rem, 5.5vw, 2rem) !important;
        line-height: 1.3 !important;
        margin-bottom: 0.6rem !important;
    }
    .section-subtitle {
        font-size: clamp(0.88rem, 3.2vw, 1rem) !important;
        padding: 0 12px;
        line-height: 1.6 !important;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: clamp(1.3rem, 6vw, 1.7rem) !important;
    }
    .section-subtitle {
        font-size: clamp(0.84rem, 3.5vw, 0.95rem) !important;
    }
}

/* ==================== HERO SECTION ==================== */
@media (max-width: 768px) {
    body #home.hero,
    section#home.hero,
    #home {
        min-height: 75vh !important;
        height: 75vh !important;
    }

    #home .slider-wrap {
        height: 75vh !important;
    }

    .hero-content {
        padding: 0 16px !important;
    }

    .hero h1 {
        font-size: clamp(1.4rem, 6vw, 2.2rem) !important;
        line-height: 1.25 !important;
        margin-bottom: 10px !important;
    }

    .hero h2 {
        font-size: clamp(1rem, 4vw, 1.4rem) !important;
        margin-bottom: 8px !important;
    }

    .hero-subtitle {
        font-size: clamp(0.85rem, 3vw, 1rem) !important;
        margin-bottom: 20px !important;
    }

    .hero-buttons,
    .cta-buttons {
        flex-direction: column !important;
        gap: 10px !important;
        width: 100% !important;
        max-width: 320px !important;
        margin: 0 auto !important;
    }

    .hero-buttons .btn,
    .cta-buttons .btn {
        width: 100% !important;
        padding: 13px 20px !important;
        font-size: 15px !important;
        min-height: 48px;
    }
}

@media (max-width: 480px) {
    body #home.hero,
    section#home.hero,
    #home {
        min-height: 65vh !important;
        height: 65vh !important;
    }

    #home .slider-wrap { height: 65vh !important; }
}

/* ==================== FEATURES SECTION ==================== */
@media (max-width: 992px) {
    .features { padding: 60px 20px !important; }
    .features-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }
}

@media (max-width: 640px) {
    .features { padding: 50px 14px !important; }
    .features-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
    }
    .feature-card {
        padding: 20px 16px !important;
        border-radius: 14px !important;
    }
    .feature-icons {
        width: 56px !important;
        height: 56px !important;
        font-size: 1.4rem !important;
        margin-bottom: 12px !important;
    }
    .feature-card h3 { font-size: 0.95rem !important; }
    .feature-card p  { font-size: 0.85rem !important; }
}

@media (max-width: 400px) {
    .features-grid { grid-template-columns: 1fr !important; }
}

/* ==================== VISIT BOOKING SECTION ==================== */
@media (max-width: 768px) {
    .visit-booking-section {
        padding: 60px 16px !important;
        background-attachment: scroll !important;
    }

    .visit-content h2 {
        font-size: clamp(1.6rem, 6vw, 2.4rem) !important;
        letter-spacing: 1px !important;
        margin-bottom: 10px !important;
    }

    .visit-content p {
        font-size: clamp(0.88rem, 3vw, 1rem) !important;
        margin-bottom: 30px !important;
    }

    .booking-bar {
        flex-direction: column !important;
        border-radius: 20px !important;
        padding: 16px !important;
        gap: 0 !important;
    }

    .booking-field {
        border-right: none !important;
        border-bottom: 1px solid #e2e8f0 !important;
        padding: 12px 16px !important;
        width: 100% !important;
    }

    .booking-field:last-of-type { border-bottom: none !important; }

    .booking-bar .btn,
    .booking-bar button[type="submit"] {
        width: 100% !important;
        border-radius: 12px !important;
        padding: 14px !important;
        margin-top: 8px !important;
        font-size: 15px !important;
    }
}

/* ==================== PRICING SECTION ==================== */
@media (max-width: 768px) {
    #pricing { padding: 50px 14px !important; }

    #pricing .ctrl.prev { left: 2px !important; }
    #pricing .ctrl.next { right: 2px !important; }
}

@media (max-width: 640px) {
    #pricing { padding: 40px 10px !important; }

    #pricing .track > .slide { min-width: calc(100% - 0px) !important; }

    #pricing .pricing-card {
        padding: 28px 20px 28px !important;
        min-height: 300px !important;
        margin: 16px 0 4px !important;
    }

    #pricing .pricing-card h3 { font-size: 1rem !important; padding-left: 16px !important; }
    #pricing .pricing-card .price { font-size: 1.4rem !important; padding-left: 16px !important; }
    #pricing .pricing-card .price-details { font-size: 0.84rem !important; padding-left: 16px !important; }
    #pricing .pricing-card .price-list { padding-left: 16px !important; }
    #pricing .pricing-card .price-list li { font-size: 0.84rem !important; padding: 0.4rem 0 !important; }
    #pricing .pricing-card .btn { margin-left: 16px !important; font-size: 0.88rem !important; }
}

/* ==================== WHY CHOOSE SECTION ==================== */
@media (max-width: 768px) {
    #why-choose-section { padding: 60px 0 !important; }

    .why-container { padding: 0 16px !important; }

    .why-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .why-card {
        padding: 28px 22px !important;
        border-radius: 20px !important;
    }

    .why-icon-wrapper {
        width: 60px !important;
        height: 60px !important;
        margin-bottom: 20px !important;
    }

    .why-icon-wrapper i,
    .why-icon-wrapper img { font-size: 26px !important; }

    .why-title { font-size: 1.2rem !important; margin-bottom: 12px !important; }
    .why-description { font-size: 0.95rem !important; line-height: 1.7 !important; }
}

@media (max-width: 480px) {
    .why-card { padding: 22px 18px !important; }
    .why-title { font-size: 1.1rem !important; }
}

/* ==================== PARTNERS / TICKER ==================== */
@media (max-width: 576px) {
    .partners-section,
    #partners { padding: 30px 0 !important; }

    .ticker-item img { height: 36px !important; }
    .ticker-item { padding: 0 20px !important; }
}

/* ==================== TESTIMONIALS ==================== */
@media (max-width: 768px) {
    #testimonials { padding: 50px 0 !important; }

    .carousel-wrapper { padding: 0 44px !important; }

    .testimonial-card {
        padding: 20px !important;
        border-radius: 16px !important;
        gap: 14px !important;
    }

    .investor-avatar,
    .investor-avatar-image {
        width: 60px !important;
        height: 60px !important;
    }

    .investor-name { font-size: 1rem !important; }
    .investor-title { font-size: 0.82rem !important; }
    .quote-text { font-size: 0.92rem !important; line-height: 1.65 !important; }

    .carousel-btn {
        width: 40px !important;
        height: 40px !important;
        font-size: 16px !important;
    }
}

@media (max-width: 480px) {
    .carousel-wrapper { padding: 0 36px !important; }

    .testimonial-card { padding: 16px !important; }
}

/* ==================== CONTACT SECTION ==================== */
@media (max-width: 992px) {
    #contact { padding: 50px 0 !important; }

    .contact-content {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .contact-info {
        flex-direction: column !important;
        gap: 16px !important;
        padding: 20px !important;
    }

    .contact-item { width: 100% !important; }
}

@media (max-width: 768px) {
    #contact { padding: 40px 0 !important; }

    .contact-form {
        padding: 20px 16px !important;
        border-radius: 16px !important;
    }

    .contact-form h3 { font-size: 1.2rem !important; margin-bottom: 16px !important; }

    .contact-form input,
    .contact-form textarea,
    .contact-form select {
        font-size: 16px !important; /* prevents iOS zoom */
        padding: 12px 14px !important;
        border-radius: 10px !important;
    }

    .contact-form .btn.btn-primary {
        width: 100% !important;
        padding: 14px !important;
        font-size: 15px !important;
        border-radius: 10px !important;
    }

    .contact-info { padding: 16px !important; border-radius: 14px !important; }

    .contact-icon { font-size: 1.6rem !important; }
    .contact-details h3 { font-size: 0.95rem !important; }
    .contact-details p { font-size: 0.88rem !important; }
}

/* ==================== FAQ SECTION ==================== */
@media (max-width: 768px) {
    #faq-section { padding: 60px 0 !important; }

    #faq-section .container { padding: 0 14px !important; }

    .faq-item { border-radius: 10px !important; margin-bottom: 10px !important; }

    .faq-question { padding: 16px 18px !important; }

    .faq-question span { font-size: 15px !important; }

    .faq-answer > div { padding: 14px 18px 18px !important; font-size: 14px !important; }

    #faqToggleBtn {
        padding: 12px 32px !important;
        font-size: 14px !important;
        border-radius: 9px !important;
    }
}

/* ==================== FOOTER ==================== */
@media (max-width: 992px) {
    footer .row { gap: 0 !important; }

    footer .col-lg-3,
    footer .col-lg-4,
    footer [class*="col-lg"] {
        margin-left: 0 !important;
        padding: 16px !important;
    }

    /* Fix hardcoded margin-left on footer sections */
    .footer-section[style*="margin-left"] {
        margin-left: 0 !important;
    }
}

@media (max-width: 768px) {
    footer { padding: 40px 0 20px !important; }

    footer .container { padding: 0 16px !important; }

    .footer-logo { max-height: 50px !important; }

    .footer-section { margin-bottom: 24px !important; }

    .footer-section h4,
    .footer-section h5 {
        font-size: 1rem !important;
        margin-bottom: 12px !important;
    }

    .footer-section p,
    .footer-section a,
    .footer-section li {
        font-size: 0.88rem !important;
        line-height: 1.7 !important;
    }

    .social-links { gap: 10px !important; }

    .social-link {
        width: 38px !important;
        height: 38px !important;
        font-size: 15px !important;
    }

    .footer-bottom {
        padding: 14px 16px !important;
        font-size: 0.82rem !important;
        text-align: center !important;
        flex-direction: column !important;
        gap: 6px !important;
    }

    .payment-methods-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
}

@media (max-width: 480px) {
    .payment-methods-grid { grid-template-columns: 1fr 1fr !important; }
    .payment-btn { font-size: 0.78rem !important; padding: 9px 8px !important; }
}

/* ==================== GALLERY ==================== */
@media (max-width: 768px) {
    #gallery { padding: 40px 0 !important; }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
}

@media (max-width: 480px) {
    .gallery-grid { grid-template-columns: 1fr 1fr !important; gap: 8px !important; }
}

/* ==================== VIDEO SECTION ==================== */
@media (max-width: 768px) {
    #video-section { padding: 40px 0 !important; }
    .video-card-item { min-width: 260px !important; }
    .video-thumb { height: 160px !important; }
}

@media (max-width: 480px) {
    .video-card-item { min-width: 0 !important; width: 100% !important; }
    .video-thumb { height: 180px !important; border-radius: 12px !important; }
}

/* ==================== PROKOLPO MAP ==================== */
@media (max-width: 992px) {
    #prokolpoMapSection { padding: 40px 0 !important; }

    #prokolpoMapSection .main-section {
        flex-direction: column !important;
        gap: 24px !important;
    }

    .offer-card,
    .map-section { width: 100% !important; }

    .map-img-wrap {
        aspect-ratio: 1/1 !important;
        max-width: 100% !important;
    }
}

@media (max-width: 768px) {
    .offer-title { font-size: 1.4rem !important; }
    .plot-box { padding: 10px !important; }
    .map-section { padding: 12px !important; min-height: 300px !important; }
}

/* ==================== DISCOUNT / EVENTS ==================== */
@media (max-width: 768px) {
    #discount-offers,
    #events { padding: 40px 0 !important; }
}

/* ==================== ABOUT / CHAIRMAN ==================== */
@media (max-width: 768px) {
    .chairman-section { padding: 50px 16px !important; }
    .chairman-title { font-size: 1.6rem !important; }
    .chairman-image-container { height: 240px !important; }
    .chairman-content { padding: 18px !important; }
    .chairman-name { font-size: 1.2rem !important; }
    .chairman-message { font-size: 0.92rem !important; line-height: 1.65 !important; }
}

/* ==================== GENERAL SECTION PADDING ==================== */
@media (max-width: 768px) {
    section { padding-top: 50px !important; padding-bottom: 50px !important; }

    /* Exceptions - sections with their own padding */
    #home,
    section#home.hero,
    body #home.hero { padding-top: 0 !important; padding-bottom: 0 !important; }
}

@media (max-width: 480px) {
    section { padding-top: 40px !important; padding-bottom: 40px !important; }
}

/* ==================== TOUCH TARGETS ==================== */
@media (hover: none) and (pointer: coarse) {
    .btn, button, a.btn, input[type="submit"] {
        min-height: 44px;
        min-width: 44px;
    }

    .nav-link { min-height: 44px; display: flex; align-items: center; }

    /* Disable hover transforms on touch */
    .why-card:hover,
    .feature-card:hover,
    .stat-card:hover { transform: none !important; }
}

/* ==================== BOOKING POPUP (mobile sheet) ==================== */
@media (max-width: 480px) {
    #bookingPopupSheet {
        padding: 16px 14px 28px !important;
        border-radius: 16px 16px 0 0 !important;
    }

    #bookingPopupSheet h3 { font-size: 1.15rem !important; }

    #bookingPopupSheet input,
    #bookingPopupSheet textarea {
        font-size: 16px !important;
        padding: 12px 14px !important;
    }

    #mobileBookingSubmitBtn {
        padding: 14px !important;
        font-size: 15px !important;
    }
}

/* ==================== REDUCED MOTION ==================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
