/* ==========================================
   1. CSS RESET & GLOBAL VARIABLES
   ========================================== */
:root {
    --primary-color: #2D2D2D; /* Charcoal */
    --accent-color: #C5A880; /* Muted Gold/Sand */
    --bg-color: #FAF9F6; /* Soft Off-White */
    --text-color: #1a1a1a;
    --gray-light: #e5e7eb;
    --gray-text: #6b7280;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth; /* Smooth scrolling for anchor links */
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: normal;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ==========================================
   2. REUSABLE UTILITIES
   ========================================== */
:root {
    --brand-teal: #007A8D; /* Matches the Five Oaks logo */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================
   3. HEADER & NAVIGATION
   ========================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(250, 249, 246, 0.95);
    backdrop-filter: blur(10px); /* Modern frosted glass effect */
    border-bottom: 1px solid var(--gray-light);
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.header-logo {
    max-height: 50px;
    width: auto;
    display: block;
}

.main-nav {
    display: none; /* We will reveal this on desktop */
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 32px;
}

.nav-list a {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-text);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-list a:hover {
    color: var(--brand-teal);
}

.btn-call {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 10px 24px;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
    border-radius: 2px;
    transition: background-color 0.3s ease;
}

.btn-call:hover {
    background-color: var(--brand-teal);
}

/* Desktop Navigation Reveal */
@media (min-width: 768px) {
    .main-nav {
        display: block;
    }
}

/* ==========================================
   4. HERO CAROUSEL
   ========================================== */
.hero {
    position: relative;
    height: 100vh; /* Takes up 100% of the screen height */
    min-height: 600px;
    width: 100%;
    overflow: hidden;
    margin-top: 80px; /* Pushes the hero down so it isn't hidden under the header */
}

.carousel, .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide {
    opacity: 0;
    transition: opacity 1.5s ease-in-out; /* Smooth cross-fade animation */
}

.slide.active {
    opacity: 1;
    z-index: 0;
}

.slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures images fill the screen without stretching */
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7));
    z-index: 1;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Perfectly centers the text */
    z-index: 2;
    text-align: center;
    color: #ffffff;
    width: 90%;
    max-width: 800px;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    margin-bottom: 16px;
    color: var(--accent-color);
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 24px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-text {
    font-size: 1.125rem;
    font-weight: 300;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* Mobile Adjustments for Hero Text */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.25rem;
    }
}

/* ==========================================
   5. PROJECT HIGHLIGHTS
   ========================================== */
.highlights-section {
    background-color: #ffffff;
    padding: 64px 0;
    border-bottom: 1px solid var(--gray-light);
}

.highlights-grid {
    display: grid;
    grid-template-columns: 1fr; /* 1 column on mobile */
    gap: 48px;
    text-align: center;
}

.highlight-icon {
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
}

.highlight-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.highlight-desc {
    color: var(--gray-text);
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Desktop Layout: 3 columns with borders */
@media (min-width: 768px) {
    .highlights-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0; 
    }

    .highlight-item {
        padding: 0 32px;
    }

    .highlight-item:not(:last-child) {
        border-right: 1px solid var(--gray-light);
    }
}

/* ==========================================
   6. ABOUT SECTION (MAGAZINE STYLE)
   ========================================== */
.about-section {
    padding: 96px 0;
    background-color: var(--bg-color);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: start;
}

.about-title {
    font-size: 2.5rem;
    margin-bottom: 24px;
    color: var(--primary-color);
}

.italic-teal {
    font-style: italic;
    color: var(--brand-teal);
}

.divider {
    width: 64px;
    height: 4px;
    background-color: var(--brand-teal);
    margin-bottom: 32px;
}

.about-quote {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.6;
    border-left: 2px solid var(--gray-light);
    padding-left: 24px;
    color: var(--gray-text);
}

.about-text-content {
    column-count: 1;
    column-gap: 32px;
    color: var(--gray-text);
    font-size: 1rem;
    line-height: 1.8;
}

.about-text-content p {
    margin-bottom: 16px;
}

.drop-cap::first-letter {
    float: left;
    font-family: var(--font-heading);
    font-size: 4rem;
    line-height: 0.8;
    padding-top: 4px;
    padding-right: 8px;
    color: var(--brand-teal);
}

/* Desktop Layout */
@media (min-width: 992px) {
    .about-grid {
        grid-template-columns: 5fr 7fr;
        gap: 80px;
    }
    .about-text-content {
        column-count: 2; /* Creates the magazine-style two columns */
    }
    .about-title {
        font-size: 3.5rem;
    }
}

/* ==========================================
   7. EXTERIOR GALLERY
   ========================================== */
.gallery-section {
    padding: 96px 0;
    background-color: #ffffff;
    border-top: 1px solid var(--gray-light);
}

.gallery-header {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
}

.gallery-title {
    font-size: 2rem;
    color: var(--primary-color);
}

.gallery-subtitle {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-text);
    margin-top: 8px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 4 / 3; /* Forces the perfect 4:3 ratio */
    overflow: hidden;
    background-color: var(--gray-light);
    border-radius: 4px;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:not(.gallery-trigger):hover .gallery-img {
    transform: scale(1.05); /* Subtle zoom on hover */
}

/* The 6th Item (Lead Trigger) Styling */
.gallery-trigger {
    cursor: pointer;
}

