/*
  Theme: 'Jak se přestěhovat a pracovat v Česku: Průvodce pro cizince'
  Design System: Futuristic with Volumetric UI elements
  Color Scheme: Complementary
  Animation Style: Hand-drawn (interpreted as smooth, slightly playful, modern animations)
  Fonts: Montserrat (headings), Merriweather (body)
*/

:root {
    --primary-color: #00A8E8; /* Bright Cyan/Blue - Main interactive elements */
    --secondary-color: #FF6B6B; /* Coral Red - Strong accent, CTAs */
    --accent-color: #FFD166; /* Sunglow Yellow - Secondary accent, highlights */

    --text-color: #E0E0E0; /* Light Gray/Off-White for dark backgrounds */
    --text-color-dark: #212121; /* Dark Gray for light backgrounds */
    --text-color-muted: #A0B0C0; /* Muted text for less important info */

    --bg-color-dark: #0D1B2A; /* Very Dark Desaturated Blue - Main background */
    --bg-color-light-texture: #1B263B; /* Darker, slightly more saturated blue - for textured/alternate sections */
    --card-bg-color: rgba(27, 38, 59, 0.85); /* Semi-transparent dark blue for cards */
    --glass-bg-color: rgba(27, 38, 59, 0.6); /* For glassmorphism effect on navbar */
    --border-color: rgba(0, 168, 232, 0.3); /* Primary color with alpha for borders */

    --hover-glow-primary: 0 0 15px rgba(0, 168, 232, 0.7);
    --hover-glow-accent: 0 0 15px rgba(255, 209, 102, 0.7);

    --volumetric-shadow: 6px 6px 18px rgba(0, 0, 0, 0.35), -4px -4px 12px rgba(40, 50, 70, 0.15);
    --volumetric-shadow-light: 3px 3px 10px rgba(0, 0, 0, 0.25), -2px -2px 8px rgba(50, 60, 80, 0.1);

    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Merriweather', serif;

    --transition-speed: 0.35s;
    --transition-ease: cubic-bezier(0.25, 0.8, 0.25, 1); /* Smooth, slightly springy */

    --header-height-actual: 70px; /* Adjust based on actual rendered header height */
    --footer-height-actual: 280px; /* Adjust based on actual rendered footer height */
}

/* === GLOBAL STYLES === */
body {
    font-family: var(--font-secondary);
    background-color: var(--bg-color-dark);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6, .section-title {
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
    margin-bottom: 1rem; /* Default bottom margin */
}

.section-title {
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 2.2rem;
    margin-bottom: 3rem !important; /* Bootstrap override with more space */
    text-align: center;
}
@media (max-width: 768px) {
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem !important;
    }
}


p, .text-content, .accordion-body {
    font-family: var(--font-secondary);
    color: var(--text-color);
    font-size: 1rem; /* Base size for Bootstrap */
    margin-bottom: 1.25rem;
}

.text-content-card {
    font-size: 0.9rem;
    color: var(--text-color-muted);
    line-height: 1.6;
}

.text-content-footer {
    font-size: 0.9rem;
    color: #B0B0C0; /* Slightly brighter muted for footer */
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color var(--transition-speed) var(--transition-ease);
}
a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.read-more-link {
    display: inline-block;
    font-family: var(--font-primary);
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
    position: relative;
    padding-bottom: 3px;
    transition: color var(--transition-speed) var(--transition-ease);
}
.read-more-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-speed) var(--transition-ease);
}
.read-more-link:hover {
    color: var(--primary-color);
    text-decoration: none;
}
.read-more-link:hover::after {
    width: 100%;
}

/* === GLOBAL BUTTON STYLES === */
.btn, button, input[type='submit'], input[type='button'] {
    font-family: var(--font-primary);
    font-weight: 600;
    padding: 0.8rem 2rem; /* Increased padding */
    border-radius: 50px; /* Pill shape */
    transition: all var(--transition-speed) var(--transition-ease);
    text-transform: uppercase;
    letter-spacing: 1px; /* More spacing */
    border: 2px solid transparent;
    cursor: pointer;
    box-shadow: 0 5px 10px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.btn:active, button:active, input[type='submit']:active, input[type='button']:active {
    transform: translateY(2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.btn-primary.futuristic-button, .futuristic-button {
    background-color: var(--primary-color);
    color: var(--bg-color-dark); /* Dark text on primary button */
    border-color: var(--primary-color);
}
.btn-primary.futuristic-button:hover, .futuristic-button:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--bg-color-dark);
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 18px rgba(0,0,0,0.25), var(--hover-glow-accent);
}

.btn-outline-primary.futuristic-button-outline, .futuristic-button-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}
.btn-outline-primary.futuristic-button-outline:hover, .futuristic-button-outline:hover {
    background-color: var(--primary-color);
    color: var(--bg-color-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2), var(--hover-glow-primary);
}
.btn-sm.futuristic-button-outline { /* For smaller outline buttons like in resource cards */
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
}

