/*
Theme Name: Muzik&Syn 2026
Description: Standards-focused WordPress theme for Muzik&Syn - výroba a montáž ocelových konstrukcí
Version: 1.1.0
Author: Muzik&Syn
Text Domain: muzikasyn
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: custom, construction, business, one-column, two-columns, right-sidebar, custom-menu, featured-images, theme-options
*/

/* This file is generated from src/scss/style.scss. Do not edit directly. */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Global Typography Improvements */
html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Apply typography improvements to all text elements */
p, h1, h2, h3, h4, h5, h6, 
li, td, th, dd, dt,
span, a, label, input, textarea, select,
button, .project-title, .project-year,
.project-text, .detail-label, .detail-value,
.service-title, .service-excerpt,
.contact-form-card__title, .contact-form-card__privacy,
.career-single__title, .career-single__content,
.page-title, .page-header,
.wp-block-paragraph, .wp-block-heading,
.wp-block-list, .wp-block-quote,
div, article, section, aside, main, header, footer {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: "kern" 1, "liga" 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Modern text-wrap: pretty with fallback (exclude form inputs) */
@supports (text-wrap: pretty) {
    p, h1, h2, h3, h4, h5, h6, 
    li, td, th, dd, dt,
    span, a, label,
    .project-title, .project-year,
    .project-text, .detail-label, .detail-value,
    .service-title, .service-excerpt,
    .contact-form-card__title, .contact-form-card__privacy,
    .career-single__title, .career-single__content,
    .page-title, .page-header,
    .wp-block-paragraph, .wp-block-heading,
    .wp-block-list, .wp-block-quote,
    article, section, aside, main, header, footer {
        text-wrap: pretty;
    }
}

/* Headings get additional typography features */
h1, h2, h3, h4, h5, h6,
.project-title, .page-title,
.career-single__title, .contact-form-card__title {
    line-height: 1.1;
    font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
    letter-spacing: -0.01em;
}

/* Body text and paragraphs */
p, .project-text, .career-single__content,
.service-excerpt, .wp-block-paragraph {
    font-feature-settings: "kern" 1, "liga" 1, "onum" 1;
    hyphens: none;
}

body {
    font-family: 'Arimo', Arial, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    background-color: #F3F3F3;
    /* Font smoothing for better typography */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: "kern" 1, "liga" 1;
    /* Text wrapping improvements */
    text-wrap: pretty;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

:root {
    --layout-gutter: 16px;
    --layout-max-width: 1450px;
}

.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--layout-gutter);
    max-width: none;
}

@media (min-width: 1801px) {
    .container {
        max-width: var(--layout-max-width);
        padding: 0;
    }
}

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

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

/* WordPress Image Classes */
.wp-post-image {
    height: auto;
}

.alignleft {
    float: left;
    margin: 0 20px 20px 0;
}

.alignright {
    float: right;
    margin: 0 0 20px 20px;
}

.aligncenter {
    display: block;
    margin: 20px auto;
}

/* Header */
.header {
    background: #1a7a8a;
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a,
.logo-text {
    color: white;
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
}

/* ===== PROJECTS AJAX LOADING STYLES ===== */

/* Loading state for projects grid */
.projects-grid.loading {
    opacity: 0.5;
    pointer-events: none;
    position: relative;
}

.projects-grid.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid #1A7A8A;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
}

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

.custom-logo-link img {
    height: auto;
    width: auto;
    max-height: 60px;
    max-width: 400px;
}

.logo-text {
    color: white;
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    gap: 40px;
    list-style: none;
    margin: 0;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    color: white;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.5px;
    transition: opacity 0.3s ease;
    text-decoration: none;
    text-transform: uppercase;
}

.nav-menu a:hover {
    opacity: 0.8;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    margin-top: 0;
    overflow: hidden;
    background: #1a7a8a;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.hero-image {
    position: relative;
    width: 100%;
    max-width: 1400px;
    height: 70vh;
    min-height: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

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

.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    background: linear-gradient(transparent, rgba(26, 122, 138, 0.9));
    padding: 80px 60px 60px;
    border-radius: 0 0 20px 20px;
}

.hero-text {
    max-width: 900px;
    color: white;
}

