/* jah.sk Modern Redesign - Base Styles */

:root {
    --primary-color: #EE1D23;
    /* Strabag Red */
    --secondary-color: #000000;
    --text-color: #333333;
    --bg-color: #ffffff;
    --light-grey: #f4f4f4;
    --dark-grey: #222222;
    --header-height: 80px;
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

h1,
h2,
h3 {
    font-weight: 700;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* Layout */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Nav */
header {
    background: var(--bg-color);
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 2rem;
    font-weight: 900;
    color: var(--secondary-color);
}

.logo span {
    color: var(--primary-color);
}

nav ul {
    display: flex;
    gap: 30px;
}

nav ul li a {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--primary-color);
}

/* Burger Menu */
.lang-switcher {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-left: 30px;
}

.lang-switcher a {
    display: flex;
    align-items: center;
    transition: 0.3s;
    opacity: 0.7;
}

.lang-switcher a:hover {
    opacity: 1;
}

.lang-switcher img {
    width: 24px;
    height: 16px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.lang-switcher a.active img {
    border-color: var(--primary-color);
    box-shadow: 0 0 5px var(--primary-color);
    opacity: 1;
}

.burger {
    display: none;
    cursor: pointer;
    z-index: 10001;
    /* Above mobile menu */
    padding: 10px;
    margin-right: -10px;
    /* Offset padding */
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 5px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    height: 60vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../img/hero.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary-color);
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    transition: 0.3s;
}

.btn:hover {
    background: var(--secondary-color);
}

/* Grid Sections */
.section {
    padding: 80px 0;
}

.section-title {
    margin-bottom: 50px;
    text-align: center;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--light-grey);
    padding: 40px;
    border-bottom: 5px solid transparent;
    transition: 0.3s;
}

.card:hover {
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-bottom-color: var(--primary-color);
}

.card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: block;
}

.card h3 {
    margin-bottom: 15px;
}

/* Footer */
footer {
    background: var(--dark-grey);
    color: #999;
    padding: 60px 0 20px;
}

footer .grid {
    margin-bottom: 40px;
}

footer h4 {
    color: white;
    margin-bottom: 20px;
    text-transform: uppercase;
}

footer p,
footer li {
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 1024px) {
    nav ul {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    header .container {
        justify-content: space-between;
    }

    .lang-switcher {
        margin-left: auto;
        margin-right: 15px;
    }

    nav ul {
        position: fixed;
        right: 0px;
        height: 92vh;
        top: 8vh;
        background-color: var(--bg-color);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 50%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        box-shadow: -5px 0 10px rgba(0, 0, 0, 0.1);
        padding-top: 50px;
        gap: 20px;
        z-index: 9999;
    }

    nav ul li {
        opacity: 0;
    }

    .burger {
        display: block;
    }

    .nav-active {
        transform: translateX(0%);
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1rem;
        padding: 0 20px;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 50px 0;
    }

    /* Subpage Specific Responsive Overrides */
    .contact-container,
    .offer-grid,
    .grid[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    .eu-logo img {
        max-width: 100% !important;
    }

    .document-grid {
        grid-template-columns: 1fr !important;
    }

    .contact-form {
        padding: 20px !important;
    }

    .map-placeholder {
        height: 300px !important;
        margin-top: 30px !important;
    }
}

@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0px);
    }
}

.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle .line2 {
    opacity: 0;
}

.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}