/* =========================================
   1. PROMĚNNÉ A ZÁKLADNÍ NASTAVENÍ
   ========================================= */
:root {
    --color-light-gray: #dad7cd;
    --color-sage: #a3b18a;
    --color-fern-green: #588157;
    --color-hunter-green: #3a5a40;
    --color-dark-green: #344e41;
    --color-white: #ffffff;
    --color-header: #344e41;
}

* {
    margin: 0;
    padding: 0;
}

body:not(:has(.hero-section)) {
    padding-top: 75px;
}

/* FIX: Add html rule to prevent overflow */
html {
    overflow-x: hidden;
    width: 100%;
}

body {
    margin: 0;

    font-family: sans-serif;
    background-color: var(--color-white);
    color: var(--color-dark-green);
    overflow-x: hidden;
    /* Zabrání nechtěnému posunu do stran */
    width: 100%;
    /* FIX: Ensure body doesn't exceed viewport */
    max-width: 100vw;
    /* FIX: Prevent body from being wider than viewport */
}

/* Globální kontejner (používá se v sekcích Process, Footer atd.) */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.container-full {
    width: 97%;
    max-width: 100%;
    /* FIX: Prevent exceeding viewport */
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Sjednocené styly nadpisů */
.section-title {
    font-size: 2.5rem;
    color: var(--color-dark-green);
    margin: 0 0 30px 0;
    font-weight: 800;
    text-align: center;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 50px auto;
    text-align: center;
}

/* =========================================
   2. HLAVIČKA (HEADER) - Transparentní verze
   ========================================= */
.main-header {
    box-sizing: border-box;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;

    /* Výchozí stav je "plný" (netransparentní) */
    height: 6.5rem;
    background-color: var(--color-header);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);

    transition: all 0.4s ease-in-out;
}

.main-header.header-transparent {
    background-color: transparent;
    /* Zrušíme zelenou barvu */
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
    box-shadow: none;
    /* Na začátku bez stínu */
}

/* Stav po odscrollování - Gradient zmizí, nastoupí barva */
.main-header.scrolled {
    background-color: var(--color-header);
    background-image: none;
    /* Gradient zmizí */
    height: 5.5rem;
    /* Zmenšení výšky */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Zbytek kódu (header-content, logo, atd.) zůstává stejný */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

/* ... a tak dále ... */

.logo img {
    max-height: 65px;
    width: auto;
    display: block;
    transition: all 0.3s ease;
}

.main-header.scrolled .logo img {
    max-height: 55px;
    /* Zmenšení loga při scrollu */
}

.logo:hover img {
    opacity: 0.85;
}

.main-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
}

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

.main-nav a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--color-white);
}

/* Podtržení odkazů v menu */
.main-nav a::after {
    content: "";
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--color-white);
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Dropdown menu */
.main-nav li.dropdown {
    position: relative;
}

.main-nav .dropdown-menu {
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s ease-out, transform 0.25s ease-out, visibility 0.25s;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 100;
    min-width: 220px;
    padding: 10px 0;
    margin: 0;
    margin-top: 10px;
    background-color: var(--color-dark-green);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-radius: 0 0 5px 5px;
}

.main-nav li.dropdown:hover>.dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-nav .dropdown-menu li {
    margin-left: 0;
    width: 100%;
}

.main-nav .dropdown-menu a {
    display: block;
    padding: 12px 20px;
    white-space: nowrap;
    text-shadow: none;
    /* V dropdownu stín nepotřebujeme */
}

/* --- Speciální li pro tlačítko --- */
.main-nav li.cta-separator {
    margin-left: 40px;
    /* Tady si nastavíš ten "speciální margin" */
    display: flex;
    align-items: center;
}

/* --- Styl samotného tlačítka v menu --- */
.main-nav a.btn-nav-cta {
    background-color: transparent;
    /* Průhledné pozadí */
    color: var(--color-white) !important;
    /* Bílý text */
    border: 2px solid var(--color-white);
    /* Bílý rámeček (2px jako dole) */

    padding: 8px 22px;
    /* Upravený padding, aby tlačítko nebylo moc obří s rámečkem */
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: none;
    /* V základu bez stínu */
}

