/* ═══════════════════════════════════════════
   RESET
═══════════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ═══════════════════════════════════════════
   TOKENS
═══════════════════════════════════════════ */
:root {
    --bg: #333333;
    --text: #e8e4df;
    --text-muted: #999;
    --accent: #fff;
    --nav-height: 64px;
}

/* ═══════════════════════════════════════════
   BASE
═══════════════════════════════════════════ */
html, body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    min-height: 100vh;
    line-height: 1.6;
}

/* ═══════════════════════════════════════════
   NAV — DESKTOP
═══════════════════════════════════════════ */
nav {
    position: fixed; top: 0; left: 0; right: 0;
    height: var(--nav-height);
    background: var(--bg);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 40px;
    z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-logo img { height: 38px; display: block; }

.nav-links {
    display: flex; align-items: center; gap: 36px; list-style: none;
}
.nav-links a {
    color: var(--text); text-decoration: none;
    font-size: 13px; letter-spacing: 0.08em; font-weight: 300;
    text-transform: lowercase; transition: opacity 0.2s;
}
.nav-links a:hover { opacity: 0.55; }

/* ═══════════════════════════════════════════
   GALLERIES DROPDOWN
═══════════════════════════════════════════ */
.dropdown { position: relative; }
.dropdown-menu {
    display: none; position: absolute;
    top: 100%; left: 50%; transform: translateX(-50%);
    background: #2e2e2e; border: 1px solid rgba(255,255,255,0.08);
    min-width: 210px; padding-top: 20px; padding-bottom: 8px;
}
/* invisible bridge fills gap so hover isn't lost */
.dropdown::after {
    content: ''; display: block;
    position: absolute; top: 100%; left: 0; right: 0; height: 20px;
}
.dropdown-menu a {
    display: block; padding: 10px 20px;
    font-size: 12.5px; letter-spacing: 0.06em; white-space: nowrap;
    color: var(--text); text-decoration: none; transition: opacity 0.2s;
}
.dropdown-menu a:hover { background: rgba(255,255,255,0.05); opacity: 1; }
.dropdown:hover .dropdown-menu { display: block; }

/* ═══════════════════════════════════════════
   HAMBURGER — hidden on desktop
═══════════════════════════════════════════ */
.hamburger {
    display: none;
    flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span {
    display: block; width: 22px; height: 1px;
    background: var(--text); transition: transform 0.3s, opacity 0.3s, width 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { transform: scaleX(0); opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ═══════════════════════════════════════════
   MOBILE MENU OVERLAY
═══════════════════════════════════════════ */
.mobile-menu {
    display: none;
    position: fixed; top: var(--nav-height); left: 0; right: 0;
    background: #2a2a2a; border-top: 1px solid rgba(255,255,255,0.06);
    padding: 24px 28px 32px; z-index: 99; flex-direction: column;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
    color: var(--text); text-decoration: none;
    font-size: 14px; letter-spacing: 0.08em; font-weight: 300;
    text-transform: lowercase; padding: 13px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-galleries-btn {
    display: flex; align-items: center; justify-content: space-between;
    color: var(--text); font-size: 14px; letter-spacing: 0.08em; font-weight: 300;
    text-transform: lowercase; padding: 13px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    background: none; border-left: none; border-right: none; border-top: none;
    width: 100%; cursor: pointer; font-family: 'Jost', sans-serif;
}
.mobile-galleries-btn .arrow { font-size: 10px; transition: transform 0.25s; opacity: 0.5; }
.mobile-galleries-btn.open .arrow { transform: rotate(180deg); }
.mobile-galleries-sub {
    display: none; flex-direction: column;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mobile-galleries-sub.open { display: flex; }
.mobile-galleries-sub a {
    padding: 11px 0 11px 18px; border-bottom: none;
    font-size: 13px; color: var(--text-muted);
}
.mobile-galleries-sub a:last-child { border-bottom: none; }

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
footer {
    text-align: center; padding: 30px 40px;
    font-size: 12px; letter-spacing: 0.06em;
    color: rgba(255,255,255,0.25);
    border-top: 1px solid rgba(255,255,255,0.06);
}

/* ═══════════════════════════════════════════
   GLOBAL LINK
═══════════════════════════════════════════ */
a { color: var(--text); text-underline-offset: 3px; }
a:hover { opacity: 0.6; }

/* ═══════════════════════════════════════════
   SHARED PAGE WRAPPER
   Used by: portfolio, about, blog index
═══════════════════════════════════════════ */
.page {
    max-width: 1100px; margin: 0 auto;
    padding: calc(var(--nav-height) + 70px) 40px 100px;
    display: flex; flex-direction: column; align-items: center; text-align: center;
    overflow: visible;
}

/* ═══════════════════════════════════════════
   PAGE TITLES
   .page-title        — portfolio / blog post pages  (smaller)
   .page-title--large — about page                   (larger)
═══════════════════════════════════════════ */
.page-title {
    font-family: 'Cormorant Garamond', serif; font-weight: 300;
    font-size: clamp(36px, 5vw, 60px); letter-spacing: -0.01em;
    color: var(--accent); margin-bottom: 32px; line-height: 1;
}
.page-title--large {
    font-family: 'Cormorant Garamond', serif; font-weight: 300;
    font-size: clamp(44px, 7vw, 72px); letter-spacing: -0.01em;
    color: var(--accent); margin-bottom: 56px; line-height: 1;
}

/* ═══════════════════════════════════════════
   PORTFOLIO PAGE
═══════════════════════════════════════════ */
.page-quote {
    font-family: 'Cormorant Garamond', serif; font-style: italic;
    font-weight: 300; font-size: 20px;
    color: var(--text-muted); margin-bottom: 28px;
}
.page-intro {
    font-family: 'Cormorant Garamond', serif; font-weight: 300;
    font-size: 17px; color: var(--text); max-width: 680px;
    margin-bottom: 16px; line-height: 1.7;
}
.page-intro a { color: var(--text); }
.page-intro a:hover { opacity: 0.6; }
.page-intro-gap { margin-bottom: 48px; }

/* ── Masonry grid ── */
.gallery-grid {
    width: 100%;
    display: flex; gap: 20px; align-items: flex-start;
    overflow: visible;
}
.gallery-col {
    flex: 1; display: flex; flex-direction: column; gap: 20px;
}
.gallery-col img {
    width: 100%; height: auto; display: block;
    cursor: pointer;
    transition: transform 0.25s ease;
    will-change: transform;
}
.gallery-col img:hover {
    transform: scale(1.02);
    position: relative; z-index: 10;
}

/* ═══════════════════════════════════════════
   LIGHTBOX  (portfolio page)
═══════════════════════════════════════════ */
#lightbox {
    display: none; position: fixed; inset: 0;
    background: rgba(40,40,40,0.97); z-index: 200;
    justify-content: center; align-items: center;
    flex-direction: column; padding: 20px;
}
#lightbox.active { display: flex; }
#lightbox img { max-width: 90vw; max-height: 82vh; object-fit: contain; }
#lightbox .lb-caption {
    color: var(--text-muted); font-size: 13px; letter-spacing: 0.06em;
    margin-top: 18px; font-style: italic;
}
#lightbox .lb-close {
    position: absolute; top: 24px; right: 32px;
    color: var(--text); font-size: 28px; cursor: pointer; line-height: 1;
    transition: opacity 0.2s; background: none; border: none;
    font-family: 'Jost', sans-serif;
}
#lightbox .lb-close:hover { opacity: 0.55; }

/* Desktop-only lightbox arrows */
@media (min-width: 769px) {
    .lb-arrow {
        position: absolute; top: 50%; transform: translateY(-50%);
        background: none; border: none; cursor: pointer;
        padding: 20px 32px; opacity: 0;
        transition: opacity 0.22s ease;
        display: flex; align-items: center; justify-content: center;
    }
    #lightbox:hover .lb-arrow { opacity: 0.35; }
    .lb-arrow:hover { opacity: 1 !important; }
    .lb-arrow svg { display: block; }
    #lb-prev { left: 0; }
    #lb-next { right: 0; }
}
@media (max-width: 768px) { .lb-arrow { display: none; } }

/* ═══════════════════════════════════════════
   BLOG POST PAGES  (journey, nz, etc.)
   Narrow single-column layout
═══════════════════════════════════════════ */
.page--post {
    max-width: 720px; margin: 0 auto;
    padding: calc(var(--nav-height) + 70px) 40px 100px;
    /* not centred — left-aligned text */
    display: block;
    text-align: left;
}

.back-link {
    display: inline-block; font-size: 12px; letter-spacing: 0.1em;
    text-transform: lowercase; color: var(--text-muted);
    text-decoration: none; margin-bottom: 28px; transition: opacity 0.2s;
}
.back-link:hover { opacity: 0.6; }

/* Section labels used in journey post */
.section-label {
    font-family: 'Cormorant Garamond', serif; font-style: normal;
    font-size: 22px; font-weight: 300; color: var(--accent);
    margin: 48px 0 20px; display: block;
}

/* Body copy — journey post uses Josefin Slab */
.post-body p {
    font-family: 'Josefin Slab', serif; font-weight: 300;
    font-size: 15px; line-height: 1.9;
    color: rgba(232,228,223,0.85); margin-bottom: 20px;
    letter-spacing: 0.01em;
}

/* Body copy — NZ post and general Cormorant prose */
.post-body--serif p {
    font-family: 'Cormorant Garamond', serif; font-weight: 300;
    font-size: 17px; line-height: 1.9;
    color: rgba(232,228,223,0.85); margin-bottom: 20px;
}

.post-img {
    width: 100%; height: auto; display: block; margin: 28px 0 8px;
}

/* Journey post image captions */
.img-caption {
    font-size: 12px; letter-spacing: 0.06em; color: var(--text-muted);
    margin-bottom: 28px; font-style: italic; text-align: center;
}

/* NZ post location label + caption */
.location-name {
    font-family: 'Cormorant Garamond', serif; font-weight: 400;
    font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--accent); margin-bottom: 6px; display: block; text-align: center;
}
.location-caption {
    font-family: 'Cormorant Garamond', serif; font-style: normal;
    font-size: 16px; font-weight: 300;
    color: rgba(232,228,223,0.7); margin-bottom: 0; text-align: center;
}

/* NZ page intro line */
.page-intro--post {
    font-family: 'Cormorant Garamond', serif; font-style: normal;
    font-size: 18px; font-weight: 300;
    color: rgba(232,228,223,0.7); margin-bottom: 52px;
}

/* ═══════════════════════════════════════════
   ABOUT PAGE
═══════════════════════════════════════════ */
.about-row {
    display: flex; align-items: flex-start; justify-content: center;
    gap: 52px; width: 100%; max-width: 860px;
    margin-bottom: 60px; text-align: left;
}
.about-bio { flex: 1; }
.about-bio p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 17px; line-height: 1.9; font-weight: 300;
    margin-bottom: 18px; letter-spacing: 0.01em;
    color: rgba(232,228,223,0.85);
}
.about-bio a {
    color: var(--text); text-decoration: underline;
    text-underline-offset: 3px; transition: opacity 0.2s;
}
.about-bio a:hover { opacity: 0.6; }
.profile-img {
    width: 240px; height: 240px; object-fit: cover;
    flex-shrink: 0; display: block; border-radius: 50%;
}

/* Featured logos */
.features { width: 100%; max-width: 860px; margin-bottom: 56px; text-align: center; }
.features p { font-size: 14px; letter-spacing: 0.04em; color: var(--text-muted); margin-bottom: 22px; }
.features img { max-width: 100%; height: auto; margin: 0 auto; opacity: 0.85; }
.features-mobile { display: none; }
@media (max-width: 768px) {
    .features-desktop { display: none; }
    .features-mobile  { display: block; }
}

/* ═══════════════════════════════════════════
   CONTACT FORM
═══════════════════════════════════════════ */
.contact-intro {
    font-size: 14px; color: var(--text-muted);
    margin-bottom: 28px; letter-spacing: 0.02em;
}
.contact-form {
    display: flex; flex-direction: column; align-items: center;
    gap: 14px; width: 100%; max-width: 520px;
}
.contact-form input,
.contact-form textarea {
    width: 100%; background: transparent; border: none;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    color: var(--text); font-family: 'Jost', sans-serif; font-weight: 300;
    font-size: 14px; padding: 10px 0; outline: none;
    transition: border-color 0.2s; text-align: left;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255,255,255,0.3); font-size: 13px; letter-spacing: 0.04em;
}
.contact-form input:focus,
.contact-form textarea:focus { border-bottom-color: rgba(255,255,255,0.6); }
.contact-form textarea { resize: none; min-height: 100px; }
.contact-form button {
    background: transparent; border: 1px solid rgba(255,255,255,0.3);
    color: var(--text); font-family: 'Jost', sans-serif; font-weight: 300;
    font-size: 13px; letter-spacing: 0.1em; text-transform: lowercase;
    padding: 10px 36px; cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}
