/* ===================================
   MODERN 2026 ONE-PAGE DESIGN
   Kuchyně Zatloukal
   =================================== */

/* --- CSS Custom Properties (Project Colors) --- */
:root {
    /* Primary palette */
    --color-primary-dark: #1a2531;
    --color-primary: #2c3e50;
    --color-accent: #f39c12;
    --color-accent-hover: #e67e22;
    --color-accent-light: rgba(243, 156, 18, 0.1);

    /* Secondary */
    --color-secondary-dark: #34495e;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-white: #ffffff;
    --color-bg-light: #f8f9fa;
    --color-bg-section: #ffffff;
    --color-border: #e0e0e0;

    /* Typography */
    --font-primary: 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --section-padding: 100px 0;
    --container-max: 1200px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Scroll Animations --- */
.fade-in-target {
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-target.animate-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* ===================================
   NAVIGATION BAR
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all var(--transition-base);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(26, 37, 49, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 12px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    z-index: 1001;
}

.logo-img {
    height: 50px;
    width: auto;
    transition: transform var(--transition-base);
}

.logo:hover .logo-img {
    transform: scale(1.05);
}

/* Nav Menu */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
}

.nav-link {
    color: var(--color-white);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 10px 20px;
    border-radius: 50px;
    transition: all var(--transition-base);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-accent);
    background: rgba(243, 156, 18, 0.1);
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 2.5px;
    background-color: var(--color-white);
    border-radius: 3px;
    transition: all var(--transition-base);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, #2c3e50 50%, #34495e 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80vw;
    height: 80vw;
    background: radial-gradient(circle, rgba(243, 156, 18, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatOrb 20s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(243, 156, 18, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatOrb 25s ease-in-out infinite reverse;
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -40px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.02)" d="M0,96L48,112C96,128,192,160,288,165.3C384,171,480,149,576,149.3C672,149,768,171,864,165.3C960,160,1056,128,1152,117.3C1248,107,1344,117,1392,122.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 24px;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    color: var(--color-white);
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.accent-text {
    color: var(--color-accent);
    display: inline-block;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all var(--transition-base);
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-white);
    border-color: var(--color-accent);
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
    border-color: var(--color-white);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-large {
    padding: 18px 42px;
    font-size: 1.1rem;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator span {
    display: block;
    width: 24px;
    height: 38px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    position: relative;
}

.scroll-indicator span::after {
    content: '';
    width: 4px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollDown 1.8s ease-in-out infinite;
}

@keyframes scrollDown {
    0%, 100% { opacity: 1; top: 6px; }
    50% { opacity: 0.3; top: 18px; }
}

/* ===================================
   SECTION STYLES
   =================================== */
.section {
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-accent);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--color-primary-dark);
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-light);
    line-height: 1.8;
}

/* ===================================
   ABOUT SECTION
   =================================== */
.section-about {
    background-color: var(--color-bg-section);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content .section-tag,
.about-content .section-title {
    text-align: left;
}

.about-content p {
    font-size: 1.05rem;
    color: var(--color-text-light);
    margin-bottom: 16px;
    line-height: 1.8;
}

/* Feature Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.feature-card {
    background: var(--color-bg-light);
    padding: 28px 24px;
    border-radius: var(--radius-md);
    text-align: center;
    transition: all var(--transition-base);
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-accent-light);
    background: var(--color-accent-light);
}

.feature-card i {
    font-size: 2rem;
    color: var(--color-accent);
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 1.05rem;
    color: var(--color-primary-dark);
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 0;
    line-height: 1.6;
}

.about-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.about-image-wrapper:hover .about-img {
    transform: scale(1.03);
}

/* ===================================
   GALLERY SECTION
   =================================== */
.section-gallery {
    background-color: var(--color-bg-light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    display: block;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 37, 49, 0.85) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    font-size: 1.5rem;
    color: var(--color-accent);
    margin-bottom: 8px;
    align-self: center;
}

.gallery-overlay span {
    color: var(--color-white);
    font-weight: 600;
    font-size: 1rem;
}

/* LightGallery overrides */
.lg-backdrop, .lg-outer {
    z-index: 9999 !important;
}

/* ===================================
   brands SECTION
   =================================== */
.section-brands {
    background-color: var(--color-bg-section);
}

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

.brands-card {
    background: var(--color-white);
    padding: 40px 30px;
    border-radius: var(--radius-md);
    text-align: center;
    transition: all var(--transition-base);
    border: 1px solid var(--color-border);
    display: block;
}

.brands-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent);
}

