/* =============================================================================
   PiotrKuśmirek Photography Theme
   Main Stylesheet
   ============================================================================= */

/* ── Custom Properties ─────────────────────────────────────────────────────── */

:root {
    /* Palette */
    --color-teal:       #0bb4aa;
    --color-teal-dark:  #37746f;
    --color-teal-light: #5ec5bd;
    --color-teal-pale:  rgba(11, 180, 170, 0.15);
    --color-dark:       #000000;
    --color-dark-mid:   #111111;
    --color-grey:       #777777;
    --color-grey-light: #444444;
    --color-border:     rgba(255, 255, 255, 0.1);
    --color-bg:         #000000;
    --color-white:      #ffffff;
    --color-text:       rgba(255, 255, 255, 0.82);
    --color-text-muted: rgba(255, 255, 255, 0.45);
    --color-surface:    #111111;
    --color-surface-2:  #161616;

    /* Typography */
    --font-display: 'Onest', sans-serif;
    --font-body:    'DM Sans', sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --container-pad:   clamp(1.25rem, 5vw, 2.5rem);
    --section-gap:     clamp(4rem, 8vw, 8rem);

    /* Header */
    --header-h:        68px;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in:  cubic-bezier(0.7, 0, 0.84, 0);
}

/* ── Reset ─────────────────────────────────────────────────────────────────── */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: #000;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; }

/* ── Container ─────────────────────────────────────────────────────────────── */

.container {
    width: 100%;
    max-width: var(--container-width);
    margin-inline: auto;
    padding-inline: var(--container-pad);
}

/* ── Typography ────────────────────────────────────────────────────────────── */

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

/* ── Buttons ───────────────────────────────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 2px;
    transition: all 0.25s var(--ease-out);
    white-space: nowrap;
}

.btn--outline {
    color: var(--color-white);
    border: 1.5px solid rgba(255,255,255,0.6);
    backdrop-filter: blur(4px);
}
.btn--outline:hover {
    background: var(--color-white);
    color: var(--color-dark);
    border-color: var(--color-white);
}

.btn--teal {
    background: var(--color-teal);
    color: var(--color-white);
    border: 1.5px solid var(--color-teal);
}
.btn--teal:hover {
    background: var(--color-teal-dark);
    border-color: var(--color-teal-dark);
}

/* ── Site Header ───────────────────────────────────────────────────────────── */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--header-h);
    background: transparent;
    transition: background 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

/* Scrolled state – added via JS */
.site-header.is-scrolled {
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

/* On non-hero pages the header is always dark */
body:not(.home) .site-header {
    background: rgba(0, 0, 0, 0.95);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--container-width);
    margin-inline: auto;
    padding-inline: var(--container-pad);
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    z-index: 10;
}

.site-logo__text {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: -0.01em;
}

.site-logo img { max-height: 40px; width: auto; }

/* Nav list */
.primary-nav { display: flex; }

.nav-list {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-list a {
    font-family: var(--font-display);
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    position: relative;
    transition: color 0.2s;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--color-teal);
    transition: width 0.25s var(--ease-out);
}

.nav-list a:hover,
.nav-list .current-menu-item > a,
.nav-list .current_page_item > a {
    color: var(--color-white);
}

.nav-list a:hover::after,
.nav-list .current-menu-item > a::after,
.nav-list .current_page_item > a::after {
    width: 100%;
}

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

.nav-toggle__bar {
    display: block;
    width: 100%;
    height: 1.5px;
    background: var(--color-white);
    border-radius: 2px;
    transition: transform 0.3s var(--ease-out), opacity 0.3s;
}

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

/* ── Mobile Nav ────────────────────────────────────────────────────────────── */

@media (max-width: 767px) {
    .nav-toggle { display: flex; }

    .primary-nav {
        position: fixed;
        inset: 0;
        background: rgba(17, 17, 17, 0.98);
        backdrop-filter: blur(16px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.35s var(--ease-out);
        z-index: 9;
    }

    .primary-nav.is-open {
        opacity: 1;
        pointer-events: auto;
    }

    .nav-list {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .nav-list a {
        font-size: 1.5rem;
        color: rgba(255,255,255,0.9);
        letter-spacing: 0.05em;
    }
}

/* ── Page Header (inner pages) ─────────────────────────────────────────────── */

.page-header {
    padding-block: clamp(5rem, 10vw, 8rem) clamp(2.5rem, 5vw, 4rem);
    background: var(--color-bg);
    color: var(--color-white);
    text-align: center;
    border-bottom: 1px solid var(--color-border);
}

/* All page headers are dark — remove the separate light variant */
.page-header--light {
    background: var(--color-bg);
    color: var(--color-white);
    border-bottom: 1px solid var(--color-border);
}

.page-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
}

/* ── Hero Section ──────────────────────────────────────────────────────────── */

.page-home { min-height: 100vh; }

.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-dark-mid);
    background-image: var(--hero-bg, none);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.25) 0%,
        rgba(0, 0, 0, 0.55) 60%,
        rgba(0, 0, 0, 0.75) 100%
    );
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--color-white);
    padding-inline: var(--container-pad);
    max-width: 800px;
    animation: hero-fade-up 1.1s var(--ease-out) both;
}

