/* Global Styles */
:root {
    --primary-color: #0056b3;
    --secondary-color: #00c2cb;
    --dark-color: #333;
    --light-color: #f4f4f4;
    --danger-color: #dc3545;
    --success-color: #28a745;
    --max-width: 1200px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 4px;
    --accessible-blue: #0078D7; /* Lépe čitelná modrá barva */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #fff;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

/* Vylepšení odkazů v textu pro lepší čitelnost */
p a, li a:not(.btn):not(.nav-link) {
    color: var(--accessible-blue);
    font-weight: 500;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.section-header p {
    color: #777;
    font-size: 1.1rem;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: #004494;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: #fff;
}

.btn-secondary:hover {
    background-color: #00aeb7;
}

.bg-light {
    background-color: var(--light-color);
}

.bg-dark {
    background-color: var(--dark-color);
    color: #fff;
}

.light {
    color: #fff;
}

/* Header Styles */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: var(--box-shadow);
    z-index: 1000;
    transition: var(--transition);
}

#header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    max-height: 120px;
}

#navbar ul {
    display: flex;
}

#navbar ul li {
    margin-left: 30px;
}

#navbar ul li a {
    color: var(--dark-color);
    font-weight: 500;
    font-size: 1.1rem;
    position: relative;
    padding: 5px 0;
}

#navbar ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 0;
    transition: var(--transition);
}

#navbar ul li a:hover::after,
#navbar ul li a.active::after {
    width: 100%;
}

.hamburger-menu {
    display: none;
    cursor: pointer;
    padding: 8px; /* Adjusted for smaller header */
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on iOS */
    position: relative; /* Ensure it's properly positioned */
    z-index: 1001; /* Above the menu */
}

.hamburger-menu .bar {
    width: 22px; /* Slightly smaller for mobile */
    height: 3px;
    background-color: var(--dark-color);
    margin: 4px 0; /* Smaller margins for tighter appearance */
    transition: var(--transition);
    -webkit-transition: var(--transition);
}

/* Hero Section */
#hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    text-align: center;
    color: #fff;
    padding-top: 80px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Services Section */
.services-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: #fff;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: center;
}

.section-footer {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 50px;
}

/* Speciální styl pro sekci kompetencí */
.expertise-progress .expertise-button {
    margin-top: 25px;
    margin-bottom: 15px;
    text-align: center;
}

.expertise-button {
    text-align: center;
    margin-top: 25px;
    margin-bottom: 15px;
}

/* Vylepšení pro tlačítko v sekci kompetencí */
.expertise-progress .btn {
    margin-bottom: 5px;
}

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

.service-icon {
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.service-icon i {
    font-size: 2.5rem;
    color: #fff;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-card p {
    color: #777;
}

/* Expertise Section */
.expertise-content {
    display: block;
    width: 100%;
    margin: 0 auto;
}

.expertise-text {
    width: 100%;
}

.expertise-text h3 {
    font-size: 1.8rem;
    margin: 20px 0 15px;
}

.expertise-text ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.expertise-text ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

.expertise-text ul li::before {
    content: '\f058';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-color);
}

/* Styl pro kategorie kompetencí */
.expertise-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 30px;
    width: 100%;
}

.expertise-category {
    flex: 1;
    min-width: 300px;
    margin: 0 10px 25px 10px;
}

.expertise-category h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
    position: relative;
    padding-left: 15px;
}

.expertise-category h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    height: 70%;
    width: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

