/*
Theme Name: CALIK Trade Group
Theme URI: https://calik.cz
Author: CALIK Trade Group s.r.o.
Author URI: https://calik.cz
Description: WordPress téma pre CALIK Trade Group – expert na HORECA a distribúciu prémiových olivových olejov.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: calik-trade
*/

/* --- ZÁKLADNÉ PREMENNÉ --- */
:root {
    --font-montserrat: 'Montserrat', sans-serif;
    --font-lato: 'Lato', sans-serif;
    --background: #fafafa;
    --foreground: #333840;
    --card: #ffffff;
    --primary: #2d3a4f;
    --primary-foreground: #ffffff;
    --secondary: #e6c27a;
    --secondary-foreground: #333840;
    --muted: #f3f4f6;
    --muted-foreground: #6b7280;
    --border: #e5e7eb;
    --radius: 0.625rem;
}

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

body {
    font-family: var(--font-lato);
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-montserrat);
    font-weight: 700;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    font-family: var(--font-montserrat);
    gap: 0.5rem;
}

.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { opacity: 0.9; }
.btn-secondary { background: var(--secondary); color: var(--secondary-foreground); }
.btn-secondary:hover { opacity: 0.9; }
.btn-outline { border: 1px solid var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: white; }

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(230, 194, 122, 0.2);
    border-radius: 999px;
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* HEADER */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: all 0.3s;
    background: transparent;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid var(--border);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo img { height: 48px; width: auto; }

nav.desktop-nav {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) { nav.desktop-nav { display: flex; } }

nav a {
    text-decoration: none;
    color: var(--foreground);
    font-weight: 500;
    font-size: 0.875rem;
    transition: color 0.2s;
}

nav a:hover { color: var(--secondary); }

.lang-switcher {
    display: flex;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    overflow: hidden;
}

.lang-btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: bold;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s;
}

.lang-btn.active { background: var(--primary); color: white; }

.mobile-menu-btn { display: block; background: none; border: none; cursor: pointer; padding: 0.5rem; }
@media (min-width: 768px) { .mobile-menu-btn { display: none; } }

.mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
    padding: 1.5rem;
    z-index: 40;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 1.125rem; padding: 0.5rem 0; border-bottom: 1px solid var(--border); }

/* HERO */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary) 0%, rgba(45, 58, 79, 0.95) 50%, rgba(45, 58, 79, 0.8) 100%);
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.1;
    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='%23ffffff' fill-opacity='0.4'%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");
}

.hero-content {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) { .hero-content { grid-template-columns: 1fr 1fr; } }

.hero-text { text-align: center; }
@media (min-width: 1024px) { .hero-text { text-align: left; } }

.hero-title {
    font-size: 2.5rem;
    color: white;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}
@media (min-width: 768px) { .hero-title { font-size: 3.5rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 4rem; } }

.hero-title span { color: var(--secondary); }

.hero-subtitle {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.8);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}
@media (min-width: 1024px) { .hero-subtitle { margin: 0 0 2.5rem; } }

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}
@media (min-width: 640px) { .hero-buttons { flex-direction: row; } }
@media (min-width: 1024px) { .hero-buttons { justify-content: flex-start; } }

.hero-image-container {
    position: relative;
    aspect-ratio: 1/1;
    max-width: 500px;
    margin: 0 auto;
}

.hero-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 20px 25px rgba(0,0,0,0.2));
}

/* MARQUEE */
.marquee-banner {
    background: var(--primary);
    overflow: hidden;
    padding: 0.75rem 0;
    white-space: nowrap;
}

.marquee-content {
    display: inline-block;
    animation: marquee 25s linear infinite;
}

