
/* =====================================================
   THEME
===================================================== */

:root {
    --trophy-blue: #0b5cc6;
    --trophy-cyan: #00c7c7;
    --trophy-ink: #0f223a;
    --trophy-muted: #6c7a90;
    --trophy-bg: #f4f8ff;

    --font-heading: "Ubuntu", "Inter", "Segoe UI", system-ui, sans-serif;
    --font-body: "Roboto", "Inter", "Segoe UI", system-ui, sans-serif;
}

/* =====================================================
   BASE
===================================================== */

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--trophy-ink);
    margin: 0;
}

header {
    backdrop-filter: saturate(180%) blur(6px);
    background: rgba(255,255,255,.9);
}


/* =====================================================
   TYPOGRAPHY
===================================================== */

h1, h2, h3, h4 {
    font-family: var(--font-heading), serif;
    font-weight: 600; /* zjemněno kvůli Ubuntu */
    letter-spacing: -0.015em;
    margin: 1.5em 0 .75em;
}

h1 {
    font-size: clamp(2.4rem, 4vw, 3.2rem);
    color: var(--trophy-blue);
}

h2 {
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    color: var(--trophy-blue);
}

h3 {
    font-size: 1.6rem;
    color: var(--trophy-blue);
}

h4 {
    font-size: .9rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--trophy-blue);
}

p {
    margin-bottom: 1rem;
}
b, strong {
    font-weight: bolder;
    color: #0c5cc6;
}

.margin-0 {
    margin: 0 !important;
}
.margin-heading {
    margin: 1rem !important;
}

.text-white {
    color: #fff;
}
.text-muted {
    color: var(--trophy-muted) !important;
}

/* =====================================================
   BURGER TOGGLE
===================================================== */

.navbar-toggler {
    border: none;
    padding: .25rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.burger {
    width: 32px;
    height: 22px;
    position: relative;
    display: inline-flex;
    flex-direction: column;
    justify-content: space-between;
}

.burger span {
    height: 3px;
    width: 100%;
    background: var(--trophy-blue);
    border-radius: 2px;
    transition: transform .35s ease, opacity .25s ease;
}

/* ANIMACE → KŘÍŽEK */
.burger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.burger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* =====================================================
   NAV COLLAPSE ANIMATION
===================================================== */

@media (max-width: 991px) {
    .navbar-collapse {
        background: #fff;
        border-radius: 16px;
        padding: 1rem 1.25rem;
        margin-top: .75rem;
        box-shadow: 0 20px 40px rgba(0,0,0,.08);
        transform-origin: top;
        animation: navFade .35s ease forwards;
    }

    @keyframes navFade {
        from {
            opacity: 0;
            transform: translateY(-8px) scale(.98);
        }
        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }
}



/* =====================================================
   HEADING UNDERLINE
===================================================== */

.heading-underline {
    position: relative;
    display: inline-block;
    padding-bottom: .35rem;
}

.heading-underline::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--trophy-blue);
    transition: width .3s ease;
}

/* volitelný hover efekt */
.heading-underline:hover::after {
    width: 60px;
}


/* =====================================================
   NAVBAR
===================================================== */

.navbar {
    background: transparent;
    border-bottom: 1px solid rgba(0,0,0,.05);
}

.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--trophy-blue);
}

.nav-link {
    position: relative;
    font-weight: 500;
    color: var(--trophy-blue);
    padding: .5rem 0;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--trophy-blue);
    transition: width .25s ease;
}

.nav-link:hover {
    color: var(--trophy-blue);
}

.nav-link:hover::after {
    width: 100%;
}
@media (max-width: 991px) {
    .navbar-nav {
        gap: .75rem;
    }

    .nav-link {
        font-size: 1.1rem;
    }
}

/* =====================================================
   SECTIONS
===================================================== */

section {
    padding: 4rem 0;
    scroll-margin-top: 100px;
}

