/* Lumeya Base: fonts, tokens, reset, global layout and shared structural styles */
/* ==========================================================================
   Zmienne
   ========================================================================== */
:root {
    --color-dark: #050505;
    --color-darker: #020202;
    --color-light: #f6efee;
    --color-gray: #b89ea1;
    --color-accent: #891326;
    --color-accent-strong: #b3162f;
    --color-accent-deep: #30070f;
    --color-overlay: rgba(3, 2, 2, 0.54);
    --color-overlay-dark: rgba(2, 1, 1, 0.84);
    --surface-subtle: rgba(137, 19, 38, 0.14);
    --surface-soft: rgba(137, 19, 38, 0.22);
    --surface-muted: rgba(137, 19, 38, 0.34);
    --surface-hover: rgba(179, 22, 47, 0.38);
    --border-subtle: rgba(179, 47, 70, 0.18);
    --border-soft: rgba(179, 47, 70, 0.34);
    --border-strong: rgba(179, 47, 70, 0.52);
    --shadow-soft: 0 28px 80px rgba(0, 0, 0, 0.5);
    --shadow-card: 0 22px 48px rgba(0, 0, 0, 0.42);
    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --radius-pill: 999px;
    
    --font-primary: 'Manrope', 'Segoe UI', system-ui, sans-serif;
    --font-secondary: 'Source Serif 4', Georgia, 'Times New Roman', serif;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;
    
    --transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.3s ease;
    
    --header-height: 80px;
}

