/* 
 * domain.com - Finanční audit
 * Hlavní styly
 */

/* ======= ZÁKLADNÍ NASTAVENÍ ======= */
:root {
    --primary-bg: #014D4E;        /* Hlavní pozadí: hluboká tyrkysová */
    --accent: #FF6F61;            /* Akcent: neonový korál */
    --secondary-bg: #FFF6E5;      /* Sekundární pozadí: krémová */
    --text-primary: #FAFAFA;      /* Základní text: teplá bílá */
    --heading: #C9A66B;           /* Nadpisy: bronzovo-zlatá */
    --shadow: rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.6;
}

section[id] {
    scroll-margin-top: 80px;
}

div {
    word-break: break-word;
    overflow-wrap: break-word;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    text-decoration: underline;
    filter: brightness(110%);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(to right, var(--accent), var(--heading));
    color: var(--text-primary);
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--shadow);
    text-decoration: none;
}

.section-title {
    color: var(--heading);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--accent);
}

section {
    padding: 5rem 0;
}

/* ======= ZÁHLAVÍ (HEADER) ======= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(1, 77, 78, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--heading);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-item {
    margin-left: 2rem;
}

.nav-link {
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--accent);
}

/* Hamburger menu pomocí checkboxu */
.hamburger-menu {
    display: none;
}

.hamburger-icon {
    display: none;
    width: 30px;
    height: 20px;
    position: relative;
    cursor: pointer;
}

.hamburger-icon span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: var(--text-primary);
    border-radius: 9px;
    left: 0;
    transition: var(--transition);
}

.hamburger-icon span:nth-child(1) {
    top: 0px;
}

.hamburger-icon span:nth-child(2) {
    top: 9px;
}

.hamburger-icon span:nth-child(3) {
    top: 18px;
}

#mobile-menu-toggle {
    display: none;
}

