/* CSS Variables */
:root {
    --bg-cream: #FAF9F6;
    --text-charcoal: #222222;
    --text-light: #555555;
    --accent-gold: #B89768;
    --accent-dark: #8C734F;
    --white: #FFFFFF;
    
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-cream);
    color: var(--text-charcoal);
    line-height: 1.6;
}

h1, h2, h3, h4, .logo {
    font-family: var(--font-serif);
    font-weight: 400;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.divider {
    width: 60px;
    height: 2px;
    background-color: var(--accent-gold);
    margin: 0 auto 1.5rem auto;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(250, 249, 246, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.burger-menu {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-charcoal);
    cursor: pointer;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--accent-gold);
}

/* Hero Section */
.hero {
    height: 100vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('images/hero.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 0 1rem;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
    animation: fadeInDown 1s ease;
}

.hero .subtitle {
    font-size: 1.2rem;
    font-family: var(--font-sans);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.5s both;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--accent-gold);
    color: var(--white);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 2px;
    transition: background-color 0.3s ease;
    animation: fadeInUp 1s ease 1s both;
}

.btn-primary:hover {
    background-color: var(--accent-dark);
}

.btn-outline {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border: 1px solid var(--text-charcoal);
    color: var(--text-charcoal);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

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

/* Biography */
.bio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.bio-image img {
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.bio-text p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-size: 1.1rem;
}

.bio-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.bio-text .divider {
    margin-left: 0;
}

/* Gallery */
.gallery-tabs {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.tab-btn {
    background: none;
    border: none;
    padding: 0.5rem 1rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--text-light);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: var(--text-charcoal);
}

.tab-btn.active {
    color: var(--text-charcoal);
    border-bottom: 2px solid var(--accent-gold);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    aspect-ratio: 4 / 3;
    background-color: #eee;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.gallery-item:hover::after {
    opacity: 1;
}

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

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    animation: fadeIn 0.3s ease;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover {
    color: var(--accent-gold);
}

/* Mailing List Section */
.mailing-list {
    background-color: var(--bg-cream);
    padding: 6rem 0;
}

.mailing-list-box {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 4rem;
    border-radius: 4px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
}

.mailing-list-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
}

.form-group input {
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 2px;
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-gold);
}

.mailing-list-form .btn-primary {
    align-self: center;
    margin-top: 1rem;
    cursor: pointer;
    border: none;
    width: 200px;
    animation: none; /* Remove hero animation */
}

/* Contact Section */
.contact {
    background-color: #fff;
}

.contact-intro {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
    margin-bottom: 4rem;
}

.contact-card {
    display: block;
    padding: 2rem;
    background-color: var(--bg-cream);
    border-radius: 4px;
    transition: transform 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-card i {
    font-size: 2.5rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

.contact-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.contact-card p {
    color: var(--text-light);
}

.contact-card a:hover {
    color: var(--accent-gold);
}

.external-galleries {
    text-align: center;
}

.external-galleries h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.gallery-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Footer */
footer {
    background-color: var(--text-charcoal);
    color: var(--white);
    text-align: center;
    padding: 3rem 0;
}

.admin-link-container {
    margin-top: 1rem;
}

.admin-link {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.3);
}

.admin-link:hover {
    color: rgba(255,255,255,0.8);
}

/* Animations */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
    .bio-grid {
        grid-template-columns: 1fr;
    }

    .bio-text {
        text-align: center;
    }

    .bio-text .divider {
        margin: 0 auto 1.5rem auto;
    }
    
    .bio-image {
        display: flex;
        justify-content: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }

    .mailing-list-box {
        padding: 2rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .hero {
        background-attachment: scroll; /* Fix for iOS fixed background zoom issue */
        background-position: center center;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .burger-menu {
        display: block;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(250, 249, 246, 0.98);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        gap: 1.5rem;
        box-shadow: 0 10px 15px rgba(0,0,0,0.05);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.3s ease-in-out;
    }
    
    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
}
