/* Caleatou-inspired shared header and footer. */
.site-header {
    min-height: 104px;
    padding: 10px 0;
    background: var(--header-bg-color, #fff);
    box-shadow: none;
    border-bottom: 1px solid #f1f1f1;
}

.site-header .header-inner {
    min-height: 84px;
    gap: 28px;
}

.site-header .custom-logo {
    width: auto;
    max-width: 116px;
    max-height: 78px;
}

.site-header .main-navigation {
    min-width: 0;
}

.site-header .primary-menu {
    align-items: center;
}

.site-header .primary-menu a {
    padding: 31px 0;
    color: var(--header-menu-color, #1b1b1b);
    font-size: max(16px, var(--header-menu-font-size, 16px));
    font-weight: 400;
    line-height: 1.35;
    text-transform: none;
    letter-spacing: 0;
}

.site-header .primary-menu a:hover,
.site-header .primary-menu .current-menu-item > a,
.site-header .primary-menu .current_page_item > a {
    color: var(--primary-color, #fbbe00);
}

.site-header .primary-menu .sub-menu {
    padding: 8px 0;
    background: #fff;
    border-top: 2px solid var(--primary-color, #fbbe00);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.site-header .primary-menu .sub-menu a {
    padding: 12px 20px;
    color: #1b1b1b;
}

.site-header .header-actions {
    gap: 14px;
}

.site-header .search-toggle,
.site-header .mobile-menu-toggle {
    width: 44px;
    height: 44px;
    padding: 10px;
    color: var(--header-controls-color, #1b1b1b);
}

.site-header .header-btn {
    min-width: 190px;
    min-height: 46px;
    padding: 15px 28px;
    border: 0;
    border-radius: 999px;
    background: var(--primary-color, #fbbe00);
    color: #1b1b1b;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
}

.site-header .header-btn:hover {
    border: 0;
    background: #dda900;
    color: #1b1b1b;
}

.site-header .search-form-wrapper {
    background: #fff;
    border-top: 1px solid #eee;
}

.site-header .search-field {
    border: 1px solid #d9d9d9;
    background: #fff;
    color: #1b1b1b;
}

.site-header .search-field::placeholder {
    color: #777;
}

.site-header .search-submit,
.site-header .search-close {
    color: #1b1b1b;
}

.site-header a:focus-visible,
.site-header button:focus-visible,
.site-header input:focus-visible,
.site-footer a:focus-visible,
.site-footer button:focus-visible {
    outline: 2px solid var(--primary-color, #fbbe00);
    outline-offset: 3px;
}

.site-footer {
    background: #fff;
    color: #555;
    border-top: 1px solid #ededed;
}

.site-footer .footer-main {
    padding: 64px 0 52px;
}

.site-footer .footer-columns {
    grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
    gap: 52px;
}

.site-footer .footer-title {
    margin-bottom: 22px;
    color: #1b1b1b;
    font-size: 18px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
}

.site-footer .footer-about,
.site-footer .footer-menu a,
.site-footer .footer-contact a,
.site-footer .footer-contact span {
    color: #666;
    font-size: 14px;
    line-height: 1.75;
}

.site-footer .footer-menu li {
    margin-bottom: 10px;
}

.site-footer .footer-menu a:hover,
.site-footer .footer-contact a:hover,
.site-footer .footer-legal-menu a:hover {
    padding-left: 0;
    color: var(--primary-color, #fbbe00);
}

.site-footer .contact-icon {
    fill: var(--primary-color, #fbbe00);
}

.site-footer .footer-social {
    justify-content: flex-start;
    gap: 10px;
    margin-top: 10px;
}

.site-footer .footer-social a {
    width: 38px;
    height: 38px;
    background: #f5f5f5;
    color: #1b1b1b;
    border: 1px solid #e5e5e5;
}

.site-footer .footer-social a:hover {
    background: var(--primary-color, #fbbe00);
    color: #1b1b1b;
    transform: none;
}

.site-footer .footer-bottom {
    padding: 22px 0;
    background: #f6f6f6;
    border-top: 1px solid #e7e7e7;
}

.site-footer .copyright,
.site-footer .footer-legal-menu a {
    color: #777;
    font-size: 13px;
}

.site-footer .footer-legal-menu li:not(:last-child)::after {
    color: #bbb;
}

@media (max-width: 1199px) {
    .site-header .header-inner { gap: 16px; }
    .site-header .primary-menu { gap: 20px; }
    .site-header .header-btn { min-width: 160px; padding-inline: 20px; }
}

@media (max-width: 991px) {
    .site-header { min-height: 84px; padding: 8px 0; }
    .site-header .header-inner { min-height: 68px; }
    .site-header .custom-logo { max-width: 96px; max-height: 62px; }
    .site-header .main-navigation.mobile-active {
        padding: 0;
        background: #fff;
        border-top: 1px solid #eee;
    }
    .site-header .primary-menu a {
        padding: 14px 20px;
        color: #1b1b1b;
        border-bottom: 1px solid #eee;
    }
    .site-header .dropdown-toggle {
        color: #1b1b1b;
        background: #f7f7f7;
        border-left: 1px solid #e5e5e5;
    }
    .site-header .primary-menu .sub-menu {
        border-top: 0;
        background: #f7f7f7;
    }
    .site-footer .footer-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 38px 48px;
    }
}

@media (max-width: 767px) {
    .site-header { padding: 6px 0; }
    .site-header .custom-logo { max-width: 86px; max-height: 58px; }
    .site-header .header-actions { gap: 4px; }
    .site-header .search-toggle,
    .site-header .mobile-menu-toggle { width: 44px; height: 44px; }
    .site-footer .footer-main { padding: 42px 0 32px; }
    .site-footer .footer-columns { grid-template-columns: 1fr; gap: 32px; }
    .site-footer .footer-social { justify-content: flex-start; }
    .site-footer .footer-bottom-inner { align-items: flex-start; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
    .site-header *, .site-footer * { scroll-behavior: auto; transition-duration: 0.01ms !important; }
}