/* Hover efekt pro tlačítko */
.main-nav a.btn-nav-cta:hover {
    background-color: var(--color-white);
    /* Po najetí se vyplní bílou */
    color: var(--color-dark-green) !important;
    /* Text se změní na zelenou */
    border-color: var(--color-white);

    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* --- DŮLEŽITÉ: Zrušení podtrhávací čárky pro toto tlačítko --- */
.main-nav a.btn-nav-cta::after {
    content: none;
    display: none;
}

/* --- IKONA ŠIPKY V MENU --- */

/* Nastaví odkaz jako flex kontejner, aby text a ikona byly pěkně vedle sebe a uprostřed */
.main-nav li.dropdown>a {
    display: inline-flex;
    align-items: center;

}

/* Výchozí stav ikony a plynulý přechod */
.dropdown-icon {
    font-size: 0.85em;
    /* Lehké zmenšení ikony vůči textu, můžete upravit */
    transition: transform 0.3s ease;
    /* Plynulá animace */

    fill: white;
    /* Převezme barvu textu odkazu */
}

/* Při najetí (hover) na položku "dropdown" se ikona posune o 3px dolů */
.main-nav li.dropdown:hover .dropdown-icon {
    transform: translateY(3px);
}



/* =========================================
   3. HERO SECTION
   ========================================= */
.hero-section {
    position: relative;
    width: 100%;
    max-width: 100vw;
    min-height: 650px;
    height: 90vh;
    /* Změněno na 100vh pro plný efekt pod headerem */
    background-image: url("./images/types/plastic.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    overflow: hidden;
    box-sizing: border-box;
    /* Hero začíná od úplného vrchu pod transparentním headerem */
    margin-top: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.35);
    /* Trochu zesvětleno pro lepší vyniknutí fotky */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    color: white;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
    margin-bottom: 5px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(74, 222, 128, 0.6);
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    /* Responzivní velikost písma */
    font-weight: 800;
    line-height: 1.1;
    margin: 0;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.hero-description {
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.6;
    color: #f3f4f6;
    max-width: 650px;
    margin: 0;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 15px;
    width: 100%;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 180px;
}

.btn-hero-primary {
    background-color: var(--color-hunter-green);
    color: white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border: 2px solid transparent;
}

.btn-hero-primary:hover {
    background-color: var(--color-dark-green);
    transform: translateY(-2px);
}

.btn-hero-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.btn-hero-secondary:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* =========================================
   4. STATISTIKY (STATS SECTION)
   ========================================= */
.stats-section {
    background-color: var(--color-fern-green);
    /* Primární barva pozadí */
    padding: 60px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;

}

.stats-container {
    margin: 0 auto;
    padding: 0 20px;
}

.stats-grid {
    
    /* 4 sloupce vedle sebe */
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

/* Odstranění čáry u posledního prvku */
.stat-item:last-child {
    border-right: none;
}

.stat-number {
    font-size: 2.1rem;
    font-weight: 900;
    color: var(--color-white);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}



/* =========================================
   4. ABOUT SECTION
   ========================================= */
.about-section {
    padding: 80px 2rem;
    background-color: #ffffff;
    max-width: 100vw;
    overflow: hidden;
    box-sizing: border-box;
}

.about-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
    box-sizing: border-box;
}

.about-text {
    flex: 2;
    min-width: 300px;
}

.about-image {
    flex: 3.5;
    min-width: 300px;
    padding: 10px;
}

/* Efekt otočeného obrázku */
.effect-wrapper {
    position: relative;
    z-index: 1;
}

.effect-bg {
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    background-color: var(--color-light-gray);
    border-radius: 1rem;
    transform: rotate(-2deg);
    z-index: -1;
    transition: transform 0.5s ease, background-color 0.3s ease;
}

.effect-frame {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    z-index: 2;
}

.effect-frame img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.7s ease;
}

.effect-wrapper:hover .effect-bg {
    transform: rotate(-1deg);
}

.about-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 20px;
}

