/* =========================================
   GLOBÁLNÍ NASTAVENÍ A RESET
   ========================================= */
html, body {
    font-family: "Open Sans", sans-serif;
    background-color: #fffefa;
    color: #333; /* Jemnější černá pro lepší čitelnost */
    overflow-x: hidden;
    width: 100%;
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* --- Pomocné třídy --- */
.cursor-pointer { cursor: pointer; }
.no-decoration { text-decoration: none; }

/* --- Tlačítko "Zpět nahoru" --- */
#scrollTopBtn {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 45px;
    height: 45px;
    cursor: pointer;
    display: none;
    z-index: 1000;
    background: white;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 10px;
    transition: transform 0.3s ease;
}

#scrollTopBtn:hover {
    transform: translateX(-50%) translateY(-5px);
}

/* --- Animace načtení --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

main {
    animation: fadeIn 1s ease-out forwards;
}

/* =========================================
   NAVIGACE
   ========================================= */
nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 11%;
    width: 100%;
    position: sticky; /* Menu zůstává nahoře při scrollování */
    top: 0;
    background: rgba(255, 254, 250, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
}

nav img { width: 60px; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

/* Skrytí ovládacích prvků menu na desktopu */
#menu-toggle, .hamburger-label {
    display: none;
}

nav a {
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 700;
    font-size: 0.9em;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #f8c858;
}

nav .nav-main-page {
    background-color: #fadd9a;
    padding: 8px 20px;
    border-radius: 20px;
    color: #000;
    transition: transform 0.2s ease, background 0.3s ease;
}

nav .nav-main-page:hover {
    background-color: #f8cf6a;
    transform: scale(1.05);
}

/* =========================================
   SEKCE 1: HERO (ÚVOD)
   ========================================= */
#hero {
    max-width: 1400px;
    margin: 0 auto;
    min-height: 85vh;
    display: flex;
    align-items: center; 
    justify-content: space-between;
    padding: 0 5%;
    gap: 50px;
}

.hero-content {
    flex: 1;
    z-index: 10;
    max-width: 600px;
}

#hero h1 {
    font-family: "Anton", sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.5em); 
    line-height: 1.1;
    margin-bottom: 25px;
}

#hero .main-lbl {
    font-size: 1.1em;
    color: #555;
    line-height: 1.7;
    width: 100%;
}

#hero button {
    margin-top: 40px;
    padding: 15px 40px;
    border: none;
    border-radius: 30px;
    background-color: #fadd9a;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(250, 221, 154, 0.4);
    transition: all 0.3s ease;
}

#hero button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(250, 221, 154, 0.6);
}

#visual-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-visuals {
    width: 100%;
    max-width: 320px;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1));
}

/* =========================================
   SEKCE 3: PŘĚDĚLOVAČ
   ========================================= */
#page-3 {
    background-color: #fadd9a;
    height: 5px;
    width: 100%;
}

/* =========================================
   SEKCE 4: PROJEKTY (KARTY)
   ========================================= */
#page-4 {
    padding: 80px 11%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#page-4 h2 {
    font-family: "Anton", sans-serif;
    font-size: clamp(2.5rem, 5vw, 3.5em);
    margin-bottom: 10px;
}

