/* ============================================================
   Toky Photo — styles.css
   Mobile-first, light theme, editorial photographer portfolio
============================================================ */

:root {
    --bg: #0e0e0e;
    --bg-soft: #181818;
    --bg-elev: #1f1f1f;
    --text: #f3f1ec;
    --text-soft: #a8a39a;
    --accent: #c9a96e;
    --accent-dark: #d6b97d;
    --line: #2a2926;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 14px 40px rgba(0, 0, 0, 0.55);
    --container: 1200px;
    --radius: 4px;
    --transition: 0.35s cubic-bezier(0.2, 0.7, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.menu-open { overflow: hidden; }

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

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

a:hover { color: var(--accent); }

button {
    font-family: inherit;
    cursor: pointer;
    border: 0;
    background: none;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* ---------- Headings & section helpers ---------- */
.section-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    color: var(--accent-dark);
    margin: 0 0 0.75rem;
    font-weight: 500;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem);
    line-height: 1.15;
    margin: 0 0 1.25rem;
    letter-spacing: -0.01em;
}

.section-lead {
    color: var(--text-soft);
    max-width: 56ch;
    margin: 0 auto;
}

.section-head {
    text-align: center;
    margin-bottom: 2.5rem;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 0.85rem 1.75rem;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: var(--radius);
    transition: all var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: var(--accent);
    color: #1a1a1a;
    border: 1px solid var(--accent);
}

.btn-primary:hover {
    background: transparent;
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ============================================================
   Header / Navigation
============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(14, 14, 14, 0.7);
    backdrop-filter: saturate(150%) blur(12px);
    -webkit-backdrop-filter: saturate(150%) blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition), background var(--transition);
}

.site-header.is-scrolled {
    border-bottom-color: var(--line);
    background: rgba(14, 14, 14, 0.92);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.brand { display: inline-flex; align-items: center; }
.brand-logo {
    height: 44px;
    width: auto;
    filter: brightness(0) invert(1);
}

.primary-nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.primary-nav a {
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    position: relative;
    padding: 0.25rem 0;
}

.primary-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width var(--transition);
}

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

/* Hamburger */
.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    z-index: 101;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   Hero
============================================================ */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: flex-end;
    background-image: url('../images/hero_foto.JPG');
    background-size: cover;
    background-position: center;
    color: #fff;
    overflow: hidden;
    margin-top: -72px;
    padding-top: 72px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.15) 45%, rgba(0,0,0,0.75) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 4rem 1.25rem calc(7rem + 30px);
    width: 100%;
}

.hero-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.35em;
    font-size: 0.85rem;
    margin: 0 0 1.5rem;
    color: var(--accent);
    font-weight: 500;
}

.hero-logo {
    height: clamp(80px, 7vw + 40px, 140px);
    width: auto;
    margin: 0 auto 2rem;
    filter: brightness(0) invert(1) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35));
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: clamp(2rem, 1rem + 4.5vw, 4rem);
    line-height: 1.15;
    margin: 0 0 2.5rem;
    letter-spacing: -0.01em;
}

.hero-title span {
    display: block;
    font-size: clamp(1rem, 0.7rem + 1.4vw, 1.5rem);
    font-style: italic;
    font-weight: 400;
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

/* ============================================================
   About
============================================================ */
.about {
    padding: 6rem 0;
}

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

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.about-image::before {
    content: '';
    position: absolute;
    top: 1.5rem;
    left: 0;
    right: 0;
    bottom: -1.5rem;
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    z-index: -1;
}

@media (min-width: 1024px) {
    .about-image::before {
        left: -1.5rem;
        right: 1.5rem;
    }
}

.about-text p {
    color: var(--text-soft);
    margin: 0 0 1.1rem;
}

.about-text .about-lead {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.1rem, 0.95rem + 0.6vw, 1.3rem);
    font-style: italic;
    line-height: 1.5;
    color: var(--text);
    margin-bottom: 1.5rem;
    padding-left: 1.1rem;
    border-left: 2px solid var(--accent);
}

.about-tags {
    list-style: none;
    padding: 0;
    margin: 1.75rem 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.about-tags li {
    padding: 0.35rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 0.85rem;
    color: var(--text-soft);
    background: var(--bg-elev);
}

/* ============================================================
   Gallery
============================================================ */
.gallery {
    padding: 6rem 0;
    background: var(--bg-soft);
}

.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
}

.filter-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    color: var(--text-soft);
    border: 1px solid var(--line);
    border-radius: 999px;
    background: transparent;
    transition: all var(--transition);
    letter-spacing: 0.02em;
}