@keyframes hero-fade-up {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero__eyebrow {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-teal-light);
    margin-bottom: 1rem;
    animation: hero-fade-up 1.1s 0.1s var(--ease-out) both;
}

.hero__heading {
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 700;
    line-height: 1.0;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
    animation: hero-fade-up 1.1s 0.2s var(--ease-out) both;
}

.hero__sub {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 300;
    color: rgba(255,255,255,0.7);
    margin-bottom: 2.5rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    animation: hero-fade-up 1.1s 0.3s var(--ease-out) both;
}

.hero__content .btn {
    animation: hero-fade-up 1.1s 0.4s var(--ease-out) both;
}

/* Scroll indicator */
.hero__scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255,255,255,0.5);
    animation: scroll-bounce 2s 1.5s ease-in-out infinite both;
    transition: color 0.2s;
}

.hero__scroll-hint:hover { color: var(--color-white); }

.hero__scroll-hint svg {
    width: 28px;
    height: 28px;
}

@keyframes scroll-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(8px); }
}

/* ── Portfolio Gallery ─────────────────────────────────────────────────────── */

.page-portfolio {
    padding-bottom: var(--section-gap);
    background-color: var(--color-bg);
}

.portfolio-filters {
    padding-block: 2rem;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-bg);
    position: sticky;
    top: var(--header-h);
    z-index: 50;
}

.portfolio-filters .container {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.filter-btn {
    padding: 0.5rem 1.25rem;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    border: 1.5px solid var(--color-border);
    border-radius: 2px;
    transition: all 0.2s;
}

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

.filter-btn.is-active {
    color: var(--color-white);
    background: var(--color-teal);
    border-color: var(--color-teal);
}

/* Grid – masonry columns */
.portfolio-grid {
    columns: 3;
    column-gap: 1.5rem;
    padding-top: 2.5rem;
}

@media (max-width: 900px) {
    .portfolio-grid { columns: 2; }
}

@media (max-width: 540px) {
    .portfolio-grid { columns: 1; column-gap: 1rem; }
}

/* Portfolio item */
.portfolio-item {
    position: relative;
    break-inside: avoid;
    margin-bottom: 1.5rem;
}

.portfolio-item__link {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 2px;
    background: var(--color-surface);
    line-height: 0;
}

.portfolio-item__media {
    width: 100%;
    line-height: 0;
}

.portfolio-item__img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s var(--ease-out);
}

.portfolio-item__link:hover .portfolio-item__img {
    transform: scale(1.06);
}

.portfolio-item__placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-surface);
    color: var(--color-grey);
}

.portfolio-item__placeholder svg {
    width: 40px;
    height: 40px;
}

.portfolio-item__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    padding: 1.25rem;
    opacity: 0;
    transition: opacity 0.3s var(--ease-out);
}

.portfolio-item__link:hover .portfolio-item__overlay {
    opacity: 1;
}

.portfolio-item__title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 0.25rem;
}

.portfolio-item__cat {
    font-size: 0.75rem;
    color: var(--color-teal-light);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Pagination */
.page-numbers {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.page-numbers a,
.page-numbers span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-family: var(--font-display);
    font-size: 0.875rem;
    color: var(--color-text-muted);
    border: 1.5px solid var(--color-border);
    border-radius: 2px;
    transition: all 0.2s;
}

.page-numbers a:hover { color: var(--color-teal); border-color: var(--color-teal); }
.page-numbers .current { background: var(--color-teal); color: var(--color-white); border-color: var(--color-teal); }

/* ── About Page ────────────────────────────────────────────────────────────── */

.page-about {
    padding-bottom: var(--section-gap);
    background-color: var(--color-bg);
}

.about-section {
    padding-top: var(--section-gap);
    background-color: var(--color-bg);
}

.about-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem, 6vw, 6rem);
    align-items: start;
}

@media (max-width: 768px) {
    .about-columns {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* Photo column */
.about-photo-col {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
}

.about-photo {
    position: relative;
    display: inline-block;
    width: 100%;
}

.about-photo__img {
    width: 100%;
    height: auto;
    border-radius: 2px;
    display: block;
}


.about-photo--placeholder {
    background: var(--color-surface);
    border-radius: 2px;
    aspect-ratio: 3/4;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-photo--placeholder svg {
    width: 80px;
    height: 80px;
    color: var(--color-grey);
}

/* Content column */
.about-content {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--color-text);
}

.about-content h2 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    margin-bottom: 1rem;
    color: var(--color-white);
}

.about-content h3 {
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--color-white);
}

