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

/* Didot/Bodoni Font for Logo */
@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:wght@400;600;700&display=swap');

/* Font Awesome Icons */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

/* Removed unused font weights 800, 900 to reduce CSS size */

/* Base Styles - Colors, Typography, and Layout */
:root {
    /* Color Variables */
    --primary-color: #000000;
    --secondary-color: #000000;
    --accent-color: #ffffff;
    --background-color: #f6efeb;
    --text-color: #000000;
    --border-color: rgba(128, 128, 128, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.1);
    --hover-bg: rgba(255, 255, 255, 0.9);
    
    /* Background Gradients */
    --section-bg-gradient: linear-gradient(180deg, rgba(245, 235, 231, 0) 70%, rgba(245, 235, 231, 1) 100%);
    --section-bg-gradient-alt: linear-gradient(180deg, rgba(245, 235, 231, 0) 70%, rgba(245, 235, 231, 1) 100%);
    --section-bg-gradient-warm: linear-gradient(180deg, rgba(245, 235, 231, 0) 70%, rgba(245, 235, 231, 1) 100%);
    
    /* Typography - Font Sizes */
    --font-family: 'Montserrat', sans-serif;
    --base-font-size: 16px;

    /* Font Size Scale - rem based for consistency */
    --font-size-xs: 0.75rem;      /* 12px - Small text, captions */
    --font-size-sm: 0.875rem;     /* 14px - Secondary text */
    --font-size-base: 1rem;       /* 16px - Body text */
    --font-size-md: 1.125rem;     /* 18px - Large body text */
    --font-size-lg: 1.25rem;      /* 20px - Small headings */
    --font-size-xl: 1.5rem;       /* 24px - Subheadings */
    --font-size-2xl: 2rem;        /* 32px - Section titles */
    --font-size-3xl: 2.5rem;      /* 40px - Page titles */
    --font-size-4xl: 3rem;        /* 48px - Hero titles */
    --font-size-5xl: 4rem;        /* 64px - Large hero titles */
    --font-size-6xl: 5rem;        /* 80px - Giant section titles */

    /* Line Heights */
    --line-height-tight: 1.2;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.6;
    --line-height-loose: 1.8;
    
    /* Layout */
    --container-max-width: 95%;
    --container-padding: 20px;
    --navbar-height: 70px;
    --border-radius: 8px;
    
    /* Transitions */
    --transition-smooth: 0.3s ease;
    --transition-fast: 0.1s ease;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: auto;
    overscroll-behavior: none;
}

body {
    font-family: var(--font-family);
    font-size: var(--base-font-size);
    font-weight: 300; /* Montserrat Light */
    line-height: var(--line-height-normal);
    color: var(--text-color);
    background-color: var(--background-color);
    scroll-behavior: auto;
    overscroll-behavior: none;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Prevent background scrolling when modal/lightbox is open */
body.no-scroll {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
    left: 0;
    right: 0;
}

/* Typography - Global Heading Styles */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family);
    font-weight: 300; /* Montserrat Light */
    line-height: var(--line-height-tight);
    margin: 0;
}

h1 {
    font-size: var(--font-size-5xl);
    font-weight: 300;
}

h2 {
    font-size: var(--font-size-3xl);
    font-weight: 300;
}

h3 {
    font-size: var(--font-size-2xl);
    font-weight: 300;
}

h4 {
    font-size: var(--font-size-xl);
    font-weight: 300;
}

h5 {
    font-size: var(--font-size-lg);
    font-weight: 300;
}

h6 {
    font-size: var(--font-size-base);
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Paragraph Styles */
p {
    font-size: var(--font-size-base);
    font-weight: 300; /* Montserrat Light */
    line-height: var(--line-height-relaxed);
    margin: 0 0 1rem 0;
}

p:last-child {
    margin-bottom: 0;
}

/* Text Size Utility Classes - Removed unused utilities */

/* Common accent line component */
.about-accent-line {
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    display: block;
    margin-bottom: 15px;
}

/* Responsive Typography */
@media (max-width: 768px) {
    :root {
        --base-font-size: 14px;
        --font-size-5xl: 2.5rem;    /* 40px on mobile */
        --font-size-6xl: 3rem;      /* 48px on mobile */
    }

    h1 { font-size: var(--font-size-4xl); }
    h2 { font-size: var(--font-size-2xl); }
    h3 { font-size: var(--font-size-xl); }
    
    p, li {
        font-size: 0.9rem;
        font-weight: 300;
        color: #000000;
    }
}

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


/* Scroll Progress Indicator - Removed unused component */

/* Navigation Base Styles */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all var(--transition-smooth);
}