.gallery-img.blurred {
    filter: blur(8px);
    transform: scale(1.1); /* Prevents blurred edges from showing background */
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(45, 45, 45, 0.7); /* Charcoal overlay */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    gap: 12px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.gallery-trigger:hover .gallery-overlay {
    background-color: rgba(45, 45, 45, 0.85);
}

/* Desktop & Tablet Layouts */
@media (min-width: 768px) {
    .gallery-header {
        flex-direction: row;
        align-items: center;
    }
    .gallery-subtitle {
        margin-top: 0;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==========================================
   8. INTERIOR GALLERY (16:9)
   ========================================== */
.interior-section {
    padding: 96px 0;
    background-color: var(--bg-color); /* Soft off-white to contrast with the section above */
    border-top: 1px solid var(--gray-light);
}

.interior-grid {
    display: grid;
    grid-template-columns: 1fr; /* 1 column for mobile */
    gap: 24px;
}

.interior-item {
    aspect-ratio: 16 / 9; /* Forces the widescreen ratio */
    overflow: hidden;
    background-color: var(--gray-light);
    border-radius: 4px;
}

.interior-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease; /* Slightly slower, more luxurious zoom */
}

.interior-item:hover .interior-img {
    transform: scale(1.04);
}

/* Desktop & Tablet Layout (2x2 Grid) */
@media (min-width: 768px) {
    .interior-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

/* ==========================================
   9. LOCATION & MAPS
   ========================================== */
.location-section {
    padding: 96px 0;
    background-color: #ffffff;
    border-top: 1px solid var(--gray-light);
}

.location-header {
    text-align: center;
    margin-bottom: 48px;
}

.location-title {
    font-size: 2.25rem;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.location-subtitle {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--brand-teal);
    font-weight: 500;
}

/* Commute Times Row */
.commute-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 64px;
}

.commute-card {
    background-color: var(--bg-color);
    border: 1px solid var(--gray-light);
    border-radius: 4px;
    padding: 24px 16px;
    text-align: center;
}

.commute-time {
    display: block;
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 8px;
}

.commute-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-text);
    line-height: 1.4;
    display: block;
}

/* Side-by-Side Maps */
.maps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

.map-card {
    background-color: var(--bg-color);
    border: 1px solid var(--gray-light);
    border-radius: 4px;
    overflow: hidden;
}

.map-image-wrapper {
    aspect-ratio: 1 / 1; /* Maintains square ratio */
    width: 100%;
    overflow: hidden;
    background-color: var(--gray-light);
}

.map-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.map-card:hover .map-img {
    transform: scale(1.03);
}

.map-caption {
    padding: 24px;
}

.map-caption h3 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.map-caption p {
    font-size: 0.875rem;
    color: var(--gray-text);
    line-height: 1.6;
}

/* Desktop Breakpoints */
@media (min-width: 768px) {
    .commute-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .maps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================
   10. VIP REGISTRATION FORM
   ========================================== */
.register-section {
    position: relative;
    padding: 120px 0;
    background-color: var(--bg-color);
    overflow: hidden;
}

.register-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.register-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.12; /* Fades the floorplan heavily */
    mix-blend-mode: multiply; /* Blends the floorplan into the background color */
}

.register-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
}

.form-wrapper {
    background-color: #ffffff;
    padding: 48px;
    border-radius: 4px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    width: 100%;
    max-width: 700px;
    border-top: 4px solid var(--brand-teal);
    text-align: center;
}

.coming-soon-badge {
    display: inline-block;
    background-color: var(--accent-color);
    color: #ffffff;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 16px;
    font-weight: 500;
}

.form-title {
    font-size: 2.25rem;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.form-subtitle {
    color: var(--gray-text);
    font-size: 0.875rem;
    margin-bottom: 32px;
    line-height: 1.6;
}

.vip-form {
    text-align: left;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-group {
    margin-bottom: 16px;
}

.form-row .form-group {
    margin-bottom: 0;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--gray-light);
    border-radius: 2px;
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--primary-color);
    background-color: #fafafa;
    transition: border-color 0.3s, background-color 0.3s;
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--brand-teal);
    background-color: #ffffff;
}

.radio-group {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 12px 0;
}

.radio-label {
    font-size: 0.875rem;
    color: var(--gray-text);
}

.radio-group label {
    font-size: 0.875rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.btn-submit {
    width: 100%;
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 16px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 16px;
}

.btn-submit:hover {
    background-color: var(--brand-teal);
}

/* Desktop layout for form rows */
@media (min-width: 768px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

/* ==========================================
   11. FOOTER
   ========================================== */
.site-footer {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 80px 0 32px;
    border-top: 4px solid var(--brand-teal);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    margin-bottom: 64px;
}

.footer-logo {
    max-width: 150px;
    margin-bottom: 24px;
    background-color: #ffffff;
    padding: 16px;
    border-radius: 4px;
}

.footer-heading {
    font-size: 1.125rem;
    margin-bottom: 24px;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-text {
    color: #d1d5db;
    font-size: 0.875rem;
    line-height: 1.8;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a, .footer-link {
    color: #d1d5db;
    font-size: 0.875rem;
    transition: color 0.3s;
}

.footer-links a:hover, .footer-link:hover {
    color: var(--brand-teal);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 32px;
    text-align: center;
    font-size: 0.75rem;
    color: #9ca3af;
}

.footer-copyright {
    margin-bottom: 16px;
}

.agency-disclosure {
    color: var(--accent-color);
    font-size: 0.875rem;
    margin-bottom: 8px;
    letter-spacing: 0.05em;
}

.disclaimer {
    margin-top: 8px;
    font-size: 0.65rem;
}

/* Desktop Footer Layout */
@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
        gap: 64px;
    }
    
    .footer-bottom {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
    
    .footer-copyright {
        margin-bottom: 0;
    }

    .disclaimer {
        margin-top: 0;
        max-width: 300px;
        text-align: right;
    }
}