/*
Theme Name: Resonans Con Tutti
Author: the Gosmo team
Author URI: https://gosmo.pl/
Version: 1.0
Text Domain: resonans
*/

/* =====================
   SKIP LINK (WCAG 2.4.1)
===================== */
.skip-link {
    position: absolute;
    top: -9999px;
    left: -9999px;
    z-index: 999;
}

.skip-link:focus {
    top: 0;
    left: 0;
    background: var(--wp--preset--color--brand);
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
}

/* =====================
   FOCUS (WCAG 2.4.7)
===================== */
*:focus-visible {
    outline: 3px solid var(--wp--preset--color--brand);
    outline-offset: 2px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--wp--preset--font-family--roboto);
    background: var(--wp--preset--color--white);
    color: var(--wp--preset--color--text-color);
    overflow-x: hidden;
}

/* =====================
   ALIASY ZMIENNYCH CSS
   Naprawa: --brand i --wp--preset--color--brand
   to były dwie różne zmienne. Teraz --brand
   wskazuje na tę samą wartość co theme.json.
===================== */
:root {
    --brand:        var(--wp--preset--color--brand-light);
    --brand2:       var(--wp--preset--color--brand);
    --brand-dark:   var(--wp--preset--color--brand-dark);
    --brand-pale:   var(--wp--preset--color--brand-pale);
    --white:        var(--wp--preset--color--white);
    --black:        var(--wp--preset--color--black);
    --off-white:    var(--wp--preset--color--off-white);
    --light-grey:   var(--wp--preset--color--light-grey);
    --mid-grey:     var(--wp--preset--color--mid-grey);
    --text-color:   var(--wp--preset--color--text-color); /* Zmieniono nazwę zmiennej */
    --text-mid:     var(--wp--preset--color--text-mid);
    --text-light:   var(--wp--preset--color--text-light);
    --text-dark:    var(--wp--preset--color--text-dark);
    --dark-bg:      var(--wp--preset--color--dark-bg);
    --dark-surface: var(--wp--preset--color--dark-surface);
}

/* =====================
   HEADER
===================== */
header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 200;
    backdrop-filter: blur(16px);
}

.resonans-nav-open header {
    backdrop-filter: unset;
}



.admin-bar header { top: 32px; }

/* =====================
   MANIFESTO
===================== */
.section-manifesto {
    background: var(--text-color);
    padding: 6rem 5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.manifesto-quote {
    font-family: var(--wp--preset--font-family--cormorant);
    font-size: clamp(1.7rem, 2.8vw, 2.4rem);
    font-weight: 300;
    font-style: italic;
    color: #fff;
    line-height: 1.48;
    padding-left: 1.8rem;
    border-left: 3px solid var(--brand);
}

.manifesto-quote strong {
    font-style: normal;
    font-weight: 700;
    color: var(--brand);
}

.manifesto-body {
    font-size: 0.88rem;
    font-weight: 300;
    color: rgba(255,255,255,0.70);
    line-height: 1.92;
}

.manifesto-body p { margin-bottom: 1.1rem; }

/* =====================
   DARK WORLD
===================== */
.world-divider {
    height: 72px;
    background: var(--text-color);
    position: relative;
    overflow: hidden;
}

.world-divider::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 100%;
    background: var(--dark-bg);
    clip-path: polygon(0 55%, 100% 0, 100% 100%, 0 100%);
}

.dark-world {
    background: var(--dark-bg);
    position: relative;
    overflow: hidden;
}

.dark-world::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 15% 40%, rgba(232,79,20,0.07) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 20%, rgba(232,79,20,0.04) 0%, transparent 45%);
}

.dark-hero {
    padding: 6rem 5rem 4rem;
    position: relative;
    z-index: 2;
}

.dark-eyebrow {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 1.2rem;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.dark-eyebrow::before { content: '///'; color: var(--brand-dark); }

.dark-title {
    font-family: var(--wp--preset--font-family--roboto-condensed);
    font-weight: 900;
    font-size: clamp(4.5rem, 10vw, 9rem);
    line-height: 0.9;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin-bottom: 1.4rem;
}

.dark-title-solid { color: #fff; display: block; }

.dark-title-outline {
    display: block;
    -webkit-text-stroke: 2px var(--brand);
    color: transparent;
}

.dark-subtitle {
    font-family: var(--wp--preset--font-family--cormorant);
    font-size: 1.12rem;
    font-style: italic;
    font-weight: 300;
    color: rgba(255,255,255,0.60);
}

.genres-section {
    padding: 0 5rem 5rem;
    position: relative;
    z-index: 2;
}

.genres-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5px;
    background: rgba(232,79,20,0.1);
}

.genre-card {
    background: var(--dark-bg);
    padding: 2.4rem 1.8rem;
    transition: background 0.32s;
}

.genre-card:hover { background: #170e09; }
.genre-icon { font-size: 2.3rem; margin-bottom: 0.9rem; display: block; }

.genre-name {
    font-family: var(--wp--preset--font-family--roboto-condensed);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.02em;
    color: #fff;
    margin-bottom: 0.28rem;
    text-transform: uppercase;
}

.genre-tag {
    font-size: 0.70rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 0.75rem;
}

.genre-desc {
    font-size: 0.8rem;
    font-weight: 300;
    color: rgba(255,255,255,0.60);  
    line-height: 1.72;
}

.dark-stats {
    padding: 4rem 5rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    border-top: 1px solid rgba(232,79,20,0.12);
    border-bottom: 1px solid rgba(232,79,20,0.12);
    position: relative;
    z-index: 2;
}

.dark-stat { text-align: center; }

.dark-stat-num {
    font-family: var(--wp--preset--font-family--roboto-condensed);
    font-weight: 900;
    font-size: 3.6rem;
    line-height: 1;
    color: var(--brand);
    margin-bottom: 0.38rem;
}

.dark-stat-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    line-height: 1.6;
}

.dark-events {
    padding: 5rem;
    position: relative;
    z-index: 2;
}

.dark-section-title {
    font-family: var(--wp--preset--font-family--roboto-condensed);
    font-weight: 900;
    font-size: 2.4rem;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 2.2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    letter-spacing: 0.02em;
}

.dark-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, rgba(232,79,20,0.4), transparent);
}