.contact-form button:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.6);
}
.form-success {
    font-size: 13px; color: #8aad8a;
    letter-spacing: 0.06em; display: none; margin-top: 4px;
}

/* ═══════════════════════════════════════════
   BLOG INDEX PAGE
═══════════════════════════════════════════ */
.blog-container {
    max-width: 860px; width: 100%;
    margin: 0 auto; padding: 0; text-align: left;
}
.blog-post {
    margin-bottom: 60px; padding-bottom: 60px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.blog-post:last-child { border-bottom: none; }
.blog-post h2 {
    font-family: 'Cormorant Garamond', serif; font-weight: 300;
    font-size: clamp(24px, 4vw, 34px); letter-spacing: -0.01em;
    color: var(--accent); margin-bottom: 10px; line-height: 1.2;
}
.blog-post h2 a { color: var(--accent); text-decoration: none; transition: opacity 0.2s; }
.blog-post h2 a:hover { opacity: 0.6; }
.blog-meta { color: var(--text-muted); font-size: 12px; letter-spacing: 0.06em; margin-bottom: 20px; }
.blog-post p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 17px; line-height: 1.9; font-weight: 300;
    color: rgba(232,228,223,0.8);
}

/* ═══════════════════════════════════════════
   BUTTONS / CTA
═══════════════════════════════════════════ */
.btn {
    display: inline-block;
    background: transparent; border: 1px solid rgba(255,255,255,0.3);
    color: var(--text); font-family: 'Jost', sans-serif; font-weight: 300;
    font-size: 13px; letter-spacing: 0.1em; text-transform: lowercase;
    text-decoration: none; padding: 10px 36px; cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}
.btn:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.6);
}

/* ═══════════════════════════════════════════
   MOBILE BREAKPOINTS
═══════════════════════════════════════════ */
@media (max-width: 768px) {
    nav { padding: 0 20px; }
    .nav-links { display: none; }
    .hamburger { display: flex; }

    /* shared page wrapper */
    .page { padding: calc(var(--nav-height) + 50px) 16px 70px; }

    /* blog post pages */
    .page--post { padding: calc(var(--nav-height) + 50px) 20px 70px; }

    /* about */
    .about-row { flex-direction: column; align-items: center; text-align: center; gap: 32px; }
    .profile-img { width: 180px; height: 180px; }

    /* masonry → single column */
    .gallery-grid { flex-direction: column; }
    .gallery-col { flex: none; width: 100%; }
}