.hero-text p {
    font-size: 32px;
    line-height: 1.3;
    margin-bottom: 40px;
    font-weight: 400;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.btn-more {
    color: white;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-bottom: 2px solid white;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    padding-bottom: 8px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.btn-more:hover {
    opacity: 0.8;
    transform: translateX(10px);
}

/* Statistics */
.stats {
    background: #f8f9fa;
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-item {
    padding: 20px;
    border-right: 2px solid #fff;
}

.stat-item:last-child {
    border-right: 0px none;
}

/* Mobile: Each stat-item on separate line */
@media (max-width: 768px) {
    .stats-grid {
        display: grid;
        grid-template-columns: 1fr !important;
        gap: 20px;
        width: 100%;
    }
    
    .stat-item {
        border-right: 0 !important;
        border-bottom: 2px solid #fff;
        padding: 20px 0;
        width: 100%;
        display: block;
    }
    
    .stat-item:last-child {
        border-bottom: 0;
    }
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: #1a7a8a;
    margin-bottom: 10px;
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
}

.stat-number__suffix {
    display: inline-block;
    transform: translateX(-12px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.stat-number--suffix-visible .stat-number__suffix {
    transform: translateX(0);
    opacity: 1;
    transition-delay: 0s;
}

.stat-label {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    color: #1A7A8A;
    text-align: center;
    font-feature-settings: 'case' on;
    font-family: "Space Grotesk", sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    text-transform: uppercase;
}

.stat-label--visible {
    opacity: 1;
    transform: translateY(0);
}

.listings-archive {
    padding: 80px 0;
}

.listings-archive .container {
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--layout-gutter);
    max-width: none;
}

@media (min-width: 1801px) {
    .listings-archive .container {
        max-width: var(--layout-max-width);
        padding: 0;
    }
}

.career-single {
    padding: 140px 0 80px;
    background: #f3f3f3;
}

.career-single .container {
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--layout-gutter);
    max-width: none;
}

@media (min-width: 1801px) {
    .career-single .container {
        max-width: var(--layout-max-width);
        padding: 0;
    }

    .project-overview .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .project-gallery .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .project-back .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .info-section .container {
        padding-left: 16px;
        padding-right: 16px;
    }
}

.career-single__title {
    margin: 0 0 24px;
    font-family: 'Space Grotesk', Arial, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 18px;
    line-height: 1.1;
    color: #1A7A8A;
    letter-spacing: 0;
}

.career-single__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 40px;
    align-items: start;
}

.career-apply-card,
.career-single__description {
    background: #ffffff;
    border-radius: 20px;
}

.career-apply-card.contact-form-card {
    max-width: 100%;
    padding: 36px 40px;
}

.career-info-panel {
    padding: 36px 40px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.career-info-panel__section h3 {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #000;
    text-transform: uppercase;
}

.career-info-panel__section ul {
    margin: 0;
    padding-left: 20px;
    display: grid;
    gap: 1px;
    font-family: "Arimo", sans-serif;
    font-size: 16px;
    color: #000;
    line-height: 25px;
}

.career-info-panel__section li::marker {
    color: #000;
}

.career-info-panel__section p {
    margin: 0;
    font-family: "Arimo", sans-serif;
    font-size: 15px;
    color: #5b7781;
}

.career-single__description {
    margin-top: 48px;
    padding: 40px 48px;
}

.career-single__description h2,
.career-single__description h3 {
    font-family: "Space Grotesk", sans-serif;
    color: #1a7a8a;
}

.career-single__description p {
    font-family: "Arimo", sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: #334e57;
}

.career-related {
    margin-top: 72px;
}

.career-related__title {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #1a7a8a;
    margin-bottom: 32px;
}

.career-single-contact.info-section {
    margin-top: 80px;
}

@media (max-width: 1024px) {
    .career-single {
        padding-top: 120px;
    }

    .career-single__layout {
        grid-template-columns: 1fr;
    }

    .career-info-panel,
    .career-apply-card {
        padding: 16px;
    }
}

@media (max-width: 640px) {
    .career-single .container {
        padding: 0 20px;
    }

    .career-single__title {
        font-size: 18px;
    }

    .career-apply-card,
    .career-info-panel,
    .career-single__description {
        padding: 28px;
    }
}

.listings-archive .projects-section {
    position: static;
    width: 100%;
    height: auto;
    left: auto;
    right: auto;
    margin: 0;
    overflow: visible;
    background: transparent;
    padding: 0;
}

.listings-archive .projects-container {
    position: static;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.listings-archive .projects-background {
    display: none;
}

.listings-archive .projects-filter {
    position: static;
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
}

.listings-archive .filter-link {
    font-family: 'Space Grotesk', Arial, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 18px;
    line-height: 1.4;
    color: #1A7A8A;
    text-decoration: none;
    transition: opacity 0.3s ease, text-decoration-color 0.3s ease;
}

.career-archive .page-title,
.career-page .page-title {
    font-family: 'Space Grotesk', Arial, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 18px;
    line-height: 1.1;
    color: #1A7A8A;
    letter-spacing: 0;
    margin: 0;
}

.listings-archive .filter-link:hover {
    opacity: 0.75;
}

.listings-archive .filter-link.active {
    text-decoration: underline;
    text-decoration-thickness: 2px;
}

.listings-archive .projects-grid {
    position: static;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    margin-top: 32px;
}

.listings-archive .projects-empty {
    grid-column: 1 / -1;
    font-family: 'Arimo', sans-serif;
    font-size: 18px;
    color: #334e57;
}

@media (max-width: 1024px) {
    .listings-archive .projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .listings-archive .projects-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .listings-archive .project-image-container {
        height: 260px;
    }
}

body.post-type-archive-kariera .career-archive,
body.single-kariera .career-single{
    background: #f3f3f3;
    padding: 128px 0 40px 0;
}

body.post-type-archive-kariera .career-archive-info.info-section {
    background: #f3f3f3;
    padding-top: 0;
    padding-bottom: 64px;
    margin-top: 32px;
}

body.post-type-archive-kariera .career-archive-info.info-section + .career-archive-info.info-section {
    padding-top: 32px;
}


/* Projects Section */
.projects {
    padding: 80px 0;
    background: #fff;
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    color: #1a7a8a;
    margin-bottom: 50px;
    letter-spacing: 0.5px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

body.home .projects-grid {
    padding-top: 64px;
}

.project-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.project-item a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.project-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 30px 20px 20px;
}

.project-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.project-year {
    font-size: 14px;
    opacity: 0.8;
}

/* Services Section */
.services {
    background: #f8f9fa;
    padding: 80px 0;
}

.services-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.service-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
}

.services-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.service-item h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a7a8a;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.service-item p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
}

.btn-primary {
    display: inline-block;
    background: #ffffff;
    color: #1a7a8a;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    max-width: 320px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    display: inline-block;
    background: #1a7a8a;
    color: #ffffff;
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    max-width: 320px;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(26, 122, 138, 0.3);
}

/* Shared Info Card Sections (Career & Contact) */

body.page-template-page-kontakt {
    padding-top: 100px;
}

.info-section {
    padding: 32px 0;
}

.info-section .container {
    padding-left: 16px;
    padding-right: 16px;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.5s ease-out 0.5s, transform 1.5s ease-out 0.5s;
}

.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.info-card {
    position: relative;
    width: 100%;
    max-width: none;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(320px, 0.5fr) minmax(320px, 0.5fr);
    min-height: 405px;
    background: #1A7A8A;
    border-radius: 20px;
    overflow: hidden;
}

.info-card__content {
    order: 0;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    color: #ffffff;
    font-family: "Arimo", sans-serif;
}

.info-card__media {
    order: 1;
    position: relative;
    width: 100%;
    min-height: 405px;
    max-height: 500px;
}

.info-card__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.info-card__map {
    position: absolute;
    inset: 0;
}

.info-card__map iframe {
    border: 0;
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 0;
}

.info-card__title {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: 26px;
    font-weight: 700;
    line-height: 33px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.info-card__body {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 582px;
    margin-bottom: 24px;
}

.info-card__text {
    margin: 0;
    font-size: 16px;
    line-height: 26px;
    color: #ffffff;
}

.info-card__text strong {
    display: block;
    font-weight: 700;
    color: inherit;
    margin-bottom: 4px;
}

.info-card__text span {
    display: block;
}

.info-card__text a {
    display: inline-block;
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 4px;
    margin-top: 4px;
}

.info-card__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 198px;
    max-width: 320px;
    height: 50px;
    border: 2px solid #ffffff;
    border-radius: 20px;
    background: transparent;
    color: #ffffff;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease;
    margin-top: auto;
}

.info-card__button:hover {
    background: #ffffff;
    color: #1A7A8A;
}

.contact-form-section {
    padding: 80px 0 100px;
    background: #f3f3f3;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
    align-items: flex-start;
}

.contact-card {
    position: relative;
    background: #ffffff;
    border-radius: 20px;
    height: 100%;
}

.contact-form-card {
    max-width: 640px;
    width: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    margin: 0;
}

.contact-form-card__title {
    margin: 0 0 12px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #1A7A8A;
    text-transform: uppercase;
}

.contact-form-card__form .wpcf7 {
    margin: 0;
}

.contact-form-card__form .wpcf7-form {
    position: relative;
}

.contact-form-card__form .wpcf7-form-control-wrap {
    display: block;
    margin-top: 12px;
}

.contact-form-card__form .wpcf7-form p,
.contact-form-card__form .wpcf7-form label {
    display: block;
    margin: 0 0 12px;
}

.contact-form-card__form .wpcf7-form p:last-of-type,
.contact-form-card__form .wpcf7-form label:last-of-type {
    margin-bottom: 0;
}

.contact-form-card label {
    font-family: "Space Grotesk", sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #1A7A8A;
}

.contact-form-card .wpcf7-form-control.wpcf7-text,
.contact-form-card .wpcf7-form-control.wpcf7-email,
.contact-form-card .wpcf7-form-control.wpcf7-tel,
.contact-form-card .wpcf7-form-control.wpcf7-number,
.contact-form-card .wpcf7-form-control.wpcf7-textarea {
    font-family: Arimo, sans-serif;
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #1A7A8A;
    border-radius: 999px;
    background: #ffffff;
    color: #1A7A8A;
    font-size: 16px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.contact-form-card .wpcf7-form-control.wpcf7-textarea {
    border-radius: 20px;
    max-height: 80px;
    resize: vertical;
}

.contact-form-card .wpcf7-form-control:focus {
    outline: none;
    border-color: #1A7A8A;
    box-shadow: 0 0 0 4px rgba(26, 122, 138, 0.15);
}

.contact-form-card .wpcf7-form-control::placeholder {
    color: rgba(26, 122, 138, 0.6);
    letter-spacing: 0;
}

.contact-form-card .wpcf7-not-valid {
    border-color: #ba1b1b;
}

.contact-form-card .wpcf7-not-valid:focus {
    box-shadow: 0 0 0 4px rgba(186, 27, 27, 0.15);
}

.contact-form-card .wpcf7-not-valid-tip,
.wpcf7 form .wpcf7-response-output {
    padding-left:16px;
    margin-top: 2px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 10px;
    font-weight: 700;
    color: #ba1b1b;
    text-transform: uppercase;
}

.contact-form-card .wpcf7-submit {
    margin-top: 12px;
    align-self: flex-start;
    padding: 16px 48px;
    border: none;
    border-radius: 20px;
    background: #1A7A8A;
    color: #ffffff;
    font-family: "Space Grotesk", sans-serif;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.2s ease;
    max-width: 320px;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output {
    border: none;
}

.wpcf7 form .wpcf7-response-output {
    margin: 16px 0;
}

.contact-form-card .wpcf7-submit:hover {
    background: #1A7A8A;
    transform: translateY(-1px);
}

.contact-form-card .wpcf7-submit:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(26, 122, 138, 0.25);
}

.contact-form-card .wpcf7-spinner {
    display: inline-block;
    margin-top: 0;
    margin-inline-start: 16px;
    vertical-align: middle;
}

.contact-form-card .wpcf7-response-output {
    margin: 12px 0 0;
    padding: 14px 18px;
    border-width: 0;
    border-radius: 16px;
    background: rgba(26, 122, 138, 0.08);
    color: #1A7A8A;
    font-size: 14px;
    line-height: 1.5;
}

.contact-form-card .wpcf7-response-output.wpcf7-validation-errors {
    background: rgba(186, 27, 27, 0.08);
    color: #6f0000;
}

.contact-form-card .wpcf7-response-output.wpcf7-mail-sent-ok {
    background: rgba(0, 145, 120, 0.12);
    color: #045b46;
}

.contact-form-card__privacy {
    margin: 16px 0;
    font-size: 12px;
    line-height: 14px;
    color: rgba(0, 0, 0, 0.5);
}

.contact-form-card__notice {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: #6b6b6b;
}

.contact-form-sidebar {
    padding: 12px 0 0;
    font-size: 16px;
    line-height: 1.7;
    color: #1A7A8A;
}

.contact-form-sidebar h2,
.contact-form-sidebar h3,
.contact-form-sidebar h4 {
    font-family: "Space Grotesk", sans-serif;
    text-transform: uppercase;
    color: #1A7A8A;
    margin: 0 0 16px;
}

.contact-form-sidebar p {
    margin: 0 0 6px;
}

.contact-form-sidebar ul {
    margin: 0;
    padding-left: 1.2em;
}

.contact-form-sidebar li {
    margin-bottom: 0.4em;
}

.contact-form-sidebar strong {
    color: #1A7A8A;
}

.contact-form-sidebar a {
    color: #1A7A8A;
    font-weight: 600;
    text-decoration: none;
}

.contact-form-sidebar a:hover {
    text-decoration: underline;
}

.contact-form-info-grid {
    margin-top: 56px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.contact-form-info-item {
    padding: 32px 36px;
    font-size: 15px;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #1A7A8A;
}

.contact-form-info-item h3,
.contact-form-info-item h4 {
    font-family: "Space Grotesk", sans-serif;
    text-transform: uppercase;
    color: #1A7A8A;
    margin: 0px 0px;
    font-weight: 700;
    line-height: 1;
}

.contact-form-info-item p {
    margin: 0;
    margin-block-start: 0;
    margin-block-end: 0;
}

.contact-form-info-item a {
    color: #1A7A8A;
    font-weight: 600;
    text-decoration: none;
}

.contact-form-info-item a:hover {
    text-decoration: underline;
}

.contact-form-info-heading {
    margin: 56px 0 28px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #1A7A8A;
}

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

    .contact-form-info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .contact-form-section {
        padding: 60px 0 80px;
    }

    .contact-form-card {
        padding: 36px 28px 44px;
    }

    .contact-form-info-grid {
        grid-template-columns: 1fr;
    }

    .contact-form-sidebar {
        padding: 0;
    }

    .contact-form-info-heading {
        margin: 48px 0 20px;
        font-size: 24px;
    }

    .contact-form-card .wpcf7-submit {
        width: 100%;
        align-self: stretch;
        text-align: center;
    }

    .contact-form-card .wpcf7-spinner {
        display: block;
        margin: 16px auto 0;
    }
}

.info-card--image-left .info-card__media {
    order: 0;
}

.info-card--image-left .info-card__content {
    order: 1;
}

@media (max-width: 1200px) {
    .info-card {
        grid-template-columns: minmax(300px, 0.5fr) minmax(300px, 0.5fr);
    }

    .info-card__content {
        padding: 32px;
    }
}

@media (max-width: 992px) {
    .info-card {
        grid-template-columns: 1fr;
    }

    .info-card__media {
        height: 405px;
        order: initial;
    }

    .info-card__content {
        padding: 32px;
        order: initial;
    }

    .info-card__button {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .info-section {
        padding: 60px 0;
    }

    .info-card__content {
        padding: 32px;
        gap: 24px;
    }

    .info-card__title {
        font-size: 22px;
        line-height: 30px;
    }

    .info-card__text {
        font-size: 15px;
    }
}

/* Main Content Styles */
.main-content {
    margin-top: 0;
    padding: 0;
}

.page-header {
    margin-bottom: 40px;
    text-align: center;
}

.page-title {
    font-size: 36px;
    font-weight: 600;
    color: #1a7a8a;
    letter-spacing: 0.5px;
}

.page-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Archive Pages */
.projects-archive .projects-grid {
    margin-bottom: 40px;
}

.services-archive .services-list {
    display: grid;
    gap: 40px;
    margin-bottom: 40px;
}

.service-item-full {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item-full:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.service-item-full .service-content {
    padding: 30px;
}

.service-title {
    font-size: 24px;
    font-weight: 600;
    color: #1A7A8A;
    margin-bottom: 20px;
}

.service-title a {
    color: inherit;
    text-decoration: none;
}

.service-thumbnail {
    margin: 20px 0;
}

.service-thumbnail img {
    border-radius: 8px;
}

.service-excerpt {
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Single Project Page */
body.single-projekty {
    background: #F3F3F3;
}

.project-hero {
    width: 100%;
    background: #1A7A8A;
    padding: 100px 16px 0px 16px;
}

.project-hero-inner {
    position: relative;
    width: 100%;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
}

.project-hero-visual {
    position: relative;
    height: clamp(380px, 48vw, 720px);
    background: #1A7A8A;
    overflow: hidden;
    isolation: isolate;
}

.project-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: multiply;
    transform: scale(1.05);
    transition: transform 8s ease-out;
}

.project-hero-img.loaded {
    transform: scale(1);
}

.project-hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 94, 117, 0.6);
}


.project-hero-content {
    text-align: center;
    color: #fff;
    max-width: 1112px;
    font-family: 'Space Grotesk', Arial, sans-serif;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    animation: fadeInContent 0.6s ease forwards;
    animation-delay: 0.3s;
}

.project-hero-content .project-title {
    font-size: 38px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 16px;
}

.project-hero-content .project-year {
    display: inline-block;
    font-size: 18px;
    font-weight: 500;
    text-transform: uppercase;
    color: #fff;
}

.project-overview {
    background: #1A7A8A;
    padding: 32px 0 120px;
    color: #fff;
}

.project-overview .container {
    padding-left: 16px;
    padding-right: 16px;
}

.project-overview-grid {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 32px;
    align-items: start;
}

.project-description .project-text {
    font-size: 32px;
    line-height: 42px;
    max-width: 582px;
}

.project-description .project-text p {
    margin-bottom: 16px;
    margin-right: 32px;
}

.project-details {
    max-width: 582px;
    align-self: start;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 140px;
}

.project-detail-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 1);
    align-items: center;
    height: 50px;
    box-sizing: border-box;
}

.project-detail-item:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 1);
}

