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

:root {
    --bg-light: #ffffff;
    --bg-off-white: #f8f8f6;
    --bg-accent: #f0f0ee;
    --text-primary: #2a2a2a;
    --text-secondary: #666666;
    --accent: #6b5b95;
    --accent-light: #8b7bb5;
    --border: #e0e0de;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background-color: var(--bg-light);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* Header */
header {
    text-align: center;
    padding: 4rem 2rem 2rem;
    background: linear-gradient(180deg, var(--bg-off-white) 0%, var(--bg-light) 100%);
}

/* Navigation */
nav {
    margin-bottom: 2rem;
}

.nav-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 0;
}

.nav-menu li {
    display: inline;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
    letter-spacing: 0.15rem;
    text-transform: uppercase;
    padding: 0.5rem 1rem;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.nav-menu a:hover {
    color: var(--accent-light);
    border-bottom-color: var(--accent-light);
}

.nav-menu a.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

header h1 {
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 0.3rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    font-style: italic;
    letter-spacing: 0.1rem;
}

/* Main Content */
main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

section {
    margin: 4rem 0;
}

/* Intro */
.intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-style: italic;
    max-width: 800px;
    margin: 4rem auto;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    width: 100%;
    height: 0;
    padding-bottom: 75%; /* 4:3 aspect ratio */
    background: var(--bg-off-white);
    border: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(107, 91, 149, 0.15);
}

.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-off-white) 0%, var(--bg-accent) 100%);
    color: var(--text-secondary);
    font-size: 1.2rem;
    font-style: italic;
}

.gallery-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: opacity 0.3s ease;
}

.gallery-item img:hover {
    opacity: 0.95;
}

/* About & Contact */
.about, .contact {
    max-width: 800px;
    margin: 4rem auto;
    text-align: center;
}

.about h2, .contact h2 {
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 0.2rem;
    margin-bottom: 1.5rem;
    color: var(--accent-light);
    text-transform: uppercase;
}

.about p, .contact p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Paint & Sip Page */
.paint-sip-hero {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, var(--bg-off-white) 0%, var(--bg-accent) 100%);
    border-radius: 8px;
    margin: 2rem 0 4rem;
}

.paint-sip-hero h2 {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 0.3rem;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.paint-sip-hero .tagline {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-style: italic;
    letter-spacing: 0.1rem;
}

.paint-sip-content {
    max-width: 800px;
    margin: 0 auto;
}

.content-box {
    background: var(--bg-off-white);
    padding: 3rem;
    border-radius: 8px;
    margin-bottom: 3rem;
    border: 1px solid var(--border);
}

.content-box h3 {
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 0.15rem;
    color: var(--accent-light);
    margin-bottom: 1.5rem;
}

.content-box p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.2rem;
}

.content-box p:last-child {
    margin-bottom: 0;
}

.cta-section {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
    border-radius: 8px;
    color: var(--bg-light);
}

.cta-section h3 {
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 0.15rem;
    margin-bottom: 1.5rem;
    color: var(--bg-light);
}

.cta-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--bg-off-white);
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--bg-light);
    color: var(--accent);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 2px solid var(--bg-light);
}

.cta-button:hover {
    background: transparent;
    color: var(--bg-light);
    border-color: var(--bg-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid var(--border);
    margin-top: 4rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        gap: 1rem;
        flex-wrap: wrap;
    }

    .nav-menu a {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }

    header h1 {
        font-size: 2rem;
        letter-spacing: 0.2rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .intro, .about, .contact {
        padding: 0 1rem;
    }

    .paint-sip-hero h2 {
        font-size: 2rem;
        letter-spacing: 0.2rem;
    }

    .content-box {
        padding: 2rem 1.5rem;
    }

    .cta-section {
        padding: 2rem 1.5rem;
    }

    .cta-button {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection styling */
::selection {
    background: var(--accent-light);
    color: var(--bg-light);
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    animation: fadeIn 0.3s ease;
}

.modal-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    animation: zoomIn 0.3s ease;
}

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

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Add cursor pointer to gallery images */
.gallery-item img {
    cursor: pointer;
}

/* Mobile optimizations for modal */
@media (max-width: 768px) {
    .modal-content {
        max-width: 95%;
        max-height: 85vh;
    }
}
