/* CSS Variables for Luxury Theme */
:root {
    --color-bg-dark: #0A0F16;
    /* Deep navy almost black */
    --color-bg-light: #151C26;
    --color-gold: #D4AF37;
    /* Champagne Gold */
    --color-gold-hover: #F3E5AB;
    --color-text-light: #F8F9FA;
    --color-text-muted: #A0AAB5;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--color-gold);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 0;
}

/* Typography Utilities */
.text-center {
    text-align: center;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    background-color: var(--color-gold);
    color: var(--color-bg-dark);
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.9rem;
    border: 1px solid var(--color-gold);
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--color-gold);
}

.btn-outline {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background-color: transparent;
    color: var(--color-gold);
    border: 1px solid var(--color-gold);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-outline:hover {
    background-color: var(--color-gold);
    color: var(--color-bg-dark);
}

.btn-submit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.2rem;
    background-color: var(--color-gold);
    color: var(--color-bg-dark);
    border: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 1.5rem;
}

.btn-submit:hover {
    background-color: var(--color-gold-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
}

.divider {
    height: 1px;
    width: 60px;
    background-color: var(--color-gold);
    margin: 1.5rem 0;
}

.divider.center {
    margin: 1.5rem auto;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background-color: rgba(10, 15, 22, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 5%;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-text-light);
    letter-spacing: 2px;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background-image: url('img/Harbor Bay_Pool View.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 5%;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 15, 22, 0.6) 0%, rgba(10, 15, 22, 0.9) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--color-gold);
    border: 1px solid var(--color-gold);
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--color-text-light);
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Storytelling Section */
.storytelling {
    background-color: var(--color-bg-dark);
    padding: 6rem 0;
    position: relative;
}

.storytelling-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.story-text h2 {
    font-size: clamp(2rem, 3vw, 3rem);
}

.story-text p {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.features-list {
    list-style: none;
    margin-top: 2rem;
}

.features-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    font-size: 1.05rem;
    color: var(--color-text-light);
}

.features-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background-color: var(--color-gold);
    border-radius: 50%;
}

.story-image {
    position: relative;
}

.story-image img {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 2;
}

.image-accent {
    position: absolute;
    top: 2rem;
    right: -2rem;
    width: 100%;
    height: 100%;
    border: 2px solid var(--color-gold);
    z-index: 1;
}

/* Gallery Section */
.gallery {
    background-color: var(--color-bg-light);
    padding: 6rem 0;
}

.masonry-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 250px;
    gap: 1.5rem;
    margin-top: 4rem;
}

.masonry-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.masonry-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.masonry-item:hover img {
    transform: scale(1.05);
}

.item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem 1.5rem;
    background: linear-gradient(to top, rgba(10, 15, 22, 0.9) 0%, rgba(10, 15, 22, 0) 100%);
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

.masonry-item:hover .item-overlay {
    opacity: 1;
    transform: translateY(0);
}

.item-overlay span {
    color: var(--color-text-light);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.item-large {
    grid-column: span 2;
    grid-row: span 2;
}

.item-wide {
    grid-column: span 2;
}

/* Lead Generation Section */
.lead-generation {
    padding: 8rem 0;
    background-image: url('img/HB_Exterior.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.lead-generation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 15, 22, 0.95) 0%, rgba(10, 15, 22, 0.8) 100%);
}

.lead-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.lead-info h2 {
    font-size: clamp(2rem, 3vw, 2.5rem);
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

.lead-info p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.contact-info p {
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.contact-info a {
    color: var(--color-gold);
}

.contact-info a:hover {
    color: var(--color-gold-hover);
}

/* Glassmorphism Form */
.glass-form {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.glass-form h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.form-group input {
    width: 100%;
    padding: 1rem;
    background: rgba(10, 15, 22, 0.5);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--color-text-light);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--color-gold);
    background: rgba(10, 15, 22, 0.8);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.privacy-note {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    margin-top: 1rem;
}

/* Footer */
.footer {
    background-color: #05080b;
    /* Even darker than bg-dark for contrast */
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-gold);
}

.footer-details p,
.footer-contact p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.footer-details strong {
    color: var(--color-text-light);
}

/* Animations (Scroll Revealed) */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-in-bottom {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.delay-1 {
    transition-delay: 0.2s;
}

.is-visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* Mobile First Adjustments (Responsive) */

@media (max-width: 992px) {

    .storytelling-grid,
    .lead-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .image-accent {
        display: none;
        /* Hide decorative border on mobile/tablet to save space */
    }

    .masonry-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .item-large {
        grid-column: span 2;
        grid-row: span 1;
    }

    .item-wide {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem 5%;
    }

    .hero,
    .lead-generation {
        background-attachment: scroll;
        /* Disable parallax on mobile for performance */
    }

    .masonry-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 250px;
    }

    .item-large,
    .item-wide {
        grid-column: span 1;
    }

    .glass-form {
        padding: 2rem 1.5rem;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}