/* ============================================
   style.css - ОСНОВНИ СТИЛОВЕ (ДЕСКТОП)
   ============================================ */

/* --------------------------------------------
   0. RESET И БАЗОВИ СТИЛОВЕ
-------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    overflow-x: hidden;
}

/* --------------------------------------------
   1. ХЕДЪР И БАНЕР
-------------------------------------------- */
.site-header {
    width: 100%;
}

/* БАНЕР С ЛОГО И СЛАЙДЕР */
.banner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e3c2c 0%, #2e5c3a 100%);
    padding: 20px 40px;
    width: 100%;
    min-height: 200px;
    gap: 30px;
    flex-wrap: wrap;
}

.banner .logo {
    width: 150px;
    height: auto;
    display: block;
    flex-shrink: 0;
}

/* Слайдер контейнер */
.slider-container {
    flex: 1;
    min-width: 300px;
    max-width: 800px;
    height: 180px;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* --------------------------------------------
   2. НАВИГАЦИЯ
-------------------------------------------- */
.navbar {
    background: linear-gradient(180deg, #6ab0fe 0%, #1e4b7a 100%);
    padding: 0 20px;
    display: flex;
    justify-content: center;
    width: 100%;
}

.menu {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    height: 80px;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    justify-content: center;
}

.menu > li {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.menu > li > a {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 25px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 25px;
    transition: background-color 0.3s;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

.menu > li > a:hover {
    background: linear-gradient(180deg, #66cccc 0%, #008080 100%);
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Подменю (второ ниво) - ЕФЕКТ ЗАВЕСА */
.submenu {
    list-style: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: linear-gradient(180deg, #4a90e2 0%, #1e3a5f 100%);
    min-width: 220px;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: max-height 0.5s ease-in-out, opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}

.menu > li:hover > .submenu {
    max-height: 300px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.submenu li {
    position: relative;
}

.submenu li a {
    display: block;
    padding: 12px 20px;
    color: white;
    text-decoration: none;
    font-size: 20px;
    transition: background-color 0.3s;
    white-space: nowrap;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.submenu li:last-child a {
    border-bottom: none;
}

.submenu li a:hover {
    background: linear-gradient(180deg, #66cccc 0%, #008080 100%);
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Трето ниво подменю */
.submenu-depth2 {
    list-style: none;
    position: absolute;
    top: 0;
    left: 100%;
    background: linear-gradient(180deg, #3a7bd5 0%, #1a2f4a 100%);
    min-width: 200px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: max-height 0.4s ease-in-out, opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    border-radius: 0 8px 8px 8px;
    z-index: 1001;
}

.submenu li:hover > .submenu-depth2 {
    max-height: 200px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0.1s;
}

.submenu-depth2 li a {
    padding: 12px 18px;
    text-align: left;
    font-size: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Индикатор за стрелка надолу */
.has-submenu > a::after {
    content: " ▼";
    font-size: 0.8em;
    margin-left: 5px;
    opacity: 0.8;
    display: inline-block;
    transition: transform 0.3s ease;
}

.has-submenu:hover > a::after {
    transform: rotate(180deg);
}

/* Индикатор за стрелка надясно */
.has-submenu-depth2 > a::after {
    content: " ▶";
    font-size: 0.8em;
    margin-left: 8px;
    opacity: 0.8;
    display: inline-block;
    transition: transform 0.3s ease;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.has-submenu-depth2:hover > a::after {
    transform: translateY(-50%) rotate(90deg);
}

/* --------------------------------------------
   3. ОСНОВНО СЪДЪРЖАНИЕ
-------------------------------------------- */
.content {
    padding: 40px 20px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 60vh;
}

.content h1 {
    color: #1e4b7a;
    margin-bottom: 20px;
}

.content p {
    color: #555;
    line-height: 1.6;
}

/* --------------------------------------------
   4. КОНТАКТНА ФОРМА
-------------------------------------------- */
#contacts-form-container {
    width: 100%;
}

.contacts-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.contacts-container h1 {
    color: #1e3c2c;
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
}

.contacts-wrapper {
    display: flex;
    gap: 40px;
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-info {
    flex: 1;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;
}

.contact-info h2 {
    color: #1e3c2c;
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.info-item {
    margin-bottom: 25px;
}

.info-item strong {
    display: block;
    color: #2e5c3a;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.info-item p {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.5;
}

.contact-form-page {
    flex: 1;
    padding: 20px;
}

.contact-form-page h2 {
    color: #1e3c2c;
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2e5c3a;
}

.submit-btn {
    background: linear-gradient(135deg, #1e3c2c, #2e5c3a);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    width: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 60, 44, 0.3);
}

.submit-btn i {
    margin-right: 10px;
}

/* --------------------------------------------
   5. ФУТЪР
-------------------------------------------- */
.site-footer {
    background: linear-gradient(180deg, #1e4b7a 0%, #0a1e30 100%);
    color: white;
    padding: 50px 0 20px;
    margin-top: 60px;
    box-shadow: 0 -8px 15px -5px rgba(0, 0, 0, 0.3);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* Секции във футъра */
.footer-section h3 {
    font-size: 22px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: #66cccc;
}

.footer-section p {
    color: #ccc;
    line-height: 1.8;
    font-size: 15px;
}

/* Връзки във футъра */
.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s, padding-left 0.3s;
    display: inline-block;
}

.footer-section ul li a:hover {
    color: #66cccc;
    padding-left: 8px;
}

/* Контактна информация във футъра */
.footer-section .contact-info-footer p {
    color: #ccc;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.footer-section .contact-info-footer i {
    color: #66cccc;
    margin-right: 10px;
    width: 20px;
    display: inline-block;
}

/* Социални икони */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: background 0.3s, transform 0.3s;
}

.social-links a:hover {
    background: #66cccc;
    transform: translateY(-3px);
}

/* Бюлетин форма */
.newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-form input:focus {
    outline: none;
    border-color: #66cccc;
    background: rgba(255, 255, 255, 0.15);
}

.newsletter-form button {
    background: #66cccc;
    color: #1e4b7a;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    white-space: nowrap;
}

.newsletter-form button:hover {
    background: #7ed9d9;
    transform: translateY(-2px);
}

/* Долна част на футъра */
.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px 0;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #aaa;
    font-size: 14px;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0px;
}

.copyright {
    white-space: nowrap;
}

.footer-bottom-links a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
    white-space: nowrap;
    margin: 0 3px;
    font-size: 13px;
}

.footer-bottom-links a i {
    margin-right: 2px;
    font-size: 11px;
}

.footer-bottom-links a:hover {
    color: #66cccc;
}

.separator {
    color: #444;
    margin: 0 2px;
    font-size: 12px;
}

/* --------------------------------------------
   6. СТАЦИОНАРНА ЗАНИМАЛНЯ - ДОПЪЛНИТЕЛНИ СТИЛОВЕ
-------------------------------------------- */
#stationary-content {
    width: 100%;
}

#stationary-content ul {
    list-style: none;
}

/* --------------------------------------------
   7. АНИМАЦИИ
-------------------------------------------- */
@keyframes slideFromCenterToLeft {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* --------------------------------------------
   8. УТИЛИТИ
-------------------------------------------- */
.text-center {
    text-align: center;
}

.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

/* --------------------------------------------
   МОБИЛНО МЕНЮ - ПЪЛНО ПРЕЗАПИСВАНЕ
-------------------------------------------- */
@media screen and (max-width: 768px) {
    .menu,
    .menu > li,
    .menu > li > a,
    .submenu,
    .submenu li,
    .submenu li a,
    .submenu-depth2,
    .has-submenu > a::after {
        all: unset !important;
    }
    
    .navbar {
        padding: 0 !important;
        width: 100% !important;
    }
    
    .menu {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        list-style: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .menu > li {
        width: 100% !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
        display: block !important;
        position: relative !important;
    }
    
    .menu > li > a {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: 50px !important;
        padding: 0 15px !important;
        font-size: 18px !important;
        color: white !important;
        text-decoration: none !important;
        width: 100% !important;
        background: transparent !important;
    }
    
    .submenu {
        position: relative !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        max-height: 0 !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        background: rgba(0, 0, 0, 0.3) !important;
        transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
        transform: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }
    
    .submenu li {
        width: 100% !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    }
    
    .submenu li a {
        display: block !important;
        padding: 12px 15px !important;
        font-size: 16px !important;
        color: white !important;
        text-decoration: none !important;
        text-align: center !important;
        background: transparent !important;
    }
    
    .submenu-depth2 {
        position: relative !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        max-height: 0 !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        background: rgba(0, 0, 0, 0.4) !important;
        transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
        transform: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }
    
    .has-submenu > a::after {
        content: " ▼" !important;
        float: right !important;
        font-size: 12px !important;
        margin-left: 5px !important;
        transform: none !important;
        position: relative !important;
        right: auto !important;
        top: auto !important;
    }
    
    /* ✅ ACTIVE КЛАСОВЕ - ПОКАЗВАНЕ ПРИ ОТВОРЯНЕ */
    .has-submenu.active > .submenu {
        max-height: 500px !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }
    
    .has-submenu-depth2.active > .submenu-depth2 {
        max-height: 300px !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }
    
    .has-submenu.active > a::after {
        transform: rotate(180deg) !important;
    }
    
    /* ⚠️ ЗАТВАРЯНЕ - КОГАТО НЯМА ACTIVE КЛАС */
    .has-submenu:not(.active) > .submenu {
        max-height: 0 !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
    
    .has-submenu-depth2:not(.active) > .submenu-depth2 {
        max-height: 0 !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
}

/* Десктоп режим */
body.desktop-mode .hamburger-btn,
body.desktop-mode .menu-overlay,
body.desktop-mode .banner-extension {
    display: none !important;
}

body.desktop-mode .navbar {
    display: flex !important;
    position: relative !important;
    left: auto !important;
    width: 100% !important;
    background: linear-gradient(180deg, #6ab0fe 0%, #1e4b7a 100%) !important;
}

body.desktop-mode .menu {
    display: flex !important;
    flex-direction: row !important;
}

body.desktop-mode .menu > li {
    width: auto !important;
    border-bottom: none !important;
}

/* ===== ДЕСКТОП РЕЖИМ - ГАРАНТИРАНО ===== */
@media screen and (min-width: 1025px) {
    body:not(.mobile-device) .hamburger-btn,
    body:not(.mobile-device) .menu-overlay,
    body:not(.mobile-device) .banner-extension {
        display: none !important;
    }
    
    body:not(.mobile-device) .navbar {
        display: flex !important;
        position: relative !important;
        left: auto !important;
        width: 100% !important;
        background: linear-gradient(180deg, #6ab0fe 0%, #1e4b7a 100%) !important;
    }
    
    body:not(.mobile-device) .menu {
        display: flex !important;
        flex-direction: row !important;
        height: 80px !important;
    }
    
    body:not(.mobile-device) .menu > li {
        width: auto !important;
        border-bottom: none !important;
    }
}

