/*
Theme Name: Nowe Focale Custom Theme
Author: Focale Team
Description: A highly optimized, custom WordPress theme built for speed and aesthetics.
Version: 1.0.0
Text Domain: nowefocale
*/
@import url('https://fonts.googleapis.com/css2?family=Bitcount+Prop+Single+Ink:wght@100..900&family=Bitcount+Single+Ink:wght@100..900&family=Outfit:wght@100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
:root {
    --bg-color: #FDFDFD;
    --card-bg: #FFFFFF;
    --badge-bg: #F4F4F5;
    --text-main: #1A1A1A;
    --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-main);
    padding: 40px 20px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    overflow-x: hidden;
}

main {
    max-width: 1700px;
    width: 100%;
}

/* Page Transition Overlay */
#page-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #1A1A1A;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    pointer-events: none;
    transform: translateY(0); 
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}

.site-name {
    font-size: 2.2rem;
    font-weight: 300;
    letter-spacing: 2px;
}

#page-transition-overlay.slide-up {
    transform: translateY(-100%);
}

#page-transition-overlay.start-bottom {
    transition: none;
    transform: translateY(100%);
}

#page-transition-overlay.slide-in {
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
    transform: translateY(0);
    pointer-events: auto;
}

/* Navigation */
.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
}

.logo-container {
    height: 45px;
}

.logo {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    transition: opacity 0.2s;
}

.nav-links a:hover {
    opacity: 0.6;
}

.hero-header {
    margin-bottom: 30px;
}

.hero-header h1 {
    font-size: 7rem;
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: -0.05em;
    word-spacing: -0.05em;
    margin-bottom: 12px;
}

/* Odometer / Slide-up effect */
.char-container {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
    /* padding to prevent cutting off descending letters, if any */
    padding-bottom: 0.1em;
    margin-bottom: -0.1em;
}

.char-inner {
    display: inline-block;
    transform: translateY(110%);
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUp {
    0% {
        transform: translateY(110%);
    }
    100% {
        transform: translateY(0);
    }
}


.hero-header .subtitle {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 10px;
}

.gallery-container {
    width: 100%;
    overflow: hidden;
}

.top-bar {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.category-label {
    display: inline-flex;
    align-items: center;
    background-color: var(--badge-bg);
    padding: 18px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    cursor: pointer;
    user-select: none;
    width: 340px;
    min-width: 340px;
    flex: 0 0 340px;
    transition: background-color 0.2s;
}

.category-label:hover {
    background-color: #E6E6EA;
}

#category-text {
    transition: opacity 0.2s, transform 0.2s;
}

#category-text.fade-out {
    opacity: 0;
    transform: translateY(-5px);
}

.dots-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dots-icon.animating {
    transform: rotate(360deg);
}

.marquee-container {
    flex: 1;
    overflow: hidden;
    background-color: var(--badge-bg);
    border-radius: 12px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    position: relative;
}

/* Gradient mask for smooth fade on edges */
.marquee-container::before,
.marquee-container::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    z-index: 2;
    pointer-events: none;
}

.marquee-container::before {
    left: 0;
    background: linear-gradient(to right, var(--badge-bg), transparent);
}

.marquee-container::after {
    right: 0;
    background: linear-gradient(to left, var(--badge-bg), transparent);
}

.marquee-content {
    display: flex;
    white-space: nowrap;
    animation: scrollLeft 100s linear infinite;
    width: max-content;
    font-weight: 400;
}

.marquee-content span {
    padding-right: 40px;
}

.gallery-section {
    position: relative;
    z-index: 50;
    overflow: visible;
}

.carousel-container {
    overflow: hidden;
    width: 100%;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    padding: 20px 0;
}

.carousel-track {
    display: flex;
    gap: 40px;
    width: max-content;
    align-items: flex-end;
    will-change: transform;
}

.carousel-item {
    border-radius: 0;
    flex-shrink: 0;
    background-color: transparent;
    height: 42.5vh;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
}

