/*
============================================================
GEORGE-WILLIAM SMITH PHOTOGRAPHY
GLOBAL STYLESHEET
Version: v0.4 — Phase 4

CONTENTS
1. Global Design Tokens
2. Reset / Base
3. Typography
4. Header / Wordmark
5. Navigation / Language
6. Hero
7. Shared Sections
8. Intro
9. Featured Work
10. Services Preview
11. About Preview
12. Stories Preview
13. Contact CTA
14. Footer
15. Lightbox
16. Responsive Foundation
============================================================
*/

/* =========================================================
   1. GLOBAL DESIGN TOKENS
   ========================================================= */
:root {
    --color-background: #0B0B0B;
    --color-surface: #101010;
    --color-surface-2: #151515;
    --color-text: #F3F0EA;
    --color-muted: #AAA49C;
    --color-accent: #C7A77A;
    --color-line: #292929;

    --font-heading: "Cormorant Garamond", Georgia, serif;
    --font-body: "DM Sans", Arial, sans-serif;

    --page-padding: 4vw;
    --content-width: 1440px;

    --transition-fast: 180ms ease;
    --transition-standard: 350ms ease;
}

/* =========================================================
   2. RESET / BASE
   ========================================================= */
* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    background: var(--color-background);
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--color-background);
    color: var(--color-text);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
}

body.no-scroll {
    overflow: hidden;
}

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

button, input, textarea, select {
    font: inherit;
}

button {
    color: inherit;
}

/* =========================================================
   3. TYPOGRAPHY
   ========================================================= */
h1, h2, h3, h4 {
    margin: 0;
    font-family: var(--font-heading);
    font-weight: 500;
}

p { margin: 0; }

.eyebrow {
    margin: 0 0 1.25rem;
    color: var(--color-muted);
    font-size: 0.68rem;
    letter-spacing: 0.22em;
    line-height: 1.4;
    text-transform: uppercase;
}

/* =========================================================
   4. HEADER / WORDMARK
   ========================================================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;

    width: 100%;
    padding: 1.4rem var(--page-padding);

    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.7),
        rgba(0, 0, 0, 0)
    );

    backdrop-filter: blur(8px);
}

.wordmark {
    display: inline-flex;
    flex-direction: column;
    gap: 0.2rem;
    flex-shrink: 0;
}

.wordmark-name {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.wordmark-type {
    color: var(--color-muted);
    font-size: 0.55rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

/* =========================================================
   5. NAVIGATION / LANGUAGE
   ========================================================= */
.site-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(1rem, 2.2vw, 2rem);
}

.site-nav a,
.language-button {
    color: var(--color-muted);
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition: color var(--transition-fast);
}

.site-nav a:hover {
    color: var(--color-text);
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

.language-button {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;

    padding: 0.25rem 0.15rem;

    border: 0;
    background: transparent;

    cursor: pointer;
}

.language-button:hover,
.language-button:focus-visible,
.language-button.active {
    color: var(--color-text);
}

.language-button:focus-visible {
    outline: 1px solid var(--color-accent);
    outline-offset: 4px;
}

.language-button:not(.active) {
    opacity: 0.55;
}

.language-divider {
    color: var(--color-line);
}

/* =========================================================
   6. HEADER ACTIONS / MOBILE MENU
   ========================================================= */

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* =========================================================
   7. HERO
   ========================================================= */

.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.hero-media {
    position: absolute;
    inset: 0;

    background-image: url("../images/hero/1000043000.webp");
    background-size: cover;
    background-position: center 55%;
}

.hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to right,
            rgba(0, 0, 0, 0.62),
            rgba(0, 0, 0, 0.06) 72%
        ),
        linear-gradient(
            to top,
            rgba(0, 0, 0, 0.62),
            rgba(0, 0, 0, 0) 55%
        );
}

.hero-content {
    position: relative;
    z-index: 2;

    max-width: 900px;
    padding: 0 var(--page-padding) 8rem;
}

