/* =========================================================
Symbols AZ - Slim Header, Menu & Footer CSS
For WordPress + GeneratePress
Version: 1.0
========================================================= */

/* =========================
Header & Main Menu
========================= */

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e3eaf4;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.035);
    position: sticky;
    top: 0;
    z-index: 999;
}

.admin-bar .site-header {
    top: 32px;
}

.inside-header {
    min-height: 64px;
    padding-top: 9px;
    padding-bottom: 9px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.site-header .header-image {
    width: 220px;
    max-width: 100%;
    height: auto;
    display: block;
}

/* Hide GeneratePress mobile toggle on desktop */
.mobile-menu-control-wrapper,
#site-navigation .inside-navigation > .menu-toggle {
    display: none !important;
}

/* Desktop navigation: starts directly after the logo */
#site-navigation {
    display: flex !important;
    align-items: center;
    flex: 0 1 auto;
    margin-left: 24px !important;
    margin-right: 0 !important;
    background: transparent !important;
}

#site-navigation .inside-navigation {
    display: flex !important;
    align-items: center;
    background: transparent !important;
    padding: 0 !important;
}

#site-navigation .main-nav {
    display: flex !important;
    align-items: center;
}

#site-navigation .main-nav > ul {
    display: flex !important;
    align-items: center;
    gap: 2px;
    margin: 0;
    padding: 0;
}

/* Menu links */
.main-navigation .main-nav ul li a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 11px;
    border-radius: 9px;
    color: #263247;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
    text-decoration: none;
    background: transparent;
    transition: background-color 0.18s ease, color 0.18s ease;
}

/* Menu hover */
.main-navigation .main-nav ul li:not([class*="current-menu-"]) > a:hover,
.main-navigation .main-nav ul li:not([class*="current-menu-"]) > a:focus {
    color: #243f8f;
    background: #f3f6fc;
}

/* Current menu item */
.main-navigation .main-nav ul li[class*="current-menu-"] > a {
    color: #243f8f !important;
    background: #eef2fb;
}

/* Remove old decorative effects */
.main-navigation .main-nav ul li a::after {
    display: none !important;
}

/* Dropdown menu */
.main-navigation ul ul {
    background: #ffffff !important;
    border: 1px solid #dfe7f2;
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.main-navigation ul ul li a {
    min-height: 36px;
    padding: 9px 11px;
    border-radius: 8px;
    color: #263247;
    font-size: 14px;
    font-weight: 500;
}

.main-navigation ul ul li a:hover,
.main-navigation ul ul li a:focus {
    color: #243f8f;
    background: #f3f6fc;
}

/* =========================
Mobile Header & Menu
========================= */

@media (max-width: 768px) {
    .site-header {
        top: 0;
    }

    .admin-bar .site-header {
        top: 46px;
    }

    .inside-header {
        min-height: 62px;
        padding: 10px 18px !important;
        gap: 12px;
        flex-wrap: wrap;
    }

    .site-header .header-image {
        width: 190px !important;
    }

    .mobile-menu-control-wrapper {
        display: flex !important;
        align-items: center;
        margin-left: auto;
    }

    .mobile-menu-control-wrapper .menu-toggle {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        padding: 0 !important;
        border-radius: 11px;
        background: #f4f6fb !important;
        border: 1px solid #dbe4f2;
        color: #263247 !important;
        box-shadow: none;
        transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
    }

    .mobile-menu-control-wrapper .menu-toggle:hover,
    .mobile-menu-control-wrapper .menu-toggle:focus {
        background: #eef1fb !important;
        border-color: #cfd9ec;
        color: #243f8f !important;
    }

    #site-navigation {
        flex-basis: 100%;
        width: 100%;
        margin-left: 0 !important;
        margin-right: 0 !important;
        background: transparent !important;
    }

    #site-navigation .inside-navigation {
        width: 100%;
    }

    #site-navigation:not(.toggled) .main-nav > ul {
        display: none !important;
    }

    #site-navigation.toggled .inside-navigation {
        margin-top: 10px;
        padding: 10px !important;
        background: #ffffff;
        border: 1px solid #dbe4f2;
        border-radius: 14px;
        box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
    }

    #site-navigation.toggled .main-nav {
        display: block !important;
        width: 100%;
    }

    #site-navigation.toggled .main-nav > ul {
        display: grid !important;
        width: 100%;
        gap: 6px;
        margin: 0;
        padding: 0;
    }

    #site-navigation .main-nav ul li {
        width: 100%;
    }

    #site-navigation .main-nav ul li a {
        width: 100%;
        justify-content: flex-start;
        min-height: 42px;
        padding: 10px 12px;
        border-radius: 10px;
        background: #ffffff;
        border: 1px solid #e1e8f2;
        color: #263247;
    }

    #site-navigation .main-nav ul li:not([class*="current-menu-"]) > a:hover,
    #site-navigation .main-nav ul li:not([class*="current-menu-"]) > a:focus {
        background: #f3f6fc;
        color: #243f8f;
    }

    #site-navigation .main-nav ul li[class*="current-menu-"] > a {
        color: #243f8f !important;
        background: #eef1fb;
        border-color: #d4ddf2;
        box-shadow: none;
    }
}