/* ==========================================================================
   Reset i podstawy
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: -0.01em;
    color: var(--color-light);
    background:
        radial-gradient(circle at top, rgba(179, 22, 47, 0.18), transparent 30%),
        radial-gradient(circle at 20% 20%, rgba(90, 10, 24, 0.16), transparent 24%),
        linear-gradient(180deg, #120407 0%, #080304 36%, #020202 100%);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    overflow-y: visible;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

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

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

html {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.28) rgba(255, 255, 255, 0.06);
}

html::-webkit-scrollbar {
    width: 8px;
}

html::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.06);
}

html::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.28);
    border-radius: 999px;
}

html::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.42);
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(22px) saturate(135%);
    -webkit-backdrop-filter: blur(22px) saturate(135%);
    padding: 1.1rem var(--spacing-md);
    border-bottom: 1px solid rgba(179, 47, 70, 0.12);
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease;
}

.home .site-header,
.single-projects .site-header {
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(22px) saturate(135%);
}

@media (min-width: 769px) {
    .site-header {
        background: linear-gradient(to bottom, rgba(4,4,4,0.9), rgba(18,4,7,0.28), transparent);
        backdrop-filter: none;
        border-bottom-color: transparent;
    }
    
    .home .site-header,
    .single-projects .site-header {
        background: linear-gradient(to bottom, rgba(4,4,4,0.9), rgba(18,4,7,0.28), transparent);
        backdrop-filter: none;
        opacity: 0.08;
        pointer-events: none;
    }
    
    .home .site-header:hover,
    .home .site-header:focus-within,
    .home .site-header.is-visible,
    .single-projects .site-header:hover,
    .single-projects .site-header:focus-within,
    .single-projects .site-header.is-visible {
        opacity: 1;
        pointer-events: auto;
        background: linear-gradient(to bottom, rgba(4,4,4,0.94), rgba(24,5,9,0.34), transparent);
    }
}

.site-header__inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
    pointer-events: auto;
}

.site-logo {
    font-family: var(--font-secondary);
    font-size: clamp(1.6rem, 2.4vw, 2rem);
    letter-spacing: 0.06em;
    color: var(--color-light);
    opacity: 0.96;
    text-shadow: 0 0 18px rgba(179, 22, 47, 0.12);
    transition: var(--transition-fast);
}
.site-logo:hover {
    opacity: 1;
    color: var(--color-light);
}

.site-nav__list {
    display: flex;
    gap: var(--spacing-md);
    list-style: none;
}
.site-nav__list a {
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    font-weight: 600;
    opacity: 0.72;
    transition: var(--transition-fast);
}
.site-nav__list a:hover {
    opacity: 1;
    color: #fff2f2;
}

.site-header__right {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 100%;
    margin-left: auto;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 4px;
}
.lang-switch__link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0.45rem 0.7rem;
    border-radius: var(--radius-pill);
    opacity: 0.7;
    transition: all 0.2s ease;
    background: rgba(137, 19, 38, 0.06);
    border: 1px solid transparent;
}
.lang-switch__link:hover {
    opacity: 1;
    background: rgba(137,19,38,0.22);
    border-color: var(--border-soft);
}
.lang-switch__link.is-active {
    opacity: 1;
    background: linear-gradient(180deg, rgba(137,19,38,0.44), rgba(48,7,15,0.72));
    border-color: rgba(179, 47, 70, 0.36);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.lang-switch__separator {
    opacity: 0.3;
    margin: 0 2px;
}

.event-tooltip-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    margin-left: 8px;
}
.event-trigger {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.82rem;
    font-size: 0.85rem;
    opacity: 0.82;
    cursor: default;
    transition: opacity 0.3s ease;
    letter-spacing: 0.5px;
    border-radius: var(--radius-pill);
    background: linear-gradient(180deg, rgba(137, 19, 38, 0.12), rgba(48, 7, 15, 0.34));
    border: 1px solid var(--border-subtle);
    white-space: nowrap;
    line-height: 1;
}
.event-trigger:hover {
    opacity: 1;
}
.event-tooltip {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 280px;
    background: linear-gradient(180deg, rgba(15, 8, 9, 0.96), rgba(6, 4, 4, 0.98));
    backdrop-filter: blur(22px);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: all 0.2s ease;
    pointer-events: none;
    z-index: 1000;
    box-shadow: var(--shadow-soft);
}
.event-tooltip__content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.event-tooltip__title {
    font-size: 0.95rem;
    margin-bottom: 4px;
    line-height: 1.3;
    color: var(--color-light);
    border-bottom: 1px solid var(--border-soft);
    padding-bottom: 8px;
}
.event-tooltip__location,
.event-tooltip__date {
    font-size: 0.85rem;
    line-height: 1.4;
    color: rgba(255,255,255,0.8);
    display: block;
}
.event-tooltip__link {
    display: inline-block;
    margin-top: 4px;
    font-size: 0.85rem;
    color: var(--color-light);
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    transition: border-color 0.2s ease;
    align-self: flex-start;
}
.event-tooltip__link:hover {
    border-bottom-color: var(--color-light);
}
.event-tooltip-wrapper:hover .event-tooltip,
.event-tooltip.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.site-nav__toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    margin-left: var(--spacing-xs);
}
.site-nav__toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-light);
    position: absolute;
    left: 0;
    transition: var(--transition-fast);
}
.site-nav__toggle span:nth-child(1) { top: 0; }
.site-nav__toggle span:nth-child(2) { top: 9px; }
.site-nav__toggle span:nth-child(3) { top: 18px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    position: relative;
    z-index: 10;
    background:
        linear-gradient(180deg, rgba(137, 19, 38, 0.18), rgba(137, 19, 38, 0)),
        var(--color-darker);
    border-top: 1px solid var(--border-subtle);
    width: 100%;
    clear: both;
}
.site-footer__inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.site-footer__text {
    font-size: 0.9rem;
    opacity: 0.68;
}
.site-footer__social {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    opacity: 0.68;
    transition: var(--transition-fast);
}
.site-footer__social:hover {
    opacity: 1;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.home-section__background {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    background: var(--color-dark);
}
.hero-section__video,
.hero-section__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: 1;
}
.hero-section__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.32) 28%, rgba(14, 3, 6, 0.62) 72%, rgba(3, 2, 2, 0.8) 100%);
    z-index: 2;
}
.hero-section__content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: var(--spacing-md);
    animation: fadeInUp 1.5s ease-out;
}
.hero-section__title {
    font-size: clamp(2rem, 8vw, 4rem);
    margin-bottom: var(--spacing-md);
    line-height: 1.1;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    color: rgba(255, 255, 255, 0.85);
}

/* ==========================================================================
   Works Section - styles for a single full-screen project
   ========================================================================== */