.hero {
    background: linear-gradient(180deg, var(--trophy-bg), #fff);
}

.section-dark {
    background: var(--trophy-blue);
    color: #fff;
}

.section-dark h2,
.section-dark p {
    color: #fff;
}

/* =====================================================
   BUTTONS
===================================================== */

.btn {
    border-radius: 999px;
    font-weight: 700;
    padding: .7rem 1.4rem;
}

.btn-primary {
    background: var(--trophy-blue);
    border: none;
}

.btn-primary:hover {
    background: #094aa0;
}

.btn-cyan {
    background: var(--trophy-cyan);
    color: #fff;
    border: none;
}

.btn-cyan:hover {
    background: #02b0b0;
    color: #fff;
}

.button-bordered {
    background: #fff;
    color: var(--trophy-blue);
    border: 2px solid;
}
/* =====================================================
   BUTTON ARROW
===================================================== */

.btn-arrow {
    position: relative;
    padding-right: 2.4rem; /* místo pro šipku */
}

.btn-arrow::after {
    content: "→";
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    transition: transform .25s ease;
}

.btn-arrow:hover::after {
    transform: translate(4px, -50%);
}

/* =====================================================
   CARDS / MEDIA
===================================================== */

.hero-img {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0,0,0,.12);
}

.winner-card h3 {
    color: var(--trophy-blue);
}
.winner-card img {
    border-radius: 12px;
}

/* =====================================================
   FOOTER
===================================================== */

footer {
    background: #f3f6fa;
    padding: 3rem 0 1.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(0,0,0,.1);
    margin-top: 2rem;
    padding-top: 1rem;
    font-size: .9rem;
    color: var(--trophy-muted);
    text-align: center;
}

/* =====================================================
   VOTING PROJECTS
===================================================== */

.project-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0,0,0,.08);
    transition: transform .3s ease, box-shadow .3s ease;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,.12);
}

.project-card img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.project-body {
    padding: 1.25rem;
    text-align: center;
}

.project-body h3 {
    margin-bottom: .5rem;
}

.project-body p {
    color: var(--trophy-muted);
    font-size: .95rem;
}

/* =====================================================
   RULES
===================================================== */

.rules-wrap {
    margin-top: 1.5rem;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0,0,0,.08);
    padding: 1.5rem;
}

.rules-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: .75rem;
}

.rules-list li {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    padding: .9rem 1rem;
    border-radius: 12px;
    background: rgba(11,92,198,.05);
}

.rules-badge {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: var(--trophy-blue);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: .9rem;
    line-height: 1;
}

.rules-actions {
    margin-top: 1.25rem;
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
}

/* Odstraní případný scroll z .row mimo container */
.hero-header {
    width: 100%;
    overflow: hidden;
    padding: 0;
}

.hero-header h1 {
    color: #fff
}

/* Levá část */
.hero-left {
    background-color: var(--trophy-blue);
    color: #fff;
    padding: clamp(40px, 6vw, 100px);
}

/* Pravá část */
.hero-right {
    min-height: 400px;
}

/* Obrázek jako cover */
.hero-img {
    width: 100%;
    height: 100%;
    border-radius: 0;
    object-fit: cover;
}

/* Desktop výška */
@media (min-width: 992px) {
    .hero-header .row {
        min-height: 550px;
    }
}

/* Mobile */
@media (max-width: 991px) {
    .hero-right {
        min-height: 300px;
    }
}

/* Outline button */
.rg-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;

    border: 1.5px solid #cfe1ff;
    color: #fff;
    background: transparent;

    padding: 0.85rem 1.1rem;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;

    transition: all 0.2s ease-in-out;
}

/* Hover efekt */
.rg-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #ffffff;
    color: #ffffff;
}

/* Ikona / šipka */
.rg-btn .arrow {
    display: inline-block;
    width: 1em;
    height: 1em;
}

html {
    scroll-behavior: smooth;
}

.rg-subnav {
    position: sticky;
    top: 95px;
    z-index: 999;
    background: #fff;
    border-bottom: 1px solid #e9ecef;
    padding: .35rem 0;
}

.rg-subnav-inner {
    position: relative;
}

