:root {
    --primary-color: #c45733;
    --primary-hover: #a3472b;
    --text-main: #1f1f1f;
    --text-light: #545454;
    --bg-white: #ffffff;
    --bg-light: #f7f3ef;
    --surface: #ffffff;
    --font-main: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --transition-speed: 0.3s;
    --gap-size: 20px;
}

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

body {
    font-family: var(--font-main);
    color: var(--text-main);
    background-color: var(--bg-white);
    line-height: 1.65;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: color var(--transition-speed); }
ul { list-style: none; }
img { width: 100%; height: auto; display: block; object-fit: cover; }

/* Header and navigation */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.logo {
    font-size: 1.25rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-item { position: relative; }
.nav-link { font-weight: 500; font-size: 0.95rem; }
.nav-link:hover { color: var(--primary-color); }
.nav-link.active { color: var(--primary-color); font-weight: 700; }
.nav-item > span.nav-link { cursor: default; }

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-white);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-speed);
    border-radius: 4px;
    padding: 10px 0;
}
.dropdown.nested {
    left: 100%;
    top: 0;
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown li a {
    display: block;
    padding: 8px 15px;
    font-size: 0.9rem;
}
.dropdown li a:hover { background: var(--bg-light); color: var(--primary-color); }

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

.burger span {
    width: 25px;
    height: 3px;
    background: var(--text-main);
    transition: var(--transition-speed);
}

/* Hero */
.hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    padding: 0 5%;
    background: linear-gradient(120deg, rgba(0,0,0,0.35), rgba(0,0,0,0.18)), var(--hero-bg, url('../pages/pictures/painting-1.jpg'));
    background-size: cover;
    background-position: center;
    color: white;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.12);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.hero h1 {
    font-size: clamp(2.4rem, 4vw + 1rem, 4rem);
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 4px;
    font-weight: 600;
    transition: background var(--transition-speed), transform 0.2s;
    border: none;
    cursor: pointer;
}
.btn:hover { background-color: var(--primary-hover); transform: translateY(-2px); }

.section-padding { padding: 80px 5%; }
.section-title {
    font-size: 2rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.section-lead { margin-bottom: 40px; color: var(--text-light); max-width: 760px; font-size: 1.05rem; }
.section-subtitle { color: var(--text-light); margin-bottom: 20px; }

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

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    aspect-ratio: 4 / 5;
}

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 50%);
    opacity: 0;
    transition: opacity var(--transition-speed);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    color: white;
}

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

.art-title { font-size: 1.2rem; font-weight: 700; transform: translateY(20px); transition: transform 0.4s; }
.art-desc { font-size: 0.9rem; margin-top: 5px; opacity: 0.8; transform: translateY(20px); transition: transform 0.4s 0.1s; }

.gallery-item:hover .art-title,
.gallery-item:hover .art-desc { transform: translateY(0); }

/* Info grid */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.about-text, .contact-text { color: var(--text-light); margin-bottom: 20px; }
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.feature-card {
    background: var(--surface);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.05);
}

.feature-card h3 { margin-bottom: 8px; }
.feature-card p { color: var(--text-light); font-size: 0.98rem; }
.badge {
    display: inline-block;
    padding: 6px 10px;
    background: rgba(196, 87, 51, 0.1);
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 0.8rem;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Post page layout */
.post-container {
    max-width: 800px;
    margin: 60px auto;
    padding: 0 20px;
}

.post-header { margin-bottom: 40px; text-align: center; }
.post-title { font-size: 2.5rem; font-weight: 700; line-height: 1.2; margin-bottom: 15px; }
.post-meta { color: var(--text-light); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }

.post-content p { margin-bottom: 25px; font-size: 1.1rem; color: #333; }
.post-content h2 { font-size: 1.8rem; margin: 40px 0 20px; }

.post-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin: 40px 0;
}

.post-gallery-item {
    border-radius: 8px;
    overflow: hidden;
    cursor: zoom-in;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    aspect-ratio: 1 / 1;
}

.post-gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.page-hero {
    padding: 80px 5% 50px;
    background: linear-gradient(135deg, rgba(196,87,51,0.1), rgba(255,255,255,0.4));
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.page-hero h1 {
    font-size: clamp(2.2rem, 3vw + 1rem, 3rem);
    margin-bottom: 12px;
}

.page-hero p {
    color: var(--text-light);
    max-width: 760px;
}

.cta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.cta-card {
    padding: 18px;
    background: var(--surface);
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}

.cta-card strong { display: block; margin-bottom: 6px; }
.cta-card .muted { color: var(--text-light); font-size: 0.95rem; }

/* Lightbox (shared) */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
    padding: 20px;
}

.lightbox.active { opacity: 1; visibility: visible; }

.lightbox-content,
.lightbox-content-wrapper {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
}

.lightbox-img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    transition: opacity 0.2s ease-in-out;
    opacity: 1;
}

.lightbox-img.fading { opacity: 0.5; }

.close-lightbox,
.lb-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

.lightbox-caption {
    color: white;
    text-align: center;
    margin-top: 10px;
    font-size: 1.1rem;
}

.lightbox-content-wrapper .lightbox-caption {
    position: absolute;
    bottom: -40px;
    left: 0;
    width: 100%;
    margin-top: 0;
}

.lb-ctrl {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.7);
    font-size: 40px;
    padding: 20px;
    cursor: pointer;
    transition: color 0.2s;
    user-select: none;
    z-index: 10;
}

.lb-ctrl:hover { color: white; }
.lb-prev { left: -80px; }
.lb-next { right: -80px; }

/* Responsive */
@media (max-width: 980px) {
    .hero h1 { font-size: 3rem; }
}

@media (max-width: 820px) {
    .section-padding { padding: 60px 5%; }
}

@media (max-width: 768px) {
    .burger { display: flex; }

    .nav-menu {
        position: absolute;
        top: 100%;
        right: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        display: none;
    }

    .nav-menu.active {
        transform: translateX(0);
        display: flex;
    }

    .dropdown {
        position: static;
        box-shadow: none;
        background: var(--bg-light);
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding-left: 20px;
    }

    .nav-item:hover .dropdown { display: block; }

    .hero { height: auto; min-height: 420px; padding: 60px 5% 80px; }
    .hero h1 { font-size: 2.5rem; }
    .info-grid { grid-template-columns: 1fr; gap: 40px; }

    .post-title { font-size: 2rem; }
    .post-gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px;
    }

    .lb-prev { left: -20px; font-size: 30px; }
    .lb-next { right: -20px; font-size: 30px; }
    .lightbox-img { max-height: 70vh; }
}

@media (max-width: 560px) {
    .hero h1 { font-size: 2.1rem; }
}
