/* ========================================
   Responsive Styles - Elan The Statement Sohna Road
   Design: COPIED FROM WEBSITE 3 (OneArc)
   Domain: elansohnaroads.in
   Breakpoints: Desktop 1360px+, Tablet 810px-1359px, Mobile 809px-
   ======================================== */

/* ===== Desktop (1360px+) ===== */
@media (min-width: 1360px) {
    .container {
        max-width: 1280px;
    }
}

/* ===== Large Tablet / Small Desktop (1024px - 1359px) ===== */
@media (max-width: 1359px) {
    .container {
        max-width: 1024px;
    }

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

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

    .why-grid {
        gap: 20px;
    }
}

/* ===== Tablet (810px - 1023px) ===== */
@media (max-width: 1023px) {
    .container {
        max-width: 768px;
    }

    .nav-menu {
        gap: 20px;
    }

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

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

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

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

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

    .footer-grid .footer-column:last-child {
        grid-column: span 3;
        margin-top: 20px;
    }
}

/* ===== Mobile (max-width 809px) - Website 3 Mobile Breakpoint ===== */
@media (max-width: 809px) {
    .container {
        max-width: 100%;
        padding: 0 20px;
    }

    /* Header Mobile - White bg with Black Hamburger (Website 3 Style) */
    .header {
        padding: 14px 0;
        background: #ffffff;
        border-bottom: 1px solid #e6e6e6;
    }

    .header .logo .logo-light {
        filter: none; /* Show original logo on mobile */
    }

    .header.scrolled {
        background: #ffffff;
        padding: 12px 0;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    }

    .header-phone {
        display: none;
    }

    .header-cta .btn {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    /* Navigation Mobile - White Fullscreen Menu */
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100vh;
        background: #ffffff;
        flex-direction: column;
        padding: 100px 24px 24px;
        gap: 0;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
        border-radius: 0;
        border: none;
        transform: none;
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
    }

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

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid #e6e6e6;
    }

    .nav-links li a {
        display: block;
        padding: 20px 0;
        font-size: 1.1rem;
        color: #000000;
        background: transparent;
        border-radius: 0;
    }

    .nav-links li a:hover,
    .nav-links li a.active {
        color: #b79b6f;
        background: transparent;
    }

    .header.scrolled .nav-menu {
        background: #ffffff;
    }

    .header.scrolled .nav-menu li a {
        color: #000000;
    }

    .nav-toggle {
        display: flex;
        position: relative;
        z-index: 1001;
    }

    .nav-toggle span {
        background: #000000;
    }

    .header .nav-toggle span {
        background: #000000; /* Always black on mobile */
    }

    .nav-toggle.active span {
        background: #000000;
    }

    .nav-cta {
        display: none;
    }

    /* Hero Section Mobile - Website 3 Exact Style */
    .hero-section {
        min-height: 100vh;
        background: #000000;
    }

    .hero-section .hero-content {
        padding: 100px 20px 160px;
        text-align: center;
    }

    .hero-text {
        text-align: center;
    }

    .hero-address {
        font-size: 0.9rem;
        margin-bottom: 16px;
    }

    .hero-section h1 {
        font-size: 2.5rem;
        color: #ffffff;
        margin-bottom: 32px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        justify-content: center;
    }

    .btn-dark,
    .btn-light {
        width: 100%;
        padding: 14px 24px;
    }

    /* Hero Fact Cards Mobile - Horizontal Scroll */
    .hero-facts-wrapper {
        padding: 0 16px 24px;
    }

    .hero-facts {
        flex-direction: row;
        gap: 12px;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
    }

    .hero-fact-card {
        min-width: 150px;
        padding: 16px 20px;
        flex-shrink: 0;
    }

    .hero-fact-card .fact-value {
        font-size: 1.5rem;
    }

    .hero-fact-card .fact-icon {
        width: 20px;
        height: 20px;
    }

    .hero-fact-card .fact-label {
        font-size: 0.75rem;
    }

    /* Page Hero Mobile */
    .page-hero {
        min-height: 50vh;
    }

    .page-hero .hero-content {
        padding: 120px 20px 60px;
    }

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

    /* Facts Section Mobile - Website 3 Style */
    .facts-section {
        padding: 40px 0;
    }

    .facts-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .fact-card {
        padding: 20px 16px;
        border: 1px solid #e8e8e8;
        border-radius: 10px;
        background: #ffffff;
    }

    .fact-card::after {
        display: none;
    }

    .fact-number {
        font-size: 2.5rem;
        color: #000000;
    }

    .fact-label {
        font-size: 0.8rem;
        color: #666666;
    }

    /* Property Section Mobile */
    .property-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    /* Room Section Mobile */
    .room-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .room-image-large img {
        height: 240px;
    }

    .room-image-small img {
        height: 120px;
    }

    /* Plan Section Mobile */
    .plan-tabs {
        flex-direction: column;
        gap: 12px;
    }

    .plan-cards {
        grid-template-columns: 1fr;
    }

    .plan-card {
        grid-template-columns: 1fr;
    }

    .plan-image {
        min-height: 200px;
    }

    .plan-buttons {
        flex-direction: column;
    }

    /* Location Section Mobile */
    .location-section .location-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .location-map {
        height: 300px;
    }

    /* Why Section Mobile */
    .why-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    /* Quote Section Mobile */
    .quote-wrapper {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .quote-image {
        height: 280px;
    }

    .quote-content blockquote {
        font-size: 1.25rem;
    }

    .quote-facts {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 32px;
    }

    .qfact::after {
        display: none;
    }

    /* Video Section Mobile */
    .video-wrapper {
        height: 400px;
    }

    .video-content h2 {
        font-size: 1.75rem;
    }

    .play-button {
        width: 64px;
        height: 64px;
    }

    /* Contact Section Mobile */
    .contact-section .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Footer Mobile */
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: span 2;
        text-align: center;
    }

    .footer-brand img {
        margin: 0 auto 20px;
    }

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

    .footer-contact {
        grid-column: span 2;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    /* Legacy Hero - Light Theme */
    .hero {
        padding: 0;
        min-height: 100vh;
    }

    .hero-overlay {
        background: linear-gradient(
            to bottom,
            rgba(255, 255, 255, 0.95) 0%,
            rgba(255, 255, 255, 0.85) 50%,
            rgba(255, 255, 255, 0.7) 100%
        );
    }

    .hero h1 {
        font-size: 2rem;
        color: #000000;
    }

    .hero-content {
        padding: 100px 20px 80px;
    }

    .hero-highlights {
        display: none;
    }

    .hero-tagline {
        color: #b79b6f;
    }

    .hero-description {
        color: #666666;
    }

    .highlight-cards {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .config-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

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

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

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

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

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

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

    .footer-grid .footer-brand {
        grid-column: span 2;
        text-align: center;
    }

    .footer-grid .footer-column:last-child {
        grid-column: span 2;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    /* Mobile CTA */
    .mobile-cta {
        display: flex;
        gap: 12px;
    }

    .floating-widgets {
        bottom: 80px;
    }
}

/* ===== Small Mobile (max-width 575px) ===== */
@media (max-width: 575px) {
    .container {
        padding: 0 16px;
    }

    section {
        padding: 60px 0;
    }

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

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

    /* Header */
    .header {
        padding: 12px 0;
    }

    .logo-img {
        height: 35px;
    }

    /* Hero - Light Theme */
    .hero {
        padding: 0;
        min-height: 100vh;
    }

    .hero h1 {
        font-size: 1.875rem;
        line-height: 1.15;
        color: #000000;
    }

    .hero-badge {
        font-size: 0.7rem;
        padding: 8px 14px;
        color: #b79b6f;
        background: #ffffff;
        border: 1px solid #e6e6e6;
    }

    .hero-tagline {
        font-size: 0.95rem;
        color: #b79b6f;
    }

    .hero-description {
        font-size: 0.95rem;
        color: #666666;
    }

    .hero-highlights {
        display: none;
    }

    .hero-buttons {
        flex-direction: column;
    }

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

    /* Hero Fact Cards Small */
    .hero-facts {
        display: none;
    }

    /* Buttons */
    .btn {
        padding: 12px 24px;
        font-size: 0.875rem;
    }

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

    /* Cards */
    .card {
        border-radius: 10px;
    }

    .highlight-card {
        padding: 24px 20px;
    }

    .config-content {
        padding: 20px;
    }

    .amenity-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .amenity-card {
        padding: 20px;
    }

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

    /* Stats */
    .stats-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .stat-number {
        font-size: 2.5rem;
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .footer-grid .footer-brand,
    .footer-grid .footer-column:last-child {
        grid-column: span 1;
    }

    .footer-links {
        align-items: center;
    }

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

    .footer-legal {
        flex-direction: column;
        gap: 12px;
    }
}

/* ===== Extra Small Mobile (max-width 375px) ===== */
@media (max-width: 375px) {
    .container {
        padding: 0 12px;
    }

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

    .hero-tagline {
        font-size: 0.9rem;
    }

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

    .btn {
        padding: 10px 20px;
        font-size: 0.8rem;
    }

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

    .nav-menu {
        width: 100%;
        padding: 90px 16px 16px;
    }
}

/* ===== Landscape Mobile ===== */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 80px 0 40px;
    }

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

    .hero-highlights {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

/* ===== Print Styles ===== */
@media print {
    .header,
    .footer,
    .floating-widgets,
    .mobile-bottom-cta,
    .btn,
    .nav-toggle {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }

    h1, h2, h3, h4, h5, h6 {
        color: #000;
    }

    p {
        color: #333;
    }

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

    .hero-overlay {
        display: none;
    }

    section {
        padding: 30px 0;
        page-break-inside: avoid;
    }

    .card,
    .config-card,
    .highlight-card {
        border: 1px solid #d6d6d6;
        background: #fff;
    }
}

/* ===== High DPI / Retina ===== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-img {
        image-rendering: -webkit-optimize-contrast;
    }
}

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

    html {
        scroll-behavior: auto;
    }
}

/* ===== Touch Device Optimizations ===== */
@media (hover: none) and (pointer: coarse) {
    .btn:hover {
        transform: none;
    }

    .card:hover,
    .config-card:hover,
    .highlight-card:hover,
    .amenity-card:hover,
    .why-card:hover,
    .location-card:hover {
        transform: none;
    }

    .gallery-overlay {
        opacity: 1;
    }
}