.dark-events-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.d-event-row {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    gap: 2rem;
    align-items: center;
    padding: 1.4rem 1.8rem;
    background: rgba(255,255,255,0.02);
    border: 1px solid transparent;
    transition: all 0.24s;
}

.d-event-row:hover {
    background: rgba(232,79,20,0.05);
    border-color: rgba(232,79,20,0.2);
}

.d-event-date {
    text-align: center;
    border-right: 1px solid rgba(232,79,20,0.18);
    padding-right: 2rem;
}

.d-event-day {
    font-family: var(--wp--preset--font-family--roboto-condensed);
    font-weight: 900;
    font-size: 2rem;
    color: var(--brand);
    line-height: 1;
}

.d-event-mon {
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
}

.d-event-title {
    font-family: var(--wp--preset--font-family--roboto-condensed);
    font-weight: 700;
    font-size: 1.05rem;
    color: #fff;
    margin-bottom: 0.25rem;
}

.d-event-loc {
    font-size: 0.76rem;
    font-weight: 300;
    color: rgba(255,255,255,0.60);
}

.d-event-badge {
    font-size: 0.52rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 0.32rem 0.8rem;
    border: 1.5px solid var(--brand);
    color: var(--brand);
    white-space: nowrap;
}

.dark-cta {
    padding: 5rem;
    text-align: center;
    border-top: 1px solid rgba(232,79,20,0.1);
    position: relative;
    z-index: 2;
}

.dark-cta-title {
    font-family: var(--wp--preset--font-family--cormorant);
    font-size: 2.2rem;
    font-weight: 300;
    font-style: italic;
    color: #fff;
    margin-bottom: 0.55rem;
}

.dark-cta-sub {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    margin-bottom: 2.4rem;
    padding: 10px;
}

.dark-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    background: var(--brand);
    padding: 1rem 2.4rem;
    transition: all 0.24s;
}

.dark-cta-btn:hover {
    background: var(--brand-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(232,79,20,0.35);
}


/* =====================
   ANIMACJE
===================== */
.fade-in {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Fallback gdy JS nie działa — treść zawsze widoczna (WCAG 1.3.1) */
@media (prefers-reduced-motion: reduce) {
    .fade-in {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

.fd1 { transition-delay: 0.1s; }
.fd2 { transition-delay: 0.2s; }
.fd3 { transition-delay: 0.3s; }
.fd4 { transition-delay: 0.4s; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* =====================
   RESPONSYWNOŚĆ
===================== */
@media (max-width: 1024px) {
    .hero { grid-template-columns: 1fr; min-height: 80vh; }
    .hero-panel { max-width: 100%; padding: 2.5rem; }
}

@media (max-width: 768px) {
    .hero { min-height: 70vh; }
    .hero-panel { max-width: 100%; padding: 2rem; background: rgba(255,255,255,0.85); }
    .hero-eyebrow { font-size: 0.58rem; }
    .hero-title { font-size: clamp(2rem, 5vw, 3rem); }
    .hero-subtitle { font-size: 1rem; }
    .hero-desc { font-size: 0.80rem; }
    .hero-badges { gap: 0.5rem; flex-wrap: wrap; }
    .hero-badge { padding: 0.32rem 0.65rem; font-size: 0.60rem; }
    .hero-cta { padding: 0.70rem 1.4rem; font-size: 0.65rem; }

    .slider-dots { bottom: 1rem; right: 1rem; gap: 0.35rem; }
    .slider-dot { width: 6px; height: 6px; }
    .slider-dot.active { width: 18px; }
}

@media (max-width: 480px) {
    .hero { min-height: 60vh; }
    .hero-panel { padding: 1.5rem; background: rgba(255,255,255,0.90); }
    .hero-eyebrow { font-size: 0.50rem; }
    .hero-title { font-size: clamp(1.6rem, 5vw, 2.2rem); line-height: 1; }
    .hero-subtitle { font-size: 0.90rem; margin-bottom: 1rem; }
    .hero-desc { font-size: 0.75rem; margin-bottom: 1rem; }
    .hero-badges { flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
    .hero-badge { width: 100%; padding: 0.28rem 0.55rem; font-size: 0.55rem; }
    .hero-cta { width: 100%; padding: 0.60rem 1rem; font-size: 0.60rem; }

    .slider-dots { bottom: 0.75rem; right: 0.75rem; gap: 0.30rem; }
    .slider-dot { width: 5px; height: 5px; }
    .slider-dot.active { width: 14px; }

    .members-grid { grid-template-columns: 1fr; }
    .genres-grid { grid-template-columns: 1fr; }
    .dark-stats { grid-template-columns: 1fr; padding: 2rem 1rem; }
}

@media (max-width: 700px) {
    .main-footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}