/* EKOLISTY.CZ - MAIN STYLESHEET */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background: linear-gradient(135deg, #fbfdfb 0%, #ffffff 50%, #fbfdfb 100%);
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        url('stromy-pozadi-ekolisty-2025.svg'),
        url('stromy-pozadi-ekolisty-2025.svg');
    background-repeat: repeat;
    background-size: 300px 300px, 300px 300px;
    background-position: 
        0 0,
        150px 150px;
    opacity: 0.15;
    pointer-events: none;
    z-index: -1;
    transform: scale(0.5);
    transform-origin: top left;
    width: 200%;
    height: 200%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* HEADER */
.header {
    background: linear-gradient(135deg, #7cb342 0%, #689f38 50%, #7cb342 100%);
    color: white;
    padding: 2rem 0;
    box-shadow: 0 6px 25px rgba(124, 179, 66, 0.3);
    position: relative;
    overflow: visible; /* aby logo mohlo přesahovat */
    padding: 1.5rem 0;

}

.header .container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    position: relative;
    z-index: 2;
}

.logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.logo-main {
    display: flex;
    align-items: center;
    gap: 0;
    position: relative;
    z-index: 10;
}

.logo-main::before {
    content: '';
    background: url('ekolisty-logo-2025.svg') no-repeat center;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
    background-size: contain;
    width: 8rem;
    height: 11rem;
    display: block;
    flex-shrink: 0;
    margin-right: -0.7rem;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.2rem;
    align-items: center;
}

.logo h1 {
    font-size: 2.75rem;
    font-weight: 700;
    margin: 0;
    color: white; /* Změněno na bílou */
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    line-height: 1.1;
}

.logo h1 a {
    color: white;
    text-decoration: none;
}

.tagline {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin: 0;
}

/* NAVIGATION */
.navigation {
    display: flex;
    justify-content: flex-end;
    flex-shrink: 0;
}

.navigation ul {
    display: flex;
    list-style: none;
    gap: 0;
//    background: rgba(255, 255, 255, 0.9);
    border-radius: 1px;
    padding: 0.4rem;
    justify-content: space-between;
    border: none;
}

.navigation a {
    display: block;
    padding: 1rem 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    border-radius: 0;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.4s ease;
    flex: 1;
    text-align: center;
    min-width: 0;
}

.navigation a:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
//    transform: scale(1.02);
}

.navigation a.active {
    background: rgba(124, 179, 66, 0.9);
    color: white;
    font-weight: 600;
    box-shadow: 0 0px 5px rgba(124, 179, 66, 0.3);
}

/* HAMBURGER MENU */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    background: rgba(124, 179, 66, 0.2);
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 10000;
}

.hamburger {
    width: 25px;
    height: 3px;
    background-color: #4a5568;
    margin: 3px 0;
    transition: 0.4s;
    transform-origin: center;
}

.nav-toggle.active .hamburger:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.active .hamburger:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .hamburger:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.nav-toggle.active {
    background: rgba(255, 255, 255, 0.9);
}

.nav-toggle.active .hamburger {
    background-color: #4a5568;
}

/* MAIN CONTENT */
.main-content {
    padding: 3rem 0;
}

.page-content {
    background: rgba(255, 255, 255, 0.95);
    padding: 4rem;
    border-radius: 0;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    max-width: 1000px;
    margin: 0 auto;
}

.page-content h1 {
    color: #2d5016;
    margin-bottom: 2rem;
    font-size: 2.2rem;
    font-weight: 600;
    text-align: center;
}
.page-content h2 {
    color: #2d5016;
    margin-bottom: 2rem;
    font-size: 2.2rem;
    font-weight: 600;
    text-align: center;
}

.page-content h3 {
    color: #2d5016;
    margin: 2rem 0 1rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.page-content h4 {
    color: #2d5016;
    margin: 1.5rem 0 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.page-content p {
    margin-bottom: 1.4rem;
    color: #4a5568;
    line-height: 1.8;
    font-size: 1.05rem;
}

.page-content ul:not(.inquiry-section ul) {
    color: #4a5568;
    line-height: 1.8;
    font-size: 1.05rem;
    margin: 1.5rem 0;
    padding-left: 2.5rem;
    list-style: none;
}

.page-content ul:not(.inquiry-section ul) li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.8rem;
}

.page-content ul:not(.inquiry-section ul) li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.45rem;
    width: 1.2rem;
    height: 1.2rem;
    background: url('ekolisty-logo-2025.svg') no-repeat center;
    background-size: contain;
    opacity: 0.6;
}