.carousel-item img {
    height: 100%;
    width: auto;
    object-fit: contain;
    display: block;
}

/* Pause animations on hover */
.marquee-container:hover .marquee-content {
    animation-play-state: paused;
}
/* JS handles hover pause now */

@keyframes scrollLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes scrollRight {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

@media (max-width: 900px) {
    .main-nav {
        flex-direction: column;
        gap: 24px;
        align-items: flex-start;
    }
    .nav-links {
        flex-wrap: wrap;
        gap: 20px;
    }
    .top-bar {
        flex-direction: column;
    }
    .hero-header h1 {
        font-size: 4.2rem;
    }
    
    .about-section {
        flex-direction: column;
        padding: 40px 0;
    }
}

/* About Section */
.about-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 80px 0;
    gap: 40px;
}

.about-left {
    flex: 1;
    max-width: 500px;
}

.about-left h2 {
    font-size: 3.5rem;
    font-weight: 400;
    margin: 0 0 10px 0;
    letter-spacing: 0.05em;
    color: var(--text-main);
}

.about-subtitle {
    font-size: 1rem;
    font-weight: 300;
    color: #666;
    line-height: 1.4;
    letter-spacing: 0.02em;
    margin: 0;
}

.about-right {
    flex: 1;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.about-desc {
    font-size: 16px;
    font-weight: 300;
    color: #555;
    line-height: 1.6;
    margin-top: 0;
    margin-bottom: 24px;
    text-align: justify;
}

/* Interactive Read More Button */
.btn-read-more {
    display: inline-flex;
    align-items: center;
    background-color: #111;
    color: #fff;
    border-radius: 999px;
    padding: 10px 24px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
    position: relative;
    overflow: hidden;
    transition: background-color 0.4s ease, padding 0.4s ease, gap 0.4s ease;
    gap: 0px;
}

.btn-read-more .btn-icon {
    width: 0px;
    height: 10px;
    background-color: #fff;
    border-radius: 50%;
    opacity: 0;
    transition: width 0.4s ease, opacity 0.4s ease;
}

.btn-read-more .text-default {
    max-width: 150px;
    opacity: 1;
    white-space: nowrap;
    overflow: hidden;
    transition: max-width 0.4s ease, opacity 0.4s ease;
}

.btn-read-more .text-hover {
    max-width: 0px;
    opacity: 0;
    white-space: nowrap;
    overflow: hidden;
    transition: max-width 0.4s ease, opacity 0.4s ease;
}

.btn-read-more:hover {
    background-color: #6a002a;
    gap: 10px;
    padding-left: 14px; /* Adjust padding for the icon */
}

.btn-read-more:hover .btn-icon {
    width: 10px;
    opacity: 1;
}

.btn-read-more:hover .text-default {
    max-width: 0px;
    opacity: 0;
}

.btn-read-more:hover .text-hover {
    max-width: 250px;
    opacity: 1;
}

/* Video Section */
.video-section {
    width: 100%;
    padding: 100px 0 150px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-wrapper {
    --progress: 0;
    width: calc(65% + (100vw - 65%) * var(--progress));
    max-width: calc(1200px + (100vw - 1200px) * var(--progress));
    aspect-ratio: 16 / 9;
    background-color: #6a002a;
    border-radius: 0;
    margin-left: calc((-50vw + 50%) * var(--progress));
    margin-right: calc((-50vw + 50%) * var(--progress));
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    will-change: width, max-width, margin;
    overflow: hidden;
    height: auto;
    min-height: 0;
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Latest Works Section */
.latest-works-section {
    padding: 60px 0 120px 0;
    width: 100%;
}

.works-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
    padding-bottom: 16px;
    margin-bottom: 60px;
}

.works-header h2 {
    font-size: 2.8rem;
    font-weight: 300;
    margin: 0;
    color: var(--text-main);
    letter-spacing: 0.02em;
}

.btn-portfolio {
    background-color: #111;
    color: #fff;
    border-radius: 999px;
    padding: 10px 32px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
    transition: background-color 0.3s ease;
}

.btn-portfolio:hover {
    background-color: #6a002a;
}

.works-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.work-item {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.work-image,
.split-project-image {
    width: 55%;
    aspect-ratio: 3 / 2;
    background-color: #111;
    overflow: hidden;
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.work-details {
    width: 45%;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 10px;
}

.work-details h3 {
    font-size: 1.8rem;
    font-weight: 300;
    margin: 0 0 12px 0;
    color: var(--text-main);
}

.work-year {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: #111;
}

.work-category {
    font-size: 0.75rem;
    font-weight: 400;
    color: #888;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Manifesto Section */
.manifesto-section {
    width: 100%;
    padding: 60px 0 100px 0; /* Większy padding u góry ze względu na nagłówek */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.manifesto-text {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.6;
    color: #555;
    text-align: justify;
    max-width: 100%;
    margin: 0;
}

.fb-links-list {
    width: 100%;
    margin-top: 80px;
    display: flex;
    flex-direction: column;
}

.fb-link-item {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    align-items: center;
    padding: 30px 0;
    border-bottom: 1px solid #e0e0e0;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    transition: background-color 0.3s ease, padding 0.3s ease;
}

.fb-link-item:first-child {
    border-top: 1px solid #e0e0e0;
}

.fb-link-item:hover {
    background-color: #f7f7f7;
    padding-left: 20px;
    padding-right: 20px;
}

.fb-link-category {
    color: #888;
    text-align: left;
}

.fb-link-action {
    font-weight: 500;
}

@media (max-width: 768px) {
    .fb-link-item {
        grid-template-columns: 1fr auto;
        gap: 15px;
        padding: 20px 0;
    }
    .fb-link-category {
        display: none;
    }
}

/* Services / Accordion Section */
.services-section {
    margin: 80px 0;
    width: 100%;
}

.accordion-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.accordion-item {
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.accordion-header {
    width: 100%;
    display: grid;
    grid-template-columns: 40% 1fr auto;
    padding: 30px 0;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    color: var(--text-main);
    transition: opacity 0.3s ease;
    align-items: start;
}

.accordion-header:hover {
    opacity: 0.6;
}

.accordion-title {
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    text-transform: uppercase;
}

.accordion-category {
    font-size: 0.85rem;
    color: #666;
    display: flex;
    align-items: flex-start;
    padding-top: 3px;
}

.accordion-action {
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: flex-start;
    padding-top: 3px;
}

.accordion-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s ease;
}

.accordion-item.active .accordion-content {
    grid-template-rows: 1fr;
}

.accordion-inner {
    overflow: hidden;
    padding: 0 100px 0 40%;
    opacity: 0;
    transition: opacity 0.4s ease, padding 0.4s ease;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
}

.accordion-item.active .accordion-inner {
    padding: 20px 100px 40px 40%;
    opacity: 1;
}

@media (max-width: 768px) {
    .accordion-header {
        grid-template-columns: 1fr auto;
        gap: 15px;
        padding: 20px 0;
    }
    .accordion-category {
        display: none;
    }
    .accordion-inner {
        padding: 0 0 0 0;
    }
    .accordion-item.active .accordion-inner {
        padding: 10px 0 30px 0;
    }
}

/* Reviews Section */
.reviews-section {
    margin: 80px 0;
    width: 100%;
}

.reviews-shortcode-container {
    width: 100%;
    /* Wtyczka WP sama ustawi tutaj style dla widgetu opinii */
}

/* Clients Section */
.clients-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin: 80px 0;
    background-color: #F3F3F4;
    padding: 60px;
    border-radius: 20px;
}

.client-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.client-logo {
    height: 60px;
    width: 100%;
    max-width: 160px;
    object-fit: contain;
    object-position: left center;
    margin-bottom: 32px;
}

.client-desc {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 40px;
    flex-grow: 1;
}

.btn-client {
    display: inline-block;
    padding: 8px 20px;
    background-color: #111;
    color: #fff;
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    border-radius: 999px;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
}

.btn-client:hover {
    background-color: #6a002a;
}

@media (max-width: 768px) {
    .clients-section {
        grid-template-columns: 1fr;
        gap: 60px;
        padding: 40px 20px;
    }
}

/* Split Projects Section */
.split-projects-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 80px 0;
    border: none;
    background-color: transparent;
}

.split-project-card {
    display: flex;
    flex-direction: column;
}

.split-project-card:first-child {
    border-right: 1px solid #ddd;
    padding-right: 30px;
}

.split-project-card:last-child {
    padding-left: 30px;
}

.split-project-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: #e0e0e0;
}

.split-project-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.15s ease 0s;
    z-index: 1;
}

.hover-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.15s ease 0s;
    z-index: 2;
    pointer-events: none;
}

.split-project-card.video-playing .split-project-image img {
    opacity: 0;
}

.split-project-card.video-playing .hover-video {
    opacity: 1;
    transition: opacity 0.2s ease;
}

.split-project-info {
    padding: 20px 0 0 0;
}

.split-project-category {
    font-size: 0.75rem;
    color: #555;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.split-project-title {
    font-size: 1.25rem;
    font-weight: 400;
    color: #111;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .split-projects-section {
        grid-template-columns: 1fr;
    }
    .split-project-card:first-child {
        border-right: none;
        border-bottom: 1px solid #d5d5d5;
    }
}
/* Project Modal */
.project-modal {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 75vh;
    background-color: #fff;
    z-index: 10000;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    transform: translateY(100%);
    visibility: hidden;
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1), visibility 0s linear 0.6s;
    display: flex;
    flex-direction: column;
    padding: 30px 40px;
    color: #111;
    box-sizing: border-box;
    box-shadow: 0 -10px 50px rgba(0,0,0,0.1);
}

