/* Kontaktní karty - snížení výšky */
.row.row-cols-1.row-cols-md-2.row-cols-lg-3 .card-body {
    padding: 1rem;
    min-height: auto;
}

.contact-avatar {
    font-size: 36px;
    margin-bottom: 0.5rem !important;
}

.row.row-cols-1.row-cols-md-2.row-cols-lg-3 .card-body h4 {
    margin-bottom: 0.5rem;
}

.row.row-cols-1.row-cols-md-2.row-cols-lg-3 .card-body p {
    margin-bottom: 0.5rem;
}

/* Banner text bude bílý */
.hero-banner h1,
.hero-banner p,
.hero-banner .lead {
    color: white !important;
}

body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    color: #444;
    line-height: 1.6;
    position: relative;
    padding-top: 80px; /* Výška fixní navigace */
}

/* O firmě sekce */
.section-o-firme .about-text {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.section-o-firme .row.align-items-center {
    align-items: center !important;
}

.section-o-firme a {
    color: #0081C5;
    text-decoration: none;
}

.section-o-firme a:hover {
    text-decoration: underline;
}

/* Základní styly */
:root {
    --primary-color: #0081C5;
    --secondary-color: #005580;
    --accent-color: #ff6600;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

/* Sekce */
section {
    padding: 80px 0;
    scroll-margin-top: 80px; /* Vráceno na původní hodnotu */
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Vráceno na původní hodnotu */
}

section:nth-child(even) {
    background-color: var(--light-color);
}

/* Navigace */
.navbar {
    transition: all 0.3s ease;
    height: 80px; /* Fixní výška navigace */
}

.navbar-light .navbar-nav .nav-link {
    color: #444;
    font-weight: 700; /* Tučný text */
    padding: 0.5rem 1rem;
    transition: color 0.3s;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: #0081C5;
}

.navbar.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

/* Typografie */
body, p, span, div, a, li, td, th, input, textarea, button, select, label {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

.section-title {
    position: relative;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #0081c5;
}

.lead {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

.section-divider {
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 0 auto 30px;
}

/* Banner - roztažení na celou sekci domů */
.hero-banner {
    width: 100%;
    overflow: hidden;
    position: relative;
    height: calc(100vh - 80px); /* Výška viewportu mínus výška hlavičky */
}

.hero-banner img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.2); /* Světlejší černé pozadí */
}

@media (max-width: 768px) {
    .hero-banner img {
        height: 500px;
    }
}

/* Služby */
.service-icon {
    width: auto;
    height: auto;
    line-height: normal;
    font-size: 32px;
    color: #0081C5;
    background-color: transparent;
    border: none;
    border-radius: 0;
    margin: 0 auto 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover .service-icon {
    transform: scale(1.1);
    color: #0081C5;
    background-color: transparent;
}

/* Reference */
.accordion-item {
    border-radius: 5px !important;
    overflow: hidden;
    margin-bottom: 15px;
}

.accordion-button {
    border-radius: 5px 5px 0 0 !important;
}

.accordion-button.collapsed {
    border-radius: 5px !important;
}

.accordion-button:not(.collapsed) {
    background-color: #0081C5;
    color: white;
    font-weight: bold;
}

.accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 129, 197, 0.25);
    border-color: #0081C5;
}

/* Kontakty */
.contact-avatar {
    font-size: 48px;
    color: #0081C5;
}

address {
    margin-bottom: 0;
}

.card-header.bg-primary {
    background-color: #0081C5 !important;
}

.text-primary, 
.fas.text-primary, 
a[href^="mailto:"] {
    color: #0081C5 !important;
}

/* Kontaktní karty */
.row.mb-5 .card-body {
    min-height: 250px;
}

/* Patička */
footer {
    position: relative;
}

footer a {
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Animace */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}

/* Responsivní úpravy */
@media (max-width: 992px) {
    section {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    section {
        padding: 40px 0;
    }
}

/* Technologické ikony */
.tech-icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.tech-icons img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 5px;
    transition: transform 0.3s ease;
    margin: 0 auto;
    max-width: 100%;
    margin-bottom: 15px;
}

.tech-icons img:hover {
    transform: scale(1.05);
}

/* Tabulky */
.table {
    font-size: 0.9rem;
}

.table th {
    white-space: nowrap;
}

.table-responsive {
    border-radius: 5px;
    overflow: hidden;
}

/* Karty */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Mapový podklad */
.card-body.position-relative {
    min-height: 200px;
}

.map-overlay {
    border-radius: 0 0 0 0;
}

/* Bootstrap override */
.btn-primary, .bg-primary {
    background-color: #0081C5 !important;
    border-color: #0081C5 !important;
}

.btn-outline-primary {
    color: #0081C5 !important;
    border-color: #0081C5 !important;
}

.btn-outline-primary:hover {
    background-color: #0081C5 !important;
    color: white !important;
}

#back-to-top {
    background-color: #0081C5 !important;
    border-color: #0081C5 !important;
}

.section-divider {
    background-color: #0081C5;
}

/* Střídání barev sekcí - opraveno */
#o-firme, #software, #kontakty {
    background-color: #ffffff;
}

#sluzby, #reference {
    background-color: #f8f9fa; /* Světlounce šedá */
}