/* Elektro Fogl - Premium Design 2.0 */

:root {
    /* Colors - Royal Blue & Gold Palette */
    --primary-color: #0a2540;
    /* Dark Royal Blue */
    --primary-light: #183b5e;
    --accent-color: #c5a059;
    /* Gold/Bronze */
    --accent-dark: #a08246;
    --text-color: #2b2b2b;
    --text-light: #555555;
    --bg-color: #ffffff;
    --bg-light: #f4f7f6;
    --bg-dark: #1a1a1a;
    --white: #ffffff;

    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Layout */
    --container-width: 1280px;
    --border-radius: 4px;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    font-size: 16px;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

ul {
    list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 1rem;
}

/* Layout Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-xl) 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.bg-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.bg-dark {
    background-color: var(--bg-dark);
    color: var(--white);
}

.text-center {
    text-align: center;
}

.text-gold {
    color: var(--accent-color);
}

.mb-1 {
    margin-bottom: var(--spacing-sm);
}

.mb-2 {
    margin-bottom: var(--spacing-md);
}

.mb-3 {
    margin-bottom: var(--spacing-lg);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #fff;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: #fff;
}

.btn-outline {
    background-color: transparent;
    border-color: var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-sm {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    background-color: var(--accent-color);
    color: white;
    border: none;
}

.btn-sm:hover {
    background-color: var(--accent-dark);
}


/* Header */
header {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.logo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1;
}

.logo-brand {
    font-size: 1.8rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.logo-city {
    font-size: 0.8rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    margin-top: 2px;
}

nav ul {
    display: flex;
    gap: 3rem;
}

nav a {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 5px;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: var(--transition);
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

/* Menu Toggle Button (Hidden on Desktop) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* Hero Section */
.hero {
    /* Updated to local image path */
    background: linear-gradient(rgba(10, 37, 64, 0.8), rgba(10, 37, 64, 0.7)), url('img/hero-prodejna.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 85vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
}

.hero-content {
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    color: var(--white);
    font-size: 4rem;
    font-weight: 800;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    margin-bottom: 2rem;
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Feature Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-md);
    margin-top: -80px;
    /* Overlap hero */
    position: relative;
    z-index: 10;
}

.feature-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border-bottom: 4px solid var(--accent-color);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
}

/* Services Section */
.service-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.service-icon-box {
    width: 60px;
    height: 60px;
    background-color: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: var(--transition);
}

.service-item:hover .service-icon-box {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Opening Hours Banner */
.hours-banner {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.hours-banner::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23183b5e' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Hours Table - Compact & Sleek */
.hours-container {
    max-width: 500px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
}

.hours-table {
    width: 100%;
    max-width: 400px;
    border-collapse: collapse;
    margin: 0 auto;
}

.hours-table td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hours-table tr:last-child td {
    border-bottom: none;
}

.hours-table .day {
    text-align: right;
    font-weight: 600;
    color: var(--accent-color);
    width: 50%;
}

.hours-table .time {
    text-align: left;
    font-weight: 700;
    font-size: 1.1rem;
    width: 50%;
}

/* Premium Frame Effect - Soft & Rounded */
.premium-frame {
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.premium-frame:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

/* Cookie Banner */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(10, 37, 64, 0.95);
    color: white;
    padding: 1rem 0;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.cookie-content p {
    margin: 0;
    font-size: 0.9rem;
}

.cookie-content a {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: var(--bg-dark);
    color: #aeaeae;
    padding-top: var(--spacing-xl);
    font-size: 0.95rem;
}

.footer-top {
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-col h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #aeaeae;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: flex-start;
}

.footer-contact i {
    color: var(--accent-color);
    margin-top: 5px;
}

/* Marquee / Slider Styles */
.marquee-container {
    overflow: hidden;
    padding: 2rem 0;
    position: relative;
    width: 100%;
}

.marquee-content {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 4rem;
    width: max-content;
    animation: scroll 30s linear infinite;
}

.marquee-content:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.marquee-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.marquee-item img {
    max-height: 40px;
    /* Smaller logos */
    filter: grayscale(100%) brightness(1.5);
    /* Whiter/Grayscale look */
    opacity: 0.6;
    transition: var(--transition);
}

.marquee-item img:hover {
    filter: none;
    opacity: 1;
    transform: scale(1.1);
}

/* History / About integrations - GLOBAL VERTICAL STACK */
.about-integrated-flex {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    text-align: center;
    align-items: center;
}

.about-img-box {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
}

/* Service Slide Grid (Alternative to marquee) */
.services-slider {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding: 1rem 0;
    scrollbar-width: none;
    /* Hide scrollbar Firefox */
    -ms-overflow-style: none;
    /* Hide scrollbar IE/Edge */
}

.services-slider::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar Chrome/Safari */
}

.service-slide-card {
    min-width: 200px;
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.service-slide-card i {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.footer-bottom {
    padding: 2rem 0;
    text-align: center;
    font-size: 0.85rem;
    color: #777;
}

/* Responsive */
@media (max-width: 768px) {

    /* Menu Styles */
    .menu-toggle {
        display: block;
        /* Show hamburger */
    }

    /* Change nav to absolute/dropdown */
    nav {
        position: absolute;
        top: 90px;
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        padding: 0;
        transform: translateY(-150%);
        /* Hidden by default */
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
        z-index: 999;
    }

    nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
        margin-top: 0;
        padding: 1rem 0;
    }

    nav li {
        text-align: center;
    }

    nav a {
        display: block;
        padding: 1rem 2rem;
        border-bottom: 1px solid #f0f0f0;
    }

    nav a:hover,
    nav a.active {
        background-color: var(--bg-light);
        color: var(--accent-color);
    }

    /* existing styles */
    h1 {
        font-size: 2.5rem;
    }

    header .container {
        flex-direction: row;
        height: auto;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .text-center-mobile {
        text-align: center !important;
    }

    .hero {
        height: auto;
        min-height: 400px;
        padding: 5rem 0;
        background-attachment: scroll !important;
    }

    .hero-content {
        padding: 0 1.5rem;
    }

    .hero h1 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .features-grid {
        margin-top: 2rem;
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }

    /* History / About integrations - Mobile specific tweaks if any */
    .about-img-box {
        margin-bottom: 2rem;
    }

    /* Contacts responsive */
    .contacts-stack {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    .contacts-stack>div {
        width: 100% !important;
    }

    /* Fixed overflow items */
    .section,
    .container {
        overflow-x: hidden;
    }
}