﻿/* ====================================
   I. Global Styles & Typography
   ==================================== */
body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    text-align: center;
    background-color: #f9f9f9;
}

/* ====================================
   II. Header Section Styling
   ==================================== */
header {
    padding: 60px 20px;
    background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(240,240,240,1) 100%);
    border-bottom: 1px solid #ddd;
}

h1 {
    font-size: 3em;
    color: #007bff; /* Primary Brand Color */
    margin-bottom: 8px;
    font-weight: 300;
}

header p {
    font-size: 1.1em;
    color: #666;
    margin-top: 5px;
}

.hero-video {
    width: 100%;
    max-height: 600px; /* Limit the video height */
    object-fit: cover;
    margin-top: 30px;
}

.vertical-video {
    width: 100%;
    max-height: 2000px; /* Limit the video height */
    object-fit: cover;
    margin-top: 0px;
}


/* ====================================
   III. Mosaic Gallery Layout (The Core)
   ==================================== */
.mosaic-gallery {
    /* Use CSS Grid for the modern mosaic look */
    display: grid; 
    grid-template-columns: repeat(4, 1fr); /* Default 4 columns for desktop */
    grid-auto-rows: 250px; /* Standard height for all rows */
    gap: 15px; /* Spacing between grid items */
    padding: 40px 20px;
    max-width: 1400px;
    margin: 0 auto; /* Center the grid */
}

/* Define sizes for specific items to create the mosaic effect (Desktop View) */
.mosaic-item:nth-child(1) { /* Primary Suite */
    grid-column: span 2; /* Spans 2 columns wide */
    grid-row: span 2;    /* Spans 2 rows tall */
}

.mosaic-item:nth-child(2) { /* Kitchen */
    grid-column: span 2; 
}

.mosaic-item:nth-child(3) { /* Family Room */
    grid-column: span 2; 
}
.mosaic-item:nth-child(8) { /* Grand View */
    grid-column: span 2; 
}

.mosaic-item:nth-child(9) { /* Millstone */
    grid-column: span 2; 
}

/* Styles for the individual clickable blocks */
.mosaic-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* Subtle lift effect */
    transition: transform 0.3s ease-in-out;
}

.mosaic-item:hover {
    transform: translateY(-5px); /* Lift up slightly on hover */
}

.mosaic-item a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.mosaic-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures images fill the grid space without distortion */
    display: block;
    transition: transform 0.4s ease-in-out;
}

.mosaic-item:hover img {
    transform: scale(1.03); /* Slight zoom for interaction */
}

.item-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px 10px;
    /* Semi-transparent dark overlay for text readability */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0)); 
    color: white;
    font-size: 1.1em;
    font-weight: 600;
    text-align: left;
}


/* ====================================
   IV. Footer & CTA Styling
   ==================================== */
.cta-section {
    padding: 60px 20px;
    background-color: #2c3e50; /* Darker, professional background */
    color: white;
}

.cta-section h2 {
    font-size: 2em;
    margin-bottom: 25px;
    font-weight: 400;
}

.cta-section a {
    padding: 15px 40px;
    background-color: #e74c3c; /* A strong, contrasting CTA color (red/orange) */
    color: white;
    text-decoration: none;
    font-weight: 700;
    border-radius: 5px;
    display: inline-block;
    margin-top: 15px;
    transition: background-color 0.3s;
}

.cta-section a:hover {
    background-color: #c0392b;
}

.cta-section p {
    margin-top: 30px;
    font-size: 0.9em;
    color: #bbb;
}

/* ====================================
   V. Responsive Design (Mobile View)
   The mosaic layout adjusts here for mobile screens (768px and smaller)
   ==================================== */
@media (max-width: 768px) {
    
    header {
        padding: 30px 10px;
    }
    
    h1 {
        font-size: 2em;
    }

    /* Stack all grid items vertically on small screens */
    .mosaic-gallery {
        grid-template-columns: 1fr; /* Single column on mobile */
        grid-auto-rows: 300px; /* Uniform height for mobile blocks */
        padding: 20px 10px;
    }
    
    /* Reset spans for mobile to ensure they stack properly */
    .mosaic-item:nth-child(1),
    .mosaic-item:nth-child(2),
    .mosaic-item:nth-child(3),
    .mosaic-item:nth-child(8),
    .mosaic-item:nth-child(9) { 
        grid-column: span 1;
        grid-row: span 1;
    }
}


/* --- Two-Column Layout Definition --- */

/* 1. Default (Mobile First): All content stacks vertically */
.two-column-layout {
    display: block; /* Default block layout for mobile */
    padding: 0px;
    margin: 0px auto;
    max-width: 1400px;
}


/* 2. Desktop Layout: Use Grid to define two columns */
@media (min-width: 769px) {
    .two-column-layout {
        display: grid;
        /* Defines two columns: one at 1 part, one at 2 parts (e.g., 33% / 67%) */
        grid-template-columns: 3fr 1fr; 
        gap: 20px; /* Space between the two columns */
        text-align: left;
    }
    
    .two-column-layout-bedroom2 {
        display: grid;
        /* Defines two columns: one at 1 part, one at 2 parts (e.g., 33% / 67%) */
        grid-template-columns: 8fr 5fr; 
        gap: 20px; /* Space between the two columns */
        text-align: left;
    }
    
    .two-column-layout-bedroom3 {
        display: grid;
        /* Defines two columns: one at 1 part, one at 2 parts (e.g., 33% / 67%) */
        grid-template-columns: 5fr 8fr; 
        gap: 20px; /* Space between the two columns */
        text-align: left;
    }
    
    .two-column-layout-half-bath {
        display: grid;
        /* Defines two columns: one at 1 part, one at 2 parts (e.g., 33% / 67%) */
        grid-template-columns: 5fr 9fr; 
        gap: 20px; /* Space between the two columns */
        text-align: left;
    }
    
    .two-column-layout-bonusroom {
        display: grid;
        /* Defines two columns: one at 1 part, one at 2 parts (e.g., 33% / 67%) */
        grid-template-columns: 8fr 5fr; 
        gap: 20px; /* Space between the two columns */
        text-align: left;
    }
}