.project-modal.active {
    transform: translateY(0);
    visibility: visible;
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1), visibility 0s linear 0s;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    font-size: 1rem;
    font-weight: 300;
    color: #aaa;
}

.modal-header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.modal-view-project {
    background-color: #111;
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.modal-view-project:hover {
    background-color: #333;
}

.modal-close {
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.modal-close:hover {
    opacity: 0.6;
}

.modal-gallery-container {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 20px; /* Przestrzeń między strzałkami a zdjęciami */
    overflow: hidden;
}

.modal-gallery {
    flex: 1; /* Zajmuje resztę miejsca między strzałkami */
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: auto; /* Zmiana na auto dla płynnego drag and drop */
    height: 100%;
    /* Hide scrollbar */
    -ms-overflow-style: none;
    scrollbar-width: none;
    cursor: url('data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2290%22%20height%3D%2230%22%3E%3Ctext%20x%3D%2250%25%22%20y%3D%2250%25%22%20dominant-baseline%3D%22middle%22%20text-anchor%3D%22middle%22%20font-family%3D%22system-ui%2C%20-apple-system%2C%20sans-serif%22%20font-weight%3D%22100%22%20font-size%3D%2210%22%20letter-spacing%3D%221.5%22%20fill%3D%22%23fff%22%3EPRZECI%C4%84GNIJ%3C%2Ftext%3E%3C%2Fsvg%3E') 45 15, grab;
}

.modal-gallery:active {
    cursor: url('data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2290%22%20height%3D%2230%22%3E%3Ctext%20x%3D%2250%25%22%20y%3D%2250%25%22%20dominant-baseline%3D%22middle%22%20text-anchor%3D%22middle%22%20font-family%3D%22system-ui%2C%20-apple-system%2C%20sans-serif%22%20font-weight%3D%22100%22%20font-size%3D%2210%22%20letter-spacing%3D%221.5%22%20fill%3D%22%23fff%22%3EPRZECI%C4%84GNIJ%3C%2Ftext%3E%3C%2Fsvg%3E') 45 15, grabbing;
}

.modal-gallery::-webkit-scrollbar {
    display: none;
}

.modal-gallery img,
.modal-gallery video {
    height: 100%;
    width: auto;
    object-fit: contain;
    border-radius: 0;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

/* Contact Section */
.contact-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin: 80px 0 60px 0;
}

.contact-left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-title {
    font-size: 5rem;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.03em;
    margin: 0;
    text-transform: uppercase;
}

.contact-pitch {
    font-size: 1.05rem;
    line-height: 1.5;
    max-width: 80%;
    color: #111;
    text-transform: uppercase;
    font-weight: 500;
}

.contact-right {
    display: flex;
    flex-direction: column;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 80px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.form-row:last-of-type {
    grid-template-columns: 1fr;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(0,0,0,0.2);
    padding: 10px 0;
    font-size: 0.85rem;
    font-family: inherit;
    color: #111;
    outline: none;
    resize: none;
    text-transform: uppercase;
    transition: border-bottom-color 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #666;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-bottom-color: #111;
}

.btn-submit {
    align-self: flex-start;
    padding: 10px 24px;
    background-color: #111;
    color: #fff;
    border: none;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
}

.btn-submit:hover {
    background-color: #6a002a;
}

.contact-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-col {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detail-label {
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.detail-link {
    font-size: 0.95rem;
    color: #111;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.detail-link:hover {
    color: #6a002a;
}

@media (max-width: 900px) {
    .contact-section {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .contact-title {
        font-size: 3.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-details {
        grid-template-columns: 1fr;
    }
    
    .contact-pitch {
        max-width: 100%;
        margin-top: 40px;
    }
}

/* Footer */
.site-footer {
    padding: 80px 0 20px 0;
    margin-top: 40px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin-bottom: 80px;
}

.footer-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
}

.footer-heading {
    font-size: 3rem;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0;
    text-transform: uppercase;
    max-width: 90%;
}

.footer-right {
    display: flex;
    flex-direction: column;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px 40px;
}

.detail-text {
    font-size: 0.95rem;
    color: #111;
    line-height: 1.5;
    text-transform: uppercase;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.1);
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
}

.footer-links {
    display: flex;
    gap: 40px;
}

.footer-bottom a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: #111;
}

@media (max-width: 900px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .footer-heading {
        font-size: 2.2rem;
        max-width: 100%;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        align-items: center;
        text-align: center;
    }
}

/* ==========================================================================
   PORTFOLIO & KONTAKT PAGE STYLES
   ========================================================================== */
.portfolio-page {
    padding: 120px 0 60px;
    background-color: var(--bg-color);
}

.portfolio-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 1px solid #ddd;
    padding-bottom: 20px;
    margin-bottom: 40px;
}

.portfolio-title-wrapper {
    display: flex;
    align-items: flex-start;
}

.portfolio-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 300;
    line-height: 1;
    margin: 0;
    text-transform: uppercase;
}

.portfolio-count {
    font-size: 1.2rem;
    margin-left: 5px;
    margin-top: 10px;
}

.portfolio-controls {
    display: flex;
    align-items: center;
    gap: 40px;
}

.portfolio-filter {
    font-size: 0.9rem;
    cursor: pointer;
    position: relative;
    text-transform: uppercase;
}

.filter-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    min-width: 200px;
    z-index: 10;
    padding: 10px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.filter-btn {
    background: none;
    border: none;
    text-align: left;
    padding: 8px 20px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.2s;
    font-family: var(--font-family);
}

.filter-btn:hover, .filter-btn.active {
    background: #f4f4f5;
}

/* Portfolio Grid - 3 columns */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 20px;
    transition: all 0.4s ease;
}

.portfolio-item {
    display: flex;
    flex-direction: column;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.portfolio-item-image {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 2;
    background-color: #111;
    overflow: hidden;
    margin-bottom: 15px;
}

.portfolio-item-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.15s ease 0s;
    z-index: 1;
}

.portfolio-item.video-playing .portfolio-item-image img {
    transform: scale(1.03);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.2s ease;
}

.portfolio-item.video-playing .hover-video {
    opacity: 1;
    transition: opacity 0.2s ease;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.portfolio-item-category {
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.portfolio-item-title {
    font-size: 1.2rem;
    font-weight: 500;
    margin: 0;
    text-transform: uppercase;
}

/* Contact Section */
.contact-section {
    margin-top: 100px;
    padding-top: 80px;
    border-top: 1px solid #ddd;
}

.contact-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 300;
    margin-bottom: 40px;
}

.contact-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.contact-form-wrapper input[type="text"],
.contact-form-wrapper input[type="email"],
.contact-form-wrapper textarea {
    width: 100%;
    padding: 15px 0;
    border: none;
    border-bottom: 1px solid #ccc;
    background: transparent;
    margin-bottom: 20px;
    font-family: var(--font-family);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.contact-form-wrapper input:focus,
.contact-form-wrapper textarea:focus {
    border-bottom-color: #1a1a1a;
}

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

.contact-form-wrapper input[type="submit"] {
    background: #1a1a1a;
    color: #fff;
    border: none;
    padding: 15px 40px;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 30px;
    transition: background 0.3s ease;
    text-transform: uppercase;
    font-weight: 500;
}

.contact-form-wrapper input[type="submit"]:hover {
    background: #333;
}

@media (max-width: 992px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .portfolio-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   NEW CONTACT PAGE STYLES (SPLIT LAYOUT)
   ========================================================================== */
.new-contact-layout {
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 80px;
    padding-top: 40px;
}

.contact-left {
    display: block;
}

.contact-bottom-left {
    padding-top: 0;
}

.contact-manifesto {
    font-size: 1.1rem;
    line-height: 1.5;
    text-transform: uppercase;
    font-weight: 400;
    margin-bottom: 50px;
    max-width: 100%;
    color: #1a1a1a;
}

.contact-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.contact-detail-block {
    display: flex;
    flex-direction: column;
    font-size: 0.85rem;
}

.contact-detail-block a, .contact-detail-block span {
    text-transform: uppercase;
    color: #1a1a1a;
    text-decoration: none;
}

.detail-label {
    font-size: 0.65rem;
    color: #888;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.contact-right {
    display: block;
}

.contact-form-wrapper {
    width: 100%;
    max-width: 800px;
}

/* CF7 Custom Grid Styles */
.cf7-grid-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.cf7-full-row {
    margin-bottom: 30px;
}

.contact-form-wrapper .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.contact-form-wrapper .wpcf7-form-control-wrap input[type="text"],
.contact-form-wrapper .wpcf7-form-control-wrap input[type="email"],
.contact-form-wrapper .wpcf7-form-control-wrap input[type="tel"],
.contact-form-wrapper .wpcf7-form-control-wrap select,
.contact-form-wrapper .wpcf7-form-control-wrap textarea {
    width: 100%;
    padding: 10px 0;
    border: none;
    border-bottom: 1px solid #ddd;
    background: transparent;
    font-family: var(--font-family);
    font-size: 0.8rem;
    text-transform: uppercase;
    outline: none;
    box-sizing: border-box;
}

.contact-form-wrapper .wpcf7-form-control-wrap textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form-wrapper .wpcf7-form-control-wrap select {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%231a1a1a%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 10px top 50%;
    background-size: 10px auto;
}

.contact-form-wrapper input[type="submit"] {
    background: #1a1a1a;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 0.75rem;
    margin-top: 10px;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: 500;
}

.wpcf7-acceptance {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #666;
    display: flex;
    align-items: center;
    gap: 10px;
}

@media (max-width: 992px) {
    .new-contact-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* ==========================================================================
   EDITORIAL GALLERY LAYOUT (MAGAZINE STYLE)
   ========================================================================== */

.editorial-mode {
    background-color: #fff;
    color: #111;
}

.editorial-mode .nav-links a {
    color: #111 !important;
}

.editorial-mode .logo {
    /* Logo remains black on white background */
}

.editorial-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 80px;
    padding: 0 5%;
}

.editorial-header .project-title {
    font-size: 3.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.editorial-header .project-meta {
    font-size: 0.85rem;
    letter-spacing: 4px;
    opacity: 0.6;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.editorial-header .project-description {
    font-size: 1.15rem;
    line-height: 1.8;
    opacity: 0.8;
    font-weight: 300;
}

.editorial-gallery-wrapper {
    width: 100%;
    overflow: hidden;
    padding-bottom: 100px;
}

.editorial-spread {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    min-height: 100vh;
    margin-bottom: 50px;
}

.editorial-page {
    width: 50%;
    position: relative;
    padding: 6vw;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 1024px) {
    .editorial-page {
        width: 100%;
        min-height: auto;
        padding: 8vw 5vw;
    }
}

.editorial-credits {
    position: absolute;
    font-size: 10px;
    letter-spacing: 4px;
    text-transform: uppercase;
    opacity: 0.4;
    white-space: nowrap;
    transform-origin: left bottom;
    z-index: 2;
    pointer-events: none;
}

.editorial-credits.left-edge {
    left: 3vw;
    bottom: 3vw;
    transform: rotate(-90deg) translateY(100%);
}

.editorial-credits.right-edge {
    right: 3vw;
    top: 3vw;
    transform: rotate(90deg) translateY(-100%);
    transform-origin: right top;
}

@media (max-width: 1024px) {
    .editorial-credits {
        display: none; /* Hide on mobile to save space */
    }
}

/* Hero Page */
.hero-page {
    padding: 0; /* Full bleed by default */
}

.hero-page.padded {
    padding: 6vw;
}

.hero-page a {
    display: block;
    width: 100%;
}

.editorial-hero-img {
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
    transition: transform 0.6s ease;
}

.hero-page a:hover .editorial-hero-img {
    transform: scale(1.02);
}

.hero-page.padded .editorial-hero-img {
    /* usunieto border-radius i box-shadow */
}

/* Collage Page */
.collage-page {
    flex-direction: column;
    justify-content: space-evenly;
}

.collage-wrap {
    width: 100%;
    display: flex;
    margin-bottom: 5vw;
    overflow: hidden;
}

.collage-wrap:last-child {
    margin-bottom: 0;
}

.collage-wrap.wrap-0 {
    justify-content: flex-start;
    padding-right: 15%;
}

.collage-wrap.wrap-1 {
    justify-content: flex-end;
    padding-left: 15%;
}

.collage-wrap.wrap-2 {
    justify-content: center;
    padding: 0 10%;
}

.collage-wrap a {
    display: block;
    max-width: 100%;
}

.editorial-collage-img {
    width: 100%;
    max-height: 60vh;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.collage-wrap a:hover .editorial-collage-img {
    transform: scale(1.03);
}

.editorial-page.empty-page {
    background: transparent;
}

/* ==========================================================================
   GLOBAL LIGHTBOX CSS
   ========================================================================== */
.focale-lightbox-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 99999;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease;
}
.focale-lightbox-overlay.active {
    opacity: 1; pointer-events: auto;
}
.focale-lightbox-content {
    max-width: 90%; max-height: 90vh;
    display: flex; justify-content: center; align-items: center;
}
.focale-lightbox-content img {
    max-width: 100%; max-height: 90vh;
    object-fit: contain;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
}
.focale-lightbox-close {
    position: absolute; top: 30px; right: 40px;
    background: none; border: none; color: #fff; font-size: 40px; cursor: pointer;
    line-height: 1; z-index: 2; transition: 0.2s;
}
.focale-lightbox-close:hover { color: #aaa; }
.focale-lightbox-prev, .focale-lightbox-next {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: #fff; font-size: 50px; cursor: pointer;
    padding: 20px; z-index: 2; transition: 0.2s;
}
.focale-lightbox-prev:hover, .focale-lightbox-next:hover { color: #aaa; }
.focale-lightbox-prev { left: 20px; }
.focale-lightbox-next { right: 20px; }

/* ==========================================================================
   MOBILE GLOBAL FIXES 
   ========================================================================== */
@media (max-width: 768px) {
    /* Global Spacing */
    body {
        padding: 20px 15px;
    }
    
    /* Navigation */
    .main-nav {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
        margin-bottom: 40px;
    }
    .nav-links {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: flex-start;
        padding-left: 0;
    }

    /* Hero Text */
    .hero-header h1 {
        font-size: 8.5vw !important;
        line-height: 1.15;
        word-break: keep-all;
        overflow-wrap: break-word;
    }
    
    /* Carousel */
    .carousel-item {
        height: 25vh !important;
    }
    
    /* Typography Overrides */
    .works-header h2, 
    .about-left h2, 
    .contact-title, 
    .page-title {
        font-size: 2.2rem !important;
    }
    .about-subtitle {
        font-size: 0.95rem;
    }

    /* Split Projects */
    .split-projects-section {
        grid-template-columns: 1fr !important;
        margin: 40px 0;
        gap: 40px;
    }
    .split-project-card:first-child {
        border-right: none !important;
        border-bottom: 1px solid #d5d5d5;
        padding-right: 0 !important;
        padding-bottom: 40px;
    }
    .split-project-card:last-child {
        padding-left: 0 !important;
    }
    .split-project-image {
        height: 40vh;
    }

    /* Grids */
    .portfolio-grid {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }
    .client-gallery-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    /* Contact Page */
    .new-contact-layout {
        flex-direction: column !important;
        gap: 40px;
    }
    .contact-left {
        max-width: 100% !important;
    }
    .contact-manifesto {
        font-size: 1.1rem;
        padding-right: 0;
    }
    
    /* Reviews & Clients */
    .clients-section {
        grid-template-columns: 1fr !important;
        gap: 60px !important;
        padding: 40px 20px !important;
    }
    .client-column {
        align-items: center !important;
        text-align: center;
    }
    .client-logo {
        object-position: center center !important;
        margin-bottom: 20px !important;
    }
    
    /* Footer */
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .footer-links {
        justify-content: center;
    }
    
    /* Video Section */
    .video-section {
        padding: 40px 0 !important;
    }
    .video-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        background-color: transparent !important;
    }
    .video-wrapper video {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        display: block;
    }
    
    /* Lightbox */
    .focale-lightbox-prev, .focale-lightbox-next {
        font-size: 30px;
        padding: 10px;
    }
    .focale-lightbox-close {
        top: 15px;
        right: 15px;
        font-size: 30px;
    }
    
    /* Disable ugly touch hover scale animations */
    .portfolio-item.video-playing .portfolio-item-image img,
    .hero-page a:hover .editorial-hero-img,
    .collage-wrap a:hover .editorial-collage-img,
    .portfolio-item-image img,
    .split-project-image img {
        transform: none !important;
    }
}

/* =========================================
   CUSTOM COOKIE BANNER
========================================= */
.focale-cookie-banner {
    position: fixed;
    bottom: 30px;
    left: 30px;
    max-width: 380px;
    background: #111;
    color: #fff;
    padding: 25px;
    z-index: 999999;
    border: 1px solid #333;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
}

.focale-cookie-banner.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.cookie-banner-content p {
    font-size: 0.8rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #ccc;
    font-weight: 300;
}

.cookie-banner-content a {
    color: #fff;
    text-decoration: underline;
}

.cookie-banner-buttons {
    display: flex;
    gap: 10px;
}

.btn-cookie {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    padding: 8px 16px;
    font-size: 0.75rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-cookie-accept {
    background: #fff;
    color: #000;
}

.btn-cookie-accept:hover {
    background: #ccc;
    border-color: #ccc;
}

.btn-cookie-reject:hover {
    background: #333;
}

@media (max-width: 768px) {
    .focale-cookie-banner {
        bottom: 0;
        left: 0;
        max-width: 100%;
        width: 100%;
        border: none;
        border-top: 1px solid #333;
    }
}
