/* ===== Font ===== */
@font-face {
    font-family: 'Panchi Mono';
    src: url('assets/fonts/Panchi Mono.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

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

body {
    font-family: 'Panchi Mono', monospace;
    background-color: #fafafa;
    color: #333;
    line-height: 1.6;
}

/* ===== Header Wrapper (both bars) ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

/* --- Top Bar: navigation tabs --- */
.top-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 48px;
    height: 48px;
    background-color: #fff;
    border-bottom: 1px solid #111;
}

.top-bar-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 36px;
}

.top-bar-links a {
    text-decoration: none;
    color: #888;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.2s;
}

.top-bar-links a:hover,
.top-bar-links a.active {
    color: #111;
}

/* Pill-shaped CONTACT button */
.top-bar-links a.contact-pill {
    background-color: transparent;
    color: #111;
    padding: 6px 22px;
    border: 1.5px solid #111;
    border-radius: 50px;
    transition: background-color 0.2s, color 0.2s;
}

.top-bar-links a.contact-pill:hover {
    background-color: #111;
    color: #fff;
}

/* --- Brand Bar: logos on the left --- */
.brand-bar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 20px 48px;
    background-color: #fff;
    border-bottom: 1px solid #111;
    gap: 16px;
}

.brand-logo {
    height: 80px;
    width: auto;
    display: block;
}

.brand-wordmark {
    height: 80px;
    width: auto;
    display: block;
}

/* Mobile menu toggle (hidden on desktop) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #111;
    font-size: 1.4rem;
    cursor: pointer;
}

/* ===== Main Content Spacer ===== */
.main-content {
    padding-top: 148px;
}

/* ===== Hero / Page Intro ===== */
.hero {
    padding: 60px 48px 48px;
    text-align: center;
}

.hero h2 {
    font-size: 1.6rem;
    font-weight: 400;
    letter-spacing: 1px;
    margin-bottom: 8px;
    color: #333;
}

.hero p {
    font-size: 1rem;
    color: #999;
}

/* ===== Gallery Masonry ===== */
.gallery {
    columns: 5;
    column-gap: 20px;
    padding: 0 48px 80px;
    max-width: 1800px;
    margin: 0 auto;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 20px;
    overflow: hidden;
    transition: transform 0.25s;
}

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

.gallery-item img {
    width: 100%;
    display: block;
}

.gallery-item h3 {
    padding: 10px 0 2px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
}

.gallery-item p {
    padding: 0 0 8px;
    font-size: 0.8rem;
    color: #999;
}

/* ===== About / Info ===== */
.about-section {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 48px 80px;
    font-size: 1rem;
    color: #555;
    line-height: 1.8;
}

.about-section img {
    display: block;
    max-width: 400px;
    margin-top: 24px;
    border-radius: 4px;
}

/* ===== Blog List ===== */
.blog-list {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 48px 80px;
}

.blog-post {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 32px;
    margin-bottom: 20px;
}

.blog-post h2 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 4px;
}

.blog-date {
    font-size: 0.8rem;
    color: #aaa;
    margin-bottom: 12px;
}

/* ===== Contact Form ===== */
.contact-section {
    max-width: 560px;
    margin: 0 auto;
    padding: 0 48px 80px;
}

.contact-form label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 6px;
    margin-top: 24px;
}

.contact-form label:first-child {
    margin-top: 0;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #999;
}

.submit-btn {
    display: inline-block;
    margin-top: 28px;
    padding: 12px 36px;
    background-color: #111;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.2s;
}

.submit-btn:hover {
    background-color: #333;
}

/* ===== Footer ===== */
footer {
    text-align: center;
    padding: 48px 48px 32px;
    border-top: 1px solid #e8e8e8;
    color: #bbb;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.footer-watermark {
    display: block;
    margin: 0 auto 20px;
    height: 60px;
    width: auto;
    opacity: 0.4;
}

/* ===== Lightbox Overlay ===== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 200;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    cursor: default;
    animation: lightbox-fade-in 0.2s ease;
}

@keyframes lightbox-fade-in {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.gallery-item img {
    cursor: pointer;
}

/* ===== Mobile Responsive ===== */
@media (max-width: 768px) {
    .top-bar {
        padding: 0 20px;
        justify-content: space-between;
    }

    .top-bar-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 48px;
        left: 0;
        right: 0;
        background-color: #fff;
        border-bottom: 1px solid #e8e8e8;
        padding: 20px;
        gap: 16px;
        align-items: flex-start;
    }

    .top-bar-links.open {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .brand-bar {
        padding: 16px 20px;
    }

    .brand-logo {
        height: 56px;
    }

    .brand-wordmark {
        height: 56px;
    }

    .main-content {
        padding-top: 120px;
    }

    .hero {
        padding: 40px 20px 32px;
    }

    .hero h2 {
        font-size: 1.3rem;
    }

    .gallery {
        padding: 0 20px 60px;
        columns: 2;
    }

    .blog-list {
        padding: 0 20px 60px;
    }

    .contact-section {
        padding: 0 20px 60px;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .gallery {
        columns: 3;
    }
}
