/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: "helvetica-neue-lt-pro", sans-serif;
    background-color: #000;
    color: #fff;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 5px 40px;
    background: #000;
    z-index: 1000;
}

.logo {
    font-size: 18px;
    font-weight: 400;
}

.logo a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.logo a:hover {
    color: #8C3048;
}

nav a {
    color: #fff;
    text-decoration: none;
    margin-left: 30px;
    font-weight: 400;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: color 0.2s ease;
}

nav a:hover {
    color: #8C3048;
}

/* Main content */
main {
    flex: 1;
    padding-top: 100px; /* To account for fixed header */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
}

.index-main {
    justify-content: center;
    padding-top: 0;
}

.hero {
    max-width: 880px;
    text-align: justify;
}

.hero p {
    font-size: 17px;
    font-weight: 400;
    font-style: normal;
}


.content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    text-align: center;
}

.content h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
}

.content p {
    font-size: 16px;
    font-weight: 300;
    margin-bottom: 20px;
}

/* Studio page */
.studio-main {
    padding-top: 58px;
}

.studio-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 40px;
    padding: 5px 40px 40px;
    width: 100%;
}

.studio-column {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.studio-column p {
    font-size: 14px;
    font-weight: 400;
    text-align: justify;
    color: #fff;
    line-height: 1.6;
}

.studio-image {
    grid-column: 3;
    grid-row: 1 / 3;
}

.studio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background-color: #111;
}

.studio-column-bottom {
    display: flex;
    flex-direction: column;
    align-self: end;
}

.studio-column-bottom h3 {
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
    color: #fff;
}

.studio-column-bottom ul {
    list-style: none;
    padding: 0;
}

.studio-column-bottom li {
    font-size: 14px;
    font-weight: 400;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.4;
}

/* Works page */
.works-main {
    padding-top: 58px;
}

.works-container {
    width: 100%;
    padding: 5px 40px 40px;
}

.works-filters {
    display: flex;
    gap: 24px;
    margin-bottom: 40px;
}

.filter-link {
    font-size: 14px;
    font-weight: 400;
    color: #fff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.filter-link:hover {
    color: #8C3048;
}

.works-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    max-width: 75%;
}

.work-card {
    cursor: pointer;
}

.work-image-link {
    display: block;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.work-card.hidden {
    display: none;
}

.work-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #000;
    margin-bottom: 10px;
}

.work-name {
    display: block;
    font-size: 14px;
    font-weight: 400;
    color: #fff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.work-card:hover .work-name {
    color: #8C3048;
}

.work-image--swap {
    position: relative;
    overflow: hidden;
}

.work-img--default {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.work-img--hover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.7s ease;
}

.work-card:hover .work-img--hover {
    opacity: 1;
}

/* Footer */
footer {
    padding: 22px 40px 5px;
    background-color: #000;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.footer-left {
    font-size: 13px;
    font-weight: 400;
}

.footer-center {
    font-size: 13px;
    font-weight: 400;
    text-align: center;
}

.footer-center a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-center a:hover {
    color: #8C3048;
}

.footer-right {
    display: flex;
    gap: 30px;
    justify-content: flex-end;
}

.footer-right a {
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    transition: color 0.2s ease;
}

.footer-right a:hover {
    color: #8C3048;
}

/* Natura project page */
.natura-main {
    padding-top: 58px;
}

.natura-container {
    width: 100%;
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    padding: 20px 40px 40px;
}

.natura-text {
    font-size: 14px;
    font-weight: 400;
    color: #fff;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.natura-body-text {
    color: #fff;
    text-align: justify;
}

.natura-cover {
    cursor: pointer;
    overflow: hidden;
}

.natura-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.2s ease;
}

.natura-cover:hover img {
    opacity: 0.8;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
}