.about-content p { margin-bottom: 1.25rem; }

.about-content strong { color: var(--color-white); font-weight: 600; }

.about-content em { color: var(--color-teal-light); }

/* ── Contact Page ──────────────────────────────────────────────────────────── */

.page-contact {
    padding-bottom: var(--section-gap);
    background-color: var(--color-bg);
}

.contact-section {
    padding-top: var(--section-gap);
    background-color: var(--color-bg);
}

.contact-layout {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: clamp(3rem, 6vw, 6rem);
    align-items: start;
}

@media (max-width: 900px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

.contact-col-title {
    font-size: clamp(1.25rem, 2.5vw, 1.875rem);
    margin-bottom: 2rem;
    color: var(--color-white);
}

/* CF7 styling overrides */
.contact-form-wrap .wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-form-wrap .wpcf7-form p {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.contact-form-wrap .wpcf7-form label {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.contact-form-wrap input[type="text"],
.contact-form-wrap input[type="email"],
.contact-form-wrap input[type="tel"],
.contact-form-wrap textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1.5px solid var(--color-border);
    border-radius: 2px;
    font-size: 0.9375rem;
    color: var(--color-white);
    background: var(--color-surface);
    transition: border-color 0.2s;
    outline: none;
}

.contact-form-wrap input:focus,
.contact-form-wrap textarea:focus {
    border-color: var(--color-teal);
}

.contact-form-wrap textarea { min-height: 160px; resize: vertical; }

.contact-form-wrap .wpcf7-submit {
    align-self: flex-start;
    padding: 0.875rem 2.5rem;
    background: var(--color-teal);
    color: var(--color-white);
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: background 0.2s;
}

.contact-form-wrap .wpcf7-submit:hover {
    background: var(--color-teal-dark);
}

/* CF7 notice (plugin not active) */
.cf7-notice {
    padding: 2rem;
    border: 1.5px dashed var(--color-border);
    border-radius: 2px;
    text-align: center;
    color: var(--color-text-muted);
}

.cf7-notice p { margin-bottom: 1.25rem; }

/* Social Cards */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--color-surface);
    border: 1.5px solid var(--color-border);
    border-radius: 2px;
    text-decoration: none;
    transition: border-color 0.2s, transform 0.2s var(--ease-out), box-shadow 0.2s;
    color: var(--color-text);
}

a.social-card:hover {
    border-color: var(--color-teal);
    transform: translateX(4px);
    box-shadow: -4px 0 0 var(--color-teal);
}

.social-card--placeholder {
    opacity: 0.5;
}

.social-card__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-card__icon svg {
    width: 22px;
    height: 22px;
}

.social-card__icon--instagram {
    background: linear-gradient(135deg, #fd5949 0%, #d6249f 50%, #285AEB 100%);
    color: var(--color-white);
}

.social-card__icon--klisha {
    background: var(--color-teal);
    color: var(--color-white);
}

.social-card__body {
    flex: 1;
    min-width: 0;
}

.social-card__name {
    display: block;
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 600;
}

.social-card__url {
    display: block;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.social-card__arrow {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: var(--color-text-muted);
    transition: transform 0.2s, color 0.2s;
}

a.social-card:hover .social-card__arrow {
    transform: translateX(4px);
    color: var(--color-teal);
}

.contact-extra-content {
    margin-top: 2rem;
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* ── Single Portfolio ───────────────────────────────────────────────────────── */

.page-single-portfolio {
    padding-bottom: var(--section-gap);
    background-color: var(--color-bg);
}

.portfolio-single__hero {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    background: var(--color-bg);
}

.portfolio-single__hero-img {
    display: block;
    max-width: 100%;
    max-height: 1000px;
    width: auto;
    height: auto;
}

.portfolio-single__layout {
    max-width: 820px;
    margin: 0 auto;
    padding-top: 3rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    transition: color 0.2s;
    margin-bottom: 2rem;
}

.back-link:hover { color: var(--color-teal); }
.back-link svg { width: 16px; height: 16px; transition: transform 0.2s; }
.back-link:hover svg { transform: translateX(-3px); }

.portfolio-single__title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 1rem;
}

.portfolio-single__cats {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.cat-tag {
    display: inline-block;
    padding: 0.3rem 0.875rem;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-teal-light);
    background: var(--color-teal-pale);
    border-radius: 2px;
    transition: all 0.2s;
}

.cat-tag:hover {
    background: var(--color-teal);
    color: var(--color-white);
}

.portfolio-single__content {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--color-text);
}

.portfolio-single__content p { margin-bottom: 1.25rem; }
.portfolio-single__content img { width: 100%; border-radius: 2px; margin-block: 2rem; }

/* Portfolio nav */
.portfolio-nav {
    border-top: 1px solid var(--color-border);
    margin-top: 4rem;
    padding-block: 3rem;
    background-color: var(--color-bg);
}

.portfolio-nav__inner {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    max-width: 820px;
    margin: 0 auto;
}

.portfolio-nav__link {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    max-width: 45%;
}

.portfolio-nav__link--next { align-items: flex-end; margin-left: auto; }

.portfolio-nav__label {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.portfolio-nav__title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    transition: color 0.2s;
}

.portfolio-nav__link:hover .portfolio-nav__title { color: var(--color-teal); }

/* ── 404 Page ──────────────────────────────────────────────────────────────── */

.page-404 {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding-block: 4rem;
}

.error-404 {
    text-align: center;
    width: 100%;
}

.error-404__code {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(6rem, 20vw, 14rem);
    font-weight: 900;
    line-height: 1;
    color: var(--color-teal);
    opacity: 0.15;
    margin-bottom: -0.5rem;
}

.error-404__title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
}