.hero-title {
    max-width: 950px;
    font-size: clamp(5.5rem, 12vw, 12rem);
    line-height: 0.8;
    letter-spacing: -0.045em;
}

.hero-location {
    margin-top: 2.5rem;
    color: #dfdad2;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-scroll {
    position: absolute;
    right: var(--page-padding);
    bottom: 2.2rem;
    z-index: 2;

    color: #c9c4bb;
    font-size: 0.62rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;

    writing-mode: vertical-rl;
}

/* =========================================================
   7. SHARED SECTIONS
   ========================================================= */
.section-shell {
    width: 100%;
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 10rem var(--page-padding);
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 3rem;
    margin-bottom: 4rem;
}

.section-heading h2 {
    max-width: 760px;
    font-size: clamp(3.4rem, 6vw, 6rem);
    line-height: 0.94;
    letter-spacing: -0.035em;
}

.text-link {
    display: inline-block;
    border-bottom: 1px solid rgba(243, 240, 234, 0.55);
    padding-bottom: 0.35rem;

    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;

    transition:
        border-color var(--transition-fast),
        color var(--transition-fast);
}

.text-link:hover {
    color: var(--color-accent);
    border-color: var(--color-accent);
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 3.2rem;
    padding: 0 1.4rem;

    border: 1px solid rgba(243, 240, 234, 0.5);

    font-size: 0.67rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;

    transition:
        background var(--transition-standard),
        color var(--transition-standard),
        border-color var(--transition-standard);
}

.cta-button:hover {
    background: var(--color-text);
    border-color: var(--color-text);
    color: var(--color-background);
}

/* =========================================================
   8. INTRO
   ========================================================= */
.intro {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 5rem;
    align-items: start;
}

.intro-copy {
    max-width: 900px;
}

.intro-copy h2 {
    font-size: clamp(3.2rem, 5.5vw, 6rem);
    line-height: 0.95;
    letter-spacing: -0.035em;
}

.intro-copy p {
    max-width: 660px;
    margin-top: 2rem;
    color: var(--color-muted);
    font-size: 1rem;
    line-height: 1.8;
}

.intro-copy .text-link {
    margin-top: 2rem;
}

/* =========================================================
   9. FEATURED WORK
   ========================================================= */
.featured-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 1rem;
}

.feature {
    position: relative;
}

.feature-large {
    grid-row: span 2;
}

.image-trigger {
    width: 100%;
    padding: 0;

    border: 0;
    background: transparent;

    cursor: pointer;
    overflow: hidden;
    display: block;
}

.image-trigger img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;

    transition:
        transform 900ms cubic-bezier(.2,.7,.2,1),
        filter 450ms ease;
}

.feature-large .image-trigger {
    aspect-ratio: 4 / 5;
}

.feature-small .image-trigger {
    aspect-ratio: 4 / 3;
}

.image-trigger:hover img {
    transform: scale(1.035);
    filter: brightness(0.86);
}

.feature-caption {
    display: flex;
    justify-content: space-between;
    gap: 1rem;

    margin-top: 0.9rem;
}

.feature-title {
    font-family: var(--font-heading);
    font-size: 1.7rem;
}

.feature-meta {
    align-self: flex-end;
    color: var(--color-muted);
    font-size: 0.6rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

/* =========================================================
   10. SERVICES PREVIEW
   ========================================================= */
.services-preview {
    border-top: 1px solid var(--color-line);
}

.service-preview-grid {
    border-top: 1px solid var(--color-line);
}

.service-preview-item {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 1.2rem 0;

    border-bottom: 1px solid var(--color-line);

    font-family: var(--font-heading);
    font-size: clamp(2rem, 3.6vw, 4rem);
}

.service-preview-item > span:last-child {
    color: var(--color-muted);
    font-family: var(--font-body);
    font-size: 0.6rem;
    letter-spacing: 0.14em;
}

/* =========================================================
   11. ABOUT PREVIEW
   ========================================================= */
.about-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    border-top: 1px solid var(--color-line);
}