.lightbox.active {
    pointer-events: auto;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 75vh;
    object-fit: contain;
    display: block;
    will-change: transform, opacity;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 28px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.lightbox-close:hover {
    color: #8C3048;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.lightbox-nav:hover {
    color: #8C3048;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* ============================================================
   MOBILE-ONLY ELEMENTS — hidden on desktop
   ============================================================ */

.mobile-menu-btn,
.mobile-overlay,
.mobile-dropdown,
.mobile-preview-overlay {
    display: none;
}

.contacts-only-mobile {
    display: none;
}

.contacts-email-link {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: color 0.2s ease;
}

.contacts-email-link:hover {
    color: #8C3048;
}

/* ============================================================
   MOBILE RESPONSIVE — max-width: 768px
   ============================================================ */

@media (max-width: 768px) {

    /* --- Header --- */
    header {
        flex-direction: row;
        justify-content: space-between;
        align-items: baseline;
        gap: 0;
        padding: 16px 20px;
    }

    .logo {
        width: auto;
        text-align: left;
        margin: 0;
        padding: 0;
    }

    nav {
        display: none;
    }

    nav a {
        margin-left: 0;
    }

    .mobile-menu-btn {
        display: block;
        background: none;
        border: none;
        color: #fff;
        font-size: 14px;
        font-family: inherit;
        font-weight: 400;
        line-height: 1;
        cursor: pointer;
        padding: 0;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    /* --- Dropdown menu --- */
    .mobile-dropdown {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #000;
        flex-direction: column;
        padding: 0 20px 16px;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease-out;
    }

    .mobile-dropdown.open {
        opacity: 1;
        pointer-events: auto;
    }

    .mobile-dropdown a {
        color: #fff;
        text-decoration: none;
        font-size: 14px;
        font-weight: 400;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        padding: 8px 0;
        transition: color 0.2s ease;
    }

    .mobile-dropdown a:active {
        color: #8C3048;
    }

    /* --- Footer --- */
    footer {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 16px 20px;
        text-align: left;
    }

    .footer-left p {
        white-space: nowrap;
        margin-bottom: 8px;
    }

    .footer-center {
        display: block;
    }

    .footer-center a {
        display: block;
        margin-bottom: 8px;
    }

    .footer-right {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .footer-right a {
        display: block;
        margin-bottom: 8px;
    }

    /* --- Main padding (fixed header clearance) --- */
    main {
        padding-top: 75px;
    }

    /* --- Index page --- */
    .index-main {
        padding: 0 20px;
        justify-content: center;
    }

    .hero {
        max-width: 100%;
    }

    /* --- Body text: 14px, justified, hyphenated — all pages --- */
    .body-text,
    .hero p,
    .studio-column p,
    .news-body,
    .natura-body-text {
        font-size: 14px !important;
        text-align: justify !important;
        hyphens: auto !important;
        line-height: 1.6;
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }

    /* --- Works page --- */
    .works-main {
        justify-content: center;
    }

    .works-list {
        padding: 0 20px;
    }

    .works-row {
        column-gap: 10px;
    }

    .works-row span {
        font-size: 14px;
    }

    .works-preview {
        display: none;
    }

    /* Mobile image preview overlay (work.html) */
    .mobile-preview-overlay {
        position: fixed;
        inset: 0;
        background: #000;
        z-index: 2500;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

    .mobile-preview-overlay.active {
        display: flex;
    }

    .mobile-preview-overlay img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        display: block;
    }

    /* --- Studio / Contacts page --- */
    .studio-main {
        padding-top: 75px;
    }

    .studio-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        padding: 20px;
        gap: 30px;
    }

    .studio-image {
        grid-column: 1;
        grid-row: auto;
    }

    .studio-column-bottom {
        align-self: auto;
    }

    /* --- Natura / Bug project pages --- */
    .natura-main {
        padding-top: 75px;
    }

    .natura-container {
        grid-template-columns: 1fr;
        padding: 20px 0;
        gap: 20px;
    }

    .natura-text {
        padding: 0 20px;
    }

    .natura-images {
        grid-template-columns: 1fr;
        gap: 8px !important;
        padding: 0 20px;
    }

    .natura-images img {
        margin: 0 !important;
        padding: 0 !important;
        display: block;
    }

    .natura-img--horizontal {
        grid-column: 1;
    }

    /* --- Contacts mobile email view --- */
    .contacts-only-mobile {
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 1;
        padding: 0 20px;
    }

    .contacts-hide-mobile {
        display: none;
    }

    /* --- No color change on tap or hover --- */
    a:hover,
    a:active,
    a:focus,
    .mobile-menu-btn:active,
    .mobile-menu-btn:hover {
        color: #ffffff !important;
    }
}