.detail-label {
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    font-family: 'Space Grotesk', Arial, sans-serif;
    flex: 1;
    line-height: 1.1;
}

.detail-value {
    font-size: 16px;
    font-weight: 500;
    text-align: right;
    flex: 1;
}

.project-description .project-video-desktop {
    width: 100%;
    padding: 0;
    margin-top: 32px;
}

/* Hide mobile video on desktop */
.project-video-mobile {
    display: none;
}

.project-video-wrapper {
    max-width: 582px;
    width: 100%;
}

.project-video-container {
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    background: #000;
}

.project-video-player {
    width: 100%;
    height: auto;
    display: block;
}

.project-back-link {
    font-family: 'Space Grotesk', Arial, sans-serif;
}

.project-gallery {
    width: 100%;
    background: #F3F6F7;
    padding: 32px 0 64px;
}

.project-gallery .container {
    padding-left: 16px;
    padding-right: 16px;
}

.project-gallery-grid {
    width: 100%;
    max-width: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.project-gallery-grid .gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #d9dfe1;
    aspect-ratio: 5 / 4;
}

.project-gallery-grid .gallery-item .lazy-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.project-gallery-grid .gallery-item .gallery-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Blurred placeholder for gallery */
.project-gallery-grid .gallery-item .gallery-thumb.lazy-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(10px);
    transform: scale(1.05);
    opacity: 1;
    transition: opacity 0.6s ease-out;
    z-index: 1;
    will-change: opacity;
}

/* Main gallery image */
.project-gallery-grid .gallery-item .gallery-thumb.lazy-load {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in, transform 0.35s ease;
    z-index: 2;
    will-change: opacity;
}

.project-gallery-grid .gallery-item .gallery-thumb.lazy-load.loaded {
    opacity: 1;
}

.project-gallery-grid .gallery-item .gallery-thumb.lazy-load.loaded ~ .lazy-placeholder {
    opacity: 0;
    pointer-events: none;
}

.project-gallery-grid .gallery-item:hover .gallery-thumb.lazy-load.loaded {
    transform: scale(1.04);
}

.project-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
    z-index: 9999;
}

.project-lightbox-overlay.is-visible {
    display: flex;
}

.project-lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-lightbox-figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    max-width: 90vw;
    max-height: 90vh;
    margin: 0;
}

.project-lightbox-figure img {
    width: auto;
    height: auto;
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    object-fit: contain;
}

.project-lightbox-caption {
    color: #f5f7f9;
    font-size: 15px;
    line-height: 1.4;
    text-align: center;
    max-width: 80vw;
}

.project-lightbox-caption:empty {
    display: none;
}

.project-lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: transparent;
    border: 0;
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    z-index: 6;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
}

.project-lightbox-close:hover {
    opacity: 0.8;
}

.project-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    border: 0;
    color: #ffffff;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background 0.3s ease;
}

.project-lightbox-nav:hover {
    background: rgba(0, 0, 0, 0.8);
}

.project-lightbox-prev {
    left: 28px;
}

.project-lightbox-next {
    right: 28px;
}

body.lightbox-open {
    overflow: hidden;
}

