/* 
   Genex VS - Modern Design System 
   Premium, Clean, Corporate
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette */
    --primary-color: #000066;
    /* Deep Corporate Blue */
    --primary-dark: #00004d;
    /* Darker Blue for hover/active */
    --primary-light: #e6f0fa;
    /* Very light blue for backgrounds */
    --accent-color: #00a8cc;
    /* Fresh Cyan/Teal for highlights */

    --text-main: #1a1a1a;
    /* Almost Black */
    --text-secondary: #555555;
    /* Grey for descriptions */
    --text-light: #ffffff;
    /* White text */

    --bg-body: #ffffff;
    --bg-light: #f8f9fa;
    /* Light grey background */
    --bg-dark: #111111;
    /* Dark footer background */

    --border-color: #e0e0e0;

    /* Typography */
    --font-main: 'Inter', sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --header-height: 80px;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    background-color: var(--bg-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Typography Utilities */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.75rem;
}

.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary-color);
}

/* Layout Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 5rem 0;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    box-shadow: 0 4px 14px rgba(0, 86, 179, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 86, 179, 0.4);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

/* Header Placeholder */
header {
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.03em;
    z-index: 1001;
}

nav ul {
    display: flex;
    gap: 2rem;
}

nav a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-main);
}

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

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
    margin: 5px 0;
    transition: var(--transition-normal);
}

/* Mobile Styles */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: var(--transition-normal);
        z-index: 1000;
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    nav a {
        font-size: 1.5rem;
    }

    /* Hamburger Animation */
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

/* Footer Placeholder */
footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 4rem 0 2rem;
}

/* Refactored Utilities */

/* Hero Section */
.hero-section {
    padding: 0;
}

.hero-home-container {
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(18, 0, 100, 0.6);
    /* Blue overlay restored */
    z-index: 1;
}

.hero-content-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 0 1rem;
}

.hero-title-overlay {
    color: #ffffff;
    font-size: 5rem;
    font-weight: 800;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.8);
    margin: 0;
    line-height: 1.1;
}

@media (max-width: 768px) {
    .hero-title-overlay {
        font-size: 2.5rem;
    }
}

.section.bg-light {
    background-color: var(--primary-light);
}