/* === HEADER & NAVBAR === */
.navbar.bg-dark-transparent {
    background-color: var(--glass-bg-color) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
    transition: background-color var(--transition-speed) var(--transition-ease);
}
.navbar-brand {
    font-size: 1.9rem;
    color: var(--accent-color) !important;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.navbar-nav .nav-link {
    color: var(--text-color) !important;
    font-family: var(--font-primary);
    font-weight: 500;
    margin-left: 0.8rem;
    margin-right: 0.8rem;
    padding: 0.5rem 0.8rem;
    position: relative;
    transition: color var(--transition-speed) var(--transition-ease);
    font-size: 0.95rem;
}
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2.5px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: width var(--transition-speed) var(--transition-ease);
}
.navbar-nav .nav-link:hover::after, .navbar-nav .nav-link.active::after {
    width: 70%;
}
.navbar-toggler {
    border-color: rgba(0, 168, 232, 0.5);
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 168, 232, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: var(--glass-bg-color);
        margin-top: 10px;
        border-radius: 8px;
        padding: 15px;
        border: 1px solid var(--border-color);
    }
    .navbar-nav .nav-link {
        margin-left: 0;
        margin-right: 0;
        padding: 0.8rem 0.5rem;
    }
    .navbar-nav .nav-link::after {
        bottom: 2px;
    }
}

/* === HERO SECTION === */
.hero-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    /* The linear-gradient overlay is applied inline in HTML */
}
.hero-section h1 {
    color: #FFFFFF !important; /* STRICT: Hero text must be white */
    font-size: 3.2rem; /* Slightly larger */
    font-weight: 700;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8); /* Stronger shadow */
    line-height: 1.2;
}
.hero-section .lead {
    color: #F0F0F0 !important;
    font-size: 1.5rem; /* Slightly larger */
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 8px rgba(0,0,0,0.7);
    line-height: 1.6;
}
@media (max-width: 768px) {
    .hero-section { min-height: 80vh; }
    .hero-section h1 { font-size: 2.5rem; }
    .hero-section .lead { font-size: 1.2rem; }
}

/* === GENERAL SECTION STYLING === */
section {
    padding-top: 5rem;
    padding-bottom: 5rem;
    position: relative;
}
.bg-light-texture {
    background-color: var(--bg-color-light-texture);
    /* background-image: url('image/futuristic-subtle-pattern.png'); // Example for texture */
    /* background-blend-mode: overlay; */
}

/* === CARD STYLES (Volumetric, Info, Image, Testimonial, Resource) === */
.card {
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 18px; /* More rounded */
    transition: transform var(--transition-speed) var(--transition-ease), box-shadow var(--transition-speed) var(--transition-ease);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%; /* For equal height cards in Bootstrap rows */
    box-shadow: var(--volumetric-shadow-light);
}
.volumetric-card:hover {
    transform: translateY(-12px) scale(1.03); /* More pronounced hover */
    box-shadow: var(--volumetric-shadow), 0 0 25px var(--primary-color);
}
.card .card-body {
    padding: 1.75rem; /* More padding */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.card .card-title {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 1rem; /* More space below title */
    font-size: 1.3rem;
}
/* Card image container */
.card .card-image {
    width: 100%;
    height: 220px; /* Consistent height for card images */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-color); /* Separator */
}
.card .card-image img.card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s var(--transition-ease), filter 0.4s var(--transition-ease);
}
.card:hover .card-image img.card-img-top {
    transform: scale(1.08);
    filter: brightness(1.1);
}
/* Info Card */
.info-card .card-body { text-align: center; }
.info-card .card-title { color: var(--primary-color); }

