/* Mobile CSS - POLA
   This file contains styles specific to mobile devices 
   and will be loaded only for mobile viewport sizes */

/* Utility classes for responsive visibility */
.d-none {
    display: none !important;
}

.mobile-only {
    display: none !important; /* Hide on desktop */
}

.mobile-toggle {
    display: none !important; /* Hide on desktop */
}

@media only screen and (max-width: 992px) {
    .mobile-only {
        display: block !important; /* Show on mobile */
    }

    .mobile-toggle {
        display: flex !important; /* Show on mobile */
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
        color: var(--primary-color);
        z-index: 101;
        height: 40px;
        width: 40px;
        align-items: center;
        justify-content: center;
        padding: 0;
        margin-right: auto;
    }

    /* Global adjustments */
    body {
        overflow-x: hidden;
        /* Remove scrollbar in mobile view */
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
    }
    
    /* Hide scrollbar for Chrome, Safari and Opera */
    body::-webkit-scrollbar {
        display: none;
    }
    
    /* Make elements use full width without scrollbar padding */
    .container {
        padding: 0 15px;
        max-width: 100vw;
        width: 100%;
        box-sizing: border-box;
    }

    /* Header Adjustments */
    .main-header {
        padding: 15px 0;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        position: relative;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }

    /* Hide search and language buttons in mobile */
    .search-toggle, .language-selector {
        display: none !important;
    }

    /* Center the POLA logo */
    .logo {
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        margin: 0 !important;
        text-align: center !important;
        z-index: 1 !important;
    }
    
    .logo a {
        display: block !important;
        text-align: center !important;
        white-space: nowrap !important;
    }

    /* Hide desktop navigation */
    header nav {
        display: none;
    }

    .header-icons {
        position: relative;
        z-index: 2;
        margin-left: auto;
        display: flex;
        align-items: center;
        gap: 15px;
    }

    /* Mobile Menu - 清爽无背景风格 */
    .mobile-menu {
        display: none; /* 默认隐藏 */
        position: fixed;
        top: 0;
        left: 0;
        width: 85%;
        max-width: 320px; /* 稍微增大宽度 */
        height: 100%;
        z-index: 1000;
        background-color: #ffffff; /* 纯白背景 */
        overflow-y: auto;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.15); /* 稍微加深阴影 */
        padding: 70px 30px 40px; /* 增加顶部内边距，方便关闭按钮操作 */
    }
    
    /* 确保在active状态时正确显示 */
    .mobile-menu.active {
        display: block; /* 显示菜单 */
    }

    .mobile-nav {
        margin-top: 30px;
        display: block !important; /* 确保显示 */
        width: 100% !important; /* 确保宽度正确 */
    }

    /* 移除第一个子项的顶部边框 */
    .mobile-nav ul li:first-child {
        border-top: none;
        margin-top: 0;
    }
    
    /* 主导航链接（四个主要链接） */
    .mobile-nav ul.main-links {
        margin-bottom: 50px; /* 增加与下方菜单的间距 */
        padding: 0;
        border: none; /* 移除所有边框 */
        background-color: transparent; /* 确保背景透明 */
    }
    
    .mobile-nav ul.main-links li {
        margin-bottom: 25px; /* 更大的间距 */
    }
    
    .mobile-nav ul.main-links li a {
        font-weight: 600;
        color: #000000; /* 纯黑色文字 */
        display: block;
        padding: 10px 0;
        text-align: left;
        font-size: 20px; /* 更大的字体 */
        letter-spacing: 0.5px; /* 增加字母间距 */
        transition: color 0.2s ease;
        border: none; /* 确保没有边框 */
        background: none; /* 确保没有背景 */
    }
    
    /* 次要导航链接（下方其他链接） */
    .mobile-nav ul:not(.main-links) {
        border-top: 1px solid rgba(0,0,0,0.08); /* 极淡的分隔线 */
        padding-top: 30px;
    }
    
    .mobile-nav ul:not(.main-links) li {
        margin-bottom: 20px;
    }
    
    .mobile-nav ul:not(.main-links) li a {
        font-size: 17px; /* 略小于main-links的字体 */
        padding: 5px 0;
        color: #333333;
        border: none;
        background: none;
    }

    /* Updated mobile menu to include main navigation links */
    .mobile-nav ul {
        padding: 0;
        margin: 0;
        list-style: none;
        display: block !important; /* 确保显示 */
        width: 100% !important; /* 确保宽度正确 */
    }
    
    .mobile-nav ul li:first-child {
        border-top: none; /* 确保没有顶部边框 */
        margin-top: 0;
    }
    
    /* Add collection links to mobile menu */
    .mobile-nav ul.main-links {
        margin-bottom: 50px; /* 确保保持50px的下边距 */
    }
    
    /* 确保移动导航中的链接样式一致 */
    .mobile-nav li {
        display: block !important;
        width: 100% !important;
        border: none !important; /* 确保没有边框 */
    }
    
    .mobile-nav a {
        display: block !important;
        width: 100% !important;
        text-decoration: none !important;
        transition: color 0.3s ease;
        border: none !important; /* 确保没有边框 */
        background: none !important; /* 确保没有背景 */
    }

    /* Enhanced Mobile Submenu */
    .mobile-submenu {
        padding-left: 15px;
    }

    .mobile-submenu a {
        font-size: 14px;
        padding: 8px 0;
    }

    /* Enhance product cards for mobile */
    .product-card {
        position: relative;
        overflow: hidden;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        background: var(--secondary-color);
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
    }
    
    /* Fix product card alignment - center product cards */
    .featured .product-grid {
        place-items: center;
        justify-content: center;
        padding: 0;
        display: grid;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .collection-page .product-grid {
        padding-left: 0 !important;
        place-items: center;
        justify-content: center;
        display: grid;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Fix "Shop the Collection" button sizing */
    .hero .btn {
        padding: 8px 20px;
        font-size: 13px;
        min-height: 36px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: auto;
        max-width: 180px;
    }
    
    /* Fix banner button size for mobile */
    .banner-btn {
        padding: 8px 16px;
        font-size: 12px;
        min-height: 32px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: auto;
    }
    
    /* Fix View All Products button */
    .load-more .btn-outline {
        padding: 8px 20px;
        font-size: 13px;
        height: auto;
        min-height: 36px;
        width: auto;
        max-width: 200px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto;
    }
    
    /* Reposition product actions to be horizontal and centered */
    .product-actions {
        position: absolute;
        bottom: 15px;
        left: 0;
        right: 0;
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 15px;
        opacity: 1;
        transform: translateY(0);
        padding: 10px;
        background: linear-gradient(to top, rgba(0,0,0,0.2), transparent);
        z-index: 5;
    }
    
    .product-action-btn {
        width: 38px;
        height: 38px;
        background-color: rgba(255, 255, 255, 0.95);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 15px;
        color: var(--primary-color);
    }

    /* Better Mobile Image Handling */
    .product-image-container {
        position: relative;
        overflow: hidden;
        border-radius: 8px 8px 0 0;
    }
    
    /* Product card interaction styling */
    .product-card::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: transparent;
        transition: background-color 0.3s ease;
        pointer-events: none;
        z-index: 2;
    }
    
    .product-card:active::after {
        background-color: rgba(0, 0, 0, 0.03);
    }
    
    /* Touch effect for product images */
    .product-card:active .product-image {
        opacity: 0.7;
    }
    
    .product-card:active .product-image-hover {
        opacity: 1;
    }

    .mobile-only {
        display: block !important; /* Show container on mobile */
        position: relative;
        z-index: 2;
    }
}