.project-back {
    background: #F3F6F7;
    padding: 20px 0 70px;
}

.project-back .container {
    padding-left: 16px;
    padding-right: 16px;
}

.project-back-link {
    color: #1A7A8A;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.project-back-link:hover {
    opacity: 0.7;
}

.career-highlight,
.contact-highlight {
    background: #F3F6F7;
    padding: 60px 0 80px;
}

.career-highlight + .contact-highlight {
    padding-top: 20px;
}

.career-highlight-grid,
.contact-highlight-grid {
    background: #1A7A8A;
    border-radius: 28px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: stretch;
}

.career-highlight-grid {
    margin-bottom: 60px;
}

.career-highlight-text,
.contact-highlight-text {
    color: #fff;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    font-family: 'Space Grotesk', Arial, sans-serif;
}

.career-highlight-text h2,
.contact-highlight-text h2 {
    font-size: 32px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.career-highlight-text p,
.contact-highlight-text p {
    font-family: 'Arimo', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    opacity: 0.9;
}

.career-highlight-image img,
.contact-highlight-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-career,
.btn-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 34px;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.btn-career {
    background: #fff;
    color: #1A7A8A;
}

.btn-career:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.btn-contact {
    border: 2px solid #fff;
    color: #fff;
    background: transparent;
}

.btn-contact:hover {
    background: #fff;
    color: #1A7A8A;
    transform: translateY(-2px);
}

.contact-highlight-info a {
    color: #fff;
    text-decoration: none;
}

.contact-highlight-info a:hover {
    text-decoration: underline;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
}

.pagination .page-numbers {
    padding: 10px 15px;
    background: #f8f9fa;
    color: #666;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: #1a7a8a;
    color: white;
}

/* Footer */
.footer {
    padding: 60px 0 30px;
}

.footer-widgets {
    margin-bottom: 40px;
}

.footer-widget {
    margin-bottom: 30px;
}

.widget-title {
    font-size: 18px;
    font-weight: 600;
    color: #1A7A8A;
    margin-bottom: 15px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
}

.footer-bottom p {
    color: #666;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 1024px) and (min-width: 769px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile: project-text font size */
@media (max-width: 768px) {
    .project-text {
        font-size: 16px;
        line-height: 24px;
    }

    .project-overview-grid {
        grid-template-columns: 1fr;
    }

    .project-details {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        position: static;
    }

    /* Hide desktop video on mobile */
    .project-video-desktop {
        display: none;
    }

    /* Show mobile video on mobile */
    .project-video-mobile {
        display: block;
        width: 100%;
        padding: 32px 0;
        background: #1A7A8A;
    }

    .project-video-mobile .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .project-video-wrapper {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .project-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .project-lightbox-nav {
        width: 44px;
        height: 44px;
        font-size: 22px;
    }

    .project-lightbox-prev {
        left: 16px;
    }

    .project-lightbox-next {
        right: 16px;
    }

    .project-lightbox-close {
        top: 18px;
        right: 16px;
        width: 40px;
        height: 40px;
    }

    .career-highlight-grid,
    .contact-highlight-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
    }

    .header .container {
        flex-wrap: wrap;
    }

    .hero {
        height: 100vh;
        min-height: 600px;
        padding: 20px;
    }

    .hero-image {
        height: 60vh;
        min-height: 400px;
        border-radius: 15px;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    }

    .hero-content {
        padding: 60px 30px 40px;
        border-radius: 0 0 15px 15px;
    }

    .hero-text p {
        font-size: 22px;
        line-height: 1.3;
        margin-bottom: 30px;
    }

    .project-hero {
        
    }

    .project-hero-visual {
        min-height: 320px;
        border-radius: 22px;
    }

    .project-hero-content .project-title {
        font-size: 32px;
        line-height: 1.1;
    }

    .project-hero-content .project-year {
        font-size: 14px;
    }

    .project-overview {
        padding-bottom: 70px;
    }

    .project-details {
        width: 100%;

    }

    .project-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .project-lightbox-nav {
        width: 44px;
        height: 44px;
        font-size: 22px;
    }

    .project-lightbox-prev {
        left: 16px;
    }

    .project-lightbox-next {
        right: 16px;
    }

    .project-lightbox-close {
        top: 18px;
        right: 16px;
        width: 40px;
        height: 40px;
    }

    .career-highlight-text,
    .contact-highlight-text {
        padding: 40px 28px;
    }
    
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .project-image-container {
        height: 200px;
    }

    .project-info-overlay {
        padding: 18px 20px 22px;
    }
    
    .hero-content {
        padding: 40px 0 30px;
    }
    
    .projects,
    .services,
    .info-section {
        padding: 32px 0;
    }
    

    .project-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .project-lightbox-nav {
        width: 38px;
        height: 38px;
        font-size: 20px;
    }

    .project-lightbox-prev {
        left: 12px;
    }

    .project-lightbox-next {
        right: 12px;
    }

    .project-lightbox-close {
        top: 14px;
        right: 12px;
        width: 36px;
        height: 36px;
    }

    .project-img {
        height: 200px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade In Animation for Project Hero Content */
@keyframes fadeInContent {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.hero-text,
.stat-item,
.project-item,
.service-item {
    animation: fadeInUp 0.6s ease forwards;
}

.stat-item:nth-child(2) { animation-delay: 0.1s; }
.stat-item:nth-child(3) { animation-delay: 0.2s; }
.stat-item:nth-child(4) { animation-delay: 0.3s; }

.project-item:nth-child(2) { animation-delay: 0.1s; }
.project-item:nth-child(3) { animation-delay: 0.2s; }

/* WordPress Core Styles */
.wp-caption {
    max-width: 100%;
}

.wp-caption img {
    display: block;
    margin: 0 auto;
}

.wp-caption-text {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin-top: 8px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.gallery-item img {
    border-radius: 8px;
}

/* WordPress Blocks */
.wp-block-image {
    margin: 20px 0;
}

.wp-block-quote {
    border-left: 4px solid #1a7a8a;
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: #666;
}

.wp-block-button .wp-block-button__link {
    background: #1a7a8a;
    color: white;
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    font-weight: 500;
}

.wp-block-button .wp-block-button__link:hover {
    background: #156871;
}

/* ===== HERO SECTION STYLES ===== */

/* Fonts are now loaded via WordPress wp_enqueue_style */

/* ===== PRIMARY MENU STYLES ===== */

/* Add font files for Space Grotesk (fallback to Google Fonts) */
@font-face {
  font-family: 'Space Grotesk';
  src: url('fonts/space-grotesk.woff2') format('woff2'),
       url('fonts/space-grotesk.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

:root {
  --font-family-space-grotesk: 'Space Grotesk', sans-serif;
  --text-white: rgba(255, 255, 255, 1);
}

.text-white {
  color: var(--text-white);
}

/* Menu structure */
.site-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  width: 100%;
  background: transparent;
  transition: all 0.3s ease;
}

/* Move header down when admin bar is visible */
body.admin-bar .site-menu {
  top: 32px; /* WordPress admin bar height */
  animation: slideDownAdmin 0.3s ease;
}

/* Admin bar responsive adjustment */
@media screen and (max-width: 782px) {
  body.admin-bar .site-menu {
    top: 46px; /* Mobile admin bar height */
  }
}

/* Smooth animation when admin bar appears */
@keyframes slideDownAdmin {
  from {
    top: 0;
    opacity: 0.8;
  }
  to {
    top: 32px;
    opacity: 1;
  }
}

/* Mobile admin animation */
@media screen and (max-width: 782px) {
  @keyframes slideDownAdmin {
    from {
      top: 0;
      opacity: 0.8;
    }
    to {
      top: 46px;
      opacity: 1;
    }
  }
}

/* Scrolled state with blur and background */
.site-menu.scrolled {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.menu-group {
  width: 100%;
  display: flex;
  justify-content: center;
}

.menu-header {
  position: relative;
  width: 100%;
  height: 110px; /* Set to exactly 110px as requested */
  display: flex;
  align-items: center; /* Vertically center items on desktop and mobile */
  justify-content: space-between;
  padding: 0 var(--layout-gutter);
  transition: all 0.3s ease;
  z-index: 9999; /* Keep header above menu */
  background: transparent;
}

/* Smooth transition for header elements */
.site-menu.scrolled .menu-header {
  height: 78px;
  backdrop-filter: inherit;
  background: transparent;
}

/* Homepage menu with blue background */
body.home .site-menu.scrolled {
  background: rgba(26, 122, 138, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body.home .site-menu.scrolled .site-nav-item,
body.home .site-menu.scrolled .text-white {
  color: #ffffff;
  text-shadow: none;
}

body.home .site-menu.scrolled .site-nav-item.is-active,
body.home .site-menu.scrolled .site-nav-item.is-active .text-white {
  color: #ffffff;
}

body.home .site-menu.scrolled .mobile-menu-toggle span {
  background: #ffffff;
}

/* O-nas page menu with blue background (same as homepage) */
body.has-home-nav .site-menu.scrolled,
body.page-template-page-o-nas .site-menu.scrolled {
  background: rgba(26, 122, 138, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body.has-home-nav .site-menu.scrolled .site-nav-item,
body.has-home-nav .site-menu.scrolled .text-white,
body.page-template-page-o-nas .site-menu.scrolled .site-nav-item,
body.page-template-page-o-nas .site-menu.scrolled .text-white {
  color: #ffffff;
  text-shadow: none;
}

body.has-home-nav .site-menu.scrolled .site-nav-item.is-active,
body.has-home-nav .site-menu.scrolled .site-nav-item.is-active .text-white,
body.page-template-page-o-nas .site-menu.scrolled .site-nav-item.is-active,
body.page-template-page-o-nas .site-menu.scrolled .site-nav-item.is-active .text-white {
  color: #ffffff;
}

body.has-home-nav .site-menu.scrolled .mobile-menu-toggle span,
body.page-template-page-o-nas .site-menu.scrolled .mobile-menu-toggle span {
  background: #ffffff;
}

@media (min-width: 1801px) {
  .menu-header {
    max-width: var(--layout-max-width);
    margin: 0 auto;
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Background Rectangle */
.rectangle-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: transparent;
  z-index: 1;
  transition: background-color 0.3s ease;
}

.site-menu.scrolled .rectangle-background {
  background-color: transparent;
}

/* Match mobile menu background for rectangle when page has hero section */
body.has-hero-section .site-menu.scrolled .rectangle-background {
  background-color: rgba(26, 122, 138, 0.95); /* Same as mobile menu with hero */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Match mobile menu background for rectangle when page doesn't have hero section */
body:not(.has-hero-section) .site-menu.scrolled .rectangle-background {
  background-color: #ffffff; /* Same as mobile menu without hero */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Logo Section */
.logo-section {
  position: relative;
  z-index: 10000; /* Keep logo above menu and header */
  flex-shrink: 0;
  display: flex;
  align-items: center; /* Vertically center logo */
  padding-top: 0; /* Removed fixed padding - using flexbox centering */
  transition: padding-top 0.3s ease;
}

.logo-img,
.custom-logo-link img {
  width: auto;
  height: 50px;
  max-height: 50px;
  max-width: 300px;
  object-fit: contain;
  transition: height 0.3s ease, max-height 0.3s ease, transform 0.3s ease;
}

.custom-logo-link {
  display: inline-flex;
  align-items: center; /* Vertically center logo image */
  line-height: 0;
}

/* Navigation Menu */
.site-nav {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 40px;
  padding-top: 0; /* Removed fixed padding - using flexbox centering */
  transition: padding-top 0.3s ease;
}

/* Hide mobile menu on desktop */
.site-nav-mobile {
  display: none;
}

/* Show mobile menu only on mobile, hide desktop menu */
@media (max-width: 768px) {
  .site-nav-desktop {
    display: none !important;
  }
  
  .site-nav-mobile {
    display: flex;
  }
}

.site-menu.scrolled .logo-img,
.site-menu.scrolled .custom-logo-link img {
  height: 35px;
  max-height: 35px;
}

.site-menu.scrolled .logo-section,
.site-menu.scrolled .site-nav {
  padding-top: 0; /* Maintain vertical centering when scrolled */
}

.site-nav-item {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-family: var(--font-family-space-grotesk);
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  color: var(--text-white);
  transition: opacity 0.3s ease, color 0.3s ease;
  position: relative;
  margin-top: 0;
  padding-top: 0;
  padding-bottom: 6px;
}

.site-nav-item::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 5px;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s ease;
}

.site-nav-item:hover,
.site-nav-item:focus-visible {
  opacity: 0.8;
}

.site-nav-item:hover::after,
.site-nav-item:focus-visible::after {
  transform: scaleX(1);
}

.site-nav-item.is-active::after {
  transform: scaleX(1);
  animation: nav-underline 0.45s ease forwards;
}

.site-nav-item .text-white {
  color: var(--text-white);
  display: inline-block;
}

.site-nav-item:focus-visible {
  outline: none;
}

.site-nav-item:focus-visible::after {
  transform: scaleX(1);
}

@keyframes nav-underline {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes rollDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes rollUp {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(-100%);
    opacity: 0;
  }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 8px;
  z-index: 9999;
  position: relative;
  margin-top: 0;
  width: 40px;
  height: 40px;
  align-self: center;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-white);
  transition: all 0.3s ease;
  display: block;
  transform-origin: center;
  border-radius: 2px;
}

/* Mobile menu toggle animation - Cross (X) when active */
.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
  width: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  transform-origin: center;
}

/* Responsive Design for Menu */
@media (max-width: 1440px) {
  .menu-header {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (max-width: 768px) {
  .menu-header {
    padding-left: 16px;
    padding-right: 16px;
    align-items: center;
    transition: height 0.4s ease-out, padding-top 0.4s ease-out;
  }
  
  /* Shrink menu header when mobile menu is active */
  .menu-header.menu-active {
    height: 78px;
  }
  
  .menu-header.menu-active .logo-section {
    padding-top: 0; /* Maintain vertical centering */
    transition: padding-top 0.4s ease-out;
  }
  
  .menu-header.menu-active .logo-img,
  .menu-header.menu-active .custom-logo-link img {
    height: 35px;
    max-height: 35px;
    transition: height 0.4s ease-out, max-height 0.4s ease-out;
  }
  
  .mobile-menu-toggle {
    display: flex;
    margin-top: 0;
  }
  
  .site-nav,
  .site-nav-mobile {
    display: flex;
    position: fixed;
    top: 110px; /* Start below header on mobile */
    left: 0;
    right: 0;
    width: 100%;
    height: calc(100vh - 110px); /* Full height minus header */
    overflow: hidden;
    background-color: #ffffff; /* White background by default */
    flex-direction: column;
    padding: 0;
    gap: 0;
    z-index: 9998;
    justify-content: flex-start;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease-out, visibility 0.4s ease-out, padding 0.4s ease-out, gap 0.4s ease-out, top 0.4s ease-out;
    max-height: 0;
  }
  
  .site-nav.active,
  .site-nav-mobile.active {
    padding: 20px;
    gap: 20px;
    overflow-y: auto;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    max-height: calc(100vh - 110px);
    background-color: #ffffff; /* White background by default */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
  
  /* Blue background for mobile menu when page has hero-section */
  body.has-hero-section .site-nav.active,
  body.has-hero-section .site-nav-mobile.active {
    background-color: rgba(26, 122, 138, 0.95); /* Blue background */
  }
  
  /* Also keep blue background for homepage and o-nas page (backward compatibility) */
  body.home .site-nav.active,
  body.home .site-nav-mobile.active,
  body.page-template-page-o-nas .site-nav.active,
  body.page-template-page-o-nas .site-nav-mobile.active {
    background-color: rgba(26, 122, 138, 0.95); /* Blue background */
  }
  
  /* Adjust site-nav top position and height when header is shrunk */
  .menu-header.menu-active .site-nav.active,
  .menu-header.menu-active .site-nav-mobile.active {
    top: 78px !important;
    height: calc(100vh - 78px) !important;
    max-height: calc(100vh - 78px) !important;
  }
  
  /* Mobile menu styles - default white background */
  .site-nav-item {
    margin-top: 16px;
    padding: 0;
    border-bottom: none; /* No borders */
    width: 100%;
    text-align: center;
    font-size: 32px;
    color: #1A7A8A; /* Blue text for white background */
  }
  
  .site-nav-item .text-white {
    color: #1A7A8A; /* Blue text for white background */
  }
  
  /* Bottom border when active - blue border for white background */
  .site-nav.active .site-nav-item.is-active,
  .site-nav-mobile.active .site-nav-item.is-active {
    border-bottom: 2px solid #1A7A8A; /* Blue bottom border when active */
  }
  
  /* White text and borders for blue background (when page has hero-section) */
  body.has-hero-section .site-nav.active .site-nav-item,
  body.has-hero-section .site-nav-mobile.active .site-nav-item {
    color: #ffffff; /* White text for blue background */
  }
  
  body.has-hero-section .site-nav.active .site-nav-item .text-white,
  body.has-hero-section .site-nav-mobile.active .site-nav-item .text-white {
    color: #ffffff; /* White text for blue background */
  }
  
  body.has-hero-section .site-nav.active .site-nav-item.is-active,
  body.has-hero-section .site-nav-mobile.active .site-nav-item.is-active {
    border-bottom: 2px solid #ffffff; /* White bottom border when active on blue bg */
  }
  
  /* Also keep white text for homepage and o-nas page (backward compatibility) */
  body.home .site-nav.active .site-nav-item,
  body.home .site-nav-mobile.active .site-nav-item,
  body.page-template-page-o-nas .site-nav.active .site-nav-item,
  body.page-template-page-o-nas .site-nav-mobile.active .site-nav-item {
    color: #ffffff; /* White text for blue background */
  }
  
  body.home .site-nav.active .site-nav-item .text-white,
  body.home .site-nav-mobile.active .site-nav-item .text-white,
  body.page-template-page-o-nas .site-nav.active .site-nav-item .text-white,
  body.page-template-page-o-nas .site-nav-mobile.active .site-nav-item .text-white {
    color: #ffffff; /* White text for blue background */
  }
  
  body.home .site-nav.active .site-nav-item.is-active,
  body.home .site-nav-mobile.active .site-nav-item.is-active,
  body.page-template-page-o-nas .site-nav.active .site-nav-item.is-active,
  body.page-template-page-o-nas .site-nav-mobile.active .site-nav-item.is-active {
    border-bottom: 2px solid #ffffff; /* White bottom border when active on blue bg */
  }
  
  /* Disable hover and active border effect in mobile menu */
  .site-nav.active .site-nav-item:hover::after,
  .site-nav.active .site-nav-item:focus-visible::after,
  .site-nav.active .site-nav-item.is-active::after,
  .site-nav-mobile.active .site-nav-item:hover::after,
  .site-nav-mobile.active .site-nav-item:focus-visible::after,
  .site-nav-mobile.active .site-nav-item.is-active::after {
    transform: scaleX(0);
    display: none;
  }
  
  /* Reset menu items when menu is closed */
  .site-nav-mobile:not(.active) .site-nav-item {
    opacity: 0;
    animation: none;
  }
  
  /* Staggered fade-in animation for mobile menu items */
  .site-nav-mobile.active .site-nav-item {
    opacity: 0;
    animation: fadeInContent 0.6s ease forwards;
  }
  
  /* Stagger animation delays for each menu item */
  .site-nav-mobile.active .site-nav-item:nth-child(1) {
    animation-delay: 0.1s;
  }
  
  .site-nav-mobile.active .site-nav-item:nth-child(2) {
    animation-delay: 0.2s;
  }
  
  .site-nav-mobile.active .site-nav-item:nth-child(3) {
    animation-delay: 0.3s;
  }
  
  .site-nav-mobile.active .site-nav-item:nth-child(4) {
    animation-delay: 0.4s;
  }
  
  .site-nav-mobile.active .site-nav-item:nth-child(5) {
    animation-delay: 0.5s;
  }
  
  .site-nav-mobile.active .site-nav-item:nth-child(6) {
    animation-delay: 0.6s;
  }
  
  .site-nav-mobile.active .site-nav-item:nth-child(7) {
    animation-delay: 0.7s;
  }
  
  .site-nav-mobile.active .site-nav-item:nth-child(8) {
    animation-delay: 0.8s;
  }
}

@media (max-width: 480px) {
  .menu-header {
    padding-left: 16px;
    padding-right: 16px;
    height: 100px; /* Reduced height for mobile */
    align-items: center;
    transition: height 0.4s ease-out, padding-top 0.4s ease-out;
  }
  
  /* Shrink menu header when mobile menu is active on small screens */
  .menu-header.menu-active {
    height: 70px;
  }
  
  .menu-header.menu-active .logo-section {
    padding-top: 0; /* Maintain vertical centering */
  }
  
  .menu-header.menu-active .logo-img,
  .menu-header.menu-active .custom-logo-link img {
    height: 30px;
    max-height: 30px;
  }
  
  .logo-section {
    padding-top: 0; /* Removed fixed padding - using flexbox centering */
    transition: padding-top 0.3s ease;
  }
  
  .logo-img,
  .custom-logo-link img {
    transition: height 0.3s ease, max-height 0.3s ease;
  }
  
  .site-nav {
    top: 100px; /* Start below header on small mobile */
    padding: 0;
    height: calc(100vh - 100px); /* Full height minus header on small mobile */
    max-height: 0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease-out, visibility 0.4s ease-out, padding 0.4s ease-out, gap 0.4s ease-out, top 0.4s ease-out;
  }
  
  .site-nav.active {
    height: calc(100vh - 100px); /* Full height minus header on small mobile */
    padding: 20px;
    max-height: calc(100vh - 100px);
  }
  
  /* Adjust site-nav top position when header is shrunk on small screens */
  .menu-header.menu-active .site-nav.active {
    top: 70px;
    height: calc(100vh - 70px);
    max-height: calc(100vh - 70px);
  }
  
  .mobile-menu-toggle {
    margin-top: 0;
    z-index: 9999; /* Ensure toggle is above menu */
  }
  
  .logo-img,
  .custom-logo-link img {
    height: 30px;
    max-height: 30px;
  }
  
  .site-nav-item {
    font-size: 32px;
  }
}

/* ===== SPECIAL MENU STYLING FOR PROJEKTY PAGE ===== */

/* Projekty page menu styling */
body.post-type-archive-projekty .site-menu {
    background: transparent;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Apple-like easing */
}

/* Scrolled state with blur effect */
body.post-type-archive-projekty .site-menu.scrolled {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Text color changes for projekty page */
body.post-type-archive-projekty .site-nav-item,
body.post-type-archive-projekty .text-white {
    color: #1A7A8A; /* Blue text instead of white */
    transition: color 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

body.post-type-archive-projekty .site-nav-item:hover {
    color: rgba(26, 122, 138, 0.7); /* Blue with opacity on hover */
}

body.post-type-archive-projekty .site-menu.scrolled .site-nav-item,
body.post-type-archive-projekty .site-menu.scrolled .text-white {
    color: #1A7A8A;
    text-shadow: none;
}


body.post-type-archive-projekty .site-menu.scrolled .mobile-menu-toggle span {
    background: #1A7A8A;
}

/* Background rectangle for projekty page */
body.post-type-archive-projekty .rectangle-background {
    background-color: transparent;
    transition: background-color 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

body.post-type-archive-projekty .site-menu.scrolled .rectangle-background {
    background-color: transparent;
}


/* Mobile menu adjustments for projekty page - removed, using unified mobile menu styles */

/* ===== SPECIAL MENU STYLING FOR BLUE NAV PAGES ===== */
body.has-blue-nav .site-menu {
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

body.has-blue-nav .site-menu.scrolled {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

body.has-blue-nav .rectangle-background {
    background-color: transparent;
}

body.has-blue-nav .site-menu.scrolled .rectangle-background {
    background-color: transparent;
}

body.has-blue-nav .site-nav-item,
body.has-blue-nav .text-white {
    color: #1A7A8A;
}

body.has-blue-nav .site-nav-item:hover {
    color: rgba(26, 122, 138, 0.75);
}

body.has-blue-nav .site-nav-item.is-active,
body.has-blue-nav .site-nav-item.is-active .text-white {
    color: #1A7A8A;
}

body.has-blue-nav .site-menu.scrolled .site-nav-item,
body.has-blue-nav .site-menu.scrolled .text-white {
    text-shadow: none;
    color: #1A7A8A;
}

body.has-blue-nav .site-menu.scrolled .site-nav-item.is-active,
body.has-blue-nav .site-menu.scrolled .site-nav-item.is-active .text-white {
    color: #1A7A8A;
}


body.has-blue-nav .mobile-menu-toggle span {
    background: #1A7A8A;
}

body.has-blue-nav .site-menu.scrolled .mobile-menu-toggle span {
    background: #1A7A8A;
}

/* ===== INVERTED NAV (BLUE BACKGROUND, WHITE ELEMENTS) ===== */
body.has-inverted-nav .site-menu {
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

body.has-inverted-nav .site-menu.scrolled {
    background: rgba(26, 122, 138, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

body.has-inverted-nav .rectangle-background {
    background-color: transparent;
}

body.has-inverted-nav .site-menu.scrolled .rectangle-background {
    background-color: transparent;
}

body.has-inverted-nav .site-nav-item,
body.has-inverted-nav .text-white {
    color: #ffffff;
}

body.has-inverted-nav .site-nav-item:hover {
    color: rgba(255, 255, 255, 0.8);
}

body.has-inverted-nav .site-menu.scrolled .site-nav-item,
body.has-inverted-nav .site-menu.scrolled .text-white {
    color: #ffffff;
    text-shadow: none;
}

body.has-inverted-nav .site-menu.scrolled .site-nav-item.is-active,
body.has-inverted-nav .site-menu.scrolled .site-nav-item.is-active .text-white {
    color: #ffffff;
}

body.has-inverted-nav .site-menu.scrolled .mobile-menu-toggle span {
    background: #ffffff;
}

body.has-inverted-nav .mobile-menu-toggle span {
    background: #ffffff;
}

body.has-inverted-nav .logo-section img.logo-img--inverted {
    filter: brightness(0) invert(1);
}

/* has-inverted-nav mobile menu styles - removed, using unified mobile menu styles */

.vyroba-page {
    padding-top: 98px;
}

/* has-blue-nav mobile styles are now the default, so these rules are redundant */
/* Keeping for backwards compatibility but default styles above handle it */

/* ===== ORIGINAL HERO SECTION STYLES ===== */

/* Enhanced hero section */
.hero-section {
    position: relative;
    width: 100vw;
    height: 1160px;
    min-height: 100vh;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
    margin-top: 0;
    padding-top: 32px;
    background-color: #1A7A8A;
}

/* Adjust hero top margin when admin bar is present */
body.admin-bar .hero-section {
    margin-top: 0; /* Keep hero at top, menu will handle admin bar offset */
}

/* Responsive hero height adjustments */
@media (max-width: 1600px) {
    .hero-section {
        height: max(900px, 70vh); /* Responsive height */
    }
}

@media (max-width: 1200px) {
    .hero-section {
        height: max(800px, 70vh);
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: max(700px, 70vh);
    }
}

@media (max-width: 480px) {
    .hero-section {
        height: max(600px, 70vh);
    }
}

.hero-container {
    position: relative;
    width: 100%;
    height: 100%;
    /* Removed max-width constraint for true 100% width */
    margin: 0;
}

/* Background Color Layer */
.hero-background {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background: #1A7A8A;
    z-index: 1;
}

/* Main Hero Image */
.hero-main-image {
    position: absolute;
    width: calc(100% - 32px); /* Full width minus 16px padding on each side */
    height: 720px;
    left: 16px; /* 16px padding-left */
    right: 16px; /* 16px padding-right */
    top: 140px; /* Responsive top padding */
    border-radius: 20px;
    overflow: hidden;
    z-index: 2;
}

.hero-main-image .hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 1.2s ease-out, transform 8s ease-out;
}

/* Fade-in and zoom effect when loaded */
.hero-main-image .hero-img.loaded {
    opacity: 1;
    transform: scale(1.0);
}

/* Fallback: ensure image is visible after 2 seconds even without JS */
@keyframes hero-img-fallback {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.hero-main-image .hero-img:not(.loaded) {
    animation: hero-img-fallback 0.1s ease-out 2s forwards;
}

/* Hero Text Content */
.hero-text-content {
    position: absolute;
    width: calc(100% - 32px); /* Full width minus 16px padding on each side */
    max-width: 1112px;
    height: auto;
    min-height: 168px;
    left: 16px; /* 16px padding-left */
    right: 16px; /* 16px padding-right */
    top: 904px;
    margin-top: 32px;
    z-index: 3;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.5s ease-out 0.5s, transform 1.5s ease-out 0.5s;
}

/* Fade-in text when hero loads */
.hero-section.loaded .hero-text-content {
    opacity: 1;
    transform: translateY(0);
}

/* Fallback: ensure text content is visible after 3 seconds even without JS */
@keyframes hero-text-fallback {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-section:not(.loaded) .hero-text-content {
    animation: hero-text-fallback 0.1s ease-out 3s forwards;
}

.hero-description {
    font-family: 'Arimo', Arial, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 32px;
    line-height: 42px;
    color: #FFFFFF;
    margin: 0;
    padding: 0;
    opacity: 0;
    animation: fadeInContent 0.6s ease forwards;
    animation-delay: 0.3s;
}

/* Fallback: ensure description is visible after 3.5 seconds even without JS */
.hero-section:not(.loaded) .hero-description {
    animation: fadeInContent 0.1s ease forwards 3.5s;
}

/* CTA Button */
.hero-cta {
    position: absolute;
    left: 16px; /* Aligned with image and text padding */
    top: 1078px;
    z-index: 3;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.5s ease-out 0.8s, transform 1.5s ease-out 0.8s;
}

/* Fade-in CTA when hero loads */
.hero-section.loaded .hero-cta {
    opacity: 1;
    transform: translateY(0);
}

.hero-btn {
    font-family: 'Space Grotesk', Arial, sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 16px;
    line-height: 52px;
    text-transform: uppercase;
    font-feature-settings: 'case' on;
    color: #FFFFFF;
    text-decoration: none;
    display: inline-block;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.hero-btn:hover {
    opacity: 0.8;
    transform: translateX(5px);
}

/* Responsive design for hero section */
@media (max-width: 1600px) {
    .hero-section {
        height: 900px;
    }
    
    .hero-main-image {
        width: calc(100% - 48px); /* 24px padding on each side */
        height: 55%;
        left: 24px;
        right: 24px;
        top: 120px; /* Reduced top padding for smaller screens */
    }
    
    .hero-text-content {
        width: calc(100% - 48px);
        left: 24px;
        right: 24px;
        top: 72%;
    }
    
    .hero-description {
        font-size: 28px;
        line-height: 36px;
    }
    
    .hero-cta {
        left: 24px;
        top: 85%;
    }
}

@media (max-width: 1200px) {
    .hero-section {
        height: 800px;
    }
    
    .hero-main-image {
        width: calc(100% - 32px); /* 16px padding on each side */
        height: 50%;
        left: 16px;
        right: 16px;
        top: 100px; /* Further reduced for medium screens */
    }
    
    .hero-text-content {
        width: calc(100% - 32px);
        left: 16px;
        right: 16px;
        top: 70%;
    }
    
    .hero-description {
        font-size: 24px;
        line-height: 32px;
    }
    
    .hero-cta {
        left: 16px;
        top: 85%;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: 700px;
        min-height: 100vh;
    }
    
    .hero-main-image {
        width: calc(100% - 20px); /* 10px padding on each side for mobile */
        height: 45%;
        left: 10px;
        right: 10px;
        top: 80px; /* Reduced top padding for mobile */
        border-radius: 15px;
    }
    
    .hero-text-content {
        width: calc(100% - 20px);
        left: 10px;
        right: 10px;
        top: 65%;
    }
    
    .hero-description {
        font-size: 20px;
        line-height: 28px;
    }
    
    .hero-cta {
        left: 10px;
        top: 85%;
    }
    
    .hero-btn {
        font-size: 14px;
        line-height: 40px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        height: 600px;
    }
    
    .hero-main-image {
        width: calc(100% - 16px); /* 8px padding on each side for small mobile */
        height: 40%;
        left: 8px;
        right: 8px;
        top: 80px; /* Minimal top padding for small screens */
        border-radius: 12px;
    }
    
    .hero-text-content {
        width: calc(100% - 16px);
        left: 8px;
        right: 8px;
        top: 50%;
    }
    
    .hero-description {
        font-size: 18px;
        line-height: 26px;
    }
    
    .hero-cta {
        left: 8px;
        top: 85%;
    }
    
    .hero-btn {
        font-size: 13px;
        line-height: 36px;
    }
}

/* ===== PROJECTS SECTION STYLES ===== */

/* Projects Section */
.projects-section {
    background: #F3F3F3;
    position: relative;
    width: 100%;
    height: auto;
}

.projects-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--layout-gutter);
    max-width: none;
}

@media (min-width: 1801px) {
    .projects-container {
        max-width: var(--layout-max-width);
        padding: 0;
    }
}

/* Filter Links */
.projects-filter {
    position: relative;
    left: var(--layout-gutter);
    top: 36px;
    z-index: 3;
    display: flex;
    gap: 24px;
}

.projects-section__title {
    position: relative;
    left: var(--layout-gutter);
    top: 36px;
    z-index: 3;
    margin: 0;
    font-family: 'Space Grotesk', monospace;
    font-style: normal;
    font-weight: 700;
    font-size: 20px;
    line-height: 26px;
    text-transform: uppercase;
    color: #1A7A8A;
}

.filter-link {
    font-family: 'Space Grotesk', monospace;
    font-style: normal;
    font-weight: 700;
    font-size: 20px;
    line-height: 26px;
    text-transform: uppercase;
    color: #1A7A8A;
    text-decoration: none;
    transition: all 0.3s ease;
}

.filter-link.active {
    text-decoration-line: underline;
}

.filter-link:hover {
    opacity: 0.8;
}

/* Projects Grid */
.projects-grid {
    position: relative;
    width: 100%;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    align-items: stretch;
}

/* Project Cards */
.project-card {
    position: static;
    width: 100%;
    height: 100%;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.6s ease;
    opacity: 0;
    transform: translateY(20px);
}

.project-card.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
}

.project-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    color: inherit;
    text-decoration: none;
}

/* Project Image Container */
.project-image-container {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: #e5e5e5;
}

/* Lazy image wrapper for blurred placeholder effect */
.lazy-image-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Default to 3:2 aspect ratio (suggests sizes rounded to hundreds: 300x200, 3000x2000, etc.) */
    aspect-ratio: 3 / 2;
    min-height: 200px;
}

/* Apply aspect ratio from data-aspect-ratio attribute via JavaScript */
.lazy-image-wrapper[data-aspect-ratio] {
    /* Aspect ratio will be set via inline style by JavaScript from data-aspect-ratio attribute */
}

/* Loaded image inside wrapper */
.lazy-image-wrapper .lazy-loaded-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease-in;
}

/* When image is loaded, hide background and show image */
.lazy-image-wrapper.loaded {
    background-image: none !important;
}

.lazy-image-wrapper.loaded .lazy-loaded-image {
    opacity: 1;
}

/* Hide noscript content when JS is available (it will be cloned by JS) */
.lazy-image-wrapper noscript {
    display: none;
}

/* When JS is disabled, show the noscript image and hide the wrapper background */
.no-js .lazy-image-wrapper {
    background-image: none !important;
}

.no-js .lazy-image-wrapper noscript {
    display: block;
}

.no-js .lazy-image-wrapper noscript img {
    width: 100%;
    height: auto;
    display: block;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Blurred placeholder (always visible until main image loads) */
.project-image.lazy-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(10px);
    transform: scale(1.05);
    opacity: 1;
    transition: opacity 0.6s ease-out;
    z-index: 1;
    will-change: opacity;
}

/* Main image (hidden until loaded, then fades in) */
.project-image.lazy-load {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in;
    z-index: 2;
    will-change: opacity;
}

/* When main image is loaded, fade it in and hide placeholder */
.project-image.lazy-load.loaded {
    opacity: 1;
}

.project-image.lazy-load.loaded ~ .lazy-placeholder {
    opacity: 0;
    pointer-events: none;
}

/* Lazy loading styles for .project-img (used in blocks/projects.php) */
.project-img.lazy-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(10px);
    transform: scale(1.05);
    opacity: 1;
    transition: opacity 0.6s ease-out;
    z-index: 1;
    will-change: opacity;
}

.project-img.lazy-load {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in;
    z-index: 2;
    will-change: opacity;
}

.project-img.lazy-load.loaded {
    opacity: 1;
}

.project-img.lazy-load.loaded ~ .lazy-placeholder {
    opacity: 0;
    pointer-events: none;
}

.project-image.placeholder {
    background: #E5E5E5;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.project-image.placeholder::before {
    content: 'Project Image';
    color: #999;
    font-size: 14px;
}

/* Project Info Overlay */
.project-info-overlay {
    position: static;
    background: #FFFFFF;
    color: #1a7a8a;
    padding: 24px 28px 28px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: center;
}

/* Project Title */
.project-title {
    font-family: 'Space Grotesk', Arial, sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 20px;
    line-height: 1.1;
    text-transform: uppercase;
    margin: 0;
    color: #fff;
}

/* Project Year */
.project-year {
    font-family: 'Arimo', Arial, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 16px;
    text-transform: uppercase;
    margin: 0;
    color: #1A7A8A;
}

/* Text Colors */
.blue-text .project-title,
.blue-text .project-year {
    color: #1A7A8A;
}

.project-info-overlay.blue-text {
    color: #1A7A8A;
}

/* Responsive layout for Projects */
@media (max-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .projects-section {
        height: auto;
        padding: 60px 0;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-filter {
        left: 16px;
        top: 20px;
        flex-wrap: wrap;
    }
    
    .projects-section__title {
        left: 16px;
        top: 20px;
        font-size: 18px;
    }
    
    .filter-link {
        font-size: 18px;
    }
    
    .project-card {
        height: auto;
        margin: 0;
    }
    
    .project-image-container {
        height: 200px;
    }
    
    .project-info-overlay {
        padding: 20px 24px 24px;
    }

    .project-title {
        font-size: 16px;
        line-height: 20px;
    }
    
    .project-year {
        font-size: 12px;
    }
}

/* ===== HOMEPAGE PROJECTS STYLING ===== */

/* Homepage projects block (no filter) */
.projects-section.homepage-projects {
    /* Same styling as main projects but without filter */
}

/* Hide filter on homepage version */
.projects-section.homepage-projects .projects-filter {
    display: none;
}

/* Empty state styling */
.projects-empty {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 3;
}

.projects-empty p {
    font-family: 'Arimo', Arial, sans-serif;
    font-size: 18px;
    color: #1A7A8A;
    margin: 0;
}

/* Responsive adjustments for homepage version */
@media (max-width: 768px) {
    /* no adjustments needed */
}

/* ---------------------------------------------------------------------
 * Custom styling for the Projekty archive page.
 * These rules approximate the intended design:
 * a light grey background, card-like project items with rounded corners,
 * centered titles and years, and two call-to-action sections with teal
 * backgrounds.
 * --------------------------------------------------------------------- */


body.post-type-archive-projekty .main-content {
    background: #F3F3F3;
    padding-top: 128px;
}

body.post-type-archive-projekty .projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
}

@media (max-width: 1200px) {
    body.post-type-archive-projekty .projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    body.post-type-archive-projekty .projects-grid {
        grid-template-columns: 1fr;
    }
    .project-description .project-text {
        font-size: 16px;
        line-height: 24px;
    }
}

.project-item {
    background: #FFFFFF;
    border-radius: 20px;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.02);
    overflow: hidden;
}

.project-img {
    width: 100%;
    height: 357px;
    object-fit: cover;
    border-radius: 20px 20px 0 0;
    display: block;
}

/* Ensure lazy-image-wrapper works for .project-img */
.projects-grid .project-item .lazy-image-wrapper {
    position: relative;
    width: 100%;
    height: 357px;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.projects-grid .project-item .lazy-image-wrapper .project-img {
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 0;
}

.project-info {
    padding: 16px;
    text-align: centre;
    background: #FFFFFF;
}

.project-info h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 26px;
    text-transform: uppercase;
    color: #1A7A8A;
    margin-bottom: 4px;
}

.project-year {
    font-family: 'Arimo', sans-serif;
    font-size: 14px;
    line-height: 16px;
    text-transform: uppercase;
    color: #1A7A8A;
}

.projects-sorting {
    margin-top: 40px;
    margin-bottom: 32px;
}

.projects-sorting .sort-link {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    color: #1A7A8A;
    text-decoration: none;
    border-bottom: none;
}

.projects-sorting .sort-link.active,
.projects-sorting .sort-link:hover {
    text-decoration: underline;
}

/* Modify project card to include accent line and border */
 .project-item {
     position: relative;
     background: #FFFFFF;
     border: 1px solid #E6E6E6;
     border-radius: 20px;
     box-shadow: 0 4px 4px rgba(0, 0, 0, 0.02);
     overflow: hidden;
 }
 .project-item::before {
     content: "";
     position: absolute;
     left: 0;
     top: 0;
     bottom: 0;
     width: 4px;
     background: #EFA664;           /* adjust to your accent colour */
     border-radius: 20px 0 0 20px;
 }
 
/* Responsive breakpoints for homepage projects grid only */
@media (max-width: 1024px) {
    .homepage-projects .projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 768px) {
    .homepage-projects .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* Call-to-action sections */
.cta-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin-top: 64px;
    background: #1A7A8A;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    color: #FFFFFF;
    overflow: hidden;
}

/* (Removed duplicate archive overrides; archive styles live near line ~320) */

.cta-section .cta-content {
    flex: 1 1 50%;
    padding: 60px;
}

.cta-section .cta-image {
    flex: 1 1 50%;
    height: 405px;
    overflow: hidden;
}

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

.cta-section.cta-career .cta-image img {
    border-radius: 0 20px 20px 0;
}

.cta-section.cta-contact .cta-image img {
    border-radius: 20px 0 0 20px;
}

.cta-section .cta-content h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 26px;
    line-height: 33px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.cta-section .cta-content p {
    font-family: 'Arimo', sans-serif;
    font-size: 16px;
    line-height: 26px;
    margin-bottom: 16px;
}

.cta-button {
    display: inline-block;
    border: 2px solid #FFFFFF;
    border-radius: 20px;
    padding: 12px 24px;
    color: #FFFFFF;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 52px;
    text-transform: uppercase;
    text-decoration: none;
}