.sub-lbl { color: #888; margin-bottom: 40px; }

.content-boxes {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 40px;
    width: 100%;
}

.box {
    text-decoration: none;
    color: black;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    height: 400px;
    flex: 1 1 300px;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.box h3 { font-size: 1.5em; text-align: center; margin-top: 20px; z-index: 5; font-family: "Anton", sans-serif; }
.box img { width: 50%; max-height: 150px; object-fit: contain; transition: 0.3s; }
.box button {
    margin-bottom: 20px; width: 100px; height: 35px;
    border-radius: 20px; border: none; background-color: #fadd9a; font-weight: bold; cursor: pointer; z-index: 5;
}

.hover-text {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 80%; text-align: center; opacity: 0; transition: 0.3s; z-index: 4;
}

.box:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    background-color: #fffefa;
}

.box:hover img { opacity: 0; }
.box:hover .hover-text { opacity: 1; }
.box:hover button { background-color: #fadd9a; transform: scale(1.1); }

#projects-europe {
    flex: 1 1 100%;
    max-width: 1000px;
    height: 250px;
    background: linear-gradient(135deg, #fff 0%, #fdf6e3 100%);
}

#projects-europe h3 { margin-top: 40px; }

/* =========================================
   SEKCE 7: KONTAKTNÍ FORMULÁŘ
   ========================================= */
#page-7 {
    background-color: #fffefa;
    padding: 100px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
}

.contact-container {
    background: white;
    padding: 50px;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
    width: 90%;
    max-width: 650px;
    text-align: center;
}

.contact-container h2 {
    font-family: "Anton", sans-serif;
    font-size: clamp(2.5rem, 5vw, 3em);
    margin-bottom: 10px;
}

.contact-desc {
    margin-bottom: 30px;
    font-size: 1.1em;
    color: #666;
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 700;
    font-size: 0.9em;
    text-transform: uppercase;
    color: #444;
}

.form-group input, 
.form-group textarea {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-family: "Open Sans", sans-serif;
    font-size: 1em;
    background-color: #fcfcfc;
    transition: all 0.3s ease;
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: #fadd9a;
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(250, 221, 154, 0.2);
}

#page-7 .submit-btn {
    width: 220px;
    height: 50px;
    background-color: #fadd9a;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 20px auto 0;
    box-shadow: 0 4px 15px rgba(250, 221, 154, 0.3);
}

#page-7 .submit-btn:hover {
    background-color: #1a1a1a;
    color: #fadd9a;
    transform: translateY(-3px);
}

/* =========================================
   FOOTER (PATIČKA)
   ========================================= */
footer {
    background-color: #1a1a1a;
    padding: 60px 20px;
    color: #fffefa;
    text-align: center;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.icon-col img {
    width: 35px;
    filter: brightness(0) invert(1); /* Ikony budou bílé */
    opacity: 0.6;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.icon-col img:hover {
    opacity: 1;
}

/* =========================================
   MEDIA QUERIES (RESPONZIVITA)
   ========================================= */

@media screen and (min-width: 1920px) {
    #hero { padding: 0; }
    .content-boxes { gap: 50px; }
    body { font-size: 1.1em; }
}

@media screen and (max-width: 1320px) {
    .box { height: 450px; }
}

/* --- Tablet (max-width: 1024px) --- */
@media screen and (max-width: 1024px) {
    #hero {
        flex-direction: column;
        text-align: center;
        padding-top: 50px;
    }

    .hero-content { max-width: 100%; padding: 0 20px; }
    #hero .main-lbl { width: 100%; margin: 0 auto; }

    #visual-wrapper {
        width: 100%;
        margin-top: 50px;
        padding-bottom: 20px; 
    }

    #page-7 { padding: 60px 5%; }
    .contact-container { padding: 40px 20px; }
}

@media screen and (max-width: 850px) {
    .box { height: 400px; }
}

/* --- Mobil (max-width: 768px) --- */
@media screen and (max-width: 768px) {
    .hamburger-label { display: block; cursor: pointer; }
    .hamburger-label img { width: 30px; }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: #fffefa;
        z-index: 1000;
        padding: 30px 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
        text-align: center;
    }

    #menu-toggle:checked ~ .nav-links { display: flex; }
    .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

/* --- Malý mobil (max-width: 600px) --- */
@media screen and (max-width: 600px) {
    .box { height: 320px; flex: 1 1 100%; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    #page-7 .submit-btn { width: 100%; }
}

/* --- Velké monitory --- */
@media screen and (min-width: 1600px) and (min-height: 900px) {
    nav, #hero, section, footer { font-size: 1.2em; }
    nav img { width: 80px; }
    #hero { max-width: 1600px; }
    .hero-visuals { max-width: 400px; }
}