/* Testimonial Card */
.testimonial-card .card-body {
    position: relative;
    text-align: center;
    padding-top: 1rem; /* Adjusted as avatar is in flow */
}
.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid var(--primary-color);
    box-shadow: 0 0 12px rgba(0, 168, 232, 0.6);
    margin: 0 auto 1rem auto; /* Centered and spacing */
    object-fit: cover;
}
.testimonial-card .blockquote-footer {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: 0.5rem;
}
.testimonial-card .card-text {
    font-style: italic;
    color: #C8D3E0; /* Slightly brighter italic text */
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

/* Resource Card */
.resource-card .card-title { font-size: 1.15rem; }
.resource-card .btn-outline-secondary { /* Using the global button style with adjustments */
    color: var(--accent-color);
    border-color: var(--accent-color);
}
.resource-card .btn-outline-secondary:hover {
    background-color: var(--accent-color);
    color: var(--bg-color-dark);
    box-shadow: 0 0 10px var(--hover-glow-accent);
}
.resource-card .card-text {
    font-size: 0.85rem;
}

/* Volumetric Image Container (e.g., History section) */
.volumetric-image-container img {
    border-radius: 12px;
    box-shadow: var(--volumetric-shadow);
    transition: transform var(--transition-speed) var(--transition-ease), box-shadow var(--transition-speed) var(--transition-ease);
}
.volumetric-image-container:hover img {
    transform: scale(1.04) rotate(-1.5deg);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3), 0 0 15px var(--primary-color);
}


/* === FAQ SECTION (ACCORDION) === */
.futuristic-accordion .accordion-item {
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 1.25rem;
    overflow: hidden;
    box-shadow: var(--volumetric-shadow-light);
}
.futuristic-accordion .accordion-button {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1.1rem;
    background-color: transparent;
    color: var(--primary-color);
    border-radius: 0;
    box-shadow: none;
    padding: 1.4rem 1.75rem;
    transition: background-color var(--transition-speed) var(--transition-ease), color var(--transition-speed) var(--transition-ease);
}
.futuristic-accordion .accordion-button:not(.collapsed) {
    background-color: rgba(0, 168, 232, 0.15);
    color: var(--accent-color);
    box-shadow: inset 0 -1.5px 0 var(--border-color);
}
.futuristic-accordion .accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 168, 232, 0.3);
}
.futuristic-accordion .accordion-button::after { /* Custom icon */
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2300A8E8'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transition: transform var(--transition-speed) var(--transition-ease), filter var(--transition-speed) var(--transition-ease);
    filter: brightness(1);
}
.futuristic-accordion .accordion-button:not(.collapsed)::after {
    transform: rotate(-180deg);
    filter: brightness(1.3) hue-rotate(20deg); /* Make icon pop when open */
}
.futuristic-accordion .accordion-body {
    padding: 1.75rem;
    color: var(--text-color-muted);
    font-size: 0.95rem;
}

/* === CONTACT FORM STYLES === */
.contact-form .form-label {
    font-family: var(--font-primary);
    color: var(--primary-color);
    margin-bottom: 0.6rem;
    font-weight: 500;
    font-size: 0.9rem;
}
.contact-form .form-control {
    background-color: rgba(13, 27, 42, 0.7); /* Darker, less transparent */
    border: 1.5px solid var(--border-color);
    color: var(--text-color);
    padding: 0.9rem 1.2rem;
    border-radius: 10px;
    transition: border-color var(--transition-speed) var(--transition-ease), box-shadow var(--transition-speed) var(--transition-ease), background-color var(--transition-speed) var(--transition-ease);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}
.contact-form .form-control:focus {
    background-color: rgba(27, 38, 59, 0.9); /* Slightly lighter on focus */
    border-color: var(--primary-color);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3), 0 0 0 0.25rem rgba(0, 168, 232, 0.35);
    color: var(--text-color);
}
.contact-form .form-control::placeholder {
    color: #708090; /* Slate Gray for placeholder */
}
.contact-form textarea.form-control {
    min-height: 160px;
    resize: vertical;
}

