/* =====================================
   RESPONSIVE DESIGN
   ===================================== */

/* Tablets (768px and up) */
@media (max-width: 768px) {
    .navbar { min-height: 70px; }
    .nav-cta { align-items: flex-start; flex-direction: column; margin: 1rem 0; }
    .luxury-hero { min-height: 580px; }
    #heroScene { opacity: .55; right: -14%; width: 82%; }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid article:nth-child(2) { border-right: 0; }
    .fallback-hero {
        min-height: 500px;
    }

    .fallback-hero__content {
        padding: 4rem 0;
    }

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

    .hero-content h1 {
        font-size: 2rem !important;
    }

    .hero-content p {
        font-size: 1rem;
    }

    section {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .statistics-section .row > div {
        margin-bottom: 1rem;
    }

    .project-card {
        margin-bottom: 1rem;
    }

    .service-card {
        margin-bottom: 1rem;
    }

    .testimonial-card {
        margin-bottom: 1rem;
    }

    .whatsapp-btn {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 82px;
        right: 20px;
    }
}

/* Small devices (576px and up) */
@media (max-width: 576px) {
    body { padding-bottom: 68px; }
    .navbar .container { flex-wrap: wrap; }
    .brand-lockup { gap: .5rem; min-width: 0; }
    .brand-mark { flex: 0 0 38px; height: 38px; width: 38px; }
    .brand-text { font-size: .71rem; }
    .brand-text strong { font-size: .71rem; letter-spacing: .045rem; white-space: nowrap; }
    .brand-text small { font-size: .45rem; letter-spacing: .08rem; white-space: nowrap; }
    .navbar-collapse { border-top: 1px solid var(--border-color); max-height: calc(100svh - 70px); overflow-y: auto; padding: .5rem 0 1rem; width: 100%; }
    .navbar-nav .nav-link { padding: .55rem .25rem; }
    .nav-cta { align-items: stretch; gap: .65rem; margin: .75rem 0 .25rem; }
    .nav-cta .btn, .nav-phone { justify-content: center; }
    .whatsapp-btn { bottom: 82px !important; }
    .luxury-hero { min-height: 590px; }
    #heroScene { bottom: -16%; top: auto; width: 100%; }
    .fallback-hero__content { padding: 4.3rem 0 15rem; }
    .fallback-hero h1 { font-size: 2.7rem; }
    .featured-projects-section, .services-section, .why-us-section { padding: 4rem 0 !important; }
    .why-grid { grid-template-columns: 1fr; }
    .why-grid article, .why-grid article + article { border-bottom: 1px solid rgba(255,255,255,.2); border-right: 0; padding: 1.5rem 0; }
    .why-grid h3 { margin-top: 1.4rem; }
    .project-filters .btn { flex: 1 1 42%; }
    .contact-section, .faq-section, .speciality-section { padding: 4rem 0 !important; }
    .contact-info-panel, .enquiry-panel { padding: 1.7rem; }
    .contact-layout { --bs-gutter-y: 2rem; }
    .luxury-accordion .accordion-button { font-size: 1.08rem; padding: 1.15rem .5rem; }
    .fallback-hero {
        min-height: 470px;
    }

    .fallback-hero__content {
        padding: 3rem 0;
    }

    .fallback-hero h1 {
        font-size: 2.15rem;
        line-height: 1.12;
    }

    .fallback-hero__content > p:not(.eyebrow) {
        font-size: 1.05rem;
    }

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

    .fallback-hero__actions .btn {
        width: 100%;
    }

    .hero-section {
        height: 300px !important;
    }

    .hero-content h1 {
        font-size: 1.5rem !important;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    .page-header h1 {
        font-size: 1.75rem !important;
    }

    .card {
        margin-bottom: 1rem;
    }

    .service-card {
        padding: 1.35rem;
    }

    .btn-group {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .btn-group .btn {
        flex: 1 1 calc(50% - 0.25rem);
        font-size: 0.85rem;
        padding: 0.375rem 0.5rem;
    }

    .modal-dialog {
        margin: 1rem !important;
    }

    .mobile-cta {
        bottom: 0;
        position: fixed;
        z-index: 99;
    }
}

/* Extra small devices (up to 576px) */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.25rem !important;
    }

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

    .btn-lg {
        font-size: 0.9rem;
        padding: 0.5rem 1rem !important;
    }

    .btn-sm {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem !important;
    }

    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .row {
        --bs-gutter-x: 0.75rem;
    }

    .footer {
        padding: 2rem 0 !important;
    }

    .footer h5 {
        font-size: 1rem;
    }

    .footer p {
        font-size: 0.9rem;
    }

    .page-header {
        padding: 1.5rem 0 !important;
    }

    .page-header h1 {
        font-size: 1.5rem !important;
    }

    .carousel-caption h1 {
        font-size: 1.25rem;
    }
}

/* Landscape mode on small devices */
@media (max-width: 576px) and (orientation: landscape) {
    .hero-section,
    .hero-section .carousel-item {
        height: 250px !important;
    }

    .hero-content h1 {
        font-size: 1.1rem !important;
    }

    .hero-content p {
        font-size: 0.8rem;
    }

    .hero-content .btn {
        padding: 0.25rem 0.75rem !important;
        font-size: 0.8rem;
    }

    section {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
}

/* Print styles */
@media print {
    .navbar-section,
    .footer,
    .whatsapp-btn,
    .mobile-cta,
    .btn-group {
        display: none;
    }

    body {
        background: white;
    }

    .container {
        max-width: 100%;
    }
}

/* High resolution displays */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }

    section {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }
}

/* Accessibility - Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

