/* =========================================
   VARIABLES & GLOBALS
========================================= */
:root {
    --primary: #007AFF;   
    --dark: #2A2825;      
    --light: #F9F6F0;     
    --gray: #EAE3D2;      
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

html, body { 
    overscroll-behavior-y: none;
}

body { 
    font-family: 'Inter', sans-serif; 
    line-height: 1.6; 
    color: var(--dark); 
    background-color: var(--light); 
    scroll-behavior: smooth; 
    overflow-x: hidden;
}

/* =========================================
   NAVIGATION (Optimized for Rendering Speed)
========================================= */
nav { 
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    background: transparent; 
    box-shadow: none; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 24px 10%; 
    z-index: 1000; 
    transition: background-color 0.25s ease, padding 0.25s ease, box-shadow 0.25s ease;
    
    /* PERFORMANCE FIX: Pushes nav animations to the GPU, keeping main thread clear */
    will-change: padding, background-color;
    transform: translateZ(0); 
}

nav.nav-scrolled {
    /* PERFORMANCE FIX: Swapped blur filter out for a clean solid tone to eliminate Paint lag */
    background-color: rgba(35, 33, 30, 0.98); 
    padding: 15px 10%; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

nav ul { 
    display: flex; 
    list-style: none; 
}

nav ul li { 
    margin-left: 20px; 
}

nav a { 
    text-decoration: none; 
    color: white; 
    font-weight: 500; 
    transition: 0.3s;
}

nav a:hover {
    color: var(--primary); 
}

.active { 
    color: var(--primary) !important; 
    font-weight: 700; 
}

.logo-wrapper a {
    display: flex;
    align-items: center;
    gap: 12px; 
    text-decoration: none;
}

.nav-icon {
    height: 30px; 
    width: auto;
}

.logo-text {
    font-weight: 700;
    font-size: 1.5rem;
    color: white; 
}

.logo-text span {
    color: var(--primary);
}

.menu-toggle {
    display: none; 
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: white; 
    transition: 0.3s;
}

/* =========================================
   HERO SECTION
========================================= */
.hero { 
    height: 100vh; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: flex-start; 
    text-align: left; 
    color: white; 
    padding: 0 10%; 
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('images/hero-bg.jpg'); 
    background-size: cover;
    background-position: center;
}

.hero-content {
    background: transparent;
    padding: 0;
    backdrop-filter: none;
    max-width: 700px;
}

.hero h1 {
    font-size: 3.8rem; 
    font-weight: 300; 
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero h1 strong {
    font-weight: 700; 
}

.block-span {
    display: block;
}

.hero p {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* =========================================
   BUTTONS
========================================= */
.btn-main { 
    background: var(--primary); 
    color: white; 
    padding: 15px 30px; 
    border-radius: 5px; 
    text-decoration: none; 
    display: inline-block; 
    margin-top: 40px;      
    border: none; 
    cursor: pointer; 
    font-size: 1rem; 
    transition: 0.3s; 
}

.btn-main:hover {
    background: #005bb5;
}

.btn-outline { 
    padding: 12px 25px; 
    border: 2px solid var(--dark); 
    color: var(--dark); 
    text-decoration: none; 
    font-weight: 600; 
    transition: 0.3s; 
    border-radius: 5px; 
    display: inline-block; 
}

.btn-outline:hover { 
    background: var(--dark); 
    color: white; 
}

.btn-solid {
    background: var(--primary);
    color: white;
    padding: 15px 35px;
    border-radius: 50px; 
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    border: 2px solid var(--primary);
}

.btn-solid:hover {
    background: white;
    color: var(--primary);
    border-color: white;
}

.btn-transparent {
    background: transparent;
    color: white;
    padding: 15px 35px;
    border: 2px solid white;
    border-radius: 50px; 
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.btn-transparent:hover {
    background: white;
    color: #333; 
}

/* =========================================
   GENERAL SECTIONS
========================================= */
.section { 
    padding: 80px 10%; 
    text-align: center; 
}

.gray-bg { 
    background: var(--gray); 
}

h2 { 
    font-size: 2.5rem; 
    margin-bottom: 40px; 
}

.highlight { 
    color: var(--primary); 
}

/* =========================================
   PHOTOGRAPHER BIO SECTION
========================================= */
.photographer-container {
    background-color: rgba(255, 255, 255);
    padding: 60px 10%; 
    display: flex;
    justify-content: center; 
}

.photographer-wrapper {
    max-width: 850px; 
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center; 
    gap: 3rem; 
    text-align: left; 
}

.photographer-image {
    flex: 1;
    display: flex;
    justify-content: center; 
}

.photographer-image img {
    width: 70%;
    max-width: 320px; 
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover; 
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.photographer-bio {
    flex: 1.2;
}

.photographer-bio h2 {
    text-align: left; 
    margin-bottom: 1.5rem;
}

.photographer-bio p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 1.2rem;
}

.photographer-bio p:last-child {
    margin-bottom: 0;
}

/* =========================================
   GALLERY (Optimized for Browser Layout Paints)
========================================= */
.gallery-mini, .gallery-full {
    display: grid;
    gap: 15px;
    margin-bottom: 40px;
    
    /* PERFORMANCE FIX: Prevents the browser from building offscreen elements on initial load */
    content-visibility: auto;
    contain-intrinsic-size: 0 400px;
}

.gallery-mini {
    grid-template-columns: repeat(3, 1fr); 
}

.gallery-full {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.img-card {
    aspect-ratio: 1 / 1; 
    overflow: hidden;
    cursor: pointer;
    border-radius: 8px;
    will-change: transform; /* Boosts card hover layout speeds */
}

.img-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.img-card:hover img { 
    transform: scale(1.05); 
}

/* =========================================
   PRICING
========================================= */
.pricing-container { 
    display: flex; 
    justify-content: center; 
    gap: 30px; 
    flex-wrap: wrap; 
}

.price-card { 
    background: white; 
    padding: 40px; 
    border-radius: 12px; 
    width: 300px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); 
    position: relative; 
}

.price-card.featured { 
    border: 2px solid var(--primary); 
    transform: scale(1.05); 
}

.badge { 
    position: absolute; 
    top: -15px; 
    left: 50%; 
    transform: translateX(-50%); 
    background: var(--primary); 
    color: white; 
    padding: 5px 15px; 
    border-radius: 20px; 
    font-size: 0.8rem; 
}

.price { 
    font-size: 3rem; 
    font-weight: 700; 
    margin: 20px 0 5px 0; 
}

.regular-price {
    color: #777; 
    font-size: 1.1rem; 
    margin-bottom: 20px; 
    font-weight: 500;
}

.regular-price-spacer {
    visibility: hidden;
    font-size: 1.1rem; 
    margin-bottom: 20px; 
}

.strikethrough {
    text-decoration: line-through;
}

.price-card ul { 
    list-style: none; 
    margin-bottom: 20px; 
    text-align: left; 
}

/* =========================================
   CONTACT FORM
========================================= */
#contact-wrapper {
    width: 100%;
}

#contact-form { 
    max-width: 500px; 
    margin: 0 auto; 
    display: flex; 
    flex-direction: column; 
    gap: 15px; 
}

input, select, textarea { 
    padding: 12px; 
    border: 1px solid #ccc; 
    border-radius: 5px; 
    font-family: inherit; 
    font-size: 1rem;
    width: 100%;
}

/* =========================================
   LIGHTBOX & FOOTER
========================================= */
.lightbox {
    display: none; 
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 4px;
}

.close { 
    position: absolute; 
    top: 20px; 
    right: 40px; 
    color: white; 
    font-size: 40px; 
    cursor: pointer; 
}

footer {
    padding: 30px;
    text-align: center;
    background-color: var(--dark);
    color: var(--light);
}

/* =========================================
   RESPONSIVE (Mobile Styles Only)
========================================= */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex; 
        z-index: 1001;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%; 
        width: 70%;
        height: 100vh;
        max-height: 100vh; 
        background: white;
        padding: 60px 40px;
        overflow-y: auto;   
        transition: 0.4s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        right: 0; 
    }

    .nav-links li {
        margin: 20px 0;
    }

    .nav-links a {
        color: var(--dark); 
    }

    .menu-toggle.active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); background-color: var(--dark); }
    .menu-toggle.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); background-color: var(--dark); }

    .hero {
        padding: 0 5%;
    }

    .hero h1 { 
        font-size: 2.5rem; 
    }

    .gallery-mini { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 10px;
    }

    .photographer-wrapper {
        flex-direction: column;
        gap: 2rem;
    }

    .photographer-image {
        width: 100%;
    }

    .photographer-image img {
        width: 65%; 
        max-width: 260px;
        aspect-ratio: 4 / 5; 
    }

    .photographer-bio h2 {
        text-align: left;
        margin-bottom: 1rem;
    }
    
    .photographer-bio p {
        text-align: left;
    }
}

#contact h2 { margin-bottom: 10px; }
#contact p { max-width: 600px; margin: 0 auto 40px auto; text-align: center; color: #555; }
.contact-email { color: var(--primary); font-weight: 600; text-decoration: none; }
.contact-email:hover { text-decoration: underline; }