.brands-logo-wrap {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80px;
}

.brands-logo-wrap img {
    max-width: 150px;
    height: auto;
    filter: grayscale(100%) opacity(0.6);
    transition: all var(--transition-base);
}

.brands-card:hover .brands-logo-wrap img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}

.brands-card h3 {
    font-size: 1.2rem;
    color: var(--color-primary-dark);
    margin-bottom: 8px;
}

.brands-card p {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

/* ===================================
   CTA SECTION
   =================================== */
.cta-section {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-secondary-dark) 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(243, 156, 18, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.cta-content h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--color-white);
    margin-bottom: 16px;
    font-weight: 700;
}

.cta-content p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 32px;
}

/* ===================================
   CONTACT SECTION
   =================================== */
.section-contact {
    background-color: var(--color-bg-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: start;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.contact-card {
    background: var(--color-white);
    padding: 28px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    border-left: 3px solid transparent;
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-left-color: var(--color-accent);
}

.contact-card i {
    font-size: 1.5rem;
    color: var(--color-accent);
    margin-bottom: 14px;
}

.contact-card h3 {
    font-size: 1rem;
    color: var(--color-primary-dark);
    margin-bottom: 8px;
}

.contact-card p,
.contact-card a {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.7;
}

.contact-card a:hover {
    color: var(--color-accent);
}

/* Contact Map */
.contact-map-wrapper {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    min-height: 400px;
}

.contact-map-wrapper iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border: none;
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    background-color: var(--color-primary-dark);
    color: rgba(255, 255, 255, 0.6);
    padding: 48px 0 24px;
}

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

.footer-logo {
    max-width: 180px;
    margin: 0 auto 20px;
    opacity: 0.7;
}

.footer-content p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 0.85rem;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

/* Tablet - 1024px */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px 0;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image-wrapper {
        order: -1;
        max-width: 600px;
        margin: 0 auto;
    }

    .about-img {
        height: 350px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablet - 768px */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
    }

    /* Mobile Navigation */
    .nav-toggle {
        display: flex;
    }

    /* Mobile menu backdrop overlay */
    .nav-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
        opacity: 0;
        pointer-events: none;
        transition: opacity var(--transition-base);
    }

    .nav-backdrop.active {
        opacity: 1;
        pointer-events: auto;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -320px;
        width: 280px;
        height: 100vh;
        height: 100dvh;
        background: var(--color-primary-dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 8px;
        transition: right var(--transition-base);
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
        z-index: 999;
    }

    .nav-menu.active {
        right: 0;
    }

    /* Prevent body scroll when mobile menu is open */
    body.menu-open {
        overflow: hidden;
    }

    .nav-link {
        font-size: 1.1rem;
        padding: 14px 28px;
        width: 100%;
        text-align: center;
    }

    /* Hero adjustments */
    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 16px;
    }

    .gallery-item img {
        height: 220px;
    }

    /* brands */
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .brands-card {
        padding: 24px 16px;
    }

    /* Contact cards */
    .contact-cards {
        grid-template-columns: 1fr;
    }

    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .feature-card {
        display: flex;
        align-items: center;
        text-align: left;
        gap: 16px;
        padding: 20px;
    }

    .feature-card i {
        margin-bottom: 0;
        min-width: 40px;
    }

    /* Section header */
    .section-header {
        margin-bottom: 40px;
    }
}

/* Mobile - 480px */
@media (max-width: 480px) {
    html {
        font-size: 15px;
    }

    .container {
        padding: 0 16px;
    }

    /* Hero */
    .hero {
        min-height: 100svh;
    }

    .hero-title {
        font-size: 2rem;
    }

    .scroll-indicator {
        bottom: 24px;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item img {
        height: 250px;
    }

    /* brands */
    .brands-grid {
        grid-template-columns: 1fr;
    }

    .brands-logo-wrap img {
        max-width: 120px;
    }

    /* CTA */
    .cta-section {
        padding: 60px 0;
    }

    /* Footer */
    .footer {
        padding: 32px 0 16px;
    }

    .footer-logo {
        max-width: 140px;
    }
}

/* Large screens */
@media (min-width: 1400px) {
    :root {
        --container-max: 1320px;
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}