.subtitle {
    color: #dddddd;
    font-style: italic;
}

/* SERVICE AREA MAP */
.service-area-map {
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #fbfdfb 0%, #eeeeee 50%, #fbfdfb 100%);
    border-radius: 0;
    border: 0;
}

.service-area-map h3 {
    text-align: center;
    color: #2d5016;
    margin-bottom: 2rem;
    font-size: 1.6rem;
}

.map-container {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.interactive-map-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.interactive-map-wrapper:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.base-map,
.detail-map {
    width: 100%;
    height: 400px;
    max-height: 400px;
    object-fit: contain;
    display: block;
    background: white;
    transition: opacity 0.6s ease;
}

.detail-map {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    z-index: 2;
}

.interactive-map-wrapper:hover .detail-map {
    opacity: 1;
}

.interactive-map-wrapper:hover .base-map {
    opacity: 0.1;
}

.map-description {
    text-align: center;
    color: #666;
    font-style: italic;
    margin-top: 1rem;
}

/* INQUIRY SECTION */
.inquiry-section {
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #fbfdfb 0%, #eeeeee 50%, #fbfdfb 100%);;
    border-radius: 0;
    border: 0;
}

.inquiry-section h3 {
    text-align: center;
    color: #2d5016;
    margin-bottom: 2rem;
    font-size: 1.6rem;
}

.inquiry-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr;
    gap: 3rem;
    margin: 2rem 0;
    align-items: start;
}

.inquiry-grid > div {
    background: rgba(255, 255, 255, 0.3);
    padding: 1.8rem;
    border-radius: 8px;
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 0.5rem;
}

.inquiry-grid > div:first-child {
    grid-template-rows: auto auto;
}

.inquiry-grid > div:last-child {
    align-content: center;
}

.inquiry-section h4 {
    color: #2d5016;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 0;
}

.inquiry-section ul {
    margin: 0.4rem 0;
    list-style: none;
}

.inquiry-section ul li {
    margin-bottom: 0.6rem;
    line-height: 1.5;
    position: relative;
    padding-left: 1.9rem;
}

.inquiry-section ul li:last-child {
    margin-bottom: 0;
}

.inquiry-section ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.2rem;
    width: 1.2rem;
    height: 1.2rem;
    background: url('ekolisty-logo-2025.svg') no-repeat center;
    background-size: contain;
    opacity: 0.7;
}

.inquiry-section p {
    margin: 0;
    color: #4a5568;
    line-height: 2.2;
    font-size: 1.05rem;
    text-align: justify;
    align-self: center;
}

.inquiry-section .contact-info {
    text-align: center;
    background: linear-gradient(135deg, #fbfdfb 0%, #eeeeee 50%, #fbfdfb 100%);;
    margin-top: 2rem;
    padding-top: 2rem;
}

.inquiry-section .contact-info p {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    text-align: center;
}

.inquiry-section .contact-info a {
    color: #2d5016;
    text-decoration: none;
    font-weight: 500;
}

.inquiry-section .contact-info a:hover {
    text-decoration: underline;
}

/* CONTACT GRID */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin: 2rem 0;
}