.works-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.works-section__media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: 1;
}
.works-section__media--image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.works-section__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.28) 30%, rgba(14, 3, 6, 0.56) 68%, rgba(3, 2, 2, 0.78) 100%);
    z-index: 2;
    transition: var(--transition);
}
.works-section__content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: var(--spacing-md);
    text-align: center;
}
.works-section__title {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: var(--spacing-xs);
    text-transform: uppercase;
    font-family: var(--font-secondary);
    color: var(--color-light);
}
.works-section__subtitle {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.8;
    letter-spacing: 2px;
    color: var(--color-light);
}
.works-section__button {
    font-size: 1rem;
}

/* ==========================================================================
   About, Contact and Events - shared section styles
   ========================================================================== */
.about-section,
.contact-section,
.events-section {
    background: var(--color-darker);
}
.about-section__content,
.contact-section__content,
.events-section__content {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-xl) var(--spacing-lg);
    text-align: center;
}
.about-section__title,
.contact-section__title,
.events-section__title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
    letter-spacing: 4px;
}
.about-section__text {
    font-size: 1.2rem;
    line-height: 1.8;
    opacity: 0.9;
}
.about-section__text p {
    margin-bottom: var(--spacing-md);
}
.contact-section__info {
    margin-bottom: var(--spacing-md);
}
.contact-section__email,
.contact-section__instagram {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}
.contact-section__email a,
.contact-section__instagram a {
    border-bottom: 1px solid transparent;
    transition: var(--transition-fast);
}
.contact-section__email a:hover,
.contact-section__instagram a:hover {
    border-bottom-color: var(--color-light);
}
.contact-section__note {
    font-size: 1rem;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Events Grid */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}
.event-card {
    background: linear-gradient(180deg, rgba(137, 19, 38, 0.14), rgba(10, 6, 6, 0.92));
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: var(--spacing-lg);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-card);
}
.event-card:hover {
    background: linear-gradient(180deg, rgba(137, 19, 38, 0.22), rgba(14, 7, 8, 0.96));
    border-color: var(--border-soft);
    transform: translateY(-2px);
}
.event-card__link {
    text-decoration: none;
    color: inherit;
    display: block;
}
.event-card__icon {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
    opacity: 0.8;
}
.event-card__title {
    font-size: 1.3rem;
    margin-bottom: var(--spacing-xs);
    font-family: var(--font-secondary);
    line-height: 1.3;
}
.event-card__location {
    font-size: 1rem;
    opacity: 0.7;
    margin-bottom: 4px;
}
.event-card__date {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.5;
}


/* ==========================================================================
   Button
   ========================================================================== */
.button {
    display: inline-block;
    padding: 12px 32px;
    border: 1px solid rgba(255, 240, 240, 0.16);
    background: linear-gradient(180deg, rgba(137, 19, 38, 0.82), rgba(48, 7, 15, 0.96));
    color: var(--color-light);
    font-family: var(--font-primary);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}
.button:hover {
    background: linear-gradient(180deg, rgba(179, 22, 47, 0.92), rgba(76, 10, 22, 0.98));
    color: #fff;
    border-color: rgba(255, 240, 240, 0.24);
    transform: translateY(-1px);
}
.button--outline {
    background: rgba(8, 8, 8, 0.28);
    color: var(--color-light);
    border-color: var(--border-soft);
}



