/* PEMAKON - Custom CSS */

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

/* Custom barvy pro Tailwind */
:root {
    --color-antracit: #2D2D2D;
    --color-seda: #4A4A4A;
    --color-svetla: #F5F5F5;
    --color-orange: #F4831F;
    --color-orange-dark: #D9710F;
    --color-text-dark: #333333;
    --color-text-light: #FFFFFF;
}

/* Base styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--color-text-dark);
}

/* Hero overlay */
.hero-overlay {
    background: linear-gradient(135deg, rgba(45, 45, 45, 0.85) 0%, rgba(45, 45, 45, 0.6) 100%);
}

/* Ken Burns efekt */
@keyframes kenBurns {
    0% {
        transform: scale(1) translate(0, 0);
    }
    100% {
        transform: scale(1.15) translate(-2%, -1%);
    }
}

.ken-burns {
    animation: kenBurns 20s ease-out forwards;
}

/* Animace */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-delay-100 { animation-delay: 0.1s; }
.animate-delay-200 { animation-delay: 0.2s; }
.animate-delay-300 { animation-delay: 0.3s; }
.animate-delay-400 { animation-delay: 0.4s; }

/* Hover efekty pro karty */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Tlačítka */
.btn-primary {
    background-color: var(--color-orange);
    color: white;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover {
    background-color: var(--color-orange-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--color-orange);
    color: var(--color-orange);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--color-orange);
    color: white;
}

/* Header sticky */
.header-scrolled {
    background-color: rgba(45, 45, 45, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Mobile menu */
#mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    background-color: #2D2D2D;
}

#mobile-menu.active {
    transform: translateX(0);
}

/* Mobile menu overlay */
body.menu-open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 39;
}

/* Hamburger animace */
.hamburger span {
    transition: all 0.3s ease;
}

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

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

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

/* Sekce */
.section-light {
    background-color: var(--color-svetla);
}

.section-dark {
    background-color: var(--color-antracit);
    color: var(--color-text-light);
}

/* Služba karta */
.service-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.service-card img {
    transition: transform 0.5s ease;
}

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

/* Technika karta */
.technika-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e5e5;
}

/* Formulář */
.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-orange);
    box-shadow: 0 0 0 3px rgba(244, 131, 31, 0.15);
}

.form-input::placeholder {
    color: #999;
}

/* Form message */
.form-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.form-message--success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message--error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Footer */
footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--color-orange);
}

/* Scroll to top */
.scroll-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background-color: var(--color-orange);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 50;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background-color: var(--color-orange-dark);
    transform: translateY(-3px);
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--color-orange);
}

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

.gallery-item {
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 8px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

/* Responsive fixes */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }
}
