/* 
 * Footer Styles - Corrected & Polished
 */

:root {
    --footer-bg: var(--top-bar-bg);
    /* Match Top Bar */
    --footer-text: #94a3b8;
    --footer-heading: #ffffff;
    --footer-accent: #3bc54e;
    --footer-border: rgba(255, 255, 255, 0.05);
    --footer-glass: rgba(255, 255, 255, 0.03);
}

.site-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding-top: 50px;
    margin-top: 0;
    border-top: 4px solid var(--footer-accent);
    position: relative;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.3fr 0.95fr 0.95fr 1.1fr 1.25fr;
    /* Brand column wider */
    gap: 30px;
    padding-bottom: 15px;
    text-align: left;
}

/* 1. Brand & Switchers */
.footer-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Expanded Logo Style - Matching Header */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    /* Matched to header .logo-link */
    margin-bottom: 25px;
    text-decoration: none;
}

.footer-logo img {
    height: 82px;
    width: auto;
    display: block;
}

.footer-logo-text {
    font-size: 28px;
    /* Exact match to header */
    font-weight: 800;
    color: #fff;
    letter-spacing: -1px;
    /* Exact match to header */
    text-transform: uppercase;
    line-height: 1;
}

/* Description */
.footer-desc {
    color: var(--footer-text);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 25px;
    max-width: 90%;
}

/* Social Media Icons - Modern Dark Style */
.footer-socials {
    display: flex;
    gap: 12px;
    margin: 30px 0;
}

