/* ==== CSS RESET AND VARIABLES ==== */
:root {
    /* Light, Bright, Airy Palette */
    --color-bg-main: #FCFBFA;
    /* Gentle cream white */
    --color-bg-secondary: #F4F2EE;
    /* Soft gray-cream for alternating sections */
    --color-text-main: #2A2A2A;
    /* Soft charcoal */
    --color-text-muted: #666666;
    /* Elegant gray */
    --color-accent: #8E9B90;
    /* Very soft sage/slate for a natural touch */
    --color-border: #E8E5DF;
    /* Crisp borders */

    /* Typography */
    --font-heading: 'Cormorant Garamond', serif;
    /* Elegant, artistic serif */
    --font-body: 'Montserrat', sans-serif;
    /* Clean, modern sans-serif */

    --spacing-md: 2rem;
    --spacing-lg: 5rem;
    --spacing-xl: 8rem;

    --transition-smooth: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--color-text-main);
    background-color: var(--color-bg-main);
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-smooth);
}

/* ==== TYPOGRAPHY ==== */
h1,
h2,
h3,
.logo {
    font-family: var(--font-heading);
    font-weight: 400;
    color: var(--color-text-main);
    line-height: 1.2;
}

h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

h1 span {
    font-style: italic;
    color: var(--color-text-muted);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-main);
}

p {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

/* ==== BUTTONS ==== */
.btn-primary,
.nav-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--color-text-main);
    color: var(--color-bg-main);
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 50px;
    transition: background-color var(--transition-smooth), transform var(--transition-smooth);
}

.btn-primary:hover,
.nav-btn:hover {
    background-color: var(--color-accent);
    color: #fff;
    transform: translateY(-2px);
}

/* ==== NAVIGATION ==== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    background-color: var(--color-bg-main);
    /* Solid background to prevent text bleed */
    z-index: 100;
    border-bottom: 1px solid var(--color-border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    /* Prevent stacking of logo and hamburger */
}

.logo {
    font-size: 1.7rem;
    font-weight: 600;
    letter-spacing: 1px;
    z-index: 102;
    /* Stay above mobile menu */
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
}

.nav-links a:hover:not(.nav-btn) {
    color: var(--color-accent);
}

/* ==== HERO SECTION ==== */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--spacing-xl) 5% var(--spacing-lg);
    gap: 4rem;
}

.hero-content {
    max-width: 600px;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
}

.hero-image {
    width: 100%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    transition: transform var(--transition-smooth);
}

.hero-image:hover {
    transform: scale(1.02);
}

/* ==== GALLERY SECTION ==== */
.gallery-section {
    padding: var(--spacing-xl) 5%;
    background-color: #fff;
    /* Pristine white for gallery */
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--spacing-lg);
}

.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-item {
    overflow: hidden;
    background-color: var(--color-bg-main);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: box-shadow var(--transition-smooth), transform var(--transition-smooth);
}

.gallery-item:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    mix-blend-mode: multiply;
    /* Helps the white background blend if slight off-whites exist */
}

/* ==== DETAILS & PRICING ==== */
.details-section {
    padding: var(--spacing-xl) 5%;
    background-color: var(--color-bg-secondary);
}

.details-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.pricing-card {
    background: #fff;
    padding: 3rem;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    margin-top: 2rem;
    border-top: 4px solid var(--color-accent);
}

.price {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--color-text-main);
    margin: 1rem 0;
}

.features-list {
    list-style: none;
    margin-bottom: 2rem;
}

.features-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text-muted);
}

.features-list li:last-child {
    border-bottom: none;
}

.add-on {
    background-color: var(--color-bg-main);
    padding: 1rem;
    text-align: center;
    border-radius: 4px;
    font-size: 0.9rem;
}

.add-on p {
    margin: 0;
}

.detail-shot {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
}

/* ==== CONTACT SECTION ==== */
.contact-section {
    padding: var(--spacing-xl) 5%;
    text-align: center;
    background-color: #fff;
}

.contact-card {
    max-width: 700px;
    margin: 0 auto;
    padding: 4rem 2rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
}

.contact-card h2 {
    font-style: italic;
}

.contact-card p {
    margin-bottom: 2.5rem;
}

/* ==== FOOTER ==== */
.footer {
    text-align: center;
    padding: 2rem 5%;
    background-color: var(--color-text-main);
    color: var(--color-bg-secondary);
}

.footer p {
    margin: 0;
    color: inherit;
    font-size: 0.8rem;
    opacity: 0.7;
}

/* ==== ANIMATIONS ==== */
.fade-in {
    opacity: 0;
    transition: opacity 1s ease-out;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==== MOBILE RESPONSIVE ==== */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 101;
    /* Stay above the full screen menu */
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: var(--color-text-main);
    transition: all 0.3s ease;
    border-radius: 3px;
}

@media (max-width: 900px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background-color: rgba(252, 251, 250, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: left 0.3s ease;
        gap: 3rem;
        z-index: 100;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        text-align: center;
    }

    .nav-links a {
        font-size: 1.2rem;
    }

    /* Animate Hamburger */
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Reduce typography for mobile */
    h1 {
        font-size: clamp(2.5rem, 8vw, 3.5rem);
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 120px;
        /* Adjusted padding */
        gap: 1.5rem;
        min-height: auto;
        /* Allow content to push down naturally instead of 100vh crushing it */
    }

    .hero-content {
        margin: 0 auto;
        order: 1;
        /* Keep text above image */
    }

    .hero-image-wrapper {
        order: 2;
        /* Force image below text */
        margin-top: 1rem;
    }

    .details-container {
        grid-template-columns: 1fr;
    }
}

/* ==== LIGHTBOX ==== */
#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(17, 17, 17, 0.95);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    cursor: zoom-out;
}

#lightbox.active {
    opacity: 1;
    pointer-events: all;
}

#lightbox img {
    max-width: 90%;
    max-height: 90vh;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.4s ease;
    border: 10px solid var(--color-bg-main);
    /* Uses the cream background as a frame */
}

#lightbox.active img {
    transform: scale(1);
}

.lightbox-trigger {
    cursor: zoom-in;
    transition: filter 0.3s ease;
}

.lightbox-trigger:hover {
    filter: brightness(0.85);
}