/* Reset a základní nastavení */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Liberation', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Obecné prvky */
.container {
    width: 100%;
    max-width: 100%;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

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

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

p {
    margin-bottom: 20px;
}

a {
    color: #2C3E50;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #F39C12;
}

.section-title {
    font-size: 36px;
    margin-bottom: 50px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
    color: #2C3E50;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background-color: #F39C12;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* Tlačítka */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: #F39C12;
    color: #fff;
}

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

.btn-secondary {
    background-color: transparent;
    color: #F39C12;
    border: 2px solid #F39C12;
}

.btn-secondary:hover {
    background-color: #F39C12;
    color: #fff;
}

/* Header */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    width: 100%;
    padding: 0 20px;
}

.logo img {
    height: 40px;
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav ul li {
    margin-left: 30px;
}

.main-nav ul li a {
    font-weight: 700;
    font-size: 16px;
    color: #2C3E50;
    position: relative;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: #F39C12;
    bottom: -5px;
    left: 0;
    transition: width 0.3s ease;
}

.main-nav ul li a:hover::after,
.main-nav ul li a.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* Hero sekce */
.hero {
    background-color: #2C3E50;
    color: #fff;
    padding: 300px 0 400px;
    position: relative;
    background-image: linear-gradient(rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.8)), url('img/sprava_nemovitosti.webp');
    background-size: cover;
    background-position: center;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 40px;
}

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

/* Služby */
.services {
    background-color: #f8f9fa;
}

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

.service-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.service-icon {
    margin-bottom: 20px;
    height: 80px;
    display: flex;
    align-items: center;
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #2C3E50;
}

.service-card p {
    margin-bottom: 20px;
    color: #666;
}

/* O nás */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    color: #666;
    margin-bottom: 25px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 48px;
    font-weight: 900;
    color: #F39C12;
    margin-bottom: 10px;
}

.stat-text {
    font-size: 16px;
    color: #666;
    text-align: center;
}

.about-image img {
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Reference */
.testimonials {
    background-color: #2C3E50;
    color: #fff;
}

.testimonials .section-title {
    color: #fff;
}

.testimonial-slider {
    position: relative;
    overflow: hidden;
}

.testimonial-item {
    display: none;
    padding: 20px;
}

.testimonial-item.active {
    display: block;
}

.testimonial-content {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 30px;
    position: relative;
}

.testimonial-text {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author h4 {
    margin-bottom: 5px;
    font-size: 18px;
    color: #F39C12;
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 15px;
}

.testimonial-prev,
.testimonial-next {
    background-color: transparent;
    border: 2px solid #fff;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-prev:hover,
.testimonial-next:hover {
    background-color: #F39C12;
    border-color: #F39C12;
}

/* Výhody */
.benefits {
    background-color: #f8f9fa;
}

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

.benefit-item {
    text-align: center;
    padding: 20px;
}

.benefit-icon {
    font-size: 48px;
    color: #F39C12;
    margin-bottom: 20px;
}

.benefit-item h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #2C3E50;
}

.benefit-item p {
    color: #666;
    text-align: left;
}

/* Kontakt */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
}

.contact-info-left,
.contact-info-middle,
.contact-info-right {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.map-container {
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-icon {
    font-size: 24px;
    color: #F39C12;
    width: 30px;
    display: flex;
    justify-content: center;
}

.contact-text h3 {
    font-size: 20px;
    margin-bottom: 5px;
    color: #2C3E50;
}

.contact-text p {
    margin-bottom: 10px;
}

.contact-text p i {
    margin-right: 8px;
    color: #F39C12;
}

.company-box {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.company-box p {
    margin-bottom: 10px;
}

.company-box p:last-child {
    margin-bottom: 0;
}

/* Success message */
.success-message {
    background-color: #2ecc71;
    color: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
}

.success-message i {
    font-size: 48px;
    margin-bottom: 15px;
}

.success-message h3 {
    margin-bottom: 10px;
}

/* Footer */
footer {
    background-color: #2C3E50;
    color: #fff;
    padding: 20px 0;
}

.footer-bottom {
    text-align: center;
    color: #999;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
}

/* Animace */
.animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate.animate-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responzivní design */
@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .about-stats {
        margin-bottom: 40px;
    }
    
    .contact-info-right {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .header-content {
        height: 70px;
    }
    
    .main-nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: #fff;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .main-nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .main-nav ul {
        flex-direction: column;
    }
    
    .main-nav ul li {
        margin: 10px 0;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero {
        padding: 160px 0 80px;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 30px;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .benefit-item {
        padding: 15px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .contact-info-right {
        grid-column: span 1;
    }
}

@media (max-width: 576px) {
    .services-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .stat-item {
        border-bottom: 1px solid #eee;
        padding-bottom: 20px;
    }
    
    .stat-item:last-child {
        border-bottom: none;
    }
    
    section {
        padding: 60px 0;
    }
}