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

:root {
    --color-bg: #ffffff;
    --color-bg-alt: #f8f8f8;
    --color-text: #000000;
    --color-text-light: #555;
    --color-text-muted: #888;
    --color-accent: #000000;
    --color-border: #e5e5e5;
    --color-shadow: rgba(0, 0, 0, 0.08);
    --font-main: 'DM Sans', -apple-system, sans-serif;
    --max-width: 1400px;
    --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-fast: 0.2s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-weight: 400;
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.7;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 4rem;
    background: rgba(252, 252, 250, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.nav-brand {
    font-family: var(--font-main);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text);
    text-decoration: none;
    letter-spacing: -0.01em;
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--color-text-light);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-text);
    transition: width var(--transition);
}

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

.nav-links a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 1px;
    background: var(--color-text);
    transition: var(--transition);
}

/* Hero */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-border), transparent);
}

.hero-content h1 {
    font-family: var(--font-main);
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.hero-subtitle {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.35em;
}

/* Sections */
.section {
    padding: 8rem 2rem;
}

.section-alt {
    background: var(--color-bg-alt);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-main);
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
    margin-bottom: 4rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-light);
}

/* Gallery */
.gallery {
    columns: 3;
    column-gap: 3rem;
}

.gallery-ceramics {
    max-width: 700px;
    margin: 0 auto;
    columns: 2;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 3rem;
    cursor: pointer;
    transition: transform var(--transition);
}

.gallery-item:hover {
    transform: translateY(-4px);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 4px 20px var(--color-shadow);
    transition: box-shadow var(--transition), transform var(--transition);
}

.gallery-item:hover img {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.gallery-note {
    text-align: center;
    color: var(--color-text-muted);
    font-style: italic;
    margin-top: 3rem;
    font-size: 0.9rem;
}

.gallery-caption {
    padding: 1.25rem 0.5rem;
    text-align: center;
}

.gallery-caption h3 {
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.35rem;
    letter-spacing: 0;
}

.gallery-caption p {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
    margin-bottom: 0.2rem;
}

.gallery-caption .price {
    color: var(--color-text);
    font-weight: 500;
    margin-top: 0.5rem;
}

/* About */
.about-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.about-lead {
    font-family: var(--font-main);
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: var(--color-text);
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--color-text-light);
    font-size: 1rem;
    line-height: 1.9;
}

/* Contact */
.contact-content {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.contact-content p {
    color: var(--color-text-light);
    margin-bottom: 2rem;
    font-size: 1rem;
}

.contact-email {
    display: inline-block;
    font-family: var(--font-main);
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--color-text);
    text-decoration: none;
    position: relative;
    transition: color var(--transition-fast);
}

.contact-email::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--color-border);
    transition: background var(--transition-fast);
}

.contact-email:hover {
    color: var(--color-text-light);
}

.contact-email:hover::after {
    background: var(--color-text-light);
}

.social-links {
    margin-top: 2rem;
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.social-links a {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    transition: color var(--transition-fast);
}

.social-links a:hover {
    color: var(--color-text);
}

/* Newsletter */
.newsletter {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--color-border);
}

.newsletter-title {
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.newsletter-text {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 280px;
    margin: 0 auto;
}

.form-input {
    font-family: var(--font-main);
    font-size: 0.9rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    transition: border-color var(--transition-fast);
}

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

.form-input::placeholder {
    color: var(--color-text-muted);
}

.form-button {
    font-family: var(--font-main);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 1rem 1.5rem;
    background: var(--color-text);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.form-button:hover {
    background: var(--color-text-light);
}

.form-message {
    font-size: 0.85rem;
    margin-top: 1rem;
}

.form-message.success {
    color: #2e7d32;
}

.form-message.error {
    color: #c62828;
}

/* Footer */
.footer {
    padding: 3rem 2rem;
    text-align: center;
    font-size: 0.7rem;
    color: var(--color-text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.footer-instagram {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    color: var(--color-text-muted);
    background: var(--color-bg);
    padding: 0.75rem;
    border-radius: 50%;
    box-shadow: 0 2px 10px var(--color-shadow);
    transition: color var(--transition-fast), transform var(--transition-fast);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.footer-instagram:hover {
    color: var(--color-text);
    transform: scale(1.1);
}

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

.gallery-item {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.15s; }
.gallery-item:nth-child(3) { animation-delay: 0.2s; }
.gallery-item:nth-child(4) { animation-delay: 0.25s; }
.gallery-item:nth-child(5) { animation-delay: 0.3s; }
.gallery-item:nth-child(6) { animation-delay: 0.35s; }
.gallery-item:nth-child(n+7) { animation-delay: 0.4s; }

/* Mobile */
@media (max-width: 1024px) {
    .gallery {
        columns: 2;
        column-gap: 1.5rem;
    }
    
    .gallery-item {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 768px) {
    .nav {
        padding: 1rem 1.5rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(252, 252, 250, 0.98);
        padding: 2rem;
        gap: 1.5rem;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        height: 60vh;
        min-height: 400px;
    }

    .section {
        padding: 5rem 1.5rem;
    }

    .section-title {
        margin-bottom: 3rem;
        font-size: 1.5rem;
    }

    .gallery {
        columns: 1;
    }
    
    .gallery-ceramics {
        columns: 1;
        max-width: 400px;
    }

    .about-lead {
        font-size: 1.3rem;
    }

    .contact-email {
        font-size: 1.4rem;
    }
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(255, 255, 255, 0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
    padding: 2rem;
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-content {
    display: flex;
    max-width: 1200px;
    max-height: 90vh;
    width: 100%;
    gap: 3rem;
    align-items: center;
}

.lightbox-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.lightbox-image img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.lightbox-info {
    flex: 0 0 280px;
    padding: 2rem 0;
}

.lightbox-title {
    font-family: var(--font-main);
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.lightbox-details p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.lightbox-details .price {
    color: var(--color-text);
    font-weight: 500;
    font-size: 1.1rem;
    margin-top: 1rem;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2rem;
    color: var(--color-text-muted);
    cursor: pointer;
    background: none;
    border: none;
    font-family: var(--font-main);
    transition: color var(--transition-fast);
    line-height: 1;
    padding: 0.5rem;
}

.lightbox-close:hover {
    color: var(--color-text);
}

@media (max-width: 768px) {
    .lightbox {
        padding: 1rem;
    }
    
    .lightbox-content {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .lightbox-image img {
        max-height: 50vh;
    }
    
    .lightbox-info {
        flex: none;
        width: 100%;
        text-align: center;
        padding: 0;
    }
    
    .lightbox-title {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
}

/* Contact Form */
.contact-form-wrapper {
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--color-border);
}

.form-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
    font-family: var(--font-body);
}

/* Honeypot field - hidden from humans */
.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    z-index: -1;
}