.marquee-item {
    display: inline-block;
    margin: 0 2rem;
    color: var(--primary-foreground);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.marquee-star { color: var(--secondary); margin: 0 1rem; }

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* SECTIONS */
.section { padding: 6rem 0; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-title { font-size: 2.5rem; color: var(--foreground); margin-bottom: 1rem; }
.section-title span { color: var(--primary); }

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.product-card {
    background: var(--card);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.product-card:hover { transform: translateY(-5px); box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); }

.product-image-wrapper {
    position: relative;
    aspect-ratio: 4/3;
    background: linear-gradient(to bottom, var(--muted), #f0f0f0);
    overflow: hidden;
}

.product-image-wrapper img { width: 100%; height: 100%; object-fit: contain; padding: 1rem; transition: transform 0.5s; }
.product-card:hover .product-image-wrapper img { transform: scale(1.05); }

.product-content { padding: 2rem; }
.product-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; }
.tag { padding: 0.25rem 0.75rem; background: rgba(230, 194, 122, 0.2); color: var(--primary); font-size: 0.875rem; font-weight: 500; border-radius: 999px; }

/* CATALOG MODAL */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-backdrop.open { display: flex; }

.modal-content {
    background: var(--background);
    width: 100%;
    max-width: 1200px;
    max-height: 90vh;
    border-radius: 1rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-header {
    background: var(--primary);
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
}

.catalog-category {
    margin-bottom: 2.5rem;
    background: var(--card);
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid var(--border);
}

.category-header {
    padding: 1.25rem 1.5rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
}

.category-content {
    display: grid;
    grid-template-columns: 250px 1fr;
}

.category-image {
    position: relative;
    height: 250px;
}
.category-image img { width: 100%; height: 100%; object-fit: cover; }

.products-list {
    padding: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
}

.catalog-item {
    background: var(--muted);
    padding: 1.25rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.catalog-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.catalog-item h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.catalog-item p {
    font-size: 0.825rem;
    color: var(--muted-foreground);
    line-height: 1.5;
}

.close-modal {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
}
.close-modal:hover { background: rgba(255,255,255,0.1); }

/* SHOP NOTICE MODAL */
.notice-modal {
    background: var(--card);
    width: 100%;
    max-width: 420px;
    border-radius: 1rem;
    padding: 2.5rem 2rem 2rem;
    text-align: center;
    position: relative;
    border: 2px solid var(--primary);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: notice-pop 0.25s ease-out;
}

@keyframes notice-pop {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.notice-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--muted);
    border: none;
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--foreground);
    transition: background 0.2s;
}

.notice-modal-close:hover { background: var(--border); }

.notice-modal-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1.5rem;
    background: rgba(230, 194, 122, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.notice-modal-title {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.notice-modal-text {
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.notice-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.notice-modal-actions .btn { width: 100%; }

@media (max-width: 768px) {
    .category-content { grid-template-columns: 1fr; }
    .category-image { height: 180px; }
    .products-list { grid-template-columns: 1fr; }
}

/* SERVICES */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--muted);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    border-bottom: 4px solid var(--primary);
}

.service-icon {
    width: 64px;
    height: 64px;
    background: rgba(230, 194, 122, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--secondary);
}

/* CONTACT */
.contact-card {
    background: var(--card);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--primary);
}

.contact-item {
    display: flex;
    align-items: start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 3rem;
    height: 3rem;
    background: rgba(230, 194, 122, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* FOOTER */
footer { background: var(--primary); color: white; padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; margin-bottom: 3rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.footer-logo img { height: 48px; width: auto; filter: brightness(0) invert(1); margin-bottom: 1rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a { color: rgba(255,255,255,0.8); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--secondary); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.2); padding-top: 2rem; display: flex; flex-direction: column; gap: 1rem; align-items: center; text-align: center; }
@media (min-width: 640px) { .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; } }

/* VOP */
.vop-section {
    background: var(--muted);
    padding: 4rem 0;
    border-top: 1px solid var(--border);
}

.vop-content {
    background: var(--card);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border);
    max-height: 400px;
    overflow-y: auto;
    font-size: 0.9rem;
    line-height: 1.8;
}

.vop-content h3 {
    font-size: 1.25rem;
    color: var(--primary);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.vop-content ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.vop-content li {
    margin-bottom: 0.5rem;
}

.toggle-vop-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    margin-top: 1rem;
}
