/* ============================================
   Dreamhome Constructions - Responsive Styles
   ============================================ */

/* ============ TABLET (max-width: 1024px) ============ */
@media (max-width: 1024px) {
    .section-header h2 {
        font-size: 2rem;
    }

    .hero-content h2 {
        font-size: 2.8rem;
    }

    .about-grid,
    .enquiry-grid,
    .contact-grid,
    .about-hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image .experience-badge {
        bottom: 20px;
        right: 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .modal-project {
        grid-template-columns: 1fr;
    }

    .service-detail {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .service-detail:nth-child(even) {
        direction: ltr;
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

/* ============ MOBILE (max-width: 768px) ============ */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .section-padding {
        padding: 60px 0;
    }

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

    .section-header h2 {
        font-size: 1.8rem;
    }

    .section-header p {
        font-size: 1rem;
    }

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

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--primary);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 30px 30px;
        gap: 0;
        transition: right 0.3s ease;
        z-index: 999;
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        display: block;
        width: 100%;
        padding: 14px 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        font-size: 1rem;
    }

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

    .nav-cta {
        margin: 20px 0 0;
        text-align: center;
        width: 100%;
    }

    /* Hero */
    .hero {
        min-height: 600px;
        height: auto;
        padding: 120px 0 80px;
    }

    .hero-content h2 {
        font-size: 2.2rem;
    }

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

    .hero-logo h1 {
        font-size: 1.8rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary,
    .btn-outline,
    .btn-dark {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    /* Projects */
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-image {
        height: 220px;
    }

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

    /* About */
    .about-stats {
        grid-template-columns: 1fr;
    }

    .about-image img {
        height: 350px;
    }

    .about-image .experience-badge {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 20px;
        display: inline-block;
    }

    /* Why Choose Us */
    .why-grid {
        grid-template-columns: 1fr;
    }

    /* Enquiry */
    .enquiry-form {
        padding: 24px;
    }

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

    .contact-map {
        min-height: 300px;
    }

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

    .footer-brand .social-links {
        justify-content: center;
    }

    .footer-column {
        text-align: center;
    }

    .footer-column ul li a:hover {
        padding-left: 0;
    }

    .footer-contact p {
        justify-content: center;
    }

    /* Page Header */
    .page-header {
        height: 300px;
    }

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

    /* Modal */
    .modal-content {
        max-height: 95vh;
        margin: 10px;
    }

    .modal-gallery {
        padding: 20px;
    }

    .gallery-main img {
        height: 250px;
    }

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

    .gallery-thumbs img {
        height: 60px;
    }

    .modal-details {
        padding: 20px;
    }

    .modal-details h2 {
        font-size: 1.5rem;
    }

    .floor-plans {
        grid-template-columns: 1fr;
    }

    .modal-actions {
        flex-direction: column;
    }

    .modal-actions .btn-primary,
    .modal-actions .btn-whatsapp,
    .modal-actions .btn-brochure {
        width: 100%;
        justify-content: center;
    }

    /* Service Detail */
    .service-detail-image img {
        height: 280px;
    }

    .service-features {
        grid-template-columns: 1fr;
    }

    /* Values */
    .values-grid {
        grid-template-columns: 1fr;
    }

    /* Filter */
    .projects-filter {
        gap: 8px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    /* WhatsApp Float */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 20px;
        left: 20px;
    }

    /* Back to Top */
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 1rem;
    }
}

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

    .section-header h2 {
        font-size: 1.6rem;
    }

    .hero-content h2 {
        font-size: 1.8rem;
    }

    .hero-logo h1 {
        font-size: 1.5rem;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .about-content h3 {
        font-size: 1.5rem;
    }

    .stat-item .counter {
        font-size: 2rem;
    }

    .enquiry-info h2 {
        font-size: 1.8rem;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

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

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

    .project-actions {
        flex-direction: column;
    }

    .project-actions .btn-primary,
    .project-actions .btn-brochure {
        width: 100%;
        justify-content: center;
    }
}

/* ============ LANDSCAPE MOBILE ============ */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 100px 0 60px;
    }

    .hero-content h2 {
        font-size: 1.8rem;
    }

    .nav-menu {
        padding-top: 80px;
    }
}

/* ============ LARGE SCREENS ============ */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }

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

/* ============ PRINT STYLES ============ */
@media print {
    .navbar,
    .back-to-top,
    .whatsapp-float,
    .scroll-down,
    .nav-overlay,
    .hamburger {
        display: none !important;
    }

    .hero {
        height: auto;
        min-height: auto;
        padding: 40px 0;
    }

    body {
        color: #000;
    }

    a {
        text-decoration: underline;
    }
}