@media (max-width: 420px) {
    .inside-header {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    .site-header .header-image {
        width: 172px !important;
    }

    .mobile-menu-control-wrapper .menu-toggle {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }
}

/* =========================
Slim Footer Layout
========================= */

.site-footer {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    overflow: hidden;
}

.footer-widgets {
    background: transparent;
}

.footer-widgets-container {
    padding: 34px 30px 28px;
    box-sizing: border-box;
}

.footer-widgets .inside-footer-widgets {
    display: grid !important;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.8fr) minmax(0, 0.8fr);
    gap: 38px;
    align-items: start;
    box-sizing: border-box;
}

.footer-widgets .inside-footer-widgets > div {
    width: auto !important;
    max-width: 100% !important;
    float: none !important;
    clear: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box;
}

/* Remove the heavy card treatment */
.footer-widgets .widget {
    height: auto;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    box-sizing: border-box;
}

.footer-widget-1 .widget,
.footer-widget-2 .widget,
.footer-widget-3 .widget {
    border-top: 0;
}

/* Hide empty fourth footer column if present */
.footer-widget-4:empty {
    display: none !important;
}

/* Footer logo */
.footer-widget-1 img {
    max-width: 190px;
    height: auto;
    margin: 0 0 10px;
    display: block;
}

/* Footer text */
.footer-widgets p {
    color: #64748b;
    font-size: 14.5px;
    line-height: 1.65;
    margin: 0 0 10px;
}

.footer-widgets p:last-child {
    margin-bottom: 0;
}

.footer-widgets strong {
    color: #111827;
    font-weight: 700;
}

/* Footer headings */
.footer-widgets h4 {
    color: #111827;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 700;
    margin: 0 0 12px;
}

/* Footer links */
.footer-widgets a {
    color: #315cba;
    text-decoration: none;
    transition: color 0.18s ease;
}

.footer-widgets a:hover,
.footer-widgets a:focus {
    color: #cf3b78;
    text-decoration: none;
}

/* Footer lists */
.footer-widgets ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 7px;
}

.footer-widgets li {
    margin: 0;
    padding: 0;
}

.footer-widgets li a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #334155;
    font-size: 14.5px;
    font-weight: 500;
    line-height: 1.4;
}

.footer-widgets li a::before {
    content: "\2192";
    color: #6c4fd8;
    font-size: 13px;
    font-weight: 700;
    transition: transform 0.18s ease, color 0.18s ease;
}

.footer-widgets li a:hover {
    color: #315cba;
}

.footer-widgets li a:hover::before {
    color: #cf3b78;
    transform: translateX(2px);
}

/* =========================
Copyright Area
========================= */

.site-info {
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
}

.inside-site-info {
    color: #64748b;
    font-size: 13.5px;
    line-height: 1.5;
    padding: 14px 30px;
    text-align: center;
    box-sizing: border-box;
}

.inside-site-info a {
    color: #315cba;
    text-decoration: none;
}

.inside-site-info a:hover,
.inside-site-info a:focus {
    color: #cf3b78;
}

/* =========================
Footer Tablet
========================= */

@media (max-width: 1024px) {
    .footer-widgets .inside-footer-widgets {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr) minmax(0, 0.8fr);
        gap: 28px;
    }
}

/* =========================
Footer Mobile
========================= */

@media (max-width: 767px) {
    .footer-widgets-container {
        padding: 28px 18px 22px !important;
    }

    .footer-widgets .inside-footer-widgets {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 0 !important;
        width: 100%;
        box-sizing: border-box;
    }

    .footer-widgets .inside-footer-widgets > div {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        box-sizing: border-box;
    }

    .footer-widgets .inside-footer-widgets > div + div {
        margin-top: 20px !important;
        padding-top: 20px !important;
        border-top: 1px solid #e2e8f0;
    }

    .footer-widget-1 img {
        max-width: 180px;
    }

    .footer-widgets h3 {
        margin: 0 0 10px !important;
        font-size: 16px;
        line-height: 1.3;
    }

    .footer-widgets ul {
        gap: 7px !important;
    }

    .footer-widgets li a {
        font-size: 14.5px;
        line-height: 1.4;
        padding: 1px 0;
    }

    .footer-widgets p {
        font-size: 14.5px;
        line-height: 1.6;
    }

    .inside-site-info {
        padding: 13px 48px 13px 18px !important;
        text-align: center;
    }

    .generate-back-to-top {
        right: 14px !important;
        bottom: 16px !important;
    }
}

@media (max-width: 420px) {
    .footer-widgets-container {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    .inside-site-info {
        padding-left: 16px !important;
        padding-right: 50px !important;
    }
}