/* === FOOTER === */
footer.bg-dark {
    background-color: #0A121F !important; /* Even darker for footer */
    border-top: 2px solid var(--border-color);
    padding-top: 3rem;
    padding-bottom: 2rem;
}
footer h5 {
    color: var(--accent-color);
    margin-bottom: 1.25rem;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
footer .list-unstyled li {
    margin-bottom: 0.6rem;
}
footer .footer-link {
    color: var(--text-color-muted);
    text-decoration: none;
    transition: color var(--transition-speed) var(--transition-ease), padding-left var(--transition-speed) var(--transition-ease);
    font-size: 0.95rem;
}
footer .footer-link:hover {
    color: var(--primary-color);
    padding-left: 6px;
    text-decoration: none;
}
footer hr {
    border-color: var(--border-color);
    opacity: 0.5;
}
footer .text-content-footer {
    font-size: 0.85rem;
}

/* === SPECIFIC PAGE STYLES === */
.success-page-container, .error-page-container {
    min-height: calc(100vh - var(--header-height-actual) - var(--footer-height-actual));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}
.success-page-container h1, .error-page-container h1 {
    color: var(--primary-color);
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}
.error-page-container h1 {
    color: var(--secondary-color); /* Red for error heading */
}
.success-page-container p, .error-page-container p {
    font-size: 1.25rem;
    color: var(--text-color);
    margin-bottom: 2.5rem;
    max-width: 600px;
}
/* Icon placeholders (you'd use actual SVG or font icons) */
.success-page-container .icon-success::before, .error-page-container .icon-error::before {
    display: block;
    font-size: 5rem;
    margin-bottom: 1.5rem;
}
.success-page-container .icon-success::before {
    content: '✓'; /* Example */
    color: var(--primary-color);
}
.error-page-container .icon-error::before {
    content: '✗'; /* Example */
    color: var(--secondary-color);
}

/* Privacy & Terms pages */
.privacy-policy-page, .terms-conditions-page {
    padding-top: calc(var(--header-height-actual) + 40px); /* More space below fixed header */
    padding-bottom: 4rem;
}
.privacy-policy-page .container, .terms-conditions-page .container {
    background-color: var(--card-bg-color);
    padding: 2.5rem; /* More padding */
    border-radius: 15px;
    box-shadow: var(--volumetric-shadow);
}
.privacy-policy-page h1, .terms-conditions-page h1 { font-size: 2rem; }
.privacy-policy-page h2, .terms-conditions-page h2 { font-size: 1.6rem; color: var(--accent-color); }
.privacy-policy-page h3, .terms-conditions-page h3 { font-size: 1.3rem; color: var(--primary-color); }

.privacy-policy-page p, .terms-conditions-page p,
.privacy-policy-page ul, .terms-conditions-page ul {
    color: var(--text-color-muted);
    line-height: 1.8;
    margin-bottom: 1rem;
}
.privacy-policy-page ul, .terms-conditions-page ul {
    padding-left: 20px;
}
.privacy-policy-page strong, .terms-conditions-page strong {
    color: var(--accent-color);
    font-weight: 600;
}

/* === ANIMATIONS & TRANSITIONS (Barba.js support) === */
.barba-leave-active,
.barba-enter-active {
    transition: opacity 0.5s var(--transition-ease), transform 0.5s var(--transition-ease);
    will-change: opacity, transform;
}
.barba-leave-to {
    opacity: 0;
    transform: translateY(30px) scale(0.95); /* Fade and shrink out */
}
.barba-enter-from {
    opacity: 0;
    transform: translateY(-30px) scale(0.95); /* Fade and shrink in */
}
/* Ensure body has a min-height during transitions to avoid footer jump */
body.barba-transitioning {
    min-height: 100vh; /* Or a more precise calculation */
}

/* ScrollReveal elements - initial state */
[data-sr] {
    visibility: hidden;
}

/* Parallax utility for simple background effect */
.parallax-bg {
    background-attachment: fixed; /* Use with caution for performance */
}

/* Helper for any text over dark image needing more contrast */
.text-on-dark-bg-overlay::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4));
    z-index: 0; /* Ensure it's behind text content */
}
.text-on-dark-bg-overlay > * {
    position: relative; /* Make sure content is above overlay */
    z-index: 1;
}

/* STROGO: All .card, .item, .testimonial, .team-member, .product-card and similar
   elements should use centering of content if design implies.
   Card structure above with flexbox in card-body handles this.
   For images inside cards: the .card-image class ensures proper display.
   For text inside cards: Bootstrap's text-center or custom alignment.
*/