/* Geoaxis custom styles — dark blue theme */

/* Laser background canvas — overlays hero section */
#laser-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.hero {
    position: relative;
}

/* Hero section gradient */
.hero {
    background: linear-gradient(180deg, #1a56db 0%, #1e3a5f 100%);
}

/* Clickable card links */
.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

/* Cards on dark background */
.card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.card-link:hover .card {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Footer links */
footer a {
    text-decoration: none;
}

footer a:hover {
    color: #fff;
}

/* Main content area — light background for contrast with dark footer */
main {
    background-color: #f8f9fa;
    color: #212529;
}

main h1, main h2, main h3, main h4, main h5, main h6 {
    color: #1a2332;
}

main .card {
    background-color: #fff;
    border: 1px solid #dee2e6;
    color: #333;
}

main .card .card-title {
    color: #1a2332;
}

main .card .card-text {
    color: #444;
}

main .card-link {
    color: #333;
}

main .card-link:hover .card {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Card icon backgrounds — use dark icons on light cards */
main .card[class*="icon-bg-"]::after {
    filter: invert(1);
    opacity: 0.05;
}

/* Headings in hero and footer — light text */
.hero h1, .hero h2, .hero h3, .hero h4, .hero h5, .hero h6,
footer h1, footer h2, footer h3, footer h4, footer h5, footer h6 {
    color: #f0f4f8;
}

/* Navbar matches hero gradient start — visual continuity */
.bg-hero {
    background-color: #1a56db;
}

/* Navbar brand */
.navbar-brand {
    font-weight: 700;
    letter-spacing: 0.5px;
}

.navbar-brand img {
    height: 74px;
    width: auto;
    mix-blend-mode: screen;
    filter: grayscale(1) brightness(3);
}

.hero-logo {
    height: 140px;
    width: auto;
    mix-blend-mode: screen;
    filter: grayscale(1) brightness(3);
}

@media (max-width: 576px) {
    .hero-logo {
        height: 100px;
    }
}

/* Dropdown menu — dark theme */
.navbar .dropdown-menu {
    background-color: #1e3a5f;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 0.5rem 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    margin-top: 0;
}

.navbar .dropdown-item {
    color: rgba(255, 255, 255, 0.85);
    padding: 0.5rem 1.25rem;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.navbar .dropdown-item.active {
    background-color: #1a56db;
    color: #fff;
}

/* Desktop: open dropdown on hover */
@media (min-width: 992px) {
    .navbar .dropdown:hover > .dropdown-menu {
        display: block;
    }

    .navbar .dropdown > .dropdown-toggle:active {
        pointer-events: none;
    }
}

/* Muted/secondary text */
.text-muted {
    color: #94a3b8;
}

/* Breadcrumbs — transparent, sits inside .hero gradient */
.breadcrumb-nav {
    background-color: transparent;
    font-size: 0.875rem;
}

.breadcrumb-nav .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

.breadcrumb-nav .breadcrumb-item a:hover {
    color: #fff;
}

.breadcrumb-nav .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.6);
}

.breadcrumb-nav .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.4);
}

/* Hero page icon — large icon next to title */
.page-hero-icon {
    position: relative;
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-hero-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background-repeat: no-repeat;
    background-size: contain;
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.75);
}

/* Content card — wraps page body in a styled container */
.content-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.content-card h2 {
    color: #1a2332;
    font-size: 1.4rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #1a56db;
}

.content-card h2:first-child {
    margin-top: 0;
}

.content-card ul {
    padding-left: 1.25rem;
}

.content-card li {
    padding: 0.25rem 0;
    color: #444;
}

.content-card p {
    color: #444;
    line-height: 1.7;
}

/* Service card icon backgrounds */
.card[class*="icon-bg-"] {
    position: relative;
    overflow: hidden;
}

.card[class*="icon-bg-"] .card-body {
    position: relative;
    z-index: 1;
}

.card[class*="icon-bg-"]::after {
    content: "";
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 56px;
    height: 56px;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.07;
    pointer-events: none;
}