/* Dark Blue Section (e.g. Partners) */
.section.bg-primary-section {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.section.bg-primary-section h2,
.section.bg-primary-section p,
.section.bg-primary-section a:not(.btn) {
    color: var(--text-light);
}

.btn-white {
    background-color: #ffffff;
    color: var(--primary-color);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.btn-white:hover {
    background-color: var(--bg-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Intro Section */
.section-intro {
    padding: 4rem 0 2rem 0;
    text-align: center;
}

.intro-title {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.intro-text {
    font-size: 1.3rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

.button-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Wide Assortment */
.assortment-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4rem;
}

.assortment-content {
    flex: 1;
    min-width: 300px;
}

.assortment-text {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.assortment-list {
    margin-bottom: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.assortment-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.check-icon {
    color: var(--accent-color);
    font-weight: bold;
}

.assortment-image-container {
    flex: 1;
    min-width: 300px;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.object-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Slideshow Styles */
.slideshow-container {
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

/* Logo Marquee Styles */
.section-marquee {
    padding: 2rem 0;
    background-color: #fff;
    overflow: hidden;
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.marquee-track {
    display: inline-flex;
    animation: scroll 40s linear infinite;
    gap: 4rem;
    padding-left: 4rem;
    /* Initial offset */
}

.marquee-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.5s ease;
}

.marquee-logo.active-color {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* Contact Page Styles */
.contact-card-wide {
    grid-column: 1 / -1;
}

.contact-grid-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
        /* Move by half the width (original set) */
    }
}

/* Partners Section */
.bg-light {
    background-color: var(--bg-light);
}

.partners-text {
    max-width: 600px;
    margin: 0 auto 2rem;
    color: var(--text-secondary);
}

.b2b-link {
    color: var(--primary-color);
    text-decoration: underline;
}

.btn-b2b-large {
    font-size: 1.5rem;
    padding: 1rem 2rem;
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.text-sm {
    font-size: 0.9rem;
}

/* Contact Form */
.contact-form-container {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    max-width: 800px;
    margin: 0 auto;
}

.contact-form-wide {
    max-width: 70%;
    width: 70%;
}

@media (max-width: 768px) {
    .page-contacts .contact-form-wide {
        max-width: 100%;
        width: 100%;
    }
}

.contact-form-grid {
    display: grid;
    gap: 1rem;
}

.form-group {
    display: grid;
    gap: 0.5rem;
}

.form-control {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100%;
    font-family: inherit;
}

/* Map Section */
.map-container {
    max-width: 800px;
    margin: 0 auto;
}

.section-no-top-padding {
    padding-top: 0;
}

/* Footer */
.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-copyright {
    border-top: 1px solid #333;
    margin-top: 2rem;
    padding-top: 1rem;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

.text-gray {
    color: #aaa;
}

/* Brands (Domaci Potreby) */
.brand-item {
    margin-bottom: 4rem;
    display: flex;
    gap: 5rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.brand-logo {
    flex: 0 0 200px;
}

.brand-content {
    flex: 1;
}

.brand-img {
    width: 100%;
    max-width: 200px;
}

.brand-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 2rem;
    margin-bottom: 0.5rem;
}

.brand-subtitle {
    font-size: 1.5rem;
}

.brand-header h2 {
    margin-bottom: 0;
}

.brand-header img {
    max-width: 150px;
    height: auto;
}

/* Contact Page Specifics */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.contact-card {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.card-title {
    color: var(--primary-color);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 0.5rem;
}

.info-block {
    margin-bottom: 1rem;
}

.general-info-card {
    background: #ffffff;
    color: var(--primary-color);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    grid-column: 1 / -1;
    border: none;
}

.general-info-title {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 2rem;
    border-bottom: 1px solid rgba(0, 0, 102, 0.2);
    padding-bottom: 1rem;
}

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

.info-item {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 1.5rem;
    border-radius: 8px;
}

.info-label {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.email-link-large {
    color: var(--text-light);
    font-size: 1.4rem;
    font-weight: bold;
    text-decoration: none;
    border-bottom: none;
}

.footer-logo-img {
    height: auto;
    width: 150px;
    max-width: 100%;
    display: block;
    margin-bottom: 1rem;
}

/* About Us Specifics */
.about-intro-bg {
    padding: 4rem 2rem;
    background-color: #000066;
    text-align: center;
}

.about-intro-bg .intro-text {
    color: #ffffff;
}

.about-highlight-box {
    background-color: var(--primary-light);
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    margin-top: 2rem;
}

/* Global Layout Overrides */
main {
    padding-top: var(--header-height);
}

/* Utilities */
.container-narrow {
    max-width: 800px;
    margin: 0 auto;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mb-3 {
    margin-bottom: 3rem;
}

.d-none {
    display: none;
}

.logo-img {
    height: 50px;
}

.grid-1-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.w-100px {
    width: 100px;
}

.justify-start {
    justify-self: start;
}

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

.mb-1-5 {
    margin-bottom: 1.5rem;
}

.brand-sub-item {
    margin-left: 1rem;
    margin-bottom: 2rem;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.brand-sub-item-last {
    margin-left: 1rem;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.brand-sub-logo {
    flex: 0 0 120px;
}

.brand-sub-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.grid-col-full {
    grid-column: 1 / -1;
}

.mb-0-5 {
    margin-bottom: 0.5rem;
}

.max-w-600 {
    max-width: 600px;
}

.img-fluid {
    width: 100%;
    height: auto;
}

.gap-2 {
    gap: 2rem;
}

.text-lg-relaxed {
    font-size: 1.2rem;
    line-height: 1.6;
}

.contact-content-section {
    padding-top: 0;
}

/* Utility Classes */
.text-white {
    color: #ffffff !important;
}

.text-secondary {
    color: var(--text-secondary);
}

.underline {
    text-decoration: underline !important;
}

/* Tailwind-like utility classy (zasady-ochrany-soukromi.html) */
.bg-white {
    background-color: #ffffff;
}

.p-2 {
    padding: 2rem;
}

.rounded {
    border-radius: 8px;
}

.shadow-sm {
    box-shadow: var(--shadow-sm);
}

.text-xl {
    font-size: 1.25rem;
}

.list-disc {
    list-style: disc;
}

.pl-1 {
    padding-left: 1.5rem;
}

.mt-10 {
    margin-top: 10rem;
}

/* Specific Footer Link Styling */
.footer-copyright a {
    color: #ffffff !important;
    text-decoration: underline !important;
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* ===========================================================
   HOMEPAGE PARALLAX / STACKING (scoped to body.home)
   - Hero je fixní přes celý viewport (obrázek i nadpis statické)
   - Obsah najíždí přes hero
   - Sekce se zastavují pod headerem a další přes ně scrollují
   Čisté CSS (position: fixed + sticky), bez JS.
   =========================================================== */

/* Hero je celoplošný — zrušíme globální odsazení pod header */
.home main {
    padding-top: 0;
}

/* Statický hero na pozadí přes celý viewport */
.home .hero-home-container {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
    /* je-li dynamická lišta na mobilu, použij dvh když je k dispozici */
    height: 100dvh;
}

.home .hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Obsahový "list", který stoupá přes hero */
.home .web-content {
    position: relative;
    z-index: 1;
    margin-top: 100vh;
    margin-top: 100dvh;
    background: var(--bg-body);
    border-radius: 28px 28px 0 0;
    box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.18);
}

/* Každá sekce se zastaví pod headerem; další přes ni scrolluje.
   Pořadí v DOM zajistí překryv (pozdější kreslí přes dřívější). */
.home .web-content>.section {
    position: sticky;
    top: var(--header-height);
}

/* Opakní pozadí, aby sekce zakryla předchozí
   (tmavou sekci „Pro partnery" necháváme s vlastní barvou) */
.home .web-content>.section:not(.bg-primary-section) {
    background: var(--bg-body);
}

/* Hloubka: nastupující sekce má zaoblenou hranu a vrhá stín nahoru */
.home .web-content>.section:not(:first-child) {
    border-radius: 28px 28px 0 0;
    box-shadow: 0 -16px 40px rgba(0, 0, 0, 0.10);
}

/* Mapová sekce má v běžném toku potlačený horní padding; jako samostatná
   karta ve stohování ale potřebuje odsazení, aby nadpis nelepil na hranu */
.home .web-content>.section-no-top-padding {
    padding-top: 4rem;
}

/* Footer scrolluje přes poslední sekci */
.home footer {
    position: relative;
    z-index: 2;
}

/* Přístupnost / úspora pohybu — vrátíme normální tok bez efektů */
@media (prefers-reduced-motion: reduce) {
    .home main {
        padding-top: var(--header-height);
    }

    .home .hero-home-container {
        position: relative;
        height: auto;
        inset: auto;
    }

    .home .hero-image {
        height: auto;
    }

    .home .web-content {
        margin-top: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .home .web-content>.section {
        position: static;
        border-radius: 0;
        box-shadow: none;
    }
}