:root {
    --primary: #b5177a;
    /* Purpurová z loga ADELI */
    --primary-dark: #8a125d;
    --secondary: #f7580e;
    --secondary-dark: #d32405;
    --dark: #2d2d2d;
    --light: #ededed;
    --white: #ffffff;
    --gray: #666;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark);
    background-image: url(./images/background.png);
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    padding: 0em 0em 10em 0em;
    margin: 0em;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    /* row-gap: 3em; */
    display: grid;
}

main {
    background-color: #f0F0F0;
}


p {
    padding: 0 0;
    margin: 0;
}

/* Navbar */

.navbar {
    padding: 0;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    line-height: 1;
    position: fixed;
    top: -6em;
    display: grid;
    grid-template-columns: min-content auto;
    z-index: 1000;
    width: 100%;
    transition: top 0.4s ease-in-out;
    justify-content: space-between;
    align-content: center;
    align-items: center;
}

.nav-flex {
    display: flex;
    flex-flow: row wrap;
    gap: .5em;
    padding: 1em;
    justify-content: flex-end;
}

.nav-item {
    font-size: .75em;
    text-decoration: none;
    color: black;
    padding: 0em;
}

.more {
    margin: 1em;
}

.navbar.visible {
    top: 0;
}

.navbar i {
    color: #2d2d2d;
}

.navbar .btn-outline {

    border: none;
}

.site-logo {
    height: 4em;
    width: auto;
}

.date-badge {
    font-weight: bold;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 5px 15px;
    border-radius: 5px;
}

/* Hero s tvojím obrázkom */
.hero {
    height: 100vh;
    /*background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(181, 23, 122, 0.5)),
        url('./images/background.png');*/
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: left;
    flex-flow: column;
    align-content: center;
    justify-content: center;
}

.hero-content {
    max-width: 700px;
    padding: 1em;
    border-radius: 1em;
    background: #0009;
    margin: .5em;
}

.hero-cta {
    display: flex;
    flex-flow: row wrap;
    gap: 1em;
}

.hero h1 {
    font-size: 5vh;
    line-height: 1.1;
    padding: 0em;
    text-transform: uppercase;
}

h4 {
    padding: 2em 0 0 0;
}

.badge {
    background: var(--primary);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: bold;
}

.subtitle {
    font-size: 1.3rem;
    margin-bottom: 30px;
}

.suptitle {
    font-size: 1.3rem;
    display: flex;
    gap: 1em;
}

/* Buttons */
.btn-secondary,
.btn-primary {
    background: var(--primary);
    color: white;
    padding: 1em;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
    transition: 0.3s;
    white-space: nowrap;
    width: min-content;
}

.btn-secondary {
    background: var(--secondary);
}

nav .btn-primary {
    margin: 0 1em;
}

.btn-outline {
    border: 2px solid var(--white);
    color: white;
    padding: .5em;
    text-decoration: none;
    border-radius: .5em;
    font-weight: bold;
    display: inline-block;
    transition: 0.3s;
    width: min-content;
    white-space: nowrap;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
}

/* Sekcie */

.grid {
    display: grid;
    /* grid-template-columns: 1.5fr 1fr; */
    /* gap: 3em; */
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

section {
    padding: 4em 0 0 0;
}

h2 {
    font-size: 1.25em;
    color: var(--primary);
    letter-spacing: -0.05em;
    line-height: .9;
    padding: 0 0 0 1em;
}

img.section-image {
    width: 100%;
    display: grid;
}

.section-content {
    padding: 1em;
    display: grid;
    gap: 1em;
}

.center {
    text-align: center;
}

/* Info Card */
.info-card {
    margin: 1em;
    background: #dbdbdb;
    border-radius: 1em;
    border-left: 5px solid var(--primary);
    display: grid;
    grid-template-columns: min-content auto;
    align-items: center;
}

.info-card div {
    padding: 1em 1em 1em 0;
}

.info-card i {
    color: var(--primary);
    margin: .5em;
    font-size: 2em;
}

h3 {
    margin: 0;
    color: var(--primary-dark);
}

.info-card.highlight .section-content {
    background: var(--secondary);
    border-color: var(--secondary-dark);
    color: white;
}

.timeline {
    display: grid;
    background-color: #eaeaea;
    grid-template-columns: min-content auto;
    align-items: flex-end;
}

.time-item {
    font-weight: bold;
}

.timeline>div {
    padding: .5em;
    border-bottom: 1px solid #ddd;
}

.warning-box {
    background: #fff3cd;
    padding: .5em;
    border-radius: 1em;
    /* margin-top: 30px; */
    display: flex;
    align-items: center;
    font-weight: 500;
    /* font-size: 1.25em; */
    gap: 15px;
    border-left: 6px solid #ffc107;
}

/* Súťaž ADELI style */
.hpb .section-content {
    background: var(--primary);
    color: var(--white);
    padding: 1em;
    gap: 1em;
}

.sutaz-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.voucher-count {
    font-size: 2.5rem;
    font-weight: 900;
    margin-top: 20px;
    letter-spacing: 2px;
}

.card {
    background: var(--light-bg);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
}

.card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.footer {
    padding: 1em;
    margin-top: 5em;
    gap: 1em;
    display: grid;
    position: fixed;
    bottom: 0px;
    left: 0;
    right: 0;
    grid-template-columns: auto min-content;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    color: white;
    background-color: transparent;
    padding: 1em;
    text-align: center;
    font-size: 0.9rem;
}

.footer.visible {
    background: var(--dark);

}

.three-colls {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1em;
}

.hpb img {
    width: 100%;
}

.spacer {
    height: 50vh;
}

.partners-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1em;
    width: 100%;
}

.hero .partners-content {
    grid-template-columns: repeat(3, 1fr);
    padding: 3em 0 0 0;
}

.partner {
    padding: 1em;
    border-radius: .5em;
    box-sizing: border-box;
    background-color: white;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 80%;
    aspect-ratio: 3/2;
    width: 100%;
}

.partner.dark {
    background-color: #000;
}


@media screen and (min-width: 600px) {
    .partners-content {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (min-width: 800px) {
    .partners-content {
        grid-template-columns: repeat(6, 1fr);
    }
}

.socials {
    display: grid;
    width: min-content;
    grid-template-columns: repeat(3, 1fr);
    justify-content: center;
    justify-items: center;
    gap: 1em;
}

.social {
    aspect-ratio: 1/1;
    width: 1.5em;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

.copy {
    width: 100%;
    text-align: right;
    white-space: nowrap;
    font-size: .9em;
}

.return-to-top {
    position: fixed;
    right: 2em;
    bottom: 4em;
    opacity: .7;
    border-radius: 100%;
    aspect-ratio: 1/1;
    background-color: white;
    width: 3em;
    align-content: center;
    justify-content: center;
    display: grid;
    box-shadow: 2px 2px 10px #0009;
}

.return-to-top:not(.visible) {
    display: none;
}