:root {
    --bg: #f5f7fb;
    --surface: #ffffff;
    --text: #1d2939;
    --muted: #52606d;
    --accent: #2e7dff;
    --border: #d8e2ef;
    --shadow: 0 18px 60px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--bg) url("../images/fonsweb.jpg") center/cover no-repeat fixed;
}

a {
    color: inherit;
    text-decoration: none;
}

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

.container {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
}

.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 20;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
}

.brand {
    font-weight: 700;
    letter-spacing: -0.03em;
}

.brand img.brand-logo {
    height: 40px;
    display: block;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.menu-toggle {
    display: none;
    border: none;
    background: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.dropdown {
    position: relative;
}

.dropdown-toggle {
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1rem;
    padding: 0.25rem 0.5rem;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 0.5rem 0;
    margin-top: 0.75rem;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    color: var(--text);
}

.dropdown-menu a:hover {
    background: #eef4ff;
}

.site-main {
    padding: 1rem 0 3rem;
}

.hero {
    padding: 3rem 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    align-items: center;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent);
}

.hero h1 {
    font-size: clamp(2.5rem, 4vw, 4rem);
    margin: 0 0 1rem;
}

.hero p {
    max-width: 40rem;
    line-height: 1.8;
    color: var(--muted);
}

.section-header h2 {
    margin: 0 0 0.5rem;
    font-size: 2rem;
}

.section-header p {
    margin: 0;
    color: var(--muted);
}

.grid {
    display: grid;
    gap: 1.5rem;
}

.categories-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.category-card,
.gallery-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-card:hover,
.gallery-card:hover {
    transform: translateY(-4px);
    border-color: rgba(46, 125, 255, 0.25);
}

.category-card img,
.gallery-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.category-info,
.gallery-meta {
    padding: 1rem;
}

.category-info h3,
.gallery-meta h3 {
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
}

.category-info p,
.gallery-meta p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: #eef4ff;
    color: var(--accent);
    font-size: 0.9rem;
    margin-right: 0.5rem;
}

.gallery-detail .gallery-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.gallery-detail .gallery-intro img {
    border-radius: 24px;
    height: auto;
}

.gallery-detail .gallery-intro h2 {
    margin-top: 1rem;
    font-size: 2.5rem;
    line-height: 1.1;
}

.gallery-detail .gallery-intro p {
    color: var(--muted);
    line-height: 1.8;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.photo-grid figure {
    margin: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
}

.photo-grid figcaption {
    padding: 0.9rem 1rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.photo-viewer {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(15, 23, 42, 0.92);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 120;
}

.photo-viewer.open {
    opacity: 1;
    visibility: visible;
}

.viewer-content {
    width: 100%;
    max-width: 1200px;
    text-align: center;
    position: relative;
}

.viewer-content img {
    width: 100%;
    height: auto;
    max-height: calc(100vh - 220px);
    object-fit: contain;
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.viewer-caption {
    margin-top: 1.25rem;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 20px;
    padding: 1rem 1.25rem;
    text-align: left;
}

.viewer-title {
    margin: 0 0 0.85rem;
    color: var(--text);
    font-size: 1rem;
    font-weight: 700;
}

.viewer-exif {
    display: grid;
    gap: 0.35rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.viewer-close,
.viewer-nav {
    position: absolute;
    border: none;
    background: rgba(255, 255, 255, 0.92);
    color: var(--text);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.35rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.viewer-close {
    top: 1rem;
    right: 1rem;
}

.viewer-nav.left {
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.viewer-nav.right {
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.viewer-close:hover,
.viewer-nav:hover {
    background: white;
}

.empty-state {
    color: var(--muted);
    padding: 1rem 0;
}

.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 1rem 0 2rem;
}

.site-footer p {
    margin: 0;
    color: var(--muted);
    text-align: center;
}

@media (max-width: 960px) {
    .hero-content,
    .gallery-detail .gallery-intro {
        grid-template-columns: 1fr;
    }

    .categories-grid,
    .gallery-grid,
    .photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .header-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .site-nav {
        display: none;
        flex-direction: column;
        gap: 0.5rem;
    }

    .site-nav.open {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .dropdown-menu {
        position: static;
        border: none;
        box-shadow: none;
        background: transparent;
        padding: 0;
        margin: 0;
    }

    .dropdown-menu a {
        padding-left: 1rem;
    }

    .categories-grid,
    .gallery-grid,
    .photo-grid {
        grid-template-columns: 1fr;
    }
}