/* Override the Mobile-Friendly Product Actions from the additional section */
@media only screen and (max-width: 992px) {
    .product-actions {
        position: absolute;
        bottom: 15px;
        left: 0;
        right: 0;
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 15px;
        opacity: 1;
        transform: translateY(0);
        padding: 10px;
        background: linear-gradient(to top, rgba(0,0,0,0.2), transparent);
        z-index: 5;
    }

    .product-action-btn {
        width: 38px;
        height: 38px;
        background-color: rgba(255, 255, 255, 0.95);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 15px;
        color: var(--primary-color);
    }
    
    /* Mobile-optimized product info */
    .product-info {
        padding: 15px;
    }
    
    .product-title {
        font-size: 15px;
        line-height: 1.3;
        margin-bottom: 6px;
    }
    
    .product-price {
        font-size: 16px;
        font-weight: 700;
    }
    
    /* Sticky Add to Cart for Product Pages */
    .product-single .sticky-add-to-cart {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: var(--secondary-color);
        padding: 12px 15px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        z-index: 98;
        transform: translateY(100%);
        transition: transform 0.3s ease;
    }
    
    .product-single .sticky-add-to-cart.visible {
        transform: translateY(0);
    }
    
    .sticky-add-to-cart .product-price {
        font-size: 18px;
        margin: 0;
    }
    
    .sticky-add-to-cart .btn {
        padding: 10px 15px;
        margin: 0;
    }
}

