/* 
   =============================================
   MOBILE & TABLET VIEW - FRAME 56 DESIGN MATCH
   ============================================= 
*/

/* Tablet / Small Laptop Adjustments (1024px) */
@media (max-width: 1024px) {
    .hero h1 { 
        font-size: 38px; 
    }
    .inclusions-grid { 
        grid-template-columns: repeat(3, 1fr); 
    }
    .footer-content { 
        padding: 0 40px; 
    }
    .footer-logo img { 
        width: 300px; 
    }
    .footer-divider { 
        height: 200px; 
    }
    .gallery-grid {
        padding-bottom: 120%; /* Adjusted for tablet */
    }
}

/* Specific Gallery adjustment for mid-size screens */
@media (max-width: 900px) {
    .gallery-grid {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        padding-bottom: 0;
        height: auto;
        gap: 10px;
        margin: 20px 0 40px;
    }
    .g1, .g2, .g3, .g4, .g5, .g6, .g7, .g8, .g9 {
        position: static;
        left: auto; top: auto;
        width: auto; height: 200px;
        grid-column: auto;
        grid-row: auto;
    }
    .g2 { grid-column: 1 / 3; height: 250px; }
}

/* Global Reveal Mobile Adjustment */
@media (max-width: 768px) {
    .reveal {
        transform: translateY(20px); /* Smaller offset for mobile */
    }
    .g-item.reveal {
        transform: scale(0.95) translateY(20px);
    }
}

/* Mobile View (768px and below) - Match Frame 56.png */
@media (max-width: 768px) {
    /* Container adjustment */
    .container {
        padding: 0 20px;
    }
    .m-br { display: block !important; }
    .d-br { display: none !important; }

    /* Header */
    header {
        padding-top: 10px;
    }
    header .logo-container img {
        height: 60px;
    }

    /* Hero Section */
    .hero {
        height: auto;
        min-height: 80vh;
        padding: 60px 0 80px;
    }
    .hero-content {
        padding: 0 10px;
    }
    .hero h1 {
        font-size:18px;
        line-height: 1.3;
        margin-bottom: 25px;
    }
    .hero p {
        font-size: 12px;
        line-height: 1.4;
        padding: 0;
        max-width: 100%;
    }
    .hero-badge {
        margin-bottom: 30px;
        padding: 6px 15px;
    }
    .hero-badge span {
        font-size: 11px;
        white-space: nowrap;
    }

    /* USP Section */
    .usp-section {
        padding: 60px 0;
    }
    .usp-headline {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 50px;
        padding: 0 10px;
    }
    .usp-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 50px 20px;
    }
    .usp-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .usp-item svg {
        width: 42px;
        height: 42px;
        margin-bottom: 15px;
        display: block;
    }
    .usp-item h4 {
        font-size: 12px;
        line-height: 1.4;
        max-width: 130px;
    }

    /* Confused Section - STACKED */
    .confused-section {
        padding: 40px 10px;
    }
    .confused-container {
        flex-direction: column;
        border: 2px solid #000;
        margin: 15px;
    }
    .confused-left {
        padding: 60px 40px;
        border-right: none;
        border-bottom: 2px solid #000;
    }
    .confused-left h2 {
        font-size: 36px;
        margin-bottom: 60px;
    }

    .confused-right {
        padding: 50px 40px;
    }
    .confused-right h3 {
        font-size: 22px;
        line-height: 1.4;
    }
    .booking-widget {
        flex-direction: column;
        gap: 50px;
        align-items: center;
    }
    .booking-list {
        width: 100%;
    }
    .calendar-mockup {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        box-shadow: 0 15px 50px rgba(0,0,0,0.12); /* More prominent shadow */
        margin-top: 20px;
        border: 1px solid rgba(0,0,0,0.02);
    }

    /* Stats Section */
    .stats-section {
        padding: 80px 0;
    }
    .stats-heading {
        font-size: 13px;
        margin-bottom: 30px;
        letter-spacing: 1px;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 15px;
    }
    .stat-item h3 {
        font-size: 38px;
    }
    .stat-item p {
        font-size: 9px;
    }

    /* Testimonials */
    .testimonials-section {
        padding: 60px 20px;
    }
    .testimonial-title {
        font-size: 16px;
        margin-bottom: 50px;
    }
    .testimonial-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .testimonial-item {
        display: block;
        height: 220px;
        border-radius: 8px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
        overflow: hidden;
    }
    .testimonial-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Our Inclusions */
    .inclusions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 15px;
    }
    .incl-item img {
        height: 56px;
    }

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

    /* Gallery Section - Full Width Stacking */
    .gallery-heading {
        padding-top: 60px;
        font-size: 18px;
    }
    .gallery-grid {
        position: static;
        display: flex;
        flex-direction: column;
        height: auto;
        padding-bottom: 0;
        gap: 15px;
        margin-top: 30px;
    }
    .g-item {
        position: static !important;
        width: 100% !important;
        height: 250px !important; /* Slightly smaller for mobile comfort */
        border-radius: 6px;
    }

    /* Footer - STACKED */
    footer {
        padding: 60px 0 80px;
        background: #111;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .footer-divider {
        display: none;
    }
    .footer-logo img {
        width: 260px;
        margin: 0 auto;
    }
    .footer-info p {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 25px;
        opacity: 0.9;
    }
    .footer-phone {
        font-size: 16px;
        text-decoration: underline;
    }

    /* Final CTA Mobile */
    .final-cta {
        padding: 80px 0;
    }
    .cta-title {
        font-size: 18px;
        margin-bottom: 40px;
    }

    /* Text Safety Overrides */
    h1, h2, h3 {
        overflow-wrap: break-word;
        word-wrap: break-word;
    }
    
    .stat-item p {
        white-space: normal;
        line-height: 1.2;
    }

    /* Modal Mobile */
    .modal {
        padding: 20px;
    }
    .modal-content {
        padding: 40px 20px 30px;
        width: 100%;
        max-height: 95vh;
        overflow-y: auto;
        border-radius: 12px;
    }
    .form-row {
        flex-direction: column;
        gap: 0;
        margin-bottom: 0;
    }
    .form-group {
        margin-bottom: 20px;
    }
    .form-group input, .form-group select, .form-group textarea {
        padding: 12px 15px;
        font-size: 14px;
    }
    .modal-header {
        margin-bottom: 25px;
        text-align: center;
    }
    .modal-header h2 {
        font-size: 24px;
    }
    .modal-header p {
        font-size: 13px;
    }
    .btn-submit {
        padding: 15px;
        margin-top: 10px;
    }
    .close-modal {
        right: 15px;
        top: 15px;
        font-size: 24px;
    }
}

/* Extra Small Screens (down to 320px) */
@media (max-width: 360px) {
    .hero h1 { font-size: 16px; }
    .confused-left h2 { font-size: 30px; }
    .stats-grid { gap: 20px 10px; }
    .stat-item h3 { font-size: 32px; }
    .stat-item p { font-size: 8px; }
}
