/* =========================================================
   HELEN-C  —  Minimal Nordic
   ========================================================= */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 300;
    color: #2c2c2c;
    background-color: #fafaf8;
    line-height: 1.7;
    overflow-x: hidden;
}

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

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

/* --- Typography --- */
.section-heading {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-weight: 300;
    font-size: 1.1rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 3rem;
}

/* =========================================================
   LANGUAGE SWITCHER
   ========================================================= */
.lang-switch {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.lang-switch a {
    color: #999;
    transition: color 0.3s ease;
}

.lang-switch a:hover {
    color: #1a1a1a;
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    padding: 6rem 2rem 4rem;
    text-align: center;
    position: relative;
}

.site-title {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-weight: 300;
    font-size: clamp(2.4rem, 5vw, 4rem);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #1a1a1a;
    margin-bottom: 1.2rem;
}

.site-tagline {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-weight: 300;
    font-style: italic;
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: #999;
    letter-spacing: 0.08em;
    margin-bottom: 3rem;
}

.site-nav {
    display: flex;
    gap: 2.5rem;
}

.site-nav a {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #888;
    transition: color 0.3s ease;
    position: relative;
}

.site-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #1a1a1a;
    transition: width 0.3s ease;
}

.site-nav a:hover {
    color: #1a1a1a;
}

.site-nav a:hover::after {
    width: 100%;
}

/* =========================================================
   WORKS / GALLERY
   ========================================================= */
.works-section {
    padding: 6rem 2rem 8rem;
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem 3rem;
    margin-top: 2rem;
}

.artwork {
    text-align: center;
}

.artwork-image-wrap {
    overflow: hidden;
    position: relative;
    background-color: #f0efec;
    line-height: 0;
}

.artwork-image-wrap img {
    width: 100%;
    height: auto;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 0.4s ease;
    cursor: pointer;
}

.artwork-image-wrap:hover img {
    transform: scale(1.03);
    opacity: 0.92;
}

.artwork-title {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-weight: 400;
    font-size: 0.9rem;
    color: #777;
    margin-top: 1.2rem;
    letter-spacing: 0.04em;
    line-height: 1.5;
}

/* =========================================================
   ABOUT
   ========================================================= */
.about-section {
    padding: 8rem 2rem;
    background-color: #f5f4f1;
}

.about-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 5rem;
    align-items: start;
}

.about-photo {
    position: sticky;
    top: 3rem;
}

.about-photo img {
    width: 100%;
    max-width: 380px;
    filter: grayscale(10%);
    transition: filter 0.5s ease;
}

.about-photo img:hover {
    filter: grayscale(0%);
}

.about-text .section-heading {
    margin-bottom: 2.5rem;
}

.about-text p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 1.8rem;
    max-width: 560px;
    line-height: 1.85;
}

.about-text p:last-child {
    margin-bottom: 0;
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact-section {
    padding: 8rem 2rem;
    text-align: center;
}

.contact-inner {
    max-width: 600px;
    margin: 0 auto;
}

.contact-text {
    font-size: 0.95rem;
    color: #777;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.contact-form {
    max-width: 460px;
    margin: 0 auto 2.5rem;
    text-align: left;
}

.form-group {
    margin-bottom: 1.4rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 300;
    font-size: 0.9rem;
    color: #2c2c2c;
    background: transparent;
    border: none;
    border-bottom: 1px solid #ddd;
    padding: 0.8rem 0;
    outline: none;
    transition: border-color 0.3s ease;
    letter-spacing: 0.02em;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    border-bottom-color: #1a1a1a;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.7;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #bbb;
    font-weight: 300;
    letter-spacing: 0.06em;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.form-submit {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #888;
    background: none;
    border: 1px solid #ddd;
    padding: 0.9rem 3rem;
    cursor: pointer;
    transition: color 0.3s ease, border-color 0.3s ease;
    margin-top: 0.5rem;
}

.form-submit:hover {
    color: #1a1a1a;
    border-color: #1a1a1a;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: #999;
    font-size: 1.15rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    color: #1a1a1a;
    transform: translateY(-2px);
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
    padding: 3rem 2rem;
    text-align: center;
    border-top: 1px solid #e8e7e4;
}

.site-footer p {
    font-size: 0.75rem;
    color: #bbb;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* =========================================================
   LIGHTBOX
   ========================================================= */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background-color: rgba(250, 250, 248, 0.97);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

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

.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img {
    max-width: 90vw;
    max-height: 78vh;
    object-fit: contain;
    opacity: 0;
    transform: scale(0.97);
    transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s;
}

.lightbox.active .lightbox-content img {
    opacity: 1;
    transform: scale(1);
}

.lightbox-caption {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-size: 0.95rem;
    color: #888;
    margin-top: 1.5rem;
    letter-spacing: 0.04em;
    text-align: center;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
    z-index: 10;
}

.lightbox-close:hover {
    color: #1a1a1a;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 2.5rem;
    color: #bbb;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 1rem;
    z-index: 10;
}

.lightbox-prev {
    left: 1.5rem;
}

.lightbox-next {
    right: 1.5rem;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    color: #1a1a1a;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* Tablet */
@media (max-width: 960px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem 2rem;
    }

    .about-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .about-photo {
        position: static;
        display: flex;
        justify-content: center;
    }

    .about-photo img {
        max-width: 280px;
    }

    .about-text p {
        max-width: 100%;
    }
}

/* Mobile */
@media (max-width: 640px) {
    .site-header {
        min-height: 55vh;
        padding: 4rem 1.5rem 3rem;
    }

    .site-title {
        letter-spacing: 0.1em;
    }

    .site-nav {
        gap: 1.5rem;
    }

    .site-nav a {
        font-size: 0.72rem;
    }

    .works-section {
        padding: 4rem 1.2rem 5rem;
    }

    .section-heading {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }

    .gallery {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .artwork-title {
        font-size: 0.82rem;
    }

    .about-section {
        padding: 5rem 1.5rem;
    }

    .about-photo img {
        max-width: 220px;
    }

    .contact-section {
        padding: 5rem 1.5rem;
    }

    .contact-email {
        font-size: 1.1rem;
    }

    .lightbox-prev {
        left: 0.5rem;
    }

    .lightbox-next {
        right: 0.5rem;
    }

    .lightbox-close {
        top: 1rem;
        right: 1.2rem;
    }
}

/* Small mobile */
@media (max-width: 400px) {
    .site-header {
        min-height: 50vh;
        padding: 3rem 1rem 2rem;
    }

    .site-nav {
        flex-direction: column;
        gap: 0.8rem;
    }
}

/* =========================================================
   UTILITIES
   ========================================================= */

/* Fade-in on scroll */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #999;
    outline-offset: 4px;
}

/* Selection */
::selection {
    background-color: #e8e7e4;
    color: #1a1a1a;
}

/* Scrollbar (Webkit) */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #fafaf8;
}

::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #bbb;
}
