/* Global Styles */
body, html {
    margin: 0;
    padding: 0;
    font-size: 16px;
    scroll-behavior: smooth;
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
}

/* Hero Section */
.contact-section {
    margin-top: -70px !important;
    position: relative;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
}

.contact-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
                url('../images/about/Thaproban-Beach-House-.webp') center/cover no-repeat;
    z-index: 0;
}

.contact-content {
    position: relative;
    z-index: 1;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 20px;
    box-sizing: border-box;
}

.contact-tagline {
    color: rgba(255,255,255,0.9);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 4px;
    margin-bottom: 15px;
    font-weight: 600;
    text-transform: uppercase;
    max-width: 500px;
}

.contact-title {
    font-family: 'Marcellus', serif !important;
    font-size: 4.8rem !important;
    color: white !important;
    line-height: 1.1;
    margin-bottom: 25px;
    letter-spacing: 0.5px;
    font-weight: 300;
    max-width: 800px;
    text-align: center;
}

.contact-description {
    font-family: 'Montserrat', sans-serif;
    max-width: 800px;
    color: rgba(255,255,255,0.9);
    line-height: 1.8;
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.2px;
}

/* About Sections */
.section {
    padding: 80px 0;
    background: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 50px;
}

.image-column {
    flex: 1;
    position: relative;
    min-height: 400px;
    min-width: 300px;
}

.image-column img:first-child {
    position: absolute;
    top: 0;
    right: 10%;
    width: 60%;
    height: 90%;
    object-fit: cover;
    z-index: 1;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.image-column img:last-child {
    position: absolute;
    top: 15%;
    left: -15%;
    width: 60%;
    height: 90%;
    object-fit: cover;
    z-index: 2;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.content-column {
    flex: 1;
    min-width: 300px;
}

.section-tagline {
    color: #4E9B82;
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 15px;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
}

.section-title {
    font-size: 2.5rem;
    line-height: 1.3;
    margin-bottom: 30px;
    font-family: 'Marcellus', serif;
}

.section-description {
    color: #555;
    line-height: 1.8;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 30px;
}

/* Reversed Layout */
#about-reversed .container {
    flex-direction: row-reverse;
}

#about-reversed .image-column img:first-child {
    left: 10%;
    right: auto;
}

#about-reversed .image-column img:last-child {
    right: -15%;
    left: auto;
}

/* Mobile Styles for About Sections Only */
@media (max-width: 768px) {
    /* About Sections */
    #about .container,
    #about-reversed .container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    #about .image-column,
    #about-reversed .image-column {
        width: 100%;
        min-height: auto;
        position: relative;
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 20px;
        margin-top: 30px;
        order: 2; /* Move images after content */
    }
    
    #about .image-column img,
    #about-reversed .image-column img {
        position: static;
        width: 45%;
        height: 300px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
    
    #about .content-column,
    #about-reversed .content-column {
        order: 1; /* Move content before images */
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
    }
    
    #about .section-title,
    #about-reversed .section-title {
        text-align: center;
    }
    
    #about .section-description,
    #about-reversed .section-description {
        text-align: center;
    }
}

/* The Pavilion Way of Life Section - UNCHANGED */
#pavilion-life {
    padding: 100px 0;
    background: #f1ebe3;
    text-align: center;
}

#pavilion-life .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: block;
}

#pavilion-life .section-tagline {
    color: #b30707;
    margin-bottom: 15px;
}

#pavilion-life .section-title {
    color: #333;
    margin-bottom: 30px;
}

#pavilion-life .section-description {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 60px;
}

.lifestyle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    align-items: flex-start;
}

.lifestyle-card {
    position: relative;
}

.lifestyle-card img {
    width: 100%;
    height: 550px;
    object-fit: cover;
    border-radius: 4px;
}

.lifestyle-card:nth-child(2), 
.lifestyle-card:nth-child(4) {
    margin-top: 40px;
}

.lifestyle-card-content {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
}

.lifestyle-card i {
    font-size: 28px;
    color: white;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.lifestyle-card h3 {
    font-family: 'Marcellus', serif;
    color: white;
    margin: 0;
    font-size: 1.4rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Other Responsive Adjustments (unchanged) */
@media (max-width: 1200px) {
    .contact-title {
        font-size: 4rem !important;
    }
    
}

@media (max-width: 992px) {
    .contact-title {
        font-size: 3.5rem !important;
    }
}

@media (max-width: 768px) {
    .contact-tagline {
        font-size: 0.8rem !important;
        letter-spacing: 3px;
        max-width: 90%;
    }
    
    .contact-title {
        font-size: 2.8rem !important;
        max-width: 90%;
    }
    
    .contact-description {
        font-size: 1rem !important;
        max-width: 90%;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }

    .lifestyle-card img {
        height: 400px;
    }
}

@media (max-width: 576px) {
    .contact-title {
        font-size: 2rem !important;
    }
    
    .section {
        padding: 40px 0;
    }
    
    /* About Section Images on smaller screens */
    #about .image-column img,
    #about-reversed .image-column img {
        height: 250px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }

    .lifestyle-card img {
        height: 350px;
    }
    
    .lifestyle-card:nth-child(2), 
    .lifestyle-card:nth-child(4) {
        margin-top: 0;
    }
}

@media (max-width: 400px) {
    .contact-title {
        font-size: 1.8rem;
    }
    
    .contact-tagline {
        font-size: 0.7rem;
        letter-spacing: 2px;
    }
    
    .section-tagline {
        font-size: 0.8rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .lifestyle-grid {
        grid-template-columns: 1fr;
    }
    
    /* About Section Images on very small screens */
    #about .image-column,
    #about-reversed .image-column {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    #about .image-column img,
    #about-reversed .image-column img {
        width: 90%;
        height: 200px;
    }
}