/*
Theme Name: SokolPustkovec-Pro
Theme URI: https://sokol-pustkovec.cz
Author: Pixelcraft.cz
Author URI: https://pixelcraft.cz
Description: A complete, high-end WordPress theme for Sokol Pustkovec.
Version: 2.0.0
Text Domain: spvpustkovec.cz
*/

/* CSS Variables & Bootstrap Overrides */
:root {
    --bs-primary: #0056B3;
    /* Sokol Blue */
    --bs-success: #78BE20;
    /* Vitality Green */
    --primary-blue: #0056B3;
    --vitality-green: #78BE20;
    --bg-offwhite: #F8F9FA;
    --text-charcoal: #212529;
}

body {
    background-color: var(--bg-offwhite);
    color: var(--text-charcoal);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif;
}

/* Bootstrap Button Overrides */
.btn-primary {
    --bs-btn-bg: var(--primary-blue);
    --bs-btn-border-color: var(--primary-blue);
    --bs-btn-hover-bg: #004494;
    --bs-btn-hover-border-color: #004494;
}

.btn-success {
    --bs-btn-bg: var(--vitality-green);
    --bs-btn-border-color: var(--vitality-green);
    --bs-btn-hover-bg: #66a31b;
    --bs-btn-hover-border-color: #66a31b;
}

/* Navbar - Glassmorphism */
.navbar {
    transition: all 0.3s ease;
}

.navbar-transparent {
    background-color: transparent !important;
    box-shadow: none;
}

.navbar-solid {
    background-color: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

/* Hero Section */
.hero-section {
    position: relative;
    color: white;
    padding: 120px 0;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 86, 179, 0.9), rgba(120, 190, 32, 0.85));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Department Hover Cards */
.dept-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    overflow: hidden;
}

.dept-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.dept-icon {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

/* Accordion */
.accordion-button:not(.collapsed) {
    background-color: rgba(0, 86, 179, 0.1);
    color: var(--primary-blue);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 86, 179, 0.25);
}

/* Contact Cards */
.contact-card {
    border-left: 4px solid var(--primary-blue);
    transition: all 0.3s ease;
}

.contact-card:hover {
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Back to Top */
#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    z-index: 999;
}

/* Responsive Table */
.sokol-table {
    width: 100%;
    margin-bottom: 1rem;
    vertical-align: top;
    border-color: #dee2e6;
}

.sokol-table th {
    background-color: var(--primary-blue);
    color: white;
}

@media (max-width: 768px) {
    .table-responsive-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Navbar Custom Colors */
.navbar-light .navbar-nav .nav-link {
    color: var(--primary-blue) !important;
    font-weight: 500;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--vitality-green) !important;
}

.navbar-light .navbar-nav .nav-link.active {
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

/* Gallery Zoom Effect */
.gallery-item {
    display: block;
    overflow: hidden;
    border-radius: 0.5rem;
}

.gallery-img {
    transition: transform 0.4s ease;
    width: 100%;
    height: 250px;
    object-fit: cover;
}

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

/* Partners Grayscale */
.partner-logo {
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
    max-height: 80px;
    width: auto;
}

.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* --- NEW STYLES 2025 --- */

/* 1. Hero Section Updates */
.hero-pustkovec {
    background-image: url('http://www.spvpustkovec.cz/wp-content/uploads/2026/02/zen1.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax Effect */
    position: relative;
    min-height: 85vh;
    /* Slightly taller */
    display: flex;
    align-items: center;
}

/* Gradient Overlay - 20 degree linear gradient from #003366 to transparent */
.hero-pustkovec .hero-overlay {
    background: linear-gradient(110deg, #003366 30%, rgba(0, 51, 102, 0) 100%);
    opacity: 0.9;
}

.hero-title {
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .hero-title {
        margin-bottom: 50px;
        /* Requested mobile margin */
        font-size: 2.5rem;
    }
}

/* Shape Divider (Waves) */
.custom-shape-divider-bottom-1 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.custom-shape-divider-bottom-1 svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
    transform: rotateY(180deg);
}

.custom-shape-divider-bottom-1 .shape-fill {
    fill: #FFFFFF;
    /* Matches section below */
}


/* 2. Glassmorphism & Cards */
.glass-effect {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

/* 3. Bento Grid Layout */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .bento-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: auto auto;
        /* Allow flexible rows */
    }

    /* Asymmetric Layout Example */
    .bento-item-large {
        grid-column: span 2;
        grid-row: span 1;
    }

    .bento-item-tall {
        grid-row: span 2;
    }
}

.bento-card {
    border-radius: 20px;
    /* Rounded corners */
    overflow: hidden;
    height: 100%;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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


/* 4. Animations */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.delay-100 {
    animation-delay: 100ms;
}

.delay-200 {
    animation-delay: 200ms;
}

.delay-300 {
    animation-delay: 300ms;
}

.delay-400 {
    animation-delay: 400ms;
}

/* 5. Testimonials */
.testimonial-card {
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
}

.testimonial-quote {
    font-size: 1.1rem;
    font-style: italic;
    color: #555;
}

.testimonial-author {
    font-weight: bold;
    color: var(--primary-blue);
}

/* Social Proof Section Background */
.bg-gradient-light {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* --- MOBILE MENU FIXES --- */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        padding: 1.5rem;
        border-radius: 1rem;
        margin-top: 1rem;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
        border: 1px solid rgba(255, 255, 255, 0.5);
    }

    /* Force link colors to be dark/brand colors inside the mobile menu, 
       even if the parent navbar is set to "dark" (white text) */
    .navbar-nav .nav-link {
        color: var(--primary-blue) !important;
        padding-left: 1rem;
        border-radius: 0.5rem;
        margin-bottom: 0.25rem;
    }

    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link.active {
        background-color: rgba(0, 86, 179, 0.05);
        color: var(--vitality-green) !important;
        transform: translateX(5px);
    }

    /* Center the toggle button if needed or add margin */
    .navbar-toggler {
        border-color: rgba(255, 255, 255, 0.5);
    }
}