@import url('https://fonts.googleapis.com/css2?family=Georama:ital,wght@0,100..900;1,100..900&display=swap');

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

html {
    scroll-behavior: smooth;
    background-color: #000;
    background-image: url('../images/Pozadie.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

h2 {
    font-size: 1.75rem;
    margin-bottom: 24px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 24px;
    text-transform: uppercase;
    font-weight: 600;
}

body {
    min-height: 100svh;
    font-family: 'Georama', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #eaeaea;
    background: transparent;
}

/* Fixné pozadie */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url('../images/Pozadie.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: -1;
}

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

/* ========================
   LAYOUT
======================== */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 40px 0;
}

/* ========================
   HERO
======================== */
#hero {
    display: flex;
    align-items: center;
    background: transparent;
    text-align: center;
}

#hero .container {
    width: 100%;
}

.hero-logo {
    display: block;
    max-width: 480px;
    width: 100%;
    height: auto;
    margin: 0 auto 32px;
}

#hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 32px;
}

.hero-split {
    display: flex;
    gap: 48px;
    align-items: flex-start;
}

.hero-split-img {
    flex: 1;
}

.hero-split-img img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.hero-split-title {
    font-size: clamp(1.4rem, 3vw, 2rem);
    margin-bottom: 16px;
}

.hero-split-text {
    font-size: clamp(1rem, 2vw, 1.2rem);
    opacity: 0.85;
    margin-bottom: 32px;
    line-height: 1.6;
}

.hero-split-content {
    flex: 1;
    text-align: left;
}

.hero-split-content .hero-split-title {
    margin-bottom: 16px;
}

.hero-split-content .hero-split-text {
    margin-bottom: 32px;
}

@media (max-width: 768px) {
    .content-split {
        flex-direction: column;
        gap: 24px;
    }

    .hero-split {
        flex-direction: column;
        gap: 24px;
    }

    .hero-split-img {
        width: 100%;
    }

    .hero-split-img img {
        transform: none;
        max-width: 100%;
        height: auto;
    }

    .hero-split-title {
        margin-bottom: 16px;
    }

    .hero-split-text {
        margin-bottom: 32px;
    }

    .partners-grid {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 24px;
    }
}

/* ========================
   CONTENT SPLIT
======================== */
.content-split {
    display: flex;
    gap: 48px;
    align-items: flex-start;
}

.content-split-img {
    flex: 1;
    padding: 12px;
    background: #eaeaea;
    border-radius: 6px;

}

.content-split-img img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.content-split-content {
    flex: 2;
    text-align: left;
}

.content-split-content h2 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    margin-bottom: 16px;
}

.content-split-content p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    opacity: 0.85;
    margin-bottom: 32px;
    line-height: 1.6;
    color: #eaeaea
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background: #882524;
    color: #eaeaea;
    border-radius: 10px;
    font-weight: 700;
    transition: background 0.2s;
    text-transform: uppercase;
    text-decoration: none;
}

.btn:hover {
    background: #6b1c1b;
}

/* ========================
   O NÁS
======================== */
#about {
    background: transparent;
}




/* ========================
   SLUŽBY
======================== */
#services {
    background: transparent;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.service-card {
    padding: 32px 24px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: box-shadow 0.2s;
}

.service-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.service-card h3 {
    margin-bottom: 12px;
    font-size: 1.2rem;
}

/* ========================
   ČASOVÁ OS
======================== */
#timeline {
    background: transparent;
}
.timeline-grid {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.timeline-row {
    display: flex;
    align-items: flex-start;
}

.timeline-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.timeline-date {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #eaeaea;
    background: #882524;
    padding: 3px 10px;
    border-radius: 3px;
    margin-bottom: 12px;
    display: inline-block;
}

/* Node + connecting line */
.timeline-node-wrap {
    width: 100%;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.timeline-node-wrap::before,
.timeline-node-wrap::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(136, 37, 36, 0.5);
}

.timeline-item:first-child .timeline-node-wrap::before {
    background: transparent;
}

.timeline-item:last-child .timeline-node-wrap::after {
    background: transparent;
}

.timeline-node {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #882524;
    flex-shrink: 0;
    box-shadow: 0 0 0 4px rgba(136, 37, 36, 0.2);
}

/* Content */
.timeline-content h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #eaeaea;
}

