/* ==========================================================
   LAYOUT.CSS
   ČASŤ 1/5
========================================================== */

/* ==========================================================
   RESET
========================================================== */

*,
*::before,
*::after{

    box-sizing:border-box;

}

html{

    scroll-behavior:smooth;

}

body{

    margin:0;

    background:var(--background);

    color:var(--text);

    font-family:var(--font-body);

    line-height:var(--line-height);

    -webkit-font-smoothing:antialiased;

    -moz-osx-font-smoothing:grayscale;

}

img{

    display:block;

    max-width:100%;

    height:auto;

}

a{

    color:inherit;

    text-decoration:none;

    transition:var(--transition);

}

button{

    font:inherit;

    cursor:pointer;

}

ul{

    margin:0;

    padding:0;

    list-style:none;

}

h1,h2,h3,h4,h5,h6,p{

    margin:0;

}



/* ==========================================================
   GRID
========================================================== */

.site{

    min-height:100vh;

    display:flex;

    flex-direction:column;

}

.site-main{

    flex:1;

}

.container{

    width:min(100% - 48px,var(--container));

    margin-inline:auto;

}



/* ==========================================================
   HEADER
========================================================== */

.site-header{

    position:sticky;

    top:0;

    z-index:1000;

    background:rgba(248,247,243,.96);

    backdrop-filter:blur(16px);

    border-bottom:1px solid var(--border);

}

.header-inner{

    display:flex;

    align-items:center;

    justify-content:space-between;

    gap:clamp(28px,4vw,64px);

    min-height:72px;

}



/* ==========================================================
   LOGO
========================================================== */

.site-brand{

    display:flex;

    flex-direction:column;

    gap:2px;
	
	flex-shrink:0;

}

.brand-name{

    font-family:var(--font-heading);

    font-size:1.9rem;

    line-height:1;

}

.brand-tagline{

    color:var(--text-light);

    font-size:.72rem;

    letter-spacing:.18em;

    text-transform:uppercase;

}



/* ==========================================================
   MENU BUTTON
========================================================== */

.menu-toggle{

    display:none;

    border:0;

    background:none;

    width:48px;

    height:48px;

    padding:0;

}

.menu-toggle span{

    display:block;

    width:24px;

    height:2px;

    margin:5px auto;

    background:var(--text);

    border-radius:20px;

}

/* ==========================================================
   LAYOUT.CSS
   ČASŤ 2/5
========================================================== */

/* ==========================================================
   NAVIGATION
========================================================== */

.site-navigation{

    flex:1;

    display:flex;

    justify-content:flex-end;

    align-items:center;

}

.nav-menu{

    display:flex;

    flex-direction:row;

    align-items:center;

    justify-content:flex-end;

    gap:40px;

    width:100%;

}

.nav-menu > li{

    position:relative;

    display:block;

}

.nav-menu > li > a,

.nav-dropdown-toggle{

    display:flex;

    align-items:center;

    gap:8px;

    height:72px;

    border:0;

    background:none;

    padding:0;

    color:var(--text);

    font-size:.98rem;

    font-weight:500;

    white-space:nowrap;

}

.nav-menu > li > a:hover,

.nav-dropdown-toggle:hover{

    color:var(--primary);

}

.nav-arrow{

    font-size:.7rem;

    transition:transform .25s ease;

}

.has-dropdown:hover .nav-arrow{

    transform:rotate(180deg);

}



/* ==========================================================
   DROPDOWN
========================================================== */

.dropdown-menu{

    position:absolute;

    top:100%;

    left:50%;

    transform:translateX(-50%);

    display:none;

    grid-template-columns:1fr 1fr;

    gap:32px;

    width:560px;

    padding:28px;

    background:#fff;

    border:1px solid var(--border);

    border-radius:18px;

    box-shadow:var(--shadow);

}

.has-dropdown:hover > .dropdown-menu{

    display:grid;

}

.dropdown-column{

    display:flex;

    flex-direction:column;

    gap:10px;

}

.dropdown-title{

    font-size:.78rem;

    font-weight:700;

    letter-spacing:.12em;

    text-transform:uppercase;

    color:var(--text-light);

    margin-bottom:8px;

}

.dropdown-column a{

    display:block;

    padding:6px 0;

}

.dropdown-column a:hover{

    color:var(--primary);

}