/* ======= HERO SEKCE ======= */
.hero {
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(rgba(1, 77, 78, 0.7), rgba(1, 77, 78, 0.8)), url('./img/mXDzH.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    color: var(--heading);
    margin-bottom: 1.5rem;
    animation: fadeIn 1s ease-out;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 2.5rem;
    animation: fadeIn 1.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ======= O SPOLEČNOSTI ======= */
.about {
    background-color: var(--secondary-bg);
    color: var(--primary-bg);
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text h2 {
    color: var(--primary-bg);
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.about-image {
    flex: 1;
    min-width: 300px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 20px var(--shadow);
}

/* ======= SLUŽBY ======= */
.services {
    background-color: var(--primary-bg);
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 3rem;
}

.service-card {
    background-color: var(--secondary-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px var(--shadow);
}

.service-image {
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover img {
    transform: scale(1.1);
}

.service-content {
    padding: 1.5rem;
    color: var(--primary-bg);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-content h3 {
    color: var(--primary-bg);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-content p {
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* ======= VÝHODY ======= */
.benefits {
    background-color: var(--secondary-bg);
    color: var(--primary-bg);
}

.benefits-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.benefit-item {
    padding: 1.5rem;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--shadow);
}

.benefit-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.benefit-title {
    color: var(--primary-bg);
    margin-bottom: 0.5rem;
}

/* ======= PŘÍPADOVÉ STUDIE ======= */
.case-studies {
    background-color: var(--primary-bg);
}

.case-study {
    display: flex;
    flex-direction: column;
    margin-bottom: 3rem;
    padding: 2rem;
    background-color: rgba(255, 246, 229, 0.05);
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow);
    transition: var(--transition);
}

.case-study:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--shadow);
}

.case-study-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.case-study h3 {
    color: var(--heading);
    font-size: 1.5rem;
}

.case-study-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.case-study-text {
    flex: 2;
    min-width: 300px;
}

.case-study-image {
    flex: 1;
    min-width: 300px;
    border-radius: 10px;
    overflow: hidden;
}

.case-study-results {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: rgba(201, 166, 107, 0.1);
    border-radius: 5px;
    border-left: 3px solid var(--heading);
}

.case-study-results h4 {
    color: var(--heading);
    margin-bottom: 0.5rem;
}

/* ======= REFERENCE ======= */
.testimonials {
    background-color: var(--secondary-bg);
    color: var(--primary-bg);
    position: relative;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 3rem;
}

.testimonial-card {
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px var(--shadow);
    transition: var(--transition);
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--shadow);
}

.testimonial-card::before {
    content: """;
    font-size: 5rem;
    position: absolute;
    top: 10px;
    left: 20px;
    color: rgba(201, 166, 107, 0.2);
    font-family: serif;
    line-height: 1;
}

.testimonial-content {
    position: relative;
    z-index: 1;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--primary-bg);
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1rem;
    overflow: hidden;
}

.testimonial-author-info h4 {
    color: var(--primary-bg);
    margin-bottom: 0.2rem;
}

.testimonial-author-info p {
    font-size: 0.9rem;
    color: rgba(1, 77, 78, 0.7);
}

/* ======= KONTAKTNÍ FORMULÁŘ ======= */
.contact {
    background: linear-gradient(rgba(1, 77, 78, 0.9), rgba(1, 77, 78, 1)), url('./img/6C65o.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.contact-form-container {
    flex: 1;
    min-width: 300px;
    background-color: rgba(255, 246, 229, 0.9);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px var(--shadow);
}

.contact-form {
    color: var(--primary-bg);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-bg);
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(1, 77, 78, 0.2);
    border-radius: 5px;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 111, 97, 0.2);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3e%3cpath fill='none' d='M0 0h24v24H0z'/%3e%3cpath d='M12 13.172l4.95-4.95 1.414 1.414L12 16 5.636 9.636 7.05 8.222z' fill='rgba(1, 77, 78, 0.5)'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
}

select.form-control option {
    background-color: white;
}

.checkbox-group {
    margin-top: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    cursor: pointer;
}

.checkbox-input {
    margin-top: 0.3rem;
    margin-right: 0.5rem;
}

.submit-btn {
    background: linear-gradient(to right, var(--accent), var(--heading));
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info h3 {
    color: var(--heading);
    margin-bottom: 1.5rem;
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    margin-bottom: 1rem;
}

.contact-item-icon {
    margin-right: 1rem;
    color: var(--heading);
    min-width: 20px;
    text-align: center;
}

.contact-map {
    width: 100%;
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 2rem;
    box-shadow: 0 5px 15px var(--shadow);
}

/* ======= PATIČKA (FOOTER) ======= */
.footer {
    background-color: rgba(1, 50, 51, 1);
    color: var(--text-primary);
    padding: 4rem 0 2rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-column {
    margin-bottom: 1rem;
}

.footer-column h4 {
    color: var(--heading);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-column h4::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent);
}

.footer-links {
    list-style: none;
}

.footer-link {
    margin-bottom: 0.8rem;
}

.footer-link a {
    color: var(--text-primary);
    transition: var(--transition);
}

.footer-link a:hover {
    color: var(--accent);
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.9rem;
    color: rgba(250, 250, 250, 0.7);
}

/* ======= STRÁNKA PODĚKOVÁNÍ ======= */
.thank-you {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thank-you-container {
    background-color: var(--secondary-bg);
    color: var(--primary-bg);
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px var(--shadow);
    text-align: center;
    max-width: 800px;
    margin: 8rem auto 5rem;
    border: 1px solid rgba(201, 166, 107, 0.3);
}

.thank-you-container h1 {
    color: var(--heading);
    margin-bottom: 1.5rem;
}

.thank-you-container p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* ======= STRÁNKY POLITIK ======= */
.policy-page {
    padding: 120px 0 5rem;
}

.policy-container {
    background-color: var(--secondary-bg);
    padding: 3rem;
    border-radius: 10px;
    color: var(--primary-bg);
    box-shadow: 0 10px 30px var(--shadow);
    border: 1px solid rgba(201, 166, 107, 0.3);
    max-width: 1000px;
    margin: 0 auto;
}

.policy-container h1 {
    color: var(--primary-bg);
    margin-bottom: 2rem;
}

.policy-container h2 {
    color: var(--primary-bg);
    margin: 2rem 0 1rem;
}

.policy-container p, .policy-container ul {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.policy-container ul {
    padding-left: 2rem;
}

/* ======= COOKIE POPUP ======= */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(1, 77, 78, 0.95);
    padding: 1rem;
    z-index: 9999;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.5s ease-in-out;
    transform: translateY(100%);
}

.cookie-popup.show {
    transform: translateY(0);
}

.cookie-text {
    flex-grow: 1;
    padding-right: 2rem;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

.cookie-btn {
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.cookie-btn-accept {
    background-color: var(--accent);
    color: white;
}

.cookie-btn-accept:hover {
    background-color: #e85e51;
}

.cookie-btn-more {
    background-color: transparent;
    border: 1px solid var(--text-primary);
    color: var(--text-primary);
}

.cookie-btn-more:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* ======= FAQ (POMOCÍ CHECKBOXŮ) ======= */
.faq {
    background-color: var(--secondary-bg);
    color: var(--primary-bg);
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border-radius: 5px;
    overflow: hidden;
}

.faq-question {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 1.5rem;
    position: relative;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    color: var(--primary-bg);
    font-weight: 600;
}

.faq-question:hover {
    background-color: rgba(255, 255, 255, 1);
}

.faq-question::after {
    content: "+";
    font-size: 1.5rem;
    font-weight: 300;
    transition: var(--transition);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.6);
    transition: max-height 0.3s ease-out;
}

.faq-answer-content {
    padding: 0 1.5rem 1.5rem;
    color: var(--primary-bg);
}

.faq-toggle {
    display: none;
}

.faq-toggle:checked ~ .faq-answer {
    max-height: 500px;
}

.faq-toggle:checked ~ .faq-question::after {
    content: "−";
}

.faq-toggle:checked ~ .faq-question {
    background-color: rgba(255, 111, 97, 0.1);
    border-left: 3px solid var(--accent);
}

/* ======= RESPONZIVNÍ DESIGN ======= */
@media (max-width: 992px) {
    .section-title {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    /* Header pro mobilní zařízení */
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: rgba(1, 77, 78, 0.98);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        transition: var(--transition);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        margin: 1.5rem 0;
    }
    
    .hamburger-icon {
        display: block;
        z-index: 101;
    }
    
    #mobile-menu-toggle:checked ~ .nav-menu {
        left: 0;
    }
    
    #mobile-menu-toggle:checked ~ .hamburger-icon span:nth-child(1) {
        transform: rotate(45deg);
        top: 9px;
    }
    
    #mobile-menu-toggle:checked ~ .hamburger-icon span:nth-child(2) {
        opacity: 0;
    }
    
    #mobile-menu-toggle:checked ~ .hamburger-icon span:nth-child(3) {
        transform: rotate(-45deg);
        top: 9px;
    }
    
    /* Další responzivní úpravy */
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    section {
        padding: 4rem 0;
    }
    
    .policy-container {
        padding: 2rem;
    }
    
    .cookie-popup {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-text {
        padding-right: 0;
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 14px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-btn {
        width: 100%;
    }
    
    .contact-form-container, .thank-you-container, .policy-container {
        padding: 1.5rem;
    }
}