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

:root {
    --bg: #f8f6f3;
    --bg-dark: #1a1a1a;
    --text: #2c2c2c;
    --text-light: #6b6b6b;
    --accent: #c8956c;
    --accent-dark: #a87550;
    --white: #ffffff;
    --radius: 12px;
    --transition: .3s ease;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

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

/* ===== Navbar ===== */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 40px;
    background: rgba(248,246,243,.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,.06);
    transition: var(--transition);
}
.navbar.scrolled { padding: 14px 40px; box-shadow: 0 2px 20px rgba(0,0,0,.06); }

.logo { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--text); }
.logo span { color: var(--accent); }

.nav-links { display: flex; gap: 32px; }
.nav-links a {
    font-size: .9rem; font-weight: 500; letter-spacing: .02em;
    color: var(--text-light); position: relative; transition: var(--transition);
}
.nav-links a::after {
    content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
    background: var(--accent); transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); transition: var(--transition); }

/* ===== Hero ===== */
.hero {
    position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background: url('../images/1.png') center/cover no-repeat;
    text-align: center; color: var(--white);
}
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(26,26,26,.55), rgba(26,26,26,.75));
}
.hero-content { position: relative; z-index: 1; max-width: 700px; padding: 0 24px; }
.hero-tag {
    font-size: .85rem; letter-spacing: .25em; text-transform: uppercase;
    color: var(--accent); margin-bottom: 20px;
}
.hero h1 { font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.2; margin-bottom: 20px; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero-sub { font-size: 1.1rem; color: rgba(255,255,255,.8); margin-bottom: 36px; font-weight: 300; }

/* ===== Buttons ===== */
.btn {
    display: inline-block; padding: 14px 36px; border-radius: 50px;
    font-size: .9rem; font-weight: 600; letter-spacing: .03em;
    background: var(--accent); color: var(--white);
    transition: var(--transition); border: 2px solid var(--accent);
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: var(--white); }

/* ===== Sections ===== */
.section { padding: 100px 0; }
.section-title { font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 8px; }
.section-subtitle { color: var(--text-light); font-size: 1.05rem; margin-bottom: 48px; }

/* ===== Artworks Grid ===== */
.artworks-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 32px; margin-bottom: 48px; }

.card {
    background: var(--white); border-radius: var(--radius); overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,.06); transition: var(--transition);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,0,0,.1); }
.card-img { overflow: hidden; aspect-ratio: 4/5; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 24px; }
.card-body h3 { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 8px; }
.card-body p { color: var(--text-light); font-size: .95rem; }
.card-body .date { font-size: .8rem; color: var(--accent); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .08em; }

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

/* ===== About Teaser ===== */
.about-teaser { background: var(--white); }
.about-teaser-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-teaser-img { border-radius: var(--radius); overflow: hidden; }
.about-teaser-img img { width: 100%; height: 500px; object-fit: cover; }
.about-teaser-text p { color: var(--text-light); margin-bottom: 20px; font-size: 1.05rem; }

/* ===== Press Link ===== */
.press-link {
    display: inline-flex; align-items: center; gap: 10px;
    margin-top: 16px; padding: 12px 20px;
    background: var(--bg); border-radius: var(--radius);
    font-size: .88rem; font-weight: 500; color: var(--text);
    border: 1px solid rgba(0,0,0,.08);
    transition: var(--transition);
}
.press-link:hover { background: var(--accent); color: var(--white); border-color: var(--accent); }
.press-link:hover svg { stroke: var(--white); }
.press-link svg { flex-shrink: 0; color: var(--accent); }

/* ===== About Page ===== */
.page-header {
    padding: 160px 0 80px; text-align: center;
    background: var(--bg-dark); color: var(--white);
}
.page-header h1 { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); }
.page-header p { color: rgba(255,255,255,.6); margin-top: 12px; font-size: 1.05rem; }

.about-content { max-width: 800px; margin: 0 auto; }
.about-content h2 { font-family: var(--font-display); font-size: 1.6rem; margin-bottom: 12px; color: var(--accent); }
.about-content p { color: var(--text-light); font-size: 1.05rem; margin-bottom: 24px; }
.about-block { margin-bottom: 48px; }

