:root {
    --color-primary-blue: #024089;
    --color-secondary-blue: #004DA9;
    --color-orange: #F9841A;
    --color-yellow: #FEC619;
    --color-gray-light: #E0E3E8;


    --color-orange-dark: #FF9500;
    --color-text: #333;
    --color-text-light: white;
    --color-bg-white: #fff;
    --color-gray: #999999;
    --color-orange-rgb: 255, 163, 51;
    --color-border: #eee;
    --color-overlay: rgba(0, 0, 0, 0.55);
    --shadow-blue-rgb: 0, 61, 165;
    --shadow-dark-rgb: 0, 0, 0;
}

* {
    font-family: 'DejaVu Sans', sans-serif;
}

body {
    color: var(--color-text);
    line-height: 1.6;
}

/* Main page content scale (index.html only, excludes footer) */
.main-page-content {
    zoom: 0.75;
}

/* Carousel Styling */
.carousel-item {
    height: 100%;
    padding: 0;
}


/* Sections */
section {
    max-width: 75rem;
    margin: 0 auto;
    padding: 3.75rem 1.25rem;
}


/* Service Cards */
.service-panel {
    border: 2px solid transparent;
    border-radius: 0 !important;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.service-panel:hover {
    transform: translateY(-0.3125rem);
    box-shadow: 0 0.625rem 1.5625rem rgba(var(--shadow-blue-rgb), 0.15);
    border-color: var(--color-primary-blue);
    background-color: var(--color-bg-white);
}

.service-panel-image {
    aspect-ratio: 16 / 9;
    width: 100%;
    object-fit: cover;
}

.service-panel-icon {
    width: 2.1875rem;
    height: 2.1875rem;
    object-fit: contain;
}

.service-panel-title {
    color: var(--color-primary-blue);
    font-size: 1.4rem;
    overflow: hidden;
    min-width: 0;
}

.service-panel .card-body {
    background: linear-gradient(90deg, white 0%, var(--color-gray-light) 100%);
}

.service-card-col {
    position: relative;
}

.service-panel-hover-list {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 20;
    background: var(--color-orange);
    border: none;
    padding: 0.4rem 0.75rem;
    margin: 0;
    list-style: none;
}

@media (hover: hover) {
    .service-card-col:hover .service-panel-hover-list {
        display: block !important;
    }

    .service-card-col:hover .service-panel-hover-list:hover {
        display: none !important;
    }
}

.service-panel-hover-list li {
    color: #fff;
    font-size: 1.3125rem;
    padding: 0.2rem 0;
}

/* Services Title */
.services-title {
    color: var(--color-primary-blue) !important;
    font-size: 2.2rem;
    background: linear-gradient(90deg, white 0%, var(--color-gray-light) 100%);
    padding: 1.25rem;
}

/* Gallery */
.gallery-img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.gallery-img:hover {
    transform: scale(1.03);
    box-shadow: 0 0.5rem 1.25rem rgba(var(--shadow-blue-rgb), 0.2);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(var(--shadow-dark-rgb), 0.9);
    z-index: 9999;
}

.lightbox.active {
    display: block;
}

.lightbox img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    cursor: pointer;
}

/* Footer Links */
.services-links a {
    color: var(--color-text-light);
}

.services-links a:hover {
    color: var(--color-orange-dark);
}

.service-icon {
    width: 1.5rem;
    height: 1.5rem;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.footer-services-title,
.footer-contact-title {
    color: var(--color-orange);
}

.contact-info a {
    transition: color 0.3s;
}

.contact-info a:hover {
    color: var(--color-orange-dark) !important;
}

.contact-icon {
    width: 1.25rem;
    height: 1.25rem;
    filter: brightness(0) invert(1);
}

/* Footer width constraint */
footer {
    zoom: 1;
    max-width: 84.375rem;
    margin-left: auto;
    margin-right: auto;
}

/* Footer Copyright Text */
footer p {
    font-size: 0.8rem;
    color: var(--color-gray);
    margin: 0.25rem 0;
    padding: 0.25rem 0;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-1.875rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Nav Dropdown */
#navDropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 14rem;
    background: linear-gradient(180deg, white 0%, var(--color-orange) 100%);
    box-shadow: 0 0.5rem 1.5rem rgba(var(--shadow-dark-rgb), 0.15);
    z-index: 1050;
    border-top: 3px solid var(--color-primary-blue);
}

.nav-dropdown-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    color: var(--color-primary-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.3rem;
    line-height: 1;
    border-bottom: 1px solid var(--color-border);
}

.nav-dropdown-link:hover {
    background: rgba(var(--color-orange-rgb), 0.25);
}

/* Navbar customization */
.navbar {
    zoom: 0.75;
    box-shadow: 0 0.125rem 0.625rem rgba(var(--shadow-dark-rgb), 0.1);
    max-width: 112.5rem;
    margin-left: auto;
    margin-right: auto;
}

.logo-img {
    width: 4.0625rem;
    height: 4.0625rem;
}

/* Subpage Hero Section */
.subpage-hero {
    background: linear-gradient(135deg, var(--color-primary-blue) 0%, var(--color-secondary-blue) 100%);
    aspect-ratio: 16 / 9;
    max-height: 41.25vh;
    max-width: 84.375rem;
    width: 100%;
    margin: 0 auto 2rem;
    padding: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.subpage-hero h1 {
    font-size: 2.2rem;
    font-weight: 400;
    color: var(--color-yellow);
    animation: fadeInDown 0.8s ease;
}

.subpage-hero .emoji {
    font-size: 3rem;
}

/* Service Category */
.service-category {
    margin-bottom: 2rem;
}


.service-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(17.5rem, 1fr));
    gap: 1.5rem;
}

.feature-card {
    padding: 2rem;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-0.3125rem);
    box-shadow: 0 0.625rem 1.5625rem rgba(var(--shadow-blue-rgb), 0.1);
    border-color: var(--color-primary-blue);
}

/* Back Button */
.back-button-container {
    padding: 2rem 1.25rem;
}

.back-link {
    color: var(--color-primary-blue);
    border: 2px solid var(--color-primary-blue);
    padding: 0.625rem 1.5625rem;
}

.back-link:hover {
    background: var(--color-primary-blue);
    color: var(--color-text-light);
    transform: translateY(-0.125rem);
    box-shadow: 0 0.3125rem 0.9375rem rgba(var(--shadow-blue-rgb), 0.2);
}

/* Skrátená verzia názvu na úzkych obrazovkách */
.nav-brand-short { display: none; }

@media (max-width: 330px) {
    .nav-brand-full  { display: none; }
    .nav-brand-short { display: inline; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .services-title {
        font-size: 1.8rem;
    }

    .subpage-hero h1 {
        font-size: 1.8rem;
    }

    .subpage-hero .emoji {
        font-size: 2rem;
    }
}