.about-preview-media {
    aspect-ratio: 4 / 5;
}

.about-placeholder {
    display: grid;
    place-items: center;

    width: 100%;
    height: 100%;

    background:
        radial-gradient(
            circle at 35% 30%,
            rgba(199, 167, 122, 0.14),
            transparent 35%
        ),
        var(--color-surface);

    border: 1px solid var(--color-line);

    color: var(--color-muted);
    font-size: 0.6rem;
    letter-spacing: 0.16em;
    text-align: center;
}

.about-preview-copy h2 {
    font-size: clamp(3.2rem, 5.5vw, 5.8rem);
    line-height: 0.93;
    letter-spacing: -0.035em;
}

.about-preview-copy p {
    max-width: 580px;
    margin-top: 2rem;

    color: var(--color-muted);
    font-size: 1rem;
    line-height: 1.8;
}

.about-preview-copy .text-link {
    margin-top: 2rem;
}

/* =========================================================
   12. STORIES PREVIEW
   ========================================================= */
.stories-preview {
    min-height: 70svh;

    display: flex;
    align-items: flex-end;

    border-top: 1px solid var(--color-line);

    background:
        linear-gradient(
            to top,
            rgba(11, 11, 11, 0.88),
            rgba(11, 11, 11, 0.1)
        ),
        radial-gradient(
            circle at 78% 30%,
            rgba(199, 167, 122, 0.12),
            transparent 35%
        );
}

.stories-preview-copy {
    max-width: 760px;
}

.stories-preview h2 {
    font-size: clamp(4rem, 7vw, 7rem);
    line-height: 0.88;
}

.stories-preview p {
    max-width: 600px;
    margin-top: 2rem;

    color: var(--color-muted);
    font-size: 1rem;
    line-height: 1.8;
}

.stories-preview .text-link {
    margin-top: 2rem;
}

/* =========================================================
   13. CONTACT CTA
   ========================================================= */
.contact-cta {
    border-top: 1px solid var(--color-line);
    padding-top: 12rem;
    padding-bottom: 12rem;
}

.contact-cta h2 {
    max-width: 1000px;
    font-size: clamp(4rem, 8vw, 9rem);
    line-height: 0.88;
    letter-spacing: -0.04em;
}

.contact-cta > p:not(.eyebrow) {
    max-width: 580px;
    margin-top: 2rem;
    color: var(--color-muted);
    line-height: 1.8;
}

.contact-cta .cta-button {
    margin-top: 2rem;
}

/* =========================================================
   14. FOOTER
   ========================================================= */
.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 2rem;

    padding: 1.5rem var(--page-padding);

    border-top: 1px solid var(--color-line);

    color: var(--color-muted);
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

/* =========================================================
   15. LIGHTBOX
   ========================================================= */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 4vw;

    background: rgba(0, 0, 0, 0.96);
}

.lightbox.open {
    display: flex;
}

.lightbox img {
    max-width: 92vw;
    max-height: 88vh;
    object-fit: contain;
}

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

    border: 0;
    background: transparent;

    color: var(--color-text);
    cursor: pointer;

    font-size: 2.5rem;
}

/* =========================================================
   16. PORTFOLIO PAGE
   ========================================================= */

.site-header-solid {
    position: sticky;
    background: rgba(11, 11, 11, 0.96);
    border-bottom: 1px solid var(--color-line);
}

.portfolio-main {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 10rem var(--page-padding) 8rem;
}

.portfolio-heading {
    max-width: 900px;
    padding: 4rem 0 5rem;
}

.portfolio-heading h1 {
    font-size: clamp(5rem, 10vw, 10rem);
    line-height: 0.82;
    letter-spacing: -0.045em;
}

.portfolio-heading > p:last-child {
    max-width: 620px;
    margin-top: 2rem;
    color: var(--color-muted);
    font-size: 1rem;
    line-height: 1.8;
}

