:root {
    --green: #34D399F2;
    --green-solid: #34D399;
    --orange: #F97316;
    --text-dark: #1a1a1a;
    --text-gray: #4b5563;
    --border-gray: #e5e7eb;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Archivo', sans-serif;
    color: var(--text-dark);
}

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

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

/* ---------- HEADER / MENU ---------- */

header {
    background-color: var(--green);
}

#menu.navbar {
    padding: 0;
}

.menu-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 32px;
}

.navbar-brand {
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
    margin: 0;
}

.navbar-toggler {
    border: none;
    padding: 4px 8px;
    box-shadow: none !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* na velkých obrazovkách je menu vždy rozbalené, vycentrované a tučné */
#menu ul.navbar-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 16px 32px;
    flex-wrap: wrap;
    text-align: center;
    flex: 1;
}

#menu .nav-link {
    color: white;
    font-weight: 700;
    padding: 0;
    transition: opacity 0.2s ease;
}

#menu .nav-link:hover,
#menu .nav-link:focus {
    color: white;
    opacity: 0.8;
}

#menu .nav-link.active {
    text-decoration: underline;
    text-underline-offset: 4px;
}

@media (max-width: 991.98px) {
    .menu-inner {
        padding: 12px 20px;
    }

    #menu ul.navbar-nav {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        text-align: left;
        gap: 4px;
        padding: 8px 4px 16px;
    }

    #menu .nav-link {
        display: block;
        width: 100%;
        padding: 10px 8px;
        border-radius: 6px;
    }

    #menu .nav-link:hover,
    #menu .nav-link:focus {
        background-color: rgba(255, 255, 255, 0.15);
    }
}

/* ---------- BUTTONS ---------- */

.btn {
    display: inline-block;
    position: relative;
    overflow: hidden;
    padding: 10px 28px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid transparent;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

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

.btn:active {
    transform: translateY(0) scale(0.96);
}

.ripple {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: translate(-50%, -50%) scale(0);
    pointer-events: none;
    animation: ripple-effect 0.55s ease-out;
}

.btn-outline .ripple {
    background: rgba(52, 211, 153, 0.35);
}

@keyframes ripple-effect {
    to {
        transform: translate(-50%, -50%) scale(14);
        opacity: 0;
    }
}

.btn-primary {
    background-color: var(--green-solid);
    color: white;
}

.btn-primary:hover {
    background-color: #2bb886;
}

.btn-outline {
    background-color: white;
    color: var(--text-dark);
    border: 1px solid var(--border-gray);
}

.btn-group {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

/* ---------- HERO ---------- */

.hero {
    position: relative;
    min-height: 420px;
    background-image: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0.05)), url('images/hero.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
}

.hero-overlay {
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
}

.hero-overlay h1 {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
}

/* ---------- O NÁS ---------- */

.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.about-image {
    min-height: 320px;
}

.about-content {
    background-color: white;
    padding: 48px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.about-content h2 {
    font-size: 1.75rem;
    margin: 0 0 8px;
}

.quote {
    margin: 0;
    color: var(--text-gray);
    line-height: 1.5;
}

.quote-author {
    margin: -8px 0 8px;
    color: var(--text-gray);
}

.description {
    margin: 0 0 16px;
    color: var(--text-gray);
    line-height: 1.5;
}

/* ---------- STATS ---------- */

.stats {
    background-color: var(--green);
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 32px 48px;
    gap: 32px;
}

.stats-image {
    max-width: 280px;
    border: 3px solid #38bdf8;
    border-radius: 4px;
    overflow: hidden;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    row-gap: 32px;
    column-gap: 32px;
}

.stat {
    display: flex;
    flex-direction: column;
    color: white;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    margin-top: 8px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--orange);
    width: fit-content;
    font-size: 0.95rem;
}

/* ---------- SERVICES ---------- */

.services {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 64px 48px;
    gap: 32px;
    background-color: white;
}

.services-content h2 {
    font-size: 2rem;
    line-height: 1.2;
    margin: 0 0 24px;
}

.services-list {
    display: flex;
    gap: 32px;
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    flex-wrap: wrap;
}

.services-list li {
    color: var(--text-gray);
    padding-bottom: 6px;
}

.services-list li.active {
    color: var(--text-dark);
    border-bottom: 2px solid var(--green-solid);
    font-weight: 600;
}

address {
    font-style: normal;
    color: var(--text-gray);
    line-height: 1.8;
}

.services-image {
    max-width: 360px;
    justify-self: center;
}

/* ---------- CONTACT ---------- */

.contact-banner {
    height: 220px;
}

.contact {
    display: grid;
    grid-template-columns: 1.2fr 1fr auto 1fr;
    align-items: center;
    gap: 24px;
    padding: 40px 48px;
    background-color: white;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
    color: var(--text-gray);
}

.contact-info p {
    margin: 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.contact-weather {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: var(--text-gray);
    border-left: 1px solid var(--border-gray);
    padding-left: 24px;
}

.weather-place {
    font-weight: 600;
    color: var(--text-dark);
}

.weather-temp {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--green-solid);
    border-left: 1px solid var(--border-gray);
    padding-left: 24px;
}

.contact-image {
    max-width: 220px;
    border-radius: 4px;
    overflow: hidden;
    justify-self: end;
}

/* ---------- FOOTER ---------- */

footer {
    background-color: black;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 48px;
    font-size: 0.8rem;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--green-solid);
}