/* Tablet Specific Adjustments (768px - 991px) */
@media only screen and (min-width: 768px) and (max-width: 991px) {
    /* Hero Section */
    .hero {
        height: 600px;
    }

    .hero h1 {
        font-size: 48px;
    }

    .hero p {
        font-size: 16px;
    }

    /* Collection Banner */
    .banner-item {
        height: 400px;
    }

    .banner-content {
        bottom: 30px;
        left: 30px;
    }

    .banner-title {
        font-size: 28px;
    }
    
    /* Fix banner button size for tablet */
    .banner-btn {
        padding: 10px 24px;
        font-size: 14px;
        min-height: 40px;
    }

    /* Featured Products */
    .featured .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        padding: 0 15px;
    }

    .product-card {
        height: 400px;
    }
    
    /* Categories Section */
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .category-card {
        height: 350px;
    }
    
    /* Features Section */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    /* Instagram Feed */
    .instagram-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

/* Mobile Specific Adjustments (576px - 767px) */
@media only screen and (min-width: 576px) and (max-width: 767px) {
    /* Hero Section */
    .hero {
        height: 500px;
    }

    .hero h1 {
        font-size: 40px;
        margin-bottom: 15px;
    }

    .hero p {
        font-size: 15px;
        margin-bottom: 20px;
    }

    /* Collection Banner */
    .banner-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .banner-item {
        height: 350px;
    }
    
    /* Fix banner button size for mobile */
    .banner-btn {
        padding: 8px 20px;
        font-size: 13px;
        min-height: 36px;
    }

    /* Featured Products */
    .featured .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .section-title {
        font-size: 28px;
    }

    .product-filter {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    /* Collection Page */
    .collection-page .product-grid {
        grid-template-columns: repeat(2, 1fr);
        padding-left: 0;
    }

    /* Categories */
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .category-card {
        height: 300px;
    }

    /* Features */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* Instagram Feed */
    .instagram-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Newsletter */
    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-input {
        margin-bottom: 10px;
    }

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

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

/* Small Mobile Devices (320px - 575px) */
@media only screen and (max-width: 575px) {
    /* Header & Top Bar */
    .top-bar {
        font-size: 10px;
        padding: 6px 0;
    }

    .main-header {
        padding: 12px 0;
    }

    .logo {
        font-size: 20px;
    }

    .header-icons a {
        font-size: 16px;
    }

    /* Language Selector */
    .language-selector {
        margin-left: 10px;
        width: 80px;
    }

    .current-lang {
        font-size: 12px;
    }

    /* Hero Section */
    .hero {
        height: 400px;
    }

    .hero-content {
        padding: 0 15px;
    }

    .hero h1 {
        font-size: 32px;
        margin-bottom: 10px;
        letter-spacing: 1px;
    }

    .hero p {
        font-size: 14px;
        margin-bottom: 15px;
    }

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

    /* Collection Banner */
    .collection-banner {
        padding: 40px 0;
    }

    .banner-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .banner-item {
        height: 300px;
    }

    .banner-content {
        bottom: 20px;
        left: 20px;
    }

    .banner-title {
        font-size: 24px;
        margin-bottom: 10px;
    }
    
    /* Fix banner button size for mobile */
    .banner-btn {
        padding: 8px 18px;
        font-size: 12px;
        min-height: 34px;
    }

    /* Featured Products */
    .featured {
        padding: 40px 0;
    }

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

    .section-title {
        font-size: 24px;
        margin-bottom: 10px;
    }

    .section-subtitle {
        font-size: 14px;
    }

    .product-filter {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        margin-bottom: 25px;
    }

    .filter-btn {
        width: 100%;
        padding: 8px 0;
    }

    .featured .product-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin: 25px 0;
    }

    .product-card {
        height: auto;
        min-height: 350px;
    }

    .product-image-container {
        aspect-ratio: 1;
    }

    /* Collection Page */
    .collection-page .product-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding-left: 0;
        margin: 25px 0;
    }

    .collection-total {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    /* Categories */
    .categories {
        padding: 40px 0;
    }

    .category-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .category-card {
        height: 250px;
    }

    .category-title {
        font-size: 22px;
        bottom: 20px;
        left: 20px;
    }

    /* Features */
    .features {
        padding: 40px 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .feature-icon {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .feature-title {
        font-size: 16px;
    }

    /* Instagram Feed */
    .instagram-feed {
        padding: 40px 0;
    }

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

    /* Newsletter */
    .newsletter {
        padding: 40px 0;
    }

    .newsletter-title {
        font-size: 22px;
    }

    .newsletter-text {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-input {
        margin-bottom: 10px;
        padding: 12px;
    }

    .newsletter-btn {
        width: 100%;
        padding: 12px 15px;
        font-size: 12px;
    }

    /* Footer */
    footer {
        padding: 40px 0 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 30px;
    }

    .footer-column h3 {
        margin-bottom: 15px;
        font-size: 14px;
    }

    .footer-column ul li {
        margin-bottom: 8px;
    }

    .footer-column ul li a {
        font-size: 13px;
    }

    .footer-about p {
        font-size: 13px;
    }

    .social-links {
        gap: 12px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        font-size: 12px;
    }

    .payment-methods {
        justify-content: center;
    }

    /* Cart Sidebar */
    .cart-sidebar {
        width: 100%;
    }

    /* Improved Mobile Checkout */
    .checkout-steps {
        display: flex;
        overflow-x: auto;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
        margin: 0 -15px;
        padding: 0 15px 10px;
    }
    
    .checkout-step {
        flex: 0 0 auto;
        margin-right: 20px;
        white-space: nowrap;
    }
    
    .checkout-section {
        margin-bottom: 25px;
        padding: 20px 15px;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }
    
    .checkout-summary {
        position: sticky;
        bottom: 0;
        left: 0;
        width: 100%;
        background: var(--secondary-color);
        padding: 15px;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        z-index: 98;
    }
    
    .checkout-btn {
        width: 100%;
        padding: 15px;
        font-size: 16px;
    }
}

/* Portrait-specific fixes for very small devices */
@media only screen and (max-width: 375px) {
    .logo {
        font-size: 18px;
    }

    .header-icons {
        gap: 10px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .banner-title {
        font-size: 20px;
    }

    .section-title {
        font-size: 20px;
    }

    .category-title {
        font-size: 18px;
    }
}

/* Additional Mobile UX Improvements */

/* Enhanced Touch Targets */
@media only screen and (max-width: 992px) {
    /* Make buttons and interactive elements larger on mobile */
    .btn, 
    .filter-btn,
    .product-action-btn,
    .newsletter-btn,
    .cart-btn,
    .menu-close,
    .search-close,
    .cart-close {
        min-height: 24px; /* Apple's recommended minimum touch target size */
    }

    /* Increase spacing between clickable elements */
    .mobile-nav li a {
        display: block;
        padding: 12px 0;
    }

    /* Improve form elements */
    input, 
    select, 
    textarea {
        font-size: 16px; /* Prevents iOS zoom on focus */
        padding: 12px;
    }

    /* Improved Scroll Experience */
    .mobile-menu, 
    .cart-sidebar {
        -webkit-overflow-scrolling: touch; /* Smooth scrolling for iOS */
    }

    /* Improved Mobile Search */
    .search-input {
        height: 44px;
        font-size: 16px;
    }

    .search-btn {
        height: 44px;
        width: 44px;
    }

    /* Mobile-optimized dropdowns */
    .submenu-toggle {
        width: 40px;
        height: 40px;
    }
}

/* Fix for iOS Safari 100vh issue */
@supports (-webkit-touch-callout: none) {
    .hero, 
    .mobile-menu, 
    .cart-sidebar, 
    .search-overlay {
        height: -webkit-fill-available;
    }
}

/* Mobile animations and transitions */
@media only screen and (max-width: 992px) {
    /* Smoother transitions */
    .mobile-menu, .cart-sidebar, .search-overlay, .overlay {
        transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    }
    
    /* Improve touch feedback */
    .btn, .filter-btn, .product-action-btn, .mobile-nav a, .cart-btn {
        transition: transform 0.2s ease, background-color 0.3s ease;
    }
    
    .btn:active, .filter-btn:active, .product-action-btn:active, .mobile-nav a:active, .cart-btn:active {
        transform: scale(0.95);
    }
    
    /* Product card hover effect for touch */
    .product-card {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    
    .product-card:active {
        transform: scale(0.98);
    }
    
    /* Mobile header shadow on scroll */
    header.scrolled {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
    
    /* Better tap targets for collection sorting */
    .collection-sort {
        min-height: 44px;
        padding: 10px 15px;
    }
    
    .sort-option {
        padding: 12px 15px;
    }
    
    /* Mobile-friendly Quick View */
    .quick-view-modal .modal-content {
        max-height: 90vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Improved mobile loading indicators */
    .loading-indicator {
        margin: 30px auto;
    }
}

/* Modern pull-to-refresh indicator */
@media only screen and (max-width: 992px) {
    .pull-to-refresh {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: var(--secondary-color);
        z-index: 99;
        transform: translateY(-100%);
        transition: transform 0.3s ease;
    }
    
    .pull-to-refresh.active {
        transform: translateY(0);
    }
    
    .pull-to-refresh-spinner {
        width: 20px;
        height: 20px;
        border: 2px solid var(--primary-color);
        border-top-color: transparent;
        border-radius: 50%;
        animation: pull-to-refresh-spin 1s linear infinite;
    }
    
    @keyframes pull-to-refresh-spin {
        0% {
            transform: rotate(0deg);
        }
        100% {
            transform: rotate(360deg);
        }
    }
}

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

/* Mobile navigation title */
.mobile-nav-title {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 1px;
    color: var(--gray-dark);
}

/* 修复菜单关闭按钮样式 */
.menu-close {
    position: absolute !important;
    top: 25px !important;
    right: 25px !important;
    background: none !important;
    border: none !important;
    font-size: 28px !important; /* 更大的字体 */
    cursor: pointer !important;
    color: #000000 !important; /* 纯黑色 */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 1010 !important;
    width: 48px !important; /* 更大的触摸区域 */
    height: 48px !important; /* 更大的触摸区域 */
    padding: 0 !important;
    opacity: 0.85; /* 稍微透明 */
    transition: opacity 0.2s ease !important;
}

.menu-close:hover, .menu-close:active {
    opacity: 1 !important;
}

.mobile-nav li {
    display: block !important; /* 确保显示 */
    width: 100% !important; /* 确保宽度正确 */
}

.mobile-nav a {
    display: block !important; /* 确保显示 */
    width: 100% !important; /* 确保宽度正确 */
    text-decoration: none !important; /* 确保没有下划线 */
    transition: color 0.3s ease; /* 添加过渡效果 */
}

/* Hero Section Background */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    max-height: 822px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

/* Responsive Hero Background */
@media only screen and (max-width: 1200px) {
    .hero {
        height: 700px;
        background-position: center 20%;
    }
}

@media only screen and (max-width: 992px) {
    .hero {
        height: 500px;
        background-position: center 30%;
        background-attachment: scroll;
    }
}

@media only screen and (max-width: 767px) {
    .hero {
        height: 400px;
        background-position: center 25%;
    }

    .hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.2);
    }
}

@media only screen and (max-width: 575px) {
    .hero {
        height: 350px;
        background-position: center 20%;
    }
}

@media only screen and (max-width: 375px) {
    .hero {
        height: 300px;
    }
}

/* Fix for iOS Safari 100vh issue */
@supports (-webkit-touch-callout: none) {
    .hero {
        height: calc(100vh - var(--vh-offset, 0px));
        min-height: 300px;
    }
} 