.portfolio-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;

    margin-bottom: 2rem;
    padding-bottom: 1.2rem;

    border-bottom: 1px solid var(--color-line);
}

.portfolio-filter {
    padding: 0.55rem 0.8rem;

    border: 1px solid var(--color-line);
    background: transparent;

    color: var(--color-muted);

    cursor: pointer;

    font-size: 0.62rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;

    transition:
        color var(--transition-fast),
        background var(--transition-fast),
        border-color var(--transition-fast);
}

.portfolio-filter:hover,
.portfolio-filter:focus-visible,
.portfolio-filter.active {
    background: var(--color-text);
    border-color: var(--color-text);
    color: var(--color-background);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3.5rem 1.2rem;
}

.portfolio-card {
    min-width: 0;
}

.portfolio-image-button {
    display: block;

    width: 100%;
    padding: 0;

    border: 0;
    background: transparent;

    cursor: pointer;

    overflow: hidden;
}

.portfolio-image-button img {
    display: block;

    width: 100%;
    aspect-ratio: 4 / 3;

    object-fit: cover;

    transition:
        transform 800ms cubic-bezier(.2,.7,.2,1),
        filter 400ms ease;
}

.portfolio-card:nth-child(3n + 1) .portfolio-image-button img {
    aspect-ratio: 4 / 5;
}

.portfolio-image-button:hover img {
    transform: scale(1.035);
    filter: brightness(0.84);
}

.portfolio-card-caption {
    display: flex;
    justify-content: space-between;
    gap: 1rem;

    margin-top: 0.85rem;
}

.portfolio-card-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
}

.portfolio-card-category {
    align-self: flex-end;

    color: var(--color-muted);
    font-size: 0.58rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.portfolio-empty {
    grid-column: 1 / -1;

    padding: 5rem 0;

    color: var(--color-muted);
    text-align: center;
}

/* Portfolio lightbox navigation */
#portfolio-lightbox {
    gap: 1.5rem;
}

.lightbox-figure {
    display: flex;
    flex-direction: column;
    align-items: center;

    max-width: 88vw;
    max-height: 90vh;
    margin: 0;
}

#portfolio-lightbox-image {
    max-width: 84vw;
    max-height: 82vh;
    object-fit: contain;
}

#portfolio-lightbox-caption {
    margin-top: 0.8rem;
    color: var(--color-text);
    font-family: var(--font-heading);
    font-size: 1.4rem;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    z-index: 2;

    width: 3rem;
    height: 3rem;

    transform: translateY(-50%);

    border: 1px solid var(--color-line);
    background: rgba(11, 11, 11, 0.65);

    color: var(--color-text);

    cursor: pointer;

    font-size: 2rem;
    line-height: 1;
}

.lightbox-prev { left: 1.2rem; }
.lightbox-next { right: 1.2rem; }

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--color-text);
    color: var(--color-background);
}




/* =========================================================
   17. RESPONSIVE FOUNDATION
   ========================================================= */

/* Desktop: no mobile menu button/overlay. */
@media (min-width: 1051px) {
    .mobile-menu-toggle,
    .mobile-navigation {
        display: none !important;
    }
}

