/* ===================================================================
   370 Queens Quay Private Residences - Tablet-Only Styles
   Optimized for tablet devices (769px - 1024px)
   =================================================================== */

/* ===================
   TABLET STYLES (769px - 1024px)
   =================== */
@media (max-width: 1024px) {
    :root {
        --content-gap: 60px;
    }
    
    /* Body & Layout */
    body {
        padding-top: 90px;
    }

    .container {
        padding: 0 30px;
    }

    /* ===================
       TABLET HEADER
       =================== */
    .header-container {
        padding: 20px 30px;
        transition: all 0.3s ease; /* Smooth transition for shrinking effect */
    }

    /* Tablet Header Shrinking Effect */
    .page-header {
        transition: all 0.3s ease;
    }

    .page-header.header-shrunk .header-container {
        padding: 12px 25px; /* Reduced padding when shrunk */
    }

    .page-header.header-shrunk .logo-container svg {
        transform: scale(0.85); /* Scale down logo slightly */
        transition: transform 0.3s ease;
    }

    .page-header.header-shrunk .header-btn {
        padding: 10px 20px; /* Smaller button padding */
        font-size: 13px; /* Slightly smaller font */
        transition: all 0.3s ease;
    }

    .page-header.header-shrunk .mobile-toggle {
        transform: scale(0.9); /* Slightly smaller hamburger */
        transition: transform 0.3s ease;
    }

    /* Header Button Alignment for Tablet */
    .header-btn {
        margin-left: auto;
    }

    /* ===================
       TABLET HERO SECTION
       =================== */
    .hero-banner {
        min-height: 500px;
    }

    /* Hide desktop hero content on tablet */
    .hero-content {
        display: none !important;
    }

    /* Show and style mobile hero content for tablets */
    .hero-content-mobile {
        display: block !important;
        max-width: 85%; /* Percentage-based for tablets */
        width: 75%; /* Tablet-optimized width */
    }

    .hero-subtitle-mobile {
        font-size: 16px;
        margin-bottom: 20px;
        letter-spacing: 2.5px;
    }

    .hero-title-mobile {
        font-size: clamp(2.8rem, 6vw, 3.5rem);
        margin-bottom: 30px;
        line-height: 1.1;
    }

    .hero-description-mobile {
        font-size: 16px;
        line-height: 1.5;
        margin-bottom: 25px;
    }

    .hero-cta-mobile {
        margin-top: 25px;
    }

    /* Use mobile background image for tablets too */
    .hero-video {
        display: none !important; /* Disable video on tablet for performance */
    }

    .hero-placeholder {
        z-index: -2 !important;
        opacity: 1 !important;
    }

    /* Tablet-specific hero background image (same as mobile) */
    .hero-placeholder .placeholder-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
    }

    .premium-homes-logo {
        width: 240px;
        bottom: -8%;
        right: 8%;
    }

    /* ================================
       TABLET MOVE-IN INCENTIVES BANNER
       ================================ */
    .incentives-banner {
        padding: 50px 0;
        /* Tablet keeps normal banner behavior (not modal) */
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        width: auto !important;
        max-width: none !important;
        border-radius: 12px !important;
        box-shadow: none !important;
        max-height: none !important;
        overflow: visible !important;
        border: 2px solid var(--primary-gold) !important;
    }

    .incentives-banner::after {
        display: none !important;
    }

    .incentives-banner .container {
        padding: 0 30px;
        max-width: var(--container-max-width);
    }

    .incentives-title {
        font-size: 42px;
    }

    .incentives-grid {
        gap: 30px;
        margin-bottom: 35px;
    }

    .incentive-item {
        padding: 25px;
        gap: 18px;
        flex-direction: row;
        text-align: left;
    }

    .incentive-text {
        text-align: left;
    }

    .incentive-text h4 {
        font-size: 22px;
    }

    .incentives-deadline {
        padding: 18px 25px;
    }

    .incentives-close {
        top: -35px;
        right: 10px;
        width: 38px;
        height: 38px;
        background: var(--primary-gold) !important;
        border: 3px solid white !important;
        border-radius: 50% !important;
        z-index: 100001 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        box-shadow: 0 4px 5px rgba(0, 0, 0, 0.4) !important;
    }

    .incentives-close svg {
        width: 19px;
        height: 19px;
        fill: white !important;
    }

    .incentives-close:hover {
        background: #b8944a !important;
        transform: scale(1.1) !important;
        box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5) !important;
    }

    /* ===================
       TABLET CONTENT SECTIONS
       =================== */
    .content-section {
        padding: 80px 0;
    }

    .content-grid {
        gap: 60px;
    }

    .section-title {
        font-size: clamp(60px, 8vw, 70px);
    }

    .section-title2 {
        font-size: clamp(45px, 6vw, 50px);
    }

    /* ===================
       TABLET GALLERY & AMENITIES
       =================== */
    .gallery-section .gallery-grid,
    .amenities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .amenities-grid {
        gap: 35px;
    }

    /* ===================
       TABLET TOUR MODAL
       =================== */
    .tour-modal-body {
        gap: 30px;
    }

    .tour-modal-content {
        max-width: 700px;
    }

    /* ===================
       TABLET CONTACT MODAL
       =================== */
    .contact-modal-content {
        max-width: 650px;
    }

    .contact-modal-header,
    .contact-modal-body,
    .contact-modal-footer {
        padding-left: 35px;
        padding-right: 35px;
    }

    .contact-inquiry-form .form-row {
        gap: 18px;
    }

    .contact-modal-actions {
        gap: 18px;
    }

    /* Contact Preferences for Tablets */
    .contact-preferences {
        gap: 16px;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .contact-preference-option {
        flex: 0 0 auto;
        min-width: 120px;
    }

    /* ===================
       TABLET FOOTER
       =================== */
    .footer-content {
        grid-template-columns: 1fr 350px;
        gap: 80px;
    }

    .footer-main-title {
        font-size: clamp(3.5rem, 7vw, 4rem);
    }

    /* ===================
       TABLET MOBILE NAVIGATION
       =================== */
    .mobile-toggle {
        display: flex;
    }

    /* Hide the old primary menu system on tablet */
    .primary-menu {
        display: none !important;
    }

    .mobile-nav-overlay {
        width: 400px; /* Fixed width sidebar for tablet */
        max-width: 50vw;
    }

    /* Override for smaller mobile screens only (below 768px) */
    @media (max-width: 767px) {
        .mobile-nav-overlay {
            width: 100% !important;
            max-width: 100% !important;
        }
    }

    .mobile-nav-header {
        padding: 25px 35px;
    }

    .mobile-nav-logo svg {
        width: 160px;
    }

    .mobile-menu-link {
        padding: 28px 45px;
        font-size: 20px;
    }

    .mobile-nav-footer {
        padding: 35px 45px;
    }

    .mobile-cta-btn {
        padding: 20px 32px;
        font-size: 15px;
    }

    .contact-item {
        gap: 6px;
    }

    .contact-link {
        font-size: 17px;
    }
}

