/* ===================== HERO SECTION - POPRAWIONE ===================== */
.hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
    width: 100%;
    margin-top: -70px;
    padding-top: 70px;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Cover the hero area so the video fills the section while preserving quality */
    object-fit: cover;
    z-index: 1;
    background-color: var(--primary-dark);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(8, 47, 97, 0.7) 0%, 
        rgba(10, 51, 94, 0.8) 50%, 
        rgba(8, 47, 97, 0.7) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    width: 100%;
    padding: 0 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards 0.5s;
}

/* ===================== TYPOGRAPHY & LINES - POPRAWIONE ===================== */
.hero-title-container {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: clamp(0.8rem, 1.5vw, 1rem);
    color: rgba(255, 255, 255, 0.95);
    animation: fadeInUp 1s ease forwards 0.8s;
    opacity: 0;
    font-family: 'Michroma', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.8em;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    line-height: 1.3;
    display: block;
    margin-bottom: 0.5rem;
    padding: 0 15px;
}

.hero-title-wrapper {
    position: relative;
    display: inline-block;
    padding: 0 20px;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--white);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    line-height: 1.2;
    margin: 0;
    display: inline-block;
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease forwards 0.8s;
    opacity: 0;
    font-weight: 500;
    font-family: 'Michroma', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    white-space: nowrap; /* keep title on a single line */
}

/* Linie po bokach tytułu - POPRAWIONE POZYCJONOWANIE */
.hero-title-wrapper::before,
.hero-title-wrapper::after {
    content: "";
    position: absolute;
    top: 50%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.9) 30%, 
        rgba(255, 255, 255, 0.95) 100%);
    transform: translateY(-50%);
    animation: lineDraw 1.5s ease-out forwards 1.8s;
    opacity: 0;
    z-index: 1;
    width: 0;
}

.hero-title-wrapper::before {
    right: 100%;
    margin-right: 20px;
    background: linear-gradient(to left, 
        transparent 0%, 
        rgba(255, 255, 255, 0.9) 30%, 
        rgba(255, 255, 255, 0.95) 100%);
}

.hero-title-wrapper::after {
    left: 100%;
    margin-left: 20px;
    background: linear-gradient(to right, 
        transparent 0%, 
        rgba(255, 255, 255, 0.9) 30%, 
        rgba(255, 255, 255, 0.95) 100%);
}

/* Animacja rysowania linii */
@keyframes lineDraw {
    0% {
        opacity: 0;
        width: 0;
    }
    50% {
        opacity: 0.7;
    }
    100% {
        opacity: 1;
        width: min(100px, 15vw);
    }
}

.hero-description {
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    margin: 1.5rem auto 2rem;
    color: rgba(255, 255, 255, 0.95);
    animation: fadeInUp 1s ease forwards 1s;
    opacity: 0;
    font-family: 'Raleway', sans-serif;
    font-weight: 400;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    max-width: 500px;
    line-height: 1.7;
    padding: 0 15px;
}