/* Tablet + phone */
@media (max-width: 1050px) {
    .site-header {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: .75rem;
    }

    .site-nav-desktop {
        display: none !important;
    }

    .header-actions {
        display: flex;
        align-items: center;
        gap: .5rem;
        min-width: max-content;
    }

    .mobile-menu-toggle {
        display: flex !important;
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        flex: 0 0 44px;

        padding: 0;
        margin: 0;

        align-items: center;
        justify-content: center;

        border: 1px solid rgba(243, 240, 234, .75);
        border-radius: 2px;
        background: rgba(11, 11, 11, .86);
        color: var(--color-text);
        cursor: pointer;
    }

    .mobile-menu-icon {
        display: flex;
        width: 20px;
        height: 18px;
        flex-direction: column;
        justify-content: space-between;
    }

    .mobile-menu-icon i {
        display: block;
        width: 20px;
        height: 2px;
        background: var(--color-text);
    }

    .mobile-navigation {
        position: fixed;
        inset: 0;
        z-index: 9990;

        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 1rem;

        padding: 6rem 7vw 3rem;

        background: var(--color-background);

        opacity: 0;
        visibility: hidden;
        pointer-events: none;

        transition: opacity .18s ease, visibility .18s ease;
    }

    .mobile-navigation.open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    /* These are intentionally plain native links. */
    .mobile-navigation > a {
        display: block;
        color: var(--color-text);
        font-family: var(--font-heading);
        font-size: clamp(2.4rem, 11vw, 5rem);
        line-height: .92;
        text-decoration: none;
        cursor: pointer;
    }

    .mobile-language-switcher {
        display: flex;
        gap: .7rem;
        margin-top: 2rem;
    }

    .mobile-language-switcher .language-button {
        font-size: .7rem;
    }

    body.mobile-menu-open {
        overflow: hidden;
    }

    .hero {
        min-height: 100svh;
        width: 100%;
        overflow: hidden;
    }

    .hero-content {
        width: 100%;
        max-width: none;
        padding: 0 4vw 6.5rem;
    }

    .hero-title {
        max-width: 100%;
        font-size: clamp(4.1rem, 17vw, 6.8rem);
    }

    .hero-location {
        font-size: .62rem;
        line-height: 1.65;
    }

    .hero-scroll {
        display: none;
    }

    .section-shell,
    .portfolio-main {
        width: 100%;
        max-width: none;
        padding-left: 4vw;
        padding-right: 4vw;
    }

    .intro,
    .about-preview {
        grid-template-columns: 1fr;
    }

    .featured-grid,
    .portfolio-grid {
        grid-template-columns: 1fr !important;
    }

    .section-heading {
        display: block;
    }
}

@media (max-width: 560px) {
    .site-header {
        padding-left: 4vw;
        padding-right: 4vw;
    }

    .wordmark-name {
        font-size: .78rem;
        letter-spacing: .075em;
        white-space: nowrap;
    }

    .wordmark-type {
        font-size: .5rem;
    }

    .language-button {
        font-size: .56rem;
    }

    .language-divider {
        display: none;
    }

    .mobile-menu-toggle {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
    }
}






/* =========================================================
   v0.5.21 — MOBILE NATIVE NAVIGATION
   Desktop styling/behavior is intentionally unchanged.
   ========================================================= */
@media (max-width: 1050px) {
    .mobile-navigation a {
        -webkit-tap-highlight-color: rgba(243, 240, 234, .12);
        touch-action: manipulation;
        pointer-events: auto;
        cursor: pointer;
    }
}

/* =========================================================
   NAVIGATION — v0.5.21
   MOBILE OVERRIDES ONLY
   Desktop navigation rules above remain unchanged.
   ========================================================= */

@media (max-width: 1050px) {
    .site-header {
        position: fixed;
        z-index: 10000;
    }

    .mobile-menu-toggle {
        position: relative;
        z-index: 12000;
        pointer-events: auto;
        touch-action: manipulation;
    }

    .mobile-navigation {
        position: fixed;
        inset: 0;
        z-index: 11000;

        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 1rem;

        padding: 6rem 7vw 3rem;

        background: var(--color-background);

        opacity: 0;
        visibility: hidden;
        pointer-events: none;

        transition: opacity .18s ease, visibility .18s ease;
    }

    .mobile-navigation.open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .mobile-navigation > a {
        position: relative;
        z-index: 11001;

        display: block;

        color: var(--color-text);
        font-family: var(--font-heading);
        font-size: clamp(2.4rem, 11vw, 5rem);
        line-height: .92;
        text-decoration: none;

        pointer-events: auto;
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(243,240,234,.12);
        cursor: pointer;
    }
}