.timeline-content p {
    font-size: 0.9rem;
    opacity: 0.75;
    line-height: 1.5;
}

/* Image */
.timeline-img {
    margin: 20px 0 0;
    width: 100%;
    height: 100%;
    border-radius: 6px;
    overflow: hidden;
}

.timeline-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Stats */
.timeline-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #eaeaea;
    background: #882524;
    line-height: 1;
    padding: 4px 12px;
    border-radius: 5px;
    display: inline-block;
}

.stat-label {
    font-size: 0.75rem;
    opacity: 0.65;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ========================
   INSTAGRAM REELS
======================== */
#reels {
    background: transparent;
    overflow: hidden;
}

.reels-track-wrap {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #882524 rgba(136, 37, 36, 0.2);
    margin-left: calc(max((100% - 1100px) / 2, 0px) + 24px);
    margin-right: calc(max((100% - 1100px) / 2, 0px) + 24px);
    padding: 0 0 16px 0;
    cursor: grab;
}

.reels-track-wrap:active {
    cursor: grabbing;
}

.reels-track-wrap::-webkit-scrollbar {
    height: 4px;
}

.reels-track-wrap::-webkit-scrollbar-track {
    background: rgba(136, 37, 36, 0.2);
    border-radius: 2px;
}

.reels-track-wrap::-webkit-scrollbar-thumb {
    background: #882524;
    border-radius: 2px;
}

.reels-track {
    display: flex;
    gap: 16px;
    width: max-content;
    align-items: flex-start;
}

.reel-item {
    flex-shrink: 0;
    width: 200px;
}

.reel-item iframe {
    display: block;
    width: 200px;
    height: 356px; /* 9:16 */
    border: none;
    border-radius: 8px;
    overflow: hidden;
}

/* ========================
   PARTNERI
======================== */
#partners {
    background: transparent;
}

.partners-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 60px;
}

.partner-item {
    display: block;
    align-content: flex-start;
}

.partner-item:hover {
    opacity: 1;
}

.partner-item img {
    max-width: 160px;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* ========================
   KONTAKT
======================== */
#contact {
    background: transparent;
}

#contact p {
    margin-bottom: 8px;
    font-size: 1.05rem;
}

#contact a:hover {
    text-decoration: underline;
}

/* ========================
   FOOTER
======================== */
footer {
    background: transparent;
    color: rgba(234, 234, 234, 0.7);
    padding: 24px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* ========================
   RESPONSIVE
======================== */
@media (max-width: 768px) {
    html,
    body {
        overflow-x: hidden;
    }

    body::before {
        top: -2px;
        left: -2px;
        width: calc(100vw + 4px);
        height: calc(100dvh + 4px);
    }

    .timeline-grid {
        padding-left: 24px;
        border-left: 1px solid rgba(136, 37, 36, 0.5);
    }

    .partners-grid {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 60px;
    }

    .partner-item {
        width: fit-content;
        text-align: left;
    }

    .timeline-row {
        flex-direction: column;
        gap: 0;
    }

    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        padding: 0 0 36px 20px;
        position: relative;
    }

    .timeline-node-wrap {
        position: absolute;
        left: -7px;
        top: 4px;
        width: auto;
        margin-bottom: 0;
    }

    .timeline-node-wrap::before,
    .timeline-node-wrap::after {
        display: none;
    }

    .timeline-img {
        max-width: 100%;
        height: 200px;
    }

    .timeline-stats {
        justify-content: flex-start;
    }
}

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