/* =========================================
   1. BASIC SETTINGS
   ========================================= */
:root {
    --primary-color: #0066cc;
    --primary-dark: #004c99;
    --text-color: #333333;
    --bg-light: #f4f7f6;
    --white: #ffffff;
    --border-radius: 4px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

/* =========================================
   2. HELPER CLASSES
   ========================================= */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

h1, h2, h3 {
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

p {
    margin-bottom: 15px;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 30px;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: bold;
    transition: background-color 0.3s;
    text-transform: uppercase;
}

.btn:hover {
    background-color: var(--primary-dark);
}

.section-subtitle {
    text-align: center;
    margin-top: -30px;
    margin-bottom: 50px;
    color: #666;
    font-size: 1.1rem;
}

/* =========================================
   3. HEADER AND MENU
   ========================================= */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    display: flex; 
    align-items: center;
    margin-left: -140px; 
}

.logo img {
    max-height: 60px;
    width: auto;
}

.nav {
    margin-right: -140px;
}

.nav ul {
    list-style: none;
    display: flex;
}

.nav ul li {
    margin-left: 30px;
}

.nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.nav ul li a:hover {
    color: var(--primary-color);
}

/* =========================================
   4. HERO SECTION
   ========================================= */
.hero {
    background-image: url('img/uvod.jpg');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
    margin-top: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); 
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    color: var(--white);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #f0f0f0;
}

/* =========================================
   5. ABOUT US
   ========================================= */
.about-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    color: #555;
}

/* =========================================
   6. PARALLAX BREAKS
   ========================================= */
.photo-break {
    height: 400px;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
}

.break-1 {
    background-image: url('img/predel1.jpg');
}

.break-2 {
    background-image: url('img/predel2.jpg');
}

.overlay-light {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 50, 100, 0.3);
}

/* =========================================
   7. SERVICES
   ========================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px;
    text-align: center;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    border-bottom: 3px solid var(--primary-color);
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* =========================================
   8. GALLERY
   ========================================= */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px; 
}

.gallery-item {
    display: block;
    height: 300px;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* =========================================
   9. FOOTER
   ========================================= */
.footer {
    background-color: #222;
    color: #fff;
    padding: 60px 0 20px;
    text-align: center;
}

.footer h2 {
    color: var(--white);
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
    padding-bottom: 10px;
}

.footer address {
    font-style: normal;
    margin-top: 20px;
    line-height: 2;
}

.footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #444;
    font-size: 0.8rem;
    color: #888;
}

/* =========================================
   10. MOBILE VERSION
   ========================================= */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        height: auto;
        padding: 10px 0;
    }

    .logo {
        margin-left: 0;
        margin-bottom: 5px;
        justify-content: center;
    }

    .logo img {
        max-height: 45px;
    }

    .nav {
        margin-right: 0;
        width: 100%;
    }

    .nav ul {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 5px;
        padding: 0;
    }

    .nav ul li {
        margin: 5px 10px;
    }

    .nav ul li a {
        font-size: 0.85rem;
        display: inline-block;
        padding: 5px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }
    
    .section {
        padding: 50px 0;
    }

    .hero, .photo-break, .break-1, .break-2 {
        background-attachment: scroll !important;
        background-position: center center !important;
        background-size: cover !important;
    }
}