.hero .btn {
        display: inline-block;
        padding: 12px 25px;
        background-color: var(--accent-gold);
        color: var(--primary-blue);
        text-decoration: none;
        border-radius: 30px;
        font-family: 'Raleway', sans-serif;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        transition: var(--transition);
        border: none;
        cursor: pointer;
        position: relative;
        overflow: hidden;
        animation: fadeInUp 1s ease forwards 1.2s;
        opacity: 0;
    }
    
    .hero .btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
        transition: var(--transition-slow);
    }
    
    .hero .btn:hover::before {
        left: 100%;
    }
    
    .hero .btn:hover {
        background-color: var(--primary-blue);
        color: var(--white);
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
/* ===================== ANIMACJE ===================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================== RESPONSYWNOŚĆ ===================== */
@media (max-width: 992px) {
    .hero {
        height: 60vh;
        min-height: 450px;
    }
    
    .hero-subtitle {
        letter-spacing: 0.6em;
        padding: 0 10px;
    }
    
    .hero-title-wrapper {
        padding: 0 15px;
    }
    
    .hero-title-wrapper::before,
    .hero-title-wrapper::after {
        margin-left: 15px;
        margin-right: 15px;
    }
    
    .hero-description {
        padding: 0 10px;
        margin: 1.25rem auto 1.75rem;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 60vh;
        min-height: 400px;
    }
    
    .hero-subtitle {
        letter-spacing: 0.5em;
        font-size: 0.75rem;
    }
    
    .hero-title-wrapper {
        padding: 0 10px;
    }
    
    .hero-title-wrapper::before,
    .hero-title-wrapper::after {
        margin-left: 10px;
        margin-right: 10px;
    }
    
    @keyframes lineDraw {
        100% {
            width: min(70px, 10vw);
        }
    }
    
    .hero-description {
        padding: 0;
        margin: 1rem auto 1.5rem;
        max-width: 90%;
    }
    
    .hero-btn {
        min-height: 44px;
        min-width: 44px;
    }
}

@media (max-width: 576px) {
    .hero {
        height: 55vh;
        min-height: 350px;
    }
    
    .hero-title {
        white-space: normal;
        letter-spacing: 0.15em;
    }
    
    .hero-subtitle {
        letter-spacing: 0.4em;
        font-size: 0.7rem;
        padding: 0 8px;
    }
    
    .hero-title-wrapper {
        padding: 0 8px;
    }
    
    .hero-title-wrapper::before,
    .hero-title-wrapper::after {
        margin-left: 8px;
        margin-right: 8px;
    }
    
    @keyframes lineDraw {
        100% {
            width: min(50px, 8vw);
        }
    }
    
    .hero-description {
        font-size: 0.85rem;
        margin: 0.875rem auto 1.25rem;
        line-height: 1.6;
    }
    
    .hero-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 50vh;
        min-height: 300px;
    }
    
    .hero-subtitle {
        letter-spacing: 0.3em;
        font-size: 0.65rem;
        padding: 0 5px;
    }
    
    .hero-title {
        white-space: normal; /* Allow wrapping on narrow screens */
        letter-spacing: 0.15em; /* Reduce spacing to fit better */
    }
    
    .hero-content {
        padding: 0 15px;
    }
    
    .hero-description {
        font-size: 0.8rem;
        margin: 0.75rem auto 1rem;
    }
}

/* ===================== WCAG AAA ===================== */
/* Focus states */
.hero-btn:focus {
    outline: 3px solid var(--white);
    outline-offset: 2px;
}

/* Wysoki kontrast */
@media (prefers-contrast: high) {
    .hero-title-wrapper::before,
    .hero-title-wrapper::after {
        background: #ffffff;
        height: 3px;
    }
    
    .hero-subtitle,
    .hero-title,
    .hero-description {
        color: #ffffff !important;
        font-weight: 600;
        text-shadow: 0 2px 0 #000000;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .hero-content,
    .hero-subtitle,
    .hero-title,
    .hero-description,
    .hero-btn,
    .hero-title-wrapper::before,
    .hero-title-wrapper::after {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    
    .hero-title-wrapper::before,
    .hero-title-wrapper::after {
        width: min(80px, 12vw);
        opacity: 0.7;
    }
    
    .hero-btn:hover {
        transform: none;
    }
}

/* Landscape na mobile */
@media (max-width: 992px) and (orientation: landscape) {
    .hero {
        height: 85vh;
        min-height: 400px;
    }
    
    .hero-title {
        font-size: clamp(1.6rem, 4vw, 2rem);
    }
    
    .hero-subtitle {
        font-size: 0.7rem;
        letter-spacing: 0.5em;
        margin-bottom: 0.3rem;
    }
    
    .hero-description {
        font-size: 0.8rem;
        margin: 0.75rem auto 1rem;
    }
    
    .hero-btn {
        padding: 0.625rem 1.125rem;
        font-size: 0.8rem;
    }
}
