/* 1. ZÁKLADNÝ RESET A NASTAVENIA */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* Plynulý prechod pri kliknutí na menu */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
}

h1,h2,h3 {
    font-family: 'Anton', sans-serif;
}

/* 2. HLAVIČKA A NAVIGÁCIA */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000; /* Aby bola hlavička vždy navrchu */
}

header .logo a {
    display: inline-block;
    padding-top: 70px;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: #111;
}

header .logo img {
    position: absolute;
    top: 10px;
    background-color: #ffffff;
    border-radius: 50%;
    box-shadow: 1px 8px 7px -4px #ddd;
}

header nav ul {
    display: flex;
    list-style: none;
}

header nav ul li {
    margin-left: 20px;
}

header nav ul li a {
    display: inline-block;
    padding-top: 10px;
    padding-bottom: 10px;
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: color 0.3s ease;
}

header nav ul li a:hover {
    color: #333333;
    text-decoration: underline;
}

header nav ul li.objednat {
    text-align: center;
    background-color: #008b49;
    border-radius: 24px;
}

header nav ul li.objednat::before {
    content: attr(data-text);
    position: absolute;
    top: 0px;
    transform: translate(40px, 3px);
    font-size: .8em;
}

header nav ul li.objednat a {
    color: #ffffff;
    font-weight: 700;
    padding-left: 20px;
    padding-right: 20px;
    text-decoration: none;
}

header nav ul li.objednat:hover {
    background-color: #3f6d41;
}


/* 3. HLAVNÝ OBSAH (SEKCIE) */
main {
    margin-top: 100px; /* Priestor kvôli fixnej hlavičke */
}

.web-section {
    /*min-height: 90vh; */
    display: flex;
    align-items: center;
    padding: 10px 10%;
    gap: 50px; /* Medzera medzi textom a obrázkom */
    /*background-color: #f5e4cd;*/

    scroll-margin-block-start: 110px;
}

/* Striedanie strán: každá druhá sekcia bude mať otočené poradie (obrázok vľavo, text vpravo) */
.web-section:nth-child(even) {
    flex-direction: row;
    /*background-color: #f9f9f9;*/
}

.section-content h1, 
.section-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #111;
    line-height: 1.2;
}

.section-content p {
    font-size: 1.1rem;
    color: #666;
}

.section-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

/* KLÚČ PRE RESPONZIVITU OBRÁZKOV */
.section-image img {
    max-width: 767px;
    height: auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); /* Elegantný tieň */
    object-fit: cover;
}

body article {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333333;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

article h1 {
    color: #111111;
    border-bottom: 2px solid #eeeeee;
    padding-bottom: 10px;
}

article h2 {
    color: #222222;
    margin-top: 25px;
}

article ul {
    padding-left: 20px;
}

article li {
    margin-bottom: 8px;
}

article .company-info {
    background-color: #f9f9f9;
    border-left: 4px solid #333333;
    padding: 15px;
    margin: 15px 0;
}

article .footer-note {
    margin-top: 40px;
    font-size: 0.9em;
    color: #666666;
    border-top: 1px solid #eeeeee;
    padding-top: 10px;
        }

/* 4. PÄTIČKA */
footer {
    background-color: #111;
    color: #fff;
    text-align: center;
    padding: 30px;
    font-size: 0.9rem;
}

footer a {
    color: #008b49;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Základné nastavenie pätky */
.site-footer {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 40px 20px;
    font-family: sans-serif;
    line-height: 1.6;
}

/* Hlavný Grid konajner */
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 20px;

    /* CSS Grid */
    display: grid;
    grid-template-columns: 1fr; /* Na mobiloch 1 stĺpec */
    gap: 30px; /* Medzera medzi stĺpcami */
}



/* Štýlovanie obsahu */
.footer-col h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: #db2329;
    padding-bottom: 8px;
    text-transform: uppercase;
}

.footer-col h4 {
    font-size: 1.3rem;
}

.footer-col p {
    margin: 5px 0;
    color: #ccc;
}

.footer-col a {
    color: #008b49;
    text-decoration: none;
}

.footer-col a:hover {
    text-decoration: underline;
}

.footer-col .empty {
    padding: 10px 0;
}

/* Sociálne siete */
.social-links {
    margin-top: 20px;
}

.social-links h4 {
    margin: 0 0 10px 0;
    font-size: 1rem;
    color: #eee;
}

.social-links a {
    display: inline-block;
    margin-right: 15px;
    color: #fff;
    background-color: #333;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.social-links a:hover {
    background-color: #4da6ff;
    text-decoration: none;
}

.social-links a:nth-child(3):hover {
    background-color: #d300c5;
}

/* ==========================================================================
   5. RESPONSIVE DESIGN (Pre mobily a tablety)
   ========================================================================== */
@media (max-width: 768px) {
    
    /* Hlavička sa prispôsobí na mobil */
    header {
        /*flex-direction: column;*/
        padding: 15px;
    }

    header .logo img {
        height: 72px;
    }

    header nav {
        margin-top: 0px;
    }

    header nav ul li {
        display: none;
        margin: 0 10px;
    }

    header nav ul li:nth-child(2),
    header nav ul li:nth-child(4) {
        display: list-item;
        font-size: .75rem;
    }

    header nav ul li.objednat {
        display: inline-block;
    }

    header nav ul li.objednat::before {
        transform: translate(32px, 3px);
    }

    header nav ul li.objednat a {
        font-size: .8em;
    }

    /* Sekcie sa preklopia pod seba */
    .web-section,
    .web-section:nth-child(even) {
        flex-direction: column; /* Text aj obrázok budú pod sebou */
        text-align: center;
        padding: 5px 5%;
        min-height: auto;
    }

    .section-content h1, 
    .section-content h2 {
        font-size: 2rem;
    }

    .section-image {
        width: 100%;
        margin-top: 0px;
    }

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

@media (min-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr 1fr; /* Rozdelenie na 2 rovnomerné stĺpce */
        gap: 50px; /* Väčšia medzera pre desktop */
    }
}