.expertise-progress {
    padding: 20px 30px 0 30px;
    margin-top: 10px;
    width: 100%;
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.progress-item {
    margin-bottom: 20px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.progress-info h4 {
    font-size: 1rem;
    font-weight: 500;
}

.progress-bar {
    height: 10px;
    background-color: #e9ecef;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: var(--border-radius);
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

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

.project-image {
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.project-info p {
    color: #777;
    margin-bottom: 15px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.project-tags span {
    background-color: var(--light-color);
    padding: 5px 10px;
    border-radius: var(--border-radius);
    font-size: 0.8rem;
    color: var(--dark-color);
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    background-color: #fff;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.about-text p {
    margin-bottom: 20px;
}

.about-text ul {
    margin-bottom: 20px;
}

.about-text ul li {
    margin-bottom: 10px;
}

/* Clients Section */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.reference-client {
    padding: 25px;
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: center;
}

.reference-client:hover {
    transform: translateY(-5px);
}

.reference-client h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.reference-client p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}

.contact-info {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 30px;
}

.contact-item {
    display: flex;
    margin-bottom: 30px;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.5rem;
    color: #fff;
}

.contact-text h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

/* Styl pro telefonní čísla */
.contact-text p {
    margin: 0;
}

.contact-text a.phone-link {
    color: var(--accessible-blue);
    font-weight: 500;
    text-decoration: none;
}

.contact-text a.phone-link:hover {
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.contact-form {
    background-color: #fff;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

/* Footer */
#footer {
    background-color: var(--dark-color);
    color: #fff;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo img {
    max-height: 50px;
    margin-bottom: 20px;
}

.footer-logo p {
    color: #ccc;
}

.footer-links h3,
.footer-newsletter h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after,
.footer-newsletter h3::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 0;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #ccc;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-newsletter p {
    color: #ccc;
    margin-bottom: 20px;
}

.footer-newsletter .form-group {
    display: flex;
}

.footer-newsletter .form-group input {
    flex: 1;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
}

.footer-newsletter .form-group button {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    padding: 0 20px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.footer-bottom p {
    color: #ccc;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 3rem;
    }

    .expertise-content,
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .expertise-text {
        order: 1;
    }

    .expertise-progress {
        order: 2;
    }
}

@media (max-width: 768px) {
    /* Make header smaller on mobile */
    #header .container {
        padding: 5px 15px;
    }
    
    .logo img {
        max-height: 48px; /* Even smaller logo on mobile */
    }
    
    /* Responzivní styl pro kategorie kompetencí */
    .expertise-categories {
        flex-direction: column;
    }
    
    .expertise-category {
        margin-bottom: 20px;
        min-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    
    /* Make the tagline smaller but still visible on mobile */
    .logo span.tagline {
        font-size: 11px;
        margin-left: 6px !important;
        display: inline-block;
        line-height: 1.2;
        max-width: 120px; /* Limit width to avoid overflow */
    }
    
    #navbar ul {
        display: none;
        position: absolute;
        top: 60px; /* Further reduced top position to match smaller header */
        left: 0;
        width: 100%;
        background-color: #fff;
        padding: 15px;
        box-shadow: var(--box-shadow);
        flex-direction: column;
        z-index: 1000; /* Ensure menu is above other content */
        -webkit-transform: translateZ(0); /* iOS rendering fix */
        transform: translateZ(0);
        max-height: calc(100vh - 60px); /* Ensure menu doesn't go off screen */
        overflow-y: auto; /* Allow scrolling if menu is long */
    }

    #navbar.active ul {
        display: flex;
        -webkit-appearance: none; /* iOS fix */
        appearance: none;
    }

    #navbar ul li {
        margin: 15px 0;
    }
    
    #navbar ul li a {
        display: block;
        padding: 10px 0; /* Increased touch target size */
        font-size: 16px; /* Ensure readable font size */
    }

    .hamburger-menu {
        display: block;
    }

    .hamburger-menu.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .hamburger-menu.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu.active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .section {
        padding: 60px 0;
    }

    .section-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .service-card,
    .project-card {
        padding: 20px;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
    }

    .contact-icon {
        margin: 0 auto 15px;
    }

    .social-links {
        justify-content: center;
    }
    
    /* Zvýrazněné telefonní číslo na mobilech */
    .contact-text a.phone-link {
        font-size: 16px; /* Větší písmo na mobilních zařízeních */
        padding: 3px 5px; /* Větší prostor pro kliknutí */
        display: inline-block;
    }
}