.error-404__text {
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

/* ── Footer ────────────────────────────────────────────────────────────────── */

.site-footer {
    background: #050505;
    border-top: 1px solid var(--color-border);
    color: rgba(255,255,255,0.6);
    padding-block: 3rem 2.5rem;
}

.footer-inner {
    max-width: var(--container-width);
    margin-inline: auto;
    padding-inline: var(--container-pad);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
}

@media (max-width: 768px) {
    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-white);
    display: block;
    margin-bottom: 0.4rem;
}

.footer-tagline {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.4);
}

.footer-social {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    transition: color 0.2s;
}

.social-link:hover { color: var(--color-teal-light); }

.social-icon {
    width: 18px;
    height: 18px;
}

.footer-copy {
    text-align: right;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.3);
}

@media (max-width: 768px) {
    .footer-copy { text-align: center; }
}

/* ── Utility / Misc ────────────────────────────────────────────────────────── */

.no-content {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--color-text-muted);
    font-size: 1.0625rem;
}

/* WordPress alignment helpers */
.alignleft  { float: left; margin: 0.5em 1.5em 0.5em 0; }
.alignright { float: right; margin: 0.5em 0 0.5em 1.5em; }
.aligncenter { display: block; margin-inline: auto; }
.alignwide  { max-width: 1100px; margin-inline: auto; }

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid var(--color-teal);
    outline-offset: 3px;
    border-radius: 2px;
}

/* ── Lightbox ───────────────────────────────────────────────────────────────── */

#pk-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease-out);
}

#pk-lightbox.is-open {
    opacity: 1;
    pointer-events: auto;
}

.lb-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.96);
    cursor: zoom-out;
}

.lb-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 4rem 5rem;
    box-sizing: border-box;
}

.lb-figure {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
    max-height: 100%;
}

.lb-spinner {
    width: 36px;
    height: 36px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--color-teal);
    border-radius: 50%;
    animation: lb-spin 0.7s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
}

@keyframes lb-spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.lb-img {
    max-width: 100%;
    max-height: calc(100vh - 9rem);
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.4s var(--ease-out);
}

.lb-img.is-loaded {
    opacity: 1;
}

.lb-caption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    margin-top: 0.875rem;
    padding: 0 0.25rem;
}

.lb-title {
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lb-detail-link {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-teal-light);
    white-space: nowrap;
    transition: color 0.2s;
    flex-shrink: 0;
}

.lb-detail-link:hover { color: var(--color-teal); }

/* Lightbox controls */
.lb-close,
.lb-prev,
.lb-next {
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.7);
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease-out);
    z-index: 10;
    backdrop-filter: blur(8px);
}

.lb-close:hover,
.lb-prev:hover,
.lb-next:hover {
    background: rgba(255, 255, 255, 0.14);
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.25);
}

.lb-close {
    top: 1.25rem;
    right: 1.25rem;
    width: 44px;
    height: 44px;
}

.lb-close svg { width: 20px; height: 20px; }

.lb-prev,
.lb-next {
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
}

.lb-prev svg,
.lb-next svg { width: 22px; height: 22px; }

.lb-prev { left: 1.25rem; }
.lb-next { right: 1.25rem; }

.lb-prev:hover { transform: translateY(-50%) translateX(-2px); }
.lb-next:hover { transform: translateY(-50%) translateX(2px); }

.lb-counter {
    position: fixed;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.35);
}

@media (max-width: 600px) {
    .lb-container { padding: 3rem 1rem 5rem; }
    .lb-img { max-height: calc(100vh - 10rem); }
    .lb-prev { left: 0.5rem; }
    .lb-next { right: 0.5rem; }
    .lb-prev, .lb-next { width: 40px; height: 40px; }
}