/* GLOBÁLNÍ TLAČÍTKO (Použito v About, Footer atd.) */
.btn-primary {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
    text-align: center;
    /* Konzistentní barva s Hero sekcí (Hunter -> Dark) */
    background-color: var(--color-hunter-green);
    border: none;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--color-dark-green);
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.3);
}

/* =========================================
   5. MATERIALS SECTION
   ========================================= */
.materials-section {
    padding: 80px 2rem;
    background-color: var(--color-light-gray);
    max-width: 100vw;
    overflow: hidden;
    box-sizing: border-box;
}

.materials-section .container {
    max-width: 900px;
    text-align: center;
}

.materials-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.material-tag {
    display: inline-block;
    background-color: #ffffff;
    padding: 12px 25px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    border: 1px solid var(--color-sage);
    transition: all 0.3s ease;
    cursor: default;
}

.material-tag:hover {
    background-color: var(--color-hunter-green);
    color: white;
    border-color: var(--color-hunter-green);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}











/* =========================================
   SERVICES SLIDER SECTION (Váš Layout + Nový Styl)
   ========================================= */

.services-section {
    padding: 80px 2rem;
    background-color: #f3f3f3;
    max-width: 100vw;
    overflow: hidden;
    box-sizing: border-box;
}

/* ----- Header ----- */
.section-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px auto;
}

.sub-title {
    color: var(--color-fern-green);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--color-dark-green);
    margin-bottom: 20px;
    font-weight: 800;
}