.contact-info {
    background: linear-gradient(135deg, #fbfdfb 0%, #eeeeee 50%, #fbfdfb 100%);;
    padding: 2rem;
    border-radius: 0;
    margin-bottom: 2rem;
}

.contact-info h4 {
    color: #2d5016;
    margin-bottom: 1rem;
}

.contact-info a {
    color: #2d5016;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* COOKIES INFO */
.cookies-info {
    background: linear-gradient(135deg, #fbfdfb 0%, #eeeeee 50%, #fbfdfb 100%);;
    padding: 2rem;
//    border-radius: 0;
//    border: 2px solid #689f38;
    margin-top: 2rem;
}

.cookies-info h3 {
    color: #2d5016;
    margin-bottom: 1rem;
}

/* FOOTER */
.footer {
    background: linear-gradient(135deg, #7cb342 0%, #689f38 50%, #7cb342 100%);
    color: white;
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    color: #e8f5e8;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
    padding-left: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.footer-section ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.1rem;
    width: 1rem;
    height: 1rem;
    background: url('ekolisty-logo-2025.svg') no-repeat center;
    background-size: contain;
    opacity: 0.4;
    filter: brightness(2);
}

.footer-section a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.footer-section a:hover {
    color: white;
}

/* SCROLL TO TOP */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(124, 179, 66, 0.8);
    color: white;
    border: 2px solid rgba(129, 199, 132, 0.3);
    border-radius: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: rgba(124, 179, 66, 1);
    border: 2px solid rgba(129, 199, 132, 0.5);
}

.scroll-to-top::before {
    content: '\2191';
    font-size: 24px;
    font-weight: normal;
    line-height: 1;
    color: white;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1rem;
        position: relative;
        padding-top: 1rem;
        width: 100%;
    }
    
    .logo {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        width: 100%;
        transform: translateX(-20px);
    }
    
    .logo-main {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .logo-main::before {
        content: '';
        width: 5rem;
        height: 7rem;
        margin: 0;
        display: block;
        background: url('ekolisty-logo-2025.svg') no-repeat center;
        background-size: contain;
        margin-right: -0.75rem;

    }
    
    .logo-text {
        align-items: center;
    }
    
    .logo h1 {
        font-size: 2.2rem;
        text-align: center;
    }
    
    .tagline {
        text-align: center;
        font-size: 0.75rem;
    }

    .navigation {
        width: 100%;
        position: relative;
    }
    
    .navigation ul {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background: linear-gradient(135deg, #7cb342 0%, #689f38 100%);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: left 0.4s ease;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        z-index: 9999;
        border-radius: 0;
        border: none;
        padding: 0;
        gap: 0;
        justify-content: flex-start;
        padding-top: 120px;
        overflow-y: auto;
    }

    .navigation ul.active {
        left: 0;
    }

    .navigation ul li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        width: 100%;
    }

    .navigation ul li:last-child {
        border-bottom: none;
    }

    .navigation a {
        display: block;
        padding: 1.5rem;
        margin: 0;
        border-radius: 0;
        width: 100%;
        min-width: auto;
        text-align: center;
        font-size: 1.1rem;
        color: white;
    }

    .navigation a:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: none;
        color: white;
    }

    .navigation a.active {
        background: rgba(255, 255, 255, 0.9);
        color: #2e7d32;
        font-weight: 600;
    }

    .nav-toggle {
        display: flex;
        position: fixed;
        top: 40px;
        right: 20px;
        z-index: 10000;
        background: rgba(124, 179, 66, 0.9);
        backdrop-filter: blur(10px);
        border-radius: 0;
    }
    
    .hamburger {
        background-color: white;
    }

    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }

    .page-content {
        padding: 2rem;
        border-radius: 0;
    }

 .page-content ul:not(.inquiry-section ul) {
        padding-left: 0.1rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .inquiry-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .service-area-map {
        padding: 1rem;
        border-radius: 0;
    }
    
    .inquiry-section {
        border-radius: 0;
    }
   
    .interactive-map-wrapper {
        margin: 0 10px;
        cursor: default;
        border-radius: 0;
    }
    
    .base-map,
    .detail-map {
        height: 300px;
    }

    .interactive-map-wrapper.mobile-active .detail-map {
        opacity: 1;
    }
    
    .interactive-map-wrapper.mobile-active .base-map {
        opacity: 0.1;
    }

    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        border-radius: 0;
    }
    
    .scroll-to-top::before {
        font-size: 22px;
    }
    
    .contact-info {
        border-radius: 0;
    }
    
    .cookies-info {
        border-radius: 0;
    }

    .inquiry-section .contact-info p {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    /* MOBILNÍ ÚPRAVY ODRÁŽEK */
    .page-content ul:not(.inquiry-section ul) li {
        padding-left: 2.2rem;
    }
    
    .inquiry-section ul li {
        padding-left: 2.2rem;
    }
    
    .page-content ul:not(.inquiry-section ul) li::before,
    .inquiry-section ul li::before {
        left: 0.3rem;
    }
    
    .footer-section ul li {
        padding-left: 1rem;
    }
    
    .footer-section ul li::before {
        left: 0.3rem;
    }
}

/* VERY SMALL SCREENS */
@media (max-width: 480px) {
    .page-content {
        padding: 1rem;
        margin: 0 5px;
        max-width: calc(100% - 10px);
    }
    
    .inquiry-section {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .base-map,
    .detail-map {
        height: 250px;
    }
}

/* TEXT WRAPPING */
.contact-info a[href^="mailto:"],
.contact-info a[href^="tel:"],
.footer-section a[href^="mailto:"],
.footer-section a[href^="tel:"] {
    word-break: break-all;
    overflow-wrap: break-word;
    hyphens: none;
    display: inline-block;
    max-width: 100%;
}

.contact-info p,
.footer-section p {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}