.filter-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.filter-btn.is-active {
    background: var(--accent);
    border-color: var(--accent);
    color: #1a1a1a;
}

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

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    cursor: zoom-in;
    aspect-ratio: 1 / 1;
    background: var(--bg-soft);
    box-shadow: var(--shadow-sm);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.gallery-item:hover img { transform: scale(1.05); }

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,0.55) 65%, rgba(0,0,0,0.92) 100%);
    opacity: 1;
    transition: opacity var(--transition);
    pointer-events: none;
}

.gallery-item .item-meta {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    color: #fff;
    z-index: 1;
    opacity: 1;
}

.gallery-item .item-meta strong {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    font-weight: 600;
}

.gallery-item .item-meta span {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
}

.gallery-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-soft);
    padding: 3rem 1rem;
}

/* ============================================================
   Contact
============================================================ */
.contact {
    padding: 6rem 0;
}

.contact-cards {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    max-width: 980px;
    margin-inline: auto;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.6rem;
    padding: 2.25rem 1.5rem;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
    color: var(--text);
}

.contact-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
    color: var(--text);
}

.contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--bg-elev);
    color: var(--accent);
    margin-bottom: 0.5rem;
    transition: background var(--transition), color var(--transition);
}

.contact-card:hover .contact-icon {
    background: var(--accent);
    color: #1a1a1a;
}

.contact-label {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    color: var(--accent-dark);
    font-weight: 500;
}

.contact-value {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    word-break: break-word;
}

/* ============================================================
   Footer
============================================================ */
.site-footer {
    background: #060606;
    color: rgba(255, 255, 255, 0.75);
    padding: 3rem 0 2rem;
    border-top: 1px solid var(--line);
}

.footer-inner {
    display: grid;
    gap: 1.5rem;
    text-align: center;
    align-items: center;
}

.brand-footer img {
    height: 48px;
    margin: 0 auto;
    filter: brightness(0) invert(1);
}

.social-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.85);
    transition: all var(--transition);
}

.social-links a:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: translateY(-2px);
}

.copy {
    margin: 0;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.55);
}

/* ============================================================
   Lightbox
============================================================ */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 2rem;
}

.lightbox.is-open { display: flex; }

.lb-image {
    max-width: 92vw;
    max-height: 82vh;
    object-fit: contain;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.lb-close, .lb-prev, .lb-next {
    position: absolute;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
}

.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255, 255, 255, 0.18); }

.lb-close { top: 1.25rem; right: 1.25rem; }
.lb-prev { left: 1.25rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1.25rem; top: 50%; transform: translateY(-50%); }

.lb-caption {
    position: absolute;
    bottom: 1rem;
    left: 0;
    right: 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    margin: 0;
    padding: 0 1rem;
}

/* ============================================================
   Reveal animation (IntersectionObserver)
============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}

/* ============================================================
   Breakpoints
============================================================ */

/* Tablet (≥ 640px) */
@media (min-width: 640px) {
    .container { padding: 0 2rem; }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .footer-inner {
        grid-template-columns: 1fr auto 1fr;
        text-align: left;
    }

    .footer-inner .brand-footer { justify-self: start; margin: 0; }
    .footer-inner .copy { justify-self: end; text-align: right; }
}

/* Desktop (≥ 1024px) */
@media (min-width: 1024px) {
    .about-grid {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 4.5rem;
    }

    .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

    .contact-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

/* Mobile menu (< 768px) */
@media (max-width: 767px) {
    .nav-toggle { display: flex; }

    .primary-nav {
        position: fixed;
        top: 72px;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        display: flex;
        align-items: flex-start;
        justify-content: center;
        background: var(--bg);
        transform: translateX(100%);
        transition: transform var(--transition);
        z-index: 99;
        padding: 1.75rem 1rem 0;
    }

    .primary-nav.is-open { transform: translateX(0); }

    .primary-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        margin: 0;
        padding: 0;
        width: 100%;
        max-width: 320px;
    }

    .primary-nav li { width: 100%; }

    .primary-nav a {
        display: block;
        font-size: 1.25rem;
        font-family: 'Playfair Display', serif;
        text-align: center;
        padding: 0.85rem 1.25rem;
        border-radius: var(--radius);
        background: var(--bg-elev);
        border: 1px solid var(--line);
        color: var(--text);
    }

    .primary-nav a:hover,
    .primary-nav a:focus-visible {
        background: var(--accent);
        border-color: var(--accent);
        color: #1a1a1a;
    }

    .primary-nav a::after { display: none; }
}