.section-subtitle {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* ----- Slider Layout (VAŠE HODNOTY) ----- */

.slider-wrapper {
    position: relative;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 100px;
    box-sizing: border-box;
    overflow: hidden;
}

.slider-container {
    overflow: hidden;
    /* Přidán padding pro stíny, kompenzováno marginem */
    padding: 20px 0;
    margin: 0;
    box-sizing: border-box;
}

.slider-track {
    display: flex;
    gap: 30px;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    box-sizing: border-box;
}

/* ----- Service Card (VAŠE ROZMĚRY + NOVÝ STYL) ----- */

.service-card {
    /* Vaše hodnota pro 3 karty */
    flex: 0 0 calc((100% - 60px) / 3);

    background-color: #f9f9f9;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;

    /* Nový styl ohraničení */

    border-bottom: 4px solid transparent;

    /* Nový styl stínu */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* Hover efekt */
.service-card:hover {
    transform: translateY(-8px);
    border-bottom-color: var(--color-fern-green);
    box-shadow: 0 15px 15px rgba(58, 90, 64, 0.15);
}

/* ----- Image (Nový styl zoomu) ----- */

.card-image {
    height: 220px;
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-card:hover .card-image img {
    transform: scale(1.04);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s ease;
}

.service-card:hover .card-overlay {
    background-color: transparent;
}

/* ----- Content (Nový styl ikon a textu) ----- */

.card-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-icon {
    width: 45px;
    height: 45px;
    background-color: rgba(163, 177, 138, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-hunter-green);
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.card-icon svg {
    width: 24px;
    height: 24px;
}

/* Animace ikonky */
.service-card:hover .card-icon {
    background-color: var(--color-hunter-green);
    color: white;
    transform: rotate(5deg) scale(1.1);
}

.service-card h3 {
    margin-bottom: 10px;
    font-size: 1.4rem;
    color: var(--color-dark-green);
}

.service-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Styl odkazu */
.card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    /* Pevná mezera */
    font-weight: 700;
    color: var(--color-hunter-green);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

/* Styl šipky (SVG) */
.card-link svg {
    width: 18px;
    height: 18px;
    /* Připravíme přechod pro posun */
    transition: transform 0.3s ease;
}

/* 1. Když najedu na CELOU KARTU: Odkaz jen změní barvu (volitelné) */
.service-card:hover .card-link {
    color: var(--color-fern-green);
}

/* 2. Když najedu přímo na TEXT ODKAZU: Šipka odjede doprava */
.card-link:hover svg {
    transform: translateX(6px);
    /* Posun o 6px doprava */

}

/* ----- Navigation buttons (VAŠE POZICE + NOVÝ STYL) ----- */

/* ----- TLAČÍTKA SLIDERU (VZHLED) ----- */

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    /* Vzhled: Větší a kulaté */
    width: 55px;
    height: 55px;
    border-radius: 50%;

    /* Barvy a ohraničení */
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--color-dark-green);

    /* Centrování šipky */
    display: flex;
    align-items: center;
    justify-content: center;

    /* Stín pro 3D efekt */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);

    cursor: pointer;
    z-index: 10;

    /* Plynulá animace */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Efekt při najetí myší */
.slider-btn:hover {
    background-color: var(--color-hunter-green);
    color: #ffffff;
    border-color: var(--color-hunter-green);

    /* Výraznější stín a jemné zvětšení */

    transform: translateY(-50%) scale(1.1);
}

/* Styl samotné ikonky šipky */
.slider-btn svg {
    width: 24px;
    height: 24px;
    stroke-width: 2.5;
}

/* Pozice zůstávají stejné (neměnit, pokud fungují) */
.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

/* =========================================
   7. PROCESS SECTION
   ========================================= */
.process-section {
    padding: 80px 2rem;
    background-color: #ffffff;
    max-width: 100vw;
    overflow: hidden;
    box-sizing: border-box;
}

.tiles-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 35px;
}

.tile {
    background-color: var(--color-light-gray);
    padding: 35px;
    border-radius: 10px;
    text-align: left;
    border-left: 6px solid var(--color-hunter-green);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 0 1 350px;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.tile:hover {
    transform: translateY(-12px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

.tile-badge {
    position: absolute;
    top: 0px;
    right: 0px;
    background-color: var(--color-fern-green);
    color: white;
    padding: 8px 15px;
    border-bottom-left-radius: 10px;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.tile-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-sage);
    margin-bottom: 15px;
}

.tile-title {
    font-size: 1.6rem;
    margin-bottom: 18px;
    font-weight: 600;
}

.tile-description {
    font-size: 1.05rem;
    line-height: 1.7;
}

.tile-description a {
    color: var(--color-hunter-green);
    font-weight: bold;
    text-decoration: none;
    border-bottom: 1px dotted var(--color-hunter-green);
    transition: color 0.2s ease;
}

.tile-description a:hover {
    color: var(--color-fern-green);
    border-bottom-color: var(--color-fern-green);
}

/* =========================================
   8. FOOTER
   ========================================= */
.main-footer {
    background-color: var(--color-dark-green);
    color: var(--color-light-gray);
    padding-top: 25px;
    font-size: 0.95rem;
    max-width: 100vw;
    overflow: hidden;
    box-sizing: border-box;
}

.footer-container {
    max-width: 1450px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8rem;
    box-sizing: border-box;
}

.footer-column {
    flex: 1 1 300px;
    max-width: 350px;
}

.footer-column h4 {
    font-size: 1.1rem;
    color: white;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    letter-spacing: 1px;
}

.footer-column h4::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--color-sage);
}

.footer-column p {
    line-height: 1.7;
    margin-bottom: 10px;
}

.footer-column a {
    color: var(--color-light-gray);
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-column a:hover {
    color: var(--color-sage);
    padding-left: 5px;
}

.quick-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

/* Facebook odkaz */
.fb-circle-link {
    display: inline-flex;
    align-items: center;
    margin-top: 15px;
    text-decoration: none;
    color: var(--color-light-gray);
    transition: color 0.3s ease !important;
}

.fb-circle-link svg {
    width: 28px;
    height: 28px;
    fill: var(--color-sage);
    margin-right: 10px;
    transition: fill 0.3s ease;
}

.fb-text {
    transition: padding-left 0.3s ease;
}

.fb-text:hover {
    padding-left: 5px;
}

.fb-circle-link:hover .fb-text {
    padding-left: 5px;
    color: var(--color-sage);
}

.fb-circle-link:hover {
    padding-left: 0 !important;
    color: var(--color-light-gray);
}

.footer-bottom {
    text-align: center;
    padding: 25px 2rem;
    margin-top: 10px;
    border-top: 1px solid var(--color-hunter-green);
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-sage);
}


/* =========================================
   5. VÝZVA K AKCI (CTA SECTION)
   ========================================= */
.cta-section {
    position: relative;
    background-color: #f3f3f3;
    /* Jemně šedé pozadí jako u služeb */
    padding: 100px 0;
    text-align: center;
    overflow: hidden;
    color: var(--color-dark-green);
    /* Tmavý text pro kontrast */
}

/* Textura na pozadí */
.cta-pattern {
    position: absolute;
    inset: 0;
    background-image: url('https://www.transparenttextures.com/patterns/cubes.png');
    opacity: 0.03;
    /* Velmi jemná viditelnost na šedé */
    pointer-events: none;
}

.cta-container {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.cta-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.2;
    color: var(--color-dark-green);
}

.cta-description {
    font-size: 1.2rem;
    color: #555;
    /* Tmavší šedá pro čitelnost textu */
    margin-bottom: 40px;
    line-height: 1.6;
}

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

/* Levé tlačítko (Poptávka) využívá globální třídu .btn-primary, 
   kterou už máš definovanou v sekci ABOUT (zelené pozadí, bílý text).
   Zde tedy nemusíme pro něj nic psát, HTML to zařídí.
*/

/* Pravé tlačítko (Telefon) - Musíme ho ztmavit, aby bylo vidět na šedé */
.btn-cta-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 36px;
    /* Sladěno s velikostí btn-primary */
    background-color: transparent;

    /* Změna na tmavě zelenou (outline styl) */
    color: var(--color-hunter-green);
    border: 2px solid var(--color-hunter-green);

    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    /* Sladěno s btn-primary */
    transition: all 0.3s ease;
}