.social-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--footer-glass);
    border: 1px solid var(--footer-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-icon i {
    font-size: 17px;
}

.social-icon:hover {
    background: var(--footer-accent);
    border-color: var(--footer-accent);
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(59, 197, 78, 0.2);
    color: #fff;
}

/* Working Hours Block - Compact */
.footer-working-hours {
    display: flex;
    gap: 12px;
    margin-top: 10px;
    align-items: flex-start;
    display: grid;
    grid-template-columns: 34px 1fr;

}

.working-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.working-icon i {
    font-size: 16px;
    color: var(--footer-accent);
}

.working-info {
    display: flex;
    flex-direction: column;
}

.working-lines {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.working-lines span {
    font-size: 12px;
    color: var(--footer-text);
    line-height: 1.4;
}


.footer-switchers {
    display: flex;
    gap: 12px;
    margin-top: auto;
}

.switcher-item {
    background: #1a202c;
    /* Clear dark for switchers */
    border: 1px solid var(--footer-border);
    padding: 10px 18px;
    border-radius: 12px;
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.switcher-item i {
    font-size: 10px;
    color: var(--footer-text);
}

.switcher-item:hover {
    background: #2d3748;
    border-color: var(--footer-accent);
}

/* Theme Switcher in Footer (Upwards Dropdown) */
.footer-theme-switcher {
    position: relative;
    margin-left: 10px;
}

.footer-theme-switcher .theme-btn,
.footer-lang-switcher .lang-btn {
    background: #1a202c !important;
    border: 1px solid var(--footer-border) !important;
    padding: 10px 18px !important;
    border-radius: 12px !important;
    height: 42px !important;
    /* Fixed height to match switcher-item which has content + padding */
    width: auto !important;
    font-size: 13px !important;
    line-height: normal !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    box-sizing: border-box !important;
    color: #fff !important;
}

.footer-theme-switcher .theme-btn:hover,
.footer-lang-switcher .lang-btn:hover {
    background: #2d3748 !important;
    border-color: var(--footer-accent) !important;
}

.footer-theme-switcher .theme-btn i,
.footer-lang-switcher .lang-btn i {
    font-size: 14px !important;
}

.footer-theme-switcher .theme-label,
.footer-lang-switcher .lang-current {
    font-size: 13px !important;
    font-weight: 600 !important;
}

.theme-dropdown.theme-dropdown-up {
    top: auto;
    bottom: calc(100% + 12px);
    transform: translateY(-15px);
}

.header-theme-switcher.active .theme-dropdown.theme-dropdown-up {
    transform: translateY(0);
}

/* Adjust pointer for upwards dropdown */
.theme-dropdown.theme-dropdown-up::before {
    top: auto;
    bottom: -6px;
    border-top: none;
    border-left: none;
    border-bottom: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
}

/* 2. Menu Columns */
.footer-title {
    color: var(--footer-heading);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    position: relative;
    justify-content: space-between;
}

.title-with-icon {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-title i {
    color: var(--footer-accent);
    font-size: 14px;
    background: var(--footer-glass);
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid var(--footer-border);
    flex-shrink: 0;
    line-height: 1;
    margin: 0;
    padding: 0;
    text-align: center;
}

.footer-title .toggle-icon {
    display: none;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.collapsible.active .toggle-icon {
    transform: rotate(180deg);
}

.footer-collapsible-content {
    width: 100%;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    will-change: max-height;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.footer-menu li {
    margin-bottom: 12px;
    display: block;
}

.footer-menu img {
    display: none !important;
}

.footer-menu a {
    color: var(--footer-text);
    text-decoration: none;
    transition: all 0.2s;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-menu a::before {
    content: '\f054';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 9px;
    color: var(--footer-accent);
    opacity: 0.6;
    transition: all 0.2s;
}

.footer-menu a:hover {
    color: #fff;
    transform: translateX(5px);
}

.footer-menu a:hover::before {
    opacity: 1;
    color: var(--footer-accent);
}

/* Highlight Active Page */
.footer-menu li.current-menu-item a,
.footer-menu li.current_page_item a {
    color: #fff;
    font-weight: 600;
}

.footer-menu li.current-menu-item a::before,
.footer-menu li.current_page_item a::before {
    opacity: 1;
    color: var(--footer-accent);
}

/* 3. Contact Column */
.footer-contacts {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.footer-phone-item {
    display: grid;
    grid-template-columns: 34px 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 2px 15px;
    margin-bottom: 15px;
}

.footer-phone-item i {
    grid-column: 1;
    grid-row: 1 / span 2;
    font-size: 18px;
    color: var(--footer-accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-phone-item .phone-label {
    grid-column: 2;
    grid-row: 1;
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    line-height: 1;
}

.footer-phone-item .footer-phone {
    grid-column: 2;
    grid-row: 2;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.2;
    transition: all 0.3s ease;
}

.footer-phone i {
    display: none;
    /* Hidden because we use separate <i> in grid */
}

.main-phone {
    font-size: 16px;
}

.footer-address {
    margin-top: 15px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.5;
    color: var(--footer-text);
    font-size: 14px;
}

.footer-email-item,
.footer-address-item {
    display: grid;
    grid-template-columns: 34px 1fr;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
    line-height: 1.6;
    color: var(--footer-text);
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-email-item:hover,
.footer-address-item:hover {
    color: #fff;
}

.footer-email-item i,
.footer-address-item i {
    color: var(--footer-accent);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-callback-link {
    display: grid;
    grid-template-columns: 34px 1fr;
    align-items: center;
    gap: 15px;
    width: fit-content;
    margin-top: 8px;
    color: var(--footer-text);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    transition: color 0.25s ease, transform 0.25s ease;
}

.footer-callback-link:hover,
.footer-callback-link:focus-visible {
    color: var(--footer-heading);
    transform: translateY(-2px);
    outline: none;
}

.footer-callback-link i {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--footer-accent);
}

.footer-callback-link span {
    width: fit-content;
    padding-bottom: 4px;
    border-bottom: 2px solid rgba(59, 197, 78, 0.65);
    transition: border-color 0.25s ease;
}

.footer-callback-link:hover span,
.footer-callback-link:focus-visible span {
    border-bottom-color: var(--footer-accent);
}

/* 4. Feedback Form Column */
.footer-feedback-form {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 10px;
}

.footer-feedback-form input,
.footer-feedback-form textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--footer-border);
    border-radius: 10px;
    background: var(--footer-glass);
    color: var(--footer-heading);
    font: inherit;
    font-size: 14px;
    line-height: 1.4;
    outline: none;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.footer-feedback-form input {
    min-height: 44px;
    padding: 0 14px;
}

.footer-feedback-form textarea {
    min-height: 86px;
    padding: 12px 14px;
    resize: none;
}

.footer-feedback-form input::placeholder,
.footer-feedback-form textarea::placeholder {
    color: var(--footer-text);
    opacity: 0.85;
}

.footer-feedback-form input:focus,
.footer-feedback-form textarea:focus {
    border-color: rgba(59, 197, 78, 0.55);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 3px rgba(59, 197, 78, 0.12);
}

.footer-feedback-form .premium-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 46px;
    border: 0;
    border-radius: 10px;
    background: var(--footer-accent);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.footer-feedback-form .premium-submit-btn:hover,
.footer-feedback-form .premium-submit-btn:focus-visible {
    background: #34b946;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 197, 78, 0.18);
    outline: none;
}

.footer-feedback-form .premium-submit-btn i {
    font-size: 15px;
}

.footer-feedback-form .premium-submit-btn:disabled {
    cursor: wait;
    opacity: 0.72;
}

.feedback-col .contact-form-notification {
    margin-bottom: 12px;
    padding: 12px 14px;
    border-radius: 10px;
}

.feedback-col .contact-form-notification p {
    font-size: 13px;
}

/* Bottom Bar */
.footer-bottom {
    padding: 25px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    border-top: 1px solid var(--footer-border);
}

.copyright {
    color: #4b5563;
    font-size: 13px;
}

.payment-icons {
    font-size: 26px;
    color: #374151;
    display: flex;
    gap: 16px;
}

.payment-icons i:hover {
    color: #fff;
}

/* Responsive Optimization */
@media (max-width: 992px) {
    .site-footer {
        padding-top: 40px;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        padding-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .footer-col {
        border-bottom: 1px solid var(--footer-border);
        padding: 20px 0;
    }

    .footer-col:last-child {
        border-bottom: none;
    }

    .footer-title {
        margin-bottom: 0;
        cursor: pointer;
        padding: 5px 0;
    }

    .footer-title .toggle-icon {
        display: flex;
    }

    .footer-collapsible-content {
        max-height: 0;
        overflow: hidden;
    }

    .footer-collapsible-content>* {
        padding-top: 15px;
    }

    .footer-desc {
        max-width: 100%;
        margin-bottom: 15px;
    }

    .working-icon,
    .footer-phone-item i,
    .footer-email-item i,
    .footer-address-item i {
        width: 34px;
        height: 34px;
        border-radius: 50%;
        background: var(--footer-glass);
        border: 1px solid var(--footer-border);
    }

    .footer-socials {
        margin: 20px 0;
    }

    .footer-callback-link {
        margin-top: 12px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding: 30px 0;
        margin-top: 0;
    }

    .payment-icons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer-switchers {
        gap: 8px;
    }

    .switcher-item {
        padding: 8px 12px;
        font-size: 11px;
    }
}

/* Dropdown Separator */
.dropdown-sep {
    height: 1px;
    background-color: var(--footer-border);
}