/* ---------- SCROLL REVEAL ANIMACE ---------- */

.reveal,
.reveal-group {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible,
.reveal-group.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal-group {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 900px) {
    .about,
    .services,
    .stats {
        grid-template-columns: 1fr;
    }

    .stats-image {
        max-width: 100%;
        justify-self: center;
    }

    .services-image {
        max-width: 280px;
        order: -1;
    }

    .contact {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .contact-weather,
    .weather-temp {
        border-left: none;
        padding-left: 0;
    }

    .contact-image {
        justify-self: start;
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    #menu ul {
        gap: 12px;
        padding: 16px;
        font-size: 0.85rem;
    }

    .about-image {
        display: none;
    }

    .hero {
        min-height: 320px;
    }

    .hero-overlay {
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .hero-overlay h1 {
        font-size: 1.8rem;
    }

    .about-content,
    .services {
        padding: 32px 24px;
    }

    .btn-group {
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        row-gap: 20px;
        text-align: center;
    }

    .stat {
        align-items: center;
    }

    .services-list {
        justify-content: center;
        gap: 20px;
    }

    .services-content {
        text-align: center;
    }

    .services-list li.active {
        border-bottom-color: transparent;
    }

    address {
        text-align: center;
    }

    .contact-info p {
        justify-content: center;
    }

    .contact-weather {
        align-items: center;
        text-align: center;
    }

    footer {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

@media (max-width: 420px) {
    #menu ul {
        flex-direction: column;
        gap: 10px;
    }
}

/* ---------- PODSTRÁNKY (O nás / Náš tým / Vyplétání) ---------- */

.breadcrumb {
    background-color: #1a1a1a;
    color: #9ca3af;
    padding: 14px 48px;
    font-size: 0.85rem;
}

.breadcrumb a {
    color: var(--green-solid);
    font-weight: 600;
}

.page-content {
    background-color: white;
    padding: 48px;
    max-width: 900px;
    margin: 0 auto;
}

.page-content h1 {
    font-size: 2rem;
    margin: 0 0 24px;
}

.page-content h2 {
    font-size: 1.4rem;
    margin: 32px 0 8px;
}

.page-content h3 {
    font-size: 1.15rem;
    margin: 32px 0 12px;
}

.page-content p {
    color: var(--text-gray);
    line-height: 1.6;
    margin: 0 0 16px;
}

.page-content a {
    color: var(--green-solid);
    font-weight: 600;
}

.page-hero-image {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 24px;
    max-height: 420px;
}

/* Pro portrétní plakáty (např. pozvánky na turnaje) - zobrazí se celé, bez ořezu */
.page-hero-image--poster {
    max-height: none;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.page-hero-image--poster img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.rules-list {
    color: var(--text-gray);
    line-height: 1.7;
    padding-left: 20px;
    margin-bottom: 32px;
}

.rules-list li {
    margin-bottom: 8px;
}

.motto-block {
    background-color: rgba(52, 211, 153, 0.08);
    border-left: 4px solid var(--green-solid);
    padding: 24px 28px;
    border-radius: 8px;
}

.motto-label {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.motto-block .quote,
.motto-block .quote-author {
    color: var(--green-solid);
    font-weight: 600;
}

/* Náš tým */

.team-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.team-card {
    background-color: rgba(52, 211, 153, 0.08);
    border-radius: 10px;
    overflow: hidden;
}

.team-card-header {
    background-color: rgba(52, 211, 153, 0.18);
    padding: 12px 20px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}

.team-card-body {
    display: flex;
    gap: 20px;
    padding: 20px;
    align-items: center;
}

.team-photo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;
}

.team-info p {
    margin: 0 0 4px;
    color: var(--text-gray);
}

.team-role {
    color: var(--green-solid) !important;
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 8px !important;
}

/* Vyplétání - ceník */

.price-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    color: var(--text-gray);
    columns: 1;
}

.price-list.two-col {
    columns: 2;
    column-gap: 32px;
}

.price-list li {
    padding: 6px 0 6px 20px;
    position: relative;
    break-inside: avoid;
}

.price-list li::before {
    content: "›";
    position: absolute;
    left: 0;
    color: var(--orange);
    font-weight: 700;
}

.service-image {
    max-width: 320px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 24px;
}

@media (max-width: 700px) {
    .page-content {
        padding: 32px 20px;
    }

    .team-card-body {
        flex-direction: column;
        text-align: center;
    }

    .price-list.two-col {
        columns: 1;
    }
}

/* ---------- AKTUALITY ---------- */

.news-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.news-card {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    background-color: rgba(52, 211, 153, 0.06);
    border-radius: 10px;
    overflow: hidden;
}

.news-card-image {
    min-height: 180px;
}

.news-card-image--poster img {
    object-fit: contain;
    background-color: #0f2318;
}

.news-card-body {
    padding: 20px 20px 20px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.news-date {
    color: var(--green-solid);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.news-card-body h2 {
    margin: 0;
    font-size: 1.25rem;
}

.news-card-body p {
    margin: 0;
    color: var(--text-gray);
    line-height: 1.5;
}

.news-read-more {
    align-self: flex-start;
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 4px;
}

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

    .news-card-image {
        min-height: 200px;
    }

    .news-card-body {
        padding: 0 20px 20px;
    }
}