/* =========================================
   onas.css - Styly pro stránku O NÁS
   ========================================= */

/* Základní styly pro stránku */
body.light-mode {
    --page-bg: #f8f8f8;
    --text-primary: #1a1a1a;
    --text-secondary: #555;
    --border-color: #e0e0e0;
    --hover-bg: #e9e9e9;
}

body.dark-mode {
    --page-bg: #000000;
    --text-primary: #f8f8f8;
    --text-secondary: #b0b0b0;
    --border-color: #333;
    --hover-bg: #131313;
}

.about-us-page {
    font-family: "Google Sans Flex", sans-serif;
    color: var(--text-primary);
    background-color: var(--page-bg);
    padding-top: 100px; /* Prostor pod navigací */
    transition: background-color 0.5s ease, color 0.5s ease;
}

/* Společné styly pro nadpisy a tagy */
.section-tag {
    font-size: 1.2vmin;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

h1, h2 {
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--text-primary);
}

h1 { font-size: 7vmin; }
h2 { font-size: 5vmin; }
h3 { font-size: 3vmin; font-weight: 600; margin-bottom: 10px; color: var(--text-primary); }

p {
    font-size: 2vmin;
    line-height: 1.6;
    color: var(--text-secondary);
}

.cta-button {
    background-color: var(--text-primary);
    color: var(--page-bg);
    padding: 1.5vmin 3vmin;
    border: none;
    border-radius: 5px;
    font-size: 2vmin;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    margin-top: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover {
    background-color: var(--text-secondary);
    color: var(--page-bg);
    transform: translateY(-3px);
}

/* =========================================
   Sekce 1: Hero About
   ========================================= */
.main-header {
    padding-top: 180px;
    padding-bottom: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 5%;
}

.page-title {
    font-family: "Google Sans Flex", sans-serif;
    font-size: clamp(4rem, 12vw, 9rem);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -3px;
    text-transform: uppercase;
    margin: 0;
}



.hero-about {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8vmin 10%;
    gap: 5%;
    min-height: 70vh;
}

.hero-content {
    flex: 1;
    max-width: 50%;
}

.hero-content h1 {
    font-size: 6vmin;
    margin-bottom: 30px;
}

.hero-content .intro-text {
    font-size: 2.5vmin;
    line-height: 1.7;
    max-width: 80%;
}

.hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.hero-about-image {
    width: 90%;
    height: 70vmin;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* =========================================
   Sekce 2: Co je FSA?
   ========================================= */
.section-fsa-intro {
    display: flex;
    align-items: center;
    padding: 8vmin 10%;
    gap: 5%;
    background-color: var(--hover-bg); /* Mírně odlišené pozadí */
    border-radius: 15px;
    margin: 0 10%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.fsa-image-half {
    flex: 1;
    display: flex;
    justify-content: flex-start;
}

.fsa-intro-img {
    width: 90%;
    height: 50vmin;
    object-fit: cover;
    border-radius: 15px;
}

.fsa-text-half {
    flex: 1;
    max-width: 50%;
}

.fsa-text-half h2 {
    font-size: 4vmin;
}

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

.stats-grid div {
    background-color: var(--page-bg);
    padding: 2vmin;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s ease;
}

.stats-grid div h3 {
    font-size: 3.5vmin;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.stats-grid div p {
    font-size: 1.8vmin;
    color: var(--text-secondary);
}

/* =========================================
   Sekce 3: Naše Služby
   ========================================= */
.section-services-overview {
    text-align: center;
    padding: 8vmin 10%;
}

.section-services-overview h2 {
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.service-item {
    background-color: var(--page-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    text-align: left;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service-item img {
    width: 100%;
    height: 30vmin;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}

.service-item h3 {
    margin: 20px 20px 10px 20px;
    font-size: 2.8vmin;
    color: var(--text-primary);
}

.service-item p {
    margin: 0 20px 20px 20px;
    font-size: 1.8vmin;
    color: var(--text-secondary);
}

/* =========================================
   Sekce 4: FSA Shop
   ========================================= */
.section-shop-intro {
    display: flex;
    flex-direction: row-reverse; /* Obrázek vlevo, text vpravo */
    align-items: center;
    padding: 8vmin 10%;
    gap: 5%;
    background-color: var(--hover-bg);
    border-radius: 15px;
    margin: 8vmin 10% 0 10%; /* Odsazení od předchozí sekce */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.shop-content {
    flex: 1;
    max-width: 50%;
}

.shop-content h2 {
    font-size: 4vmin;
}

.shop-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.shop-image img {
    width: 90%;
    height: 50vmin;
    object-fit: cover;
    border-radius: 15px;
}

/* =========================================
   Sekce 5: Náš Tým
   ========================================= */
.section-team {
    text-align: center;
    padding: 8vmin 10%;
}

.section-team h2 {
    margin-bottom: 60px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

/* Odstranění podtržení u odkazů v mřížce týmu */
.team-grid a {
    text-decoration: none;
    color: inherit; /* Zajistí, že barva textu zůstane podle nastavení v team-member */
    display: block; /* Aby odkaz správně obalil celý blok karty */
}

.team-grid a:hover {
    text-decoration: none; /* Zamezí podtržení i při najetí myší */
}

.team-member {
    background-color: var(--page-bg);
    border-radius: 15px;
    padding: 3vmin;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.profile-photo {
    width: 15vmin;
    height: 15vmin;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    margin: 0 auto 20px auto;
    border: 3px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.team-member h3 {
    font-size: 2.8vmin;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.team-member .role {
    font-size: 1.8vmin;
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-weight: 500;
}

.team-member p {
    font-size: 1.8vmin;
    line-height: 1.5;
}

/* =========================================
   Responzivní úpravy
   ========================================= */
@media (max-width: 768px) {
    .hero-about,
    .section-fsa-intro,
    .section-shop-intro {
        flex-direction: column;
        text-align: center;
        padding: 5vmin 5%;
    }

    .hero-content,
    .fsa-text-half,
    .shop-content {
        max-width: 100%;
        margin-bottom: 5vmin;
    }

    .hero-content .intro-text {
        max-width: 100%;
    }

    .hero-image-wrapper,
    .fsa-image-half,
    .shop-image {
        justify-content: center;
        width: 100%;
    }

    .hero-about-image,
    .fsa-intro-img,
    .shop-image img {
        width: 100%;
        height: 40vmin;
    }

    .stats-grid, .services-grid, .team-grid {
        grid-template-columns: 1fr;
    }
}