.btn-cta-secondary:hover {
    background-color: var(--color-hunter-green);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(58, 90, 64, 0.2);
}

/* Ikona telefonu */
.btn-cta-secondary .material-symbols-outlined {
    font-size: 20px;
}

/* Oprava pro primární tlačítko uvnitř CTA sekce, aby ladilo s tím druhým */
.cta-buttons .btn-primary {
    display: inline-flex;
    /* Sladění s btn-cta-secondary */
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    /* Zvětšení paddingu na stejnou hodnotu */
    gap: 10px;
    /* Mezera, kdyby tam byla ikona */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    /* Jemnější stín pro světlé pozadí */
}

/* Úprava hover efektu pro toto konkrétní tlačítko v šedé sekci */
.cta-buttons .btn-primary:hover {
    box-shadow: 0 6px 20px rgba(58, 90, 64, 0.3);
    transform: translateY(-2px);
}



/* =========================================
   9. MEDIA QUERIES (Responzivita)
   ========================================= */

/* TISK */
@media print {
    body {
        font-family: Georgia, serif;
        font-size: 11pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
        padding-top: 0;
    }

    * {
        color: #000 !important;
        background: none !important;
        border: none !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    .main-header,
    .hero-section,
    .btn-primary,
    .main-footer,
    .slider-btn {
        display: none;
    }

    .slider-container {
        overflow: visible;
    }

    .slider-track {
        display: block;
    }

    .service-card {
        flex: none;
        width: 100%;
        margin-bottom: 20px;
        page-break-inside: avoid;
        border: 1px solid #ccc;
    }
}

/* =========================================
   10. RESPONZIVITA (MOBILES & TABLETS)
   ========================================= */

/* --- HAMBURGER MENU (Základní styly pro PC) --- */
.hamburger {
    display: none;
    /* Na PC skryto */
    cursor: pointer;
    z-index: 1001;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--color-white);
    border-radius: 3px;
}

/* TABLETY A MENŠÍ NOTEBOOKY (do 1024px) */
@media (max-width: 1024px) {
    .about-container {
        flex-direction: column;
        text-align: center;
    }

    .about-image {
        order: -1;
        /* Posune obrázek nad text */
        margin-bottom: 2rem;
    }

    /* Vypnutí horizontálního slideru a přeměna na mřížku pro tablety */
    .slider-wrapper {
        padding: 0 20px;
    }

    .slider-btn {
        display: none !important;
        /* Skrytí navigačních tlačítek */
    }

    .slider-track {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        /* Dva sloupce na tabletu */
        gap: 20px;
        transform: none !important;
        /* Vyrušení JavaScriptového posouvání */
        width: 100%;
    }

    .service-card {
        flex: none;
        width: 100%;
    }

    .footer-container {
        gap: 3rem;
        padding: 0 1rem;
    }
}