/* Icon background-image definitions (shared by cards and hero icons) */
.icon-bg-geometricke-plany::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='3,19 8,4 20,4 20,19'/%3E%3Cline x1='8' y1='4' x2='13' y2='19'/%3E%3Ccircle cx='3' cy='19' r='1.3' fill='%23fff' stroke='none'/%3E%3Ccircle cx='8' cy='4' r='1.3' fill='%23fff' stroke='none'/%3E%3Ccircle cx='20' cy='4' r='1.3' fill='%23fff' stroke='none'/%3E%3Ccircle cx='20' cy='19' r='1.3' fill='%23fff' stroke='none'/%3E%3Ccircle cx='13' cy='19' r='1.3' fill='%23fff' stroke='none'/%3E%3C/svg%3E");
}

.icon-bg-inzenyrska-geodezie::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='12' y1='13' x2='5' y2='21'/%3E%3Cline x1='12' y1='13' x2='12' y2='21'/%3E%3Cline x1='12' y1='13' x2='19' y2='21'/%3E%3Crect x='8' y='8' width='8' height='6' rx='1.5'/%3E%3Cline x1='8' y1='11' x2='3' y2='11'/%3E%3Cline x1='12' y1='3' x2='12' y2='8' stroke-dasharray='1.5 1.5'/%3E%3Ccircle cx='12' cy='3' r='1.3' fill='%23fff' stroke='none'/%3E%3C/svg%3E");
}

.icon-bg-mapove-podklady::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='9' r='7'/%3E%3Cellipse cx='12' cy='9' rx='7' ry='2.2' transform='rotate(-20 12 9)' stroke-width='1'/%3E%3Cellipse cx='12' cy='9' rx='3' ry='7' transform='rotate(-20 12 9)' stroke-width='1'/%3E%3Cline x1='9.3' y1='1.3' x2='14.7' y2='16.7' stroke-width='1'/%3E%3Cline x1='12' y1='16' x2='12' y2='21'/%3E%3Cline x1='7.5' y1='21' x2='16.5' y2='21'/%3E%3C/svg%3E");
}

.icon-bg-pasport-stavby::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12,5.5 C10,4.5 7,4.5 4,5.5 L4,18.5 C7,17.5 10,17.5 12,18.5 Z'/%3E%3Cpath d='M12,5.5 C14,4.5 17,4.5 20,5.5 L20,18.5 C17,17.5 14,17.5 12,18.5 Z'/%3E%3Cline x1='12' y1='5.5' x2='12' y2='18.5'/%3E%3Ccircle cx='17.5' cy='16.5' r='3.8' fill='%23121d33' stroke-width='1.3'/%3E%3Ccircle cx='17.5' cy='16.5' r='2.5' stroke-width='0.7'/%3E%3Cpolyline points='15.8,16.5 17.0,17.8 19.2,15.2' stroke-width='1.3'/%3E%3C/svg%3E");
}

.icon-bg-letecke-snimkovani::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='9' width='6' height='4.5' rx='1'/%3E%3Cline x1='9' y1='9.8' x2='5' y2='7'/%3E%3Cline x1='15' y1='9.8' x2='19' y2='7'/%3E%3Cline x1='9' y1='12.7' x2='5' y2='15.5'/%3E%3Cline x1='15' y1='12.7' x2='19' y2='15.5'/%3E%3Cline x1='3' y1='7' x2='7' y2='7'/%3E%3Cline x1='17' y1='7' x2='21' y2='7'/%3E%3Cline x1='3' y1='15.5' x2='7' y2='15.5'/%3E%3Cline x1='17' y1='15.5' x2='21' y2='15.5'/%3E%3Ccircle cx='12' cy='11.25' r='1.2' fill='%23fff' stroke='none'/%3E%3Cline x1='12' y1='13.5' x2='12' y2='21' stroke-width='1' stroke-dasharray='1.5 2'/%3E%3C/svg%3E");
}

/* Language switcher */
.lang-switch {
    font-size: 1.3rem;
    line-height: 1;
    padding: 0.25rem 0.35rem !important;
    opacity: 0.85;
}
.lang-switch:hover {
    opacity: 1;
}
