/* Globalne spremenljivke */
:root {
    --Focus: #ddb3b3;
    --MainForeground: #000000;
    --MainBackground: #ffffff;
    --SecBackground: #f5f5f5;
    --Radius: 0.5rem;
}

/* Pisave (self-hosted) */
@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat/Montserrat-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-display: swap;
    font-style: normal;
}

@font-face {
    font-family: 'Arvo';
    src: url('../fonts/Arvo/Arvo-Bold.ttf') format('truetype');
    font-weight: 700;
    font-display: swap;
    font-style: normal;
}

h1 {
    font-family: 'Arvo', serif;
}

h2 {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
}

body {
    font-family: 'Montserrat', serif;
    font-weight: 500;
}

header {
    border-bottom: none;
    position: relative;
    padding: 2rem;
}

header a.logo {
    display: flex;
    align-items: center;
}

header a.logo svg {
    height: 1.5rem;
}

header a.logo svg #cam {
    transition: fill 0.5s;
}

header a.logo:hover svg #cam {
    fill: #e42123;
    transition: fill 0.5s;
}

header nav#header-menu {
    text-transform: uppercase;
    font-weight: 700;
}

header nav#header-menu li {
    font-size: 1rem;
    align-self: center;
}

header nav#header-menu li a {
    color: var(--MainForeground);
}

header nav#header-menu li a:hover {
    color: var(--Focus)
}

header nav#header-menu li a.button {
    color: var(--MainBackground);
}

footer {
    justify-content: center;
    text-align: center;
}

section {
    padding: 2rem;
}


section.hero {
    display: grid;
    grid-template-rows: max-content auto;
    gap: 1rem;
    grid-template-areas:
        "media"
        "content";
    /* 100 vidnega polja - višina glave */
    padding: 2rem;
    min-height: 100svh;
}

section.hero.dark {
    background-color: var(--MainForeground);
    color: var(--MainBackground);
}

section.hero#first {
    padding-top: 0;
    /* 100 vidnega polja - višina glave */
    min-height: calc(100svh - 88px);
}

.hero-media {
    grid-area: media;
    object-fit: cover;
    height: 100%;
    width: 100%;
    border-radius: var(--Radius);
    aspect-ratio: 1 / 1;
}

.hero-content {
    grid-area: content;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-flow: column;
    gap: 1rem;
    padding: 2rem 0;
    border-radius: var(--Radius);
    text-align: center;
}

.hero-content h1 {
    text-align: center;
}

section.page-title {
    padding: 1rem 2rem;
    text-align: center;
}

section.page-title h1 {
    font-size: 2rem;
}

section .section-title {
    display: flex;
    flex-flow: column;
    align-items: center;
    text-align: center;
}

a.button {
    padding: 0.5rem 1rem;
}

.card-holder {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.card-holder .card {
    width: 100%;
    text-align: center;
}

.card-holder .card ul {
    display: flex;
    flex-flow: column;
    gap: 1rem;
    list-style: none;
}


/* TABLICA */
@media (min-width: 800px) {
    section.hero {
        grid-template-rows: 1fr;
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "media content";
        min-height: 70svh;
    }

    section.hero.dark {
        grid-template-areas:
            "content media";
    }

    section.hero#first {
        /* 100 vidnega polja - višina glave */
        min-height: calc(70svh - 88px);
    }

    .card-holder .card {
        max-width: 40%;
    }

    .hero-media {
        aspect-ratio: 0;
    }

}

/* MANJŠI DESKTOP */
@media (min-width: 1200px) {

    header nav#header-menu ul {
        gap: 2rem;
        font-weight: 500;
    }

    header,
    footer {
        padding-left: 72.7px;
        padding-right: 72.7px;
    }

    section.hero,
    section.slider {
        padding: 72.7px;
        min-height: 100svh;
    }

    section.hero {
        grid-template-columns: 2fr 1fr;
    }

    section.hero.dark {
        grid-template-columns: 1fr 2fr;

    }

    .card-holder .card {
        max-width: 25%;
    }

    section.hero#first {
        /* 100 vidnega polja - višina glave */
        min-height: calc(100svh - 72.7px);
        padding-bottom: 72.7px;
    }

}

/* VEČJI DESKTOP */
@media (min-width: 1500px) {

    header,
    footer {
        padding-left: 104.7px;
        padding-right: 104.7px;
    }

    section.hero,
    section.slider {
        padding: 104.7px;
    }

    section.hero {
        grid-template-columns: 2fr 1fr;
    }

    section.hero#first {
        /* 100 vidnega polja - višina glave */
        min-height: calc(100svh - 104.7px);
        padding-bottom: 104.7px;
    }
}