@media (min-width: 769px) {
    .main-nav li.dropdown:hover > .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .main-nav .dropdown-menu li.mobile-only {
        display: none;
    }
}

/* MOBILNÍ TELEFONY (do 768px) */
@media (max-width: 768px) {
    .main-nav li.dropdown:hover > .dropdown-menu,
    .main-nav li.dropdown:active > .dropdown-menu {
        display: none; /* Zrušení původního hoveru na mobilu */
    }

    /* Otevření menu pomocí naší JS třídy */
    .main-nav li.dropdown.dropdown-open > .dropdown-menu {
        display: block;
        position: relative;
        transform: none;
        box-shadow: none;
        background-color: rgba(0, 0, 0, 0.15);
        min-width: 100%;
        border-radius: 8px;
        margin-top: 10px;
        opacity: 1;
        visibility: visible;
    }

    /* Otočení šipky po kliknutí na mobilu */
    .main-nav li.dropdown.dropdown-open .dropdown-icon {
        transform: rotate(180deg);
    }

    /* Zrušení hover podtržení na mobilu, aby nezůstalo zaseknuté */
    .main-nav a:not(.active):hover::after {
        transform: scaleX(0);
    }

    /* --- Hlavička a navigace --- */
    body:not(:has(.hero-section)) {
        padding-top: 70px !important;
        /* Odsazení pro podstránky, aby obsah nelezl pod fixní hlavičku */
    }

    .main-header {
        height: auto !important;
        background-color: var(--color-header) !important;
        background-image: none !important;
        position: fixed !important;
        /* ZMĚNA: Hlavička zůstane přilepená nahoře */
        top: 0;
        left: 0;
        width: 100%;
    }

    /* Hlavička drží logo a hamburger vedle sebe */
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        padding: 10px 20px;
    }

    .hamburger {
        display: block;
    }

    /* Skrytí hlavního menu a příprava na rozbalení */
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--color-header);
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
        /* Zajištění, aby šlo menu na malých mobilech scrollovat, pokud je moc dlouhé */
        overflow-y: auto;
    }

    .main-nav.nav-active {
        max-height: 70vh;
        /* Menu se rozbalí maximálně na 70% výšky displeje */
    }

    /* Úprava odkazů uvnitř mobilního menu */
    .main-nav ul {
        flex-direction: column;
        padding: 20px 0;
        gap: 15px;
        text-align: center;
    }

    .main-nav li {
        margin-left: 0;
        width: 100%;
    }

    .main-nav li.cta-separator {
        margin-left: 0;
        margin-top: 15px;
        justify-content: center;
        padding-bottom: 20px;
    }

    /* Zobrazení rozbalovacího menu přímo v hlavní nabídce */
    .main-nav li.dropdown:hover>.dropdown-menu,
    .main-nav li.dropdown:active>.dropdown-menu {
        position: relative;
        transform: none;
        box-shadow: none;
        background-color: rgba(0, 0, 0, 0.15);
        min-width: 100%;
        border-radius: 8px;
        margin-top: 10px;
        opacity: 1;
        visibility: visible;
    }

    .main-nav .dropdown-menu a {
        padding: 12px;
    }

    /* ANIMACE HAMBURGERU NA KŘÍŽEK (X) */
    .hamburger.toggle .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

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

    .hamburger.toggle .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* --- Hero Sekce --- */
    .hero-section {
        min-height: auto;
        padding: 110px 20px 60px 20px;
        /* ZMĚNA: Větší horní padding (110px) kvůli přilepené hlavičce */
        height: auto;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        /* Vycentruje tlačítka na střed */
        width: 100%;
        gap: 15px;
    }

    .hero-btn {
        width: fit-content;
        /* Přizpůsobí šířku obsahu a zachová padding */
        /* Odstraněno width: 100% */
    }

    /* --- Statistiky --- */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .stats-section {
        padding-bottom: 30px;
        padding-top: 30px;
    }

    .stat-item {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 15px;
    }

    .stat-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    /* --- Obecné Sekce --- */
    .section-title {
        font-size: 2rem;
    }

    .about-container {
        gap: 0px;
    }

    .about-title {
        margin-top: 0px;
    }

    .slider-container {
        max-width: 95%;
    }

    .container-full {
        padding: 0;


    }

    .service-card h3 {
        margin-bottom: 0px;
        font-size: 1.4rem;
        color: var(--color-dark-green);
    }

    h3 {


        margin-block-start: 0.1em;
        margin-block-end: 0.1em;
        margin-inline-start: 0px;
        margin-inline-end: 0px;

    }

    .about-section,
    .services-section,
    .process-section,
    .cta-section {
        padding: 50px 1rem;
    }

    /* --- Služby (Slider -> 1 sloupec) --- */
    .slider-track {
        grid-template-columns: 1fr !important;
    }

    .slider-wrapper {
        margin-right: 0;
        padding-right: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        padding-left: 0;

    }

    /* --- Procesní dlaždice --- */
    .tiles-wrapper {
        gap: 20px;
    }

    .tile {
        flex: 1 1 100%;
        padding: 25px 20px;
    }

    /* --- Výzva k akci (CTA) --- */
    .cta-title {
        font-size: 1.8rem;
    }

    .btn-cta-secondary,
    .cta-buttons .btn-primary {

        box-sizing: border-box;
    }

    /* --- Patička --- */
    /* --- Patička --- */
    .main-footer {
        padding-top: 0;
    }

    .footer-container {
        display: block;
        padding: 0;
    }

    .footer-column {
        display: block;
        max-width: 100%;
        width: 100%;
        padding: 20px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
        box-sizing: border-box;
        text-align: left;
    }

    .footer-column:last-child {
        border-bottom: none;
    }

    .footer-column h4 {
        margin: 0 0 10px 0;
        
    }

    .footer-column h4::after {
        display: none;
    }

    .footer-column p {
        margin: 0 0 4px 0;
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .quick-links ul {
        padding: 0;
        margin: 0;
    }

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

    .footer-column a:hover {
        padding-left: 0;
    }

    .fb-circle-link {
        justify-content: flex-start;
        margin-top: 8px;
    }

    .footer-bottom {
        padding: 16px 20px;
        margin-top: 0;
        text-align: left;
    }



    /* =========================================
       ZRUŠENÍ HOVER PŘIZVEDNUTÍ NA MOBILECH
       ========================================= */
    
    /* Všechna tlačítka a štítky */
    .main-nav a.btn-nav-cta:hover,
    .btn-hero-primary:hover,
    .btn-hero-secondary:hover,
    .btn-primary:hover,
    .btn-cta-secondary:hover,
    .cta-buttons .btn-primary:hover,
    .material-tag:hover {
        transform: none !important;
        /* Pro tlačítka s původním stínem ho vrátíme na původní hodnotu */
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2) !important;
    }

    /* Očištění specifických tlačítek bez stínu (sekundární) */
    .btn-hero-secondary:hover,
    .main-nav a.btn-nav-cta:hover,
    .material-tag:hover {
        box-shadow: none !important;
    }

    /* Karta služeb (Svařované, Pletivové...) */
    .service-card:hover {
        transform: none !important;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05) !important;
        border-bottom-color: transparent !important;
    }

    /* Karta služeb - vnitřní obrázek a ikona (aby se nezvětšovaly) */
    .service-card:hover .card-image img,
    .service-card:hover .card-icon {
        transform: none !important;
    }
    
    /* Vrácení barvy ikony u karty služeb na výchozí */
    .service-card:hover .card-icon {
        background-color: rgba(163, 177, 138, 0.2) !important;
        color: var(--color-hunter-green) !important;
    }

    /* Procesní dlaždice (kroky 1, 2, 3...) */
    .tile:hover {
        transform: none !important;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
    }
}

/* VELMI MALÉ MOBILY (do 480px) */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .tile-number {
        font-size: 2.8rem;
    }
}