/* ===== Gallery Page ===== */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }

/* Lightbox */
.lightbox {
    display: none; position: fixed; inset: 0; z-index: 200;
    background: rgba(0,0,0,.92); cursor: default;
}
.lightbox.active { display: flex; align-items: center; justify-content: center; }
.lightbox-inner {
    display: flex; align-items: stretch; gap: 0;
    max-width: 90vw; max-height: 88vh;
    background: var(--white); border-radius: 16px; overflow: hidden;
    box-shadow: 0 24px 80px rgba(0,0,0,.4);
}
.lightbox-img-side {
    flex: 1 1 60%; min-width: 0; background: #111;
    display: flex; align-items: center; justify-content: center;
}
.lightbox-img-side img { width: 100%; height: 100%; object-fit: contain; max-height: 88vh; }
.lightbox-info {
    flex: 0 0 320px; padding: 48px 36px; display: flex; flex-direction: column; justify-content: center;
    overflow-y: auto;
}
.lightbox-info h2 { font-family: var(--font-display); font-size: 1.6rem; margin-bottom: 12px; color: var(--text); }
.lightbox-info .lb-description { color: var(--text-light); font-size: .95rem; line-height: 1.7; margin-bottom: 24px; }
.lightbox-info .lb-materials-label {
    font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em;
    color: var(--accent); margin-bottom: 8px;
}
.lightbox-info .lb-materials { display: flex; flex-wrap: wrap; gap: 8px; }
.lightbox-info .lb-materials span {
    padding: 5px 14px; border-radius: 50px; font-size: .8rem; font-weight: 500;
    background: var(--bg); color: var(--text); border: 1px solid rgba(0,0,0,.06);
}
.lightbox-close {
    position: absolute; top: 20px; right: 24px;
    background: rgba(255,255,255,.1); border: none; color: var(--white);
    font-size: 1.6rem; cursor: pointer; width: 44px; height: 44px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition); backdrop-filter: blur(8px);
}
.lightbox-close:hover { background: rgba(255,255,255,.25); }

/* ===== Contact Page ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-info h3 { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 16px; }
.contact-info p { color: var(--text-light); margin-bottom: 24px; }
.contact-info .social-links { display: flex; gap: 16px; }
.contact-info .social-links a {
    width: 44px; height: 44px; border-radius: 50%; background: var(--bg);
    display: flex; align-items: center; justify-content: center;
    color: var(--text); transition: var(--transition);
}
.contact-info .social-links a:hover { background: var(--accent); color: var(--white); }

.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: .85rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--text-light); }
.form-group input, .form-group textarea {
    padding: 14px 18px; border: 1px solid #e0dcd7; border-radius: var(--radius);
    font-family: var(--font-body); font-size: 1rem; background: var(--white);
    transition: var(--transition); outline: none;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(200,149,108,.15); }
.form-group textarea { resize: vertical; min-height: 140px; }
.form-success { display: none; padding: 16px; background: #e8f5e9; color: #2e7d32; border-radius: var(--radius); text-align: center; }

/* ===== Footer ===== */
.footer { background: var(--bg-dark); color: rgba(255,255,255,.6); padding: 60px 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.footer .logo { color: var(--white); }
.footer-socials { display: flex; gap: 20px; }
.footer-socials a { color: rgba(255,255,255,.5); transition: var(--transition); }
.footer-socials a:hover { color: var(--accent); transform: translateY(-2px); }
.footer-copy { font-size: .85rem; }

/* ===== Animations ===== */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .navbar { padding: 16px 20px; }
    .nav-toggle { display: flex; }
    .nav-links {
        position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
        flex-direction: column; background: var(--white); padding: 80px 40px;
        box-shadow: -4px 0 30px rgba(0,0,0,.1); transition: right .4s ease;
    }
    .nav-links.open { right: 0; }

    .about-teaser-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .artworks-grid, .gallery-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2rem; }
    .lightbox-inner { flex-direction: column; max-width: 95vw; max-height: 95vh; }
    .lightbox-img-side { flex: 0 0 auto; max-height: 50vh; }
    .lightbox-info { flex: 0 0 auto; padding: 24px 20px; }
}