/* ==========================================================
   LAYOUT.CSS
   ČASŤ 3/5
========================================================== */

/* ==========================================================
   SEKCIE
========================================================== */

.section{

    padding:var(--space-section) 0;

}

.section-sm{

    padding:var(--space-lg) 0;

}

.section-lg{

    padding:calc(var(--space-section) + 2rem) 0;

}

.hero{

    padding-top:60px;

}

/* ==========================================================
   TYPOGRAFIA
========================================================== */

.display{

    font-family:var(--font-heading);

    font-size:var(--font-size-hero);

    line-height:.95;

    letter-spacing:-.03em;

    max-width:900px;

}

.heading-lg{

    font-family:var(--font-heading);

    font-size:3rem;

    line-height:1.05;

}

.heading-md{

    font-family:var(--font-heading);

    font-size:2rem;

    line-height:1.15;

}

.lead{

    max-width:760px;

    font-size:1.18rem;

    color:var(--text-light);

    line-height:1.9;

}



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

.button{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    padding:15px 30px;

    border-radius:999px;

    font-weight:600;

    transition:var(--transition);

}

.button-primary{

    background:var(--primary);

    color:#fff;

}

.button-primary:hover{

    background:var(--primary-hover);

}

.button-secondary{

    background:#fff;

    border:1px solid var(--border);

}

.button-secondary:hover{

    border-color:var(--primary);

    color:var(--primary);

}



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

.site-footer{

    margin-top:80px;

    padding:60px 0;

    border-top:1px solid var(--border);

    background:#fff;

}


/* ==========================================================
   LAYOUT.CSS
   ČASŤ 4/5
========================================================== */

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

.footer-grid{

    display:grid;

    grid-template-columns:2fr 1fr 1fr;

    gap:48px;

}

.footer-column{

    display:flex;

    flex-direction:column;

    gap:18px;

}

.footer-title{

    font-family:var(--font-heading);

    font-size:2rem;

}

.footer-text{

    color:var(--text-light);

    line-height:1.8;

}

.footer-links{

    display:flex;

    flex-direction:column;

    gap:12px;

}

.footer-links a:hover{

    color:var(--primary);

}

.footer-bottom{

    margin-top:48px;

    padding-top:24px;

    border-top:1px solid var(--border);

    color:var(--text-light);

}



/* ==========================================================
   ANIMÁCIE
========================================================== */

.fade-up{

    animation:fadeUp .7s ease both;

}

@keyframes fadeUp{

    from{

        opacity:0;

        transform:translateY(28px);

    }

    to{

        opacity:1;

        transform:none;

    }

}



/* ==========================================================
   UTILITIES
========================================================== */

.text-center{

    text-align:center;

}

.mt-0{

    margin-top:0;

}

.mb-0{

    margin-bottom:0;

}

.mb-2{

    margin-bottom:20px;

}

.mb-3{

    margin-bottom:32px;

}

.mb-4{

    margin-bottom:48px;

}

/* ==========================================================
   LAYOUT.CSS
   ČASŤ 5/5
========================================================== */

/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width:980px){

    .header-inner{

        flex-wrap:wrap;

        column-gap:24px;

    }

    .menu-toggle{

        display:block;

    }

    .site-navigation{

        display:none;

        order:3;

        flex-basis:100%;

        width:100%;

        margin-top:0;

    }

    .site-navigation.is-open{

        display:block;

    }

    .nav-menu{

        flex-direction:column;

        align-items:flex-start;

        gap:0;

    }

    .nav-menu > li{

        width:100%;

    }

    .nav-menu > li > a,

    .nav-dropdown-toggle{

        width:100%;

        height:auto;

        padding:18px 0;

        justify-content:space-between;

    }

    .dropdown-menu{

        position:static;

        display:none;

        width:100%;

        transform:none;

        grid-template-columns:1fr;

        padding:18px 0 0 18px;

        border:0;

        box-shadow:none;

        background:transparent;

    }

    .has-dropdown.open .dropdown-menu{

        display:grid;

    }

    .footer-grid{

        grid-template-columns:1fr;

        gap:32px;

    }

}

@media (max-width:640px){

    .container{

        width:min(100% - 32px,var(--container));

    }

    .brand-name{

        font-size:1.8rem;

    }

    .heading-lg{

        font-size:2.3rem;

    }

    .display{

        line-height:1.02;

    }

}