.navbar-transparent {
    background: transparent;
    transition: all var(--transition-smooth);
    box-shadow: none;
}

.navbar-transparent.scrolled,
.navbar-transparent.mobile-menu-open {
    background: var(--hover-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px var(--shadow-color);
}

.nav-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: var(--container-padding);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Base Styles */
.logo-link {
    text-decoration: none;
    transition: opacity var(--transition-smooth);
}

.logo-link:hover {
    opacity: 0.8;
}

.logo-img,
.logo-image {
    height: var(--navbar-height);
    width: auto;
    object-fit: contain;
}

/* Button Base Styles - Removed unused button components */

/* Utility Classes - Removed unused utility classes */

/* Section Background Gradients */
section {
    background: #f5eeea;
    position: relative;
}

section:nth-child(even) {
    background: #f5eeea;
}

section:nth-child(3n) {
    background: #f5eeea;
}

/* Specific section overrides */
.hero {
    background: #f5eeea;
}

.about {
    background: #f5eeea;
}

.home-products {
    background: #f5eeea;
}

.gallery {
    background: #f5eeea;
}

/* Cookie Consent Styles */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    color: white;
    padding: 20px;
    z-index: 10000;
    display: none;
    backdrop-filter: blur(5px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-consent.show {
    display: block;
}

.cookie-consent-content {
    max-width: 95%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-consent-text {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
}

.cookie-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.cookie-message {
    font-size: 14px;
    line-height: 1.4;
}

.cookie-actions {
    display: flex;
    gap: 15px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
}

.cookie-btn.accept {
    background: var(--primary-color);
    color: white;
}

.cookie-btn.accept:hover {
    background: rgba(51, 51, 51, 0.9);
    transform: translateY(-1px);
}

.cookie-btn.settings {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-btn.settings:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Cookie Settings Modal */
.cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.cookie-settings-modal.show {
    display: flex;
}

.cookie-settings-content {
    background: #f6efeb;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: popupZoom 0.3s ease;
}

@keyframes popupZoom {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.cookie-settings-header {
    padding: 30px 30px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-settings-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #000;
    margin: 0;
}

.cookie-settings-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #000;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

.cookie-settings-close:hover {
    color: #000;
}

.cookie-settings-body {
    padding: 30px;
}

.cookie-category {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.cookie-category:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.cookie-category-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #000;
    margin: 0;
}

.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 26px;
}

.cookie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: #f6efeb;
    transition: 0.3s;
    border-radius: 50%;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background-color: var(--primary-color);
}

.cookie-toggle input:checked + .cookie-toggle-slider:before {
    transform: translateX(24px);
}

.cookie-toggle input:disabled + .cookie-toggle-slider {
    background-color: var(--primary-color);
    cursor: not-allowed;
}

.cookie-category-description {
    color: #000;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-top: 8px;
}

.cookie-settings-footer {
    padding: 20px 30px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.cookie-settings-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cookie-settings-btn.save {
    background: var(--primary-color);
    color: white;
}

.cookie-settings-btn.save:hover {
    background: rgba(51, 51, 51, 0.9);
}

.cookie-settings-btn.accept-all {
    background: #333;
    color: white;
}

.cookie-settings-btn.accept-all:hover {
    background: #000;
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --container-max-width: 100%;
        --container-padding: 15px;
        --navbar-height: 50px;
    }
    
    .container {
        max-width: 90%;
        padding: 0;
    }
    
    .cookie-consent-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .cookie-actions {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-settings-content {
        width: 95%;
        margin: 20px;
    }
    
    .cookie-settings-header,
    .cookie-settings-body,
    .cookie-settings-footer {
        padding: 20px;
    }
    
    .cookie-settings-footer {
        flex-direction: column;
    }
    
    .cookie-settings-btn {
        width: 100%;
    }
}

/* Fix Google Maps scroll interference globally */
.location-map-container {
    position: relative;
}

.location-map-container iframe {
    pointer-events: none;
}

.location-map-container:hover::after {
    content: "Kliknite pre interakciu s mapou";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: var(--font-size-sm);
    pointer-events: none;
    z-index: 10;
}

.location-map-container.active iframe {
    pointer-events: auto;
}

.location-map-container.active:hover::after {
    display: none;
}