.rg-subnav-list {
    display: flex;
    flex-wrap: nowrap;
    gap: 1.25rem;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    padding: .2rem 0;
    margin: 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.rg-subnav-list::-webkit-scrollbar {
    display: none;
}

.rg-subnav-list .nav-item {
    flex: 0 0 auto;
}

.rg-subnav-list .nav-link {
    display: inline-flex;
    align-items: center;
    font-size: .9rem;
    font-weight: 600;
    color: #6c757d;
    padding: .35rem 0;
    border-bottom: 2px solid transparent;
    transition: all .2s ease;
}

.rg-subnav-list .nav-link:hover {
    color: #0b5cc6;
}

.rg-subnav-list .nav-link.active {
    color: #0b5cc6;
    border-bottom-color: #0b5cc6;
}

.rg-subnav-arrow {
    position: absolute;
    top: 0;
    bottom: 0;
    display: none;
    align-items: center;
    width: 52px;
    pointer-events: none;
    z-index: 2;
}

.rg-subnav-arrow-left {
    left: 0;
    justify-content: flex-start;
    background: linear-gradient(to right, #fff 55%, rgba(255,255,255,0));
}

.rg-subnav-arrow-right {
    right: 0;
    justify-content: flex-end;
    background: linear-gradient(to left, #fff 55%, rgba(255,255,255,0));
}

.rg-subnav-arrow button {
    pointer-events: auto;
    border: 0;
    background: #fff;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    box-shadow: 0 2px 10px rgba(0,0,0,.12);
    font-size: 18px;
    line-height: 1;
    color: #0b5cc6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.rg-subnav-arrow.is-hidden {
    display: none !important;
}

#program {
    padding-top: 1rem;
}

.text-muted.mb-5 {
    margin-bottom: 2rem !important;
}

.rg-anchor {
    scroll-margin-top: 125px;
    padding-top: .25rem;
    margin-bottom: 2rem;
}

.rg-anchor h2 {
    margin-bottom: 1rem !important;
}

@media (max-width: 768px) {
    .rg-subnav {
        /*top: 78px;*/
        padding: .2rem 0;
    }

    .rg-subnav-list {
        gap: .9rem;
        padding-left: 3.25rem;
        padding-right: 3.25rem;
    }

    .rg-subnav-list .nav-link {
        font-size: .8rem;
        padding: .25rem 0;
    }

    .rg-subnav-arrow {
        display: flex;
    }

    .rg-anchor {
        scroll-margin-top: 105px;
    }

    #program {
        padding-top: .75rem;
    }
}




/* BURGER */

.burger{
    border:0;
    background:transparent;
    width:28px;
    height:22px;
    padding:0;
    position:relative;
    display:flex;
    align-items:center;
    justify-content:center;
    z-index:1100;
}

.burger span{
    position:absolute;
    width:100%;
    height:3px;
    background:var(--trophy-blue);
    transition:.35s ease;
}

.burger span:nth-child(1){ top:0; }
.burger span:nth-child(2){ top:9px; }
.burger span:nth-child(3){ bottom:0; }

.burger.active span:nth-child(1){
    top:9px;
    transform:rotate(45deg);
}

.burger.active span:nth-child(2){
    opacity:0;
}

.burger.active span:nth-child(3){
    top:9px;
    transform:rotate(-45deg);
}


/* OVERLAY */

.menu-overlay{
    position:fixed;
    inset:0;

    background:rgba(0,0,0,.35);
    backdrop-filter:blur(6px);

    opacity:0;
    pointer-events:none;

    transition:.35s ease;

    z-index:998;
}

.menu-overlay.show{
    opacity:1;
    pointer-events:auto;
}


/* MOBILE MENU */

.mobile-menu{

    position:fixed;
    top:0;
    right:0;

    width:320px;
    max-width:90%;

    height:100vh;

    background:#fff;

    padding:190px 30px 40px;

    transform:translateX(100%);
    transition:transform .35s ease;

    z-index:999;

    display:flex;
    flex-direction:column;
    gap:22px;

}

.mobile-menu.show{
    transform:translateX(0);
}


/* LINKS */

.mobile-menu a{
    font-size:1.25rem;
    font-weight:400;
    text-decoration:none;
    color:var(--trophy-blue);
    transition:.2s;
}

.mobile-menu a:hover{
    color:var(--trophy-cyan);
    font-weight:400;
}


/* DESKTOP */

@media(min-width:992px){

    .mobile-menu,
    .menu-overlay,
    .burger{
        display:none;
    }

}