/* ============================================================================
   NIZHARA Real Estate - Responsive Design System
   Mobile-First Responsive Design for Header and Hero Sections
   ============================================================================ */

/* ========================================================================
   MOBILE MENU STYLES
   ======================================================================== */

/* Mobile Menu Overlay and Window */
.mobile-menu {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999 !important;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
    pointer-events: none;
    display: block !important;
}

.mobile-menu.active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: all !important;
}

.menu-blur {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(31, 42, 68, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.menu-window {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--color-white);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.3);
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    overflow-y: auto;
}

.mobile-menu.active .menu-window {
    transform: translateX(0);
}

.menu-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(31, 42, 68, 0.1);
    background: var(--color-white);
    color: var(--color-primary);
}

.menu-top-icon {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: var(--font-weight-medium);
    font-size: 16px;
    text-transform: uppercase;
}

.menu-top-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--color-primary);
}

.menu-top-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.menu-top-close:hover {
    background: rgba(31, 42, 68, 0.1);
}

.menu-top-close svg {
    width: 24px;
    height: 24px;
    fill: var(--color-primary);
}

.mobile-menu .menu-content {
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.mobile-menu .header-menu {
    display: flex;
    flex-direction: column;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu .header-menu li {
    border-bottom: 1px solid rgba(31, 42, 68, 0.1);
}

.mobile-menu .header-menu li:last-child {
    border-bottom: none;
}

.mobile-menu .header-menu a {
    display: block;
    padding: 15px 0;
    font-size: 16px;
    font-weight: var(--font-weight-medium);
    color: var(--color-primary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.2s ease;
}

.mobile-menu .header-menu a:hover {
    color: var(--color-highlight);
}

.mobile-menu .header-phone {
    display: block;
    padding: 15px 20px;
    background: var(--color-accent);
    color: var(--color-primary);
    text-decoration: none;
    text-align: center;
    font-weight: var(--font-weight-semibold);
    font-size: 18px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.mobile-menu .header-phone:hover {
    background: var(--color-highlight);
    color: var(--color-white);
    transform: translateY(-2px);
}

/* Prevent body scroll when mobile menu is open */
body.no-scroll {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

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

/* Extra Small Devices (Portrait Phones) */
@media (max-width: 575.98px) {
    /* Container */
    ._container {
        width: 95vw;
        padding: 0 2.5vw;
    }
    
    /* Header */
    .header {
        height: 60px;
        padding: 0;
    }
    
    .header-container {
        padding: 0 15px;
        gap: 10px;
        justify-content: flex-start;
    }
    
    /* Logo */
    .logo {
        order: 2;
        justify-content: flex-start;
        margin-left: 0;
    }
    
    .logo-icon {
        width: 32px;
        height: 32px;
    }
    
    .logo-text {
        font-size: 14px;
        line-height: 1.2;
        margin-bottom: 1px;
    }
    
    .logo-subtitle {
        font-size: 9px;
        line-height: 1;
    }
    
    /* Burger Menu */
    .burger {
        display: flex;
        width: 28px;
        height: 28px;
        cursor: pointer;
        fill: var(--color-white);
        order: 1;
        margin-right: 0.25rem;
    }
    
    .header.scrolled .burger {
        fill: var(--color-primary);
    }
    
    /* Hide desktop elements */
    .menu-wrapper,
    .callback-btn,
    .lang-switcher {
        display: none;
    }
    
    /* Hero Section */
    .hero {
        min-height: 100vh;
        height: auto;
    }
    
    .hero-content {
        padding: 80px 0 40px;
        min-height: calc(100vh - 60px);
        justify-content: center;
    }
    
    .hero-logo-vector {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
    }
    
    .hero-text {
        font-size: 20px;
        line-height: 26px;
        margin-bottom: 20px;
        max-width: 90vw;
        padding: 0 15px;
    }
    
    .hero-subtitle {
        font-size: 14px;
        line-height: 18px;
        margin-top: 8px;
    }
    
    .hero-tagline {
        font-size: 12px;
        line-height: 16px;
        margin-top: 15px;
        max-width: 85vw;
        padding: 0 15px;
    }
    
    .hero-btns {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin-bottom: 30px;
        padding: 0 15px;
    }
    
    .hero-btns .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        font-size: 12px;
        padding: 12px 20px;
    }
    
    .hero-features {
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 4;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 15px;
        padding: 0 15px;
        width: 100%;
        margin: 0;
        flex-wrap: wrap;
    }
    
    .hero-feature-value {
        font-size: 24px;
        line-height: 30px;
        margin-bottom: 5px;
    }
    
    .hero-feature-text {
        font-size: 11px;
        line-height: 14px;
    }
    
    /* Section Headers */
    .section-header .subtitle {
        font-size: 24px;
        line-height: 30px;
        margin-bottom: -5px;
    }
    
    .section-header .title {
        font-size: 18px;
        line-height: 24px;
    }
}

/* Small Devices (Landscape Phones) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Container */
    ._container {
        width: 92vw;
        padding: 0 4vw;
    }
    
    /* Header */
    .header {
        height: 65px;
    }
    
    .header-container {
        padding: 0 20px;
    }
    
    /* Logo */
    .logo-icon {
        width: 36px;
        height: 36px;
    }
    
    .logo-text {
        font-size: 16px;
        line-height: 1.2;
        margin-bottom: 2px;
    }
    
    .logo-subtitle {
        font-size: 9px;
        line-height: 1;
    }
    
    /* Burger Menu */
    .burger {
        display: flex;
        width: 32px;
        height: 32px;
        cursor: pointer;
        fill: var(--color-white);
    }
    
    .header.scrolled .burger {
        fill: var(--color-primary);
    }
    
    /* Hide desktop elements */
    .menu-wrapper,
    .callback-btn,
    .lang-switcher {
        display: none;
    }
    
    /* Hero Section */
    .hero {
        min-height: 100vh;
    }
    
    .hero-content {
        padding: 85px 0 50px;
        min-height: calc(100vh - 65px);
    }
    
    .hero-logo-vector {
        width: 70px;
        height: 70px;
        margin-bottom: 25px;
    }
    
    .hero-text {
        font-size: 24px;
        line-height: 30px;
        margin-bottom: 25px;
        max-width: 85vw;
    }
    
    .hero-subtitle {
        font-size: 16px;
        line-height: 20px;
        margin-top: 10px;
    }
    
    .hero-tagline {
        font-size: 14px;
        line-height: 18px;
        margin-top: 18px;
        max-width: 80vw;
    }
    
    .hero-btns {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        margin-bottom: 35px;
    }
    
    .hero-btns .btn {
        min-width: 200px;
        font-size: 13px;
        padding: 14px 24px;
    }
    
    .hero-features {
        position: static;
        transform: none;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
        margin-top: 35px;
    }
    
    
    .hero-feature-value {
        font-size: 28px;
        line-height: 34px;
        margin-bottom: 8px;
    }
    
    .hero-feature-text {
        font-size: 12px;
        line-height: 16px;
    }
}

/* Medium Devices (Tablets) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Container */
    ._container {
        width: 90vw;
        padding: 0 5vw;
    }
    
    /* Header */
    .header {
        height: 70px;
    }
    
    .header-container {
        padding: 0 25px;
    }
    
    /* Logo */
    .logo-icon {
        width: 40px;
        height: 40px;
    }
    
    .logo-text {
        font-size: 18px;
        line-height: 1.2;
        margin-bottom: 2px;
    }
    
    .logo-subtitle {
        font-size: 14px;
        line-height: 1;
    }
    
    /* Show simplified desktop menu or burger */
    .burger {
        display: flex;
        width: 36px;
        height: 36px;
        cursor: pointer;
        fill: var(--color-white);
    }
    
    .header.scrolled .burger {
        fill: var(--color-primary);
    }
    
    /* Hide some desktop elements */
    .menu-wrapper,
    .callback-btn {
        display: none;
    }
    
    /* Show language switcher */
    .lang-switcher {
        display: block;
    }
    
    /* Hero Section */
    .hero {
        min-height: 100vh;
    }
    
    .hero-content {
        padding: 90px 0 60px;
        min-height: calc(100vh - 70px);
    }
    
    .hero-logo-vector {
        width: 80px;
        height: 80px;
        margin-bottom: 30px;
    }
    
    .hero-text {
        font-size: 28px;
        line-height: 36px;
        margin-bottom: 30px;
        max-width: 80vw;
    }
    
    .hero-subtitle {
        font-size: 18px;
        line-height: 24px;
        margin-top: 12px;
    }
    
    .hero-tagline {
        font-size: 16px;
        line-height: 22px;
        margin-top: 20px;
        max-width: 75vw;
    }
    
    .hero-btns {
        flex-direction: row;
        gap: 20px;
        margin-bottom: 40px;
    }
    
    .hero-btns .btn {
        font-size: 14px;
        padding: 16px 28px;
    }
    
    .hero-features {
        position: static;
        transform: none;
        flex-direction: row;
        justify-content: center;
        gap: 40px;
        margin-top: 40px;
    }
    
    .hero-feature-value {
        font-size: 32px;
        line-height: 40px;
        margin-bottom: 10px;
    }
    
    .hero-feature-text {
        font-size: 13px;
        line-height: 18px;
    }
}

/* Large Devices (Small Desktops) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Container */
    ._container {
        width: 85vw;
    }
    
    /* Header */
    .header {
        height: 75px;
    }
    
    .header-container {
        padding: 0 30px;
    }
    
    /* Logo */
    .logo-icon {
        width: 44px;
        height: 44px;
    }
    
    .logo-text {
        font-size: 20px;
        line-height: 1.2;
        margin-bottom: 3px;
    }
    
    .logo-subtitle {
        font-size: 14px;
        line-height: 1;
    }
    
    /* Show desktop menu but simplified */
    .burger {
        display: none;
    }
    
    .menu-wrapper {
        display: block;
        margin: 0 20px 0 40px;
    }
    
    .header-menu {
        gap: 25px;
    }
    
    .menu-item a {
        font-size: 14px;
    }
    
    .header-phone {
        font-size: 15px;
        padding: 8px 12px;
    }
    
    .callback-btn {
        display: flex;
        font-size: 13px;
        padding: 8px 16px;
        margin: 0 15px;
    }
    
    .callback-btn .icon {
        width: 18px;
        height: 18px;
    }
    
    /* Hero Section */
    .hero {
        min-height: 100vh;
    }
    
    .hero-content {
        padding: 95px 0 70px;
        min-height: calc(100vh - 75px);
    }
    
    .hero-logo-vector {
        width: 90px;
        height: 90px;
        margin-bottom: 35px;
    }
    
    .hero-text {
        font-size: 32px;
        line-height: 42px;
        margin-bottom: 35px;
        max-width: 75vw;
    }
    
    .hero-subtitle {
        font-size: 20px;
        line-height: 28px;
        margin-top: 15px;
    }
    
    .hero-tagline {
        font-size: 18px;
        line-height: 26px;
        margin-top: 25px;
        max-width: 70vw;
    }
    
    .hero-btns {
        gap: 25px;
        margin-bottom: 50px;
    }
    
    .hero-btns .btn {
        font-size: 15px;
        padding: 18px 32px;
    }
    
    .hero-features {
        position: absolute;
        bottom: 80px;
        left: 50%;
        transform: translateX(-50%);
        flex-direction: row;
        gap: 60px;
    }
    
    .hero-feature-value {
        font-size: 36px;
        line-height: 44px;
        margin-bottom: 12px;
    }
    
    .hero-feature-text {
        font-size: 14px;
        line-height: 20px;
    }
}

/* Extra Large Devices (Large Desktops) */
@media (min-width: 1200px) and (max-width: 1399.98px) {
    /* Container */
    ._container {
        width: 82vw;
        padding: 0 9vw;
    }
    
    /* Header - Full desktop layout */
    .header {
        height: 80px;
    }
    
    .header-container {
        padding: 0 35px;
    }
    
    /* Logo */
    .logo-icon {
        width: 48px;
        height: 48px;
    }
    
    .logo-text {
        font-size: 22px;
        line-height: 1.2;
        margin-bottom: 3px;
    }
    
    .logo-subtitle {
        font-size: 14px;
        line-height: 1;
    }
    
    /* Full desktop menu */
    .burger {
        display: none;
    }
    
    .menu-wrapper {
        display: block;
        margin: 0 25px 0 50px;
    }
    
    .header-menu {
        gap: 30px;
    }
    
    .menu-item a {
        font-size: 15px;
    }
    
    .header-phone {
        font-size: 16px;
        padding: 10px 15px;
    }
    
    .callback-btn {
        display: flex;
        font-size: 14px;
        padding: 10px 20px;
        margin: 0 20px;
    }
    
    .callback-btn .icon {
        width: 20px;
        height: 20px;
    }
    
    /* Hero Section */
    .hero-content {
        padding: 100px 0 80px;
        min-height: calc(100vh - 80px);
    }
    
    .hero-logo-vector {
        width: 100px;
        height: 100px;
        margin-bottom: 40px;
    }
    
    .hero-text {
        font-size: 36px;
        line-height: 48px;
        margin-bottom: 40px;
        max-width: 70vw;
    }
    
    .hero-subtitle {
        font-size: 22px;
        line-height: 32px;
        margin-top: 18px;
    }
    
    .hero-tagline {
        font-size: 20px;
        line-height: 30px;
        margin-top: 30px;
        max-width: 65vw;
    }
    
    .hero-btns {
        gap: 30px;
        margin-bottom: 60px;
    }
    
    .hero-btns .btn {
        font-size: 16px;
        padding: 20px 36px;
    }
    
    .hero-features {
        position: absolute;
        bottom: 100px;
        left: 50%;
        transform: translateX(-50%);
        gap: 80px;
    }
    
    .hero-feature-value {
        font-size: 40px;
        line-height: 50px;
        margin-bottom: 15px;
    }
    
    .hero-feature-text {
        font-size: 15px;
        line-height: 22px;
    }
}

/* XXL Devices (Extra Large Desktops) */
@media (min-width: 1400px) {
    /* Use original vw-based design for very large screens */
    ._container {
        width: 78.75vw;
        margin: 0 auto;
        max-width: none;
    }
    
    /* Header - Original vw-based design */
    .header {
        height: 4.896vw;
        min-height: 80px;
        max-height: 120px;
    }
    
    .header-container {
        padding: 0 2.604vw;
    }
    
    /* Logo - Original vw-based design */
    .logo-icon {
        width: 2.604vw;
        height: 2.604vw;
        min-width: 48px;
        min-height: 48px;
        max-width: 60px;
        max-height: 60px;
    }
    
    .logo-text {
        font-size: clamp(20px, 1.1vw, 28px);
        line-height: 1.1;
        margin-bottom: 0.05vw;
    }
    
    .logo-subtitle {
        font-size: clamp(10px, 0.55vw, 14px);
        line-height: 1;
    }
    
    /* Full desktop menu - Original vw-based design */
    .burger {
        display: none;
    }
    
    .menu-wrapper {
        display: block;
        margin: 0 1.042vw 0 6.667vw;
    }
    
    .header-menu {
        gap: 2.396vw;
    }
    
    .menu-item a {
        font-size: clamp(14px, 0.833vw, 18px);
    }
    
    .header-phone {
        font-size: clamp(15px, 0.938vw, 20px);
        padding: 0.521vw 0.938vw;
    }
    
    .callback-btn {
        display: flex;
        font-size: clamp(14px, 0.833vw, 18px);
        padding: 0.521vw 0.938vw 0.521vw 0.833vw;
        margin: 0 1.042vw;
    }
    
    .callback-btn .icon {
        width: 1.25vw;
        height: 1.25vw;
        min-width: 18px;
        min-height: 18px;
        max-width: 24px;
        max-height: 24px;
    }
    
    /* Hero Section - Original vw-based design with improvements */
    .hero-content {
        padding: 0;
        min-height: calc(100vh - 4.896vw);
    }
    
    .hero-logo-vector {
        width: 10.417vw;
        height: 10.417vw;
        min-width: 100px;
        min-height: 100px;
        max-width: 150px;
        max-height: 150px;
    }
    
    .hero-text {
        font-size: clamp(28px, 2.396vw, 48px);
        line-height: clamp(36px, 2.865vw, 58px);
        margin-bottom: 3.125vw;
        max-width: 52.083vw;
    }
    
    .hero-subtitle {
        font-size: clamp(18px, 1.675vw, 32px);
        line-height: clamp(24px, 2.25vw, 42px);
        margin-top: 0.521vw;
    }
    
    .hero-tagline {
        font-size: clamp(16px, 1.25vw, 24px);
        line-height: clamp(22px, 1.75vw, 32px);
        margin-top: 1.042vw;
        max-width: 45vw;
    }
    
    .hero-btns {
        gap: 1.042vw;
        margin-bottom: 0;
    }
    
    .hero-btns .btn {
        font-size: clamp(14px, 0.833vw, 18px);
        padding: 0.938vw;
        min-padding: 16px 24px;
    }
    
    .hero-features {
        position: absolute;
        bottom: 6.25vw;
        left: 50%;
        transform: translateX(-50%);
        gap: 5.208vw;
    }
    
    .hero-feature-value {
        font-size: clamp(32px, 2.396vw, 48px);
        line-height: clamp(40px, 2.865vw, 58px);
        margin-bottom: 0.521vw;
    }
    
    .hero-feature-text {
        font-size: clamp(12px, 0.833vw, 18px);
        line-height: clamp(16px, 1.25vw, 24px);
    }
}

/* ========================================================================
   LANDSCAPE ORIENTATION ADJUSTMENTS
   ======================================================================== */

@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
    }
    
    .hero-content {
        padding: 60px 0 30px;
        justify-content: center;
    }
    
    .hero-logo-vector {
        width: 50px;
        height: 50px;
        margin-bottom: 15px;
    }
    
    .hero-text {
        font-size: 18px;
        line-height: 24px;
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: 14px;
        line-height: 18px;
        margin-top: 5px;
    }
    
    .hero-tagline {
        font-size: 12px;
        line-height: 16px;
        margin-top: 10px;
    }
    
    .hero-btns {
        gap: 15px;
        margin-bottom: 20px;
    }
    
    .hero-btns .btn {
        font-size: 12px;
        padding: 10px 20px;
    }
    
    .hero-features {
        position: static;
        transform: none;
        flex-direction: row;
        gap: 30px;
        margin-top: 20px;
    }
    
    .hero-feature-value {
        font-size: 20px;
        line-height: 26px;
        margin-bottom: 5px;
    }
    
    .hero-feature-text {
        font-size: 10px;
        line-height: 14px;
    }
}

/* ========================================================================
   HIGH DPI DISPLAYS
   ======================================================================== */

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-logo-vector img,
    .logo-icon img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* ========================================================================
   PRINT STYLES
   ======================================================================== */

@media print {
    .header,
    .burger,
    .mobile-menu,
    .hero-btns,
    .callback-btn {
        display: none !important;
    }
    
    .hero {
        height: auto;
        min-height: auto;
        page-break-after: always;
    }
    
    .hero-content {
        padding: 2rem 0;
        color: #000 !important;
    }
    
    .hero-text,
    .hero-subtitle,
    .hero-tagline {
        color: #000 !important;
        text-shadow: none !important;
    }
}

/* ========================================================================
   ACCESSIBILITY IMPROVEMENTS
   ======================================================================== */

@media (prefers-reduced-motion: reduce) {
    .mobile-menu,
    .menu-window,
    .hero-slide,
    .hero-logo-animated {
        transition: none !important;
        animation: none !important;
    }
}

@media (prefers-contrast: high) {
    .hero-overlay {
        background: rgba(0, 0, 0, 0.8);
    }
    
    .hero-text,
    .hero-subtitle,
    .hero-tagline {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    }
}

/* Focus styles for keyboard navigation */
.burger:focus,
.menu-top-close:focus,
.mobile-menu .header-menu a:focus,
.mobile-menu .header-phone:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* ========================================================================
   END OF RESPONSIVE STYLESHEET
   ======================================================================== */