/* ==========================================================================
   EchoFeel-style Header & Footer
   Palette: navy #26276a, accent #857eb0, dark bar #25294b
   ========================================================================== */

.ef-header,
.ef-footer {
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.ef-header *,
.ef-footer * {
    box-sizing: border-box;
}

.ef-container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Remove any blank space above the header injected by block-theme
   root padding / block gap on the first top-level block. */
.wp-site-blocks {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.wp-site-blocks > .site-header:first-child,
header.site-header,
.ef-header {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* --------------------------------------------------------------------------
   Header — top bar
   -------------------------------------------------------------------------- */
.ef-header-top {
    background: #26276a;
    color: #f1f1f1;
    font-size: 13px;
}

.ef-header-top .ef-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.ef-header-top ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.ef-top-contact li {
    margin-right: 18px;
}

.ef-top-contact a {
    color: #f1f1f1;
    text-decoration: none;
    padding: 12px 0;
    display: inline-block;
    font-size: 13px;
}

.ef-top-contact a i {
    margin-right: 6px;
}

.ef-top-social li {
    margin-left: 10px;
    padding: 10px 3px;
}

.ef-top-social a {
    color: #fff;
    font-size: 18px;
    text-decoration: none;
    transition: color .2s ease;
}

.ef-top-contact a:hover,
.ef-top-social a:hover {
    color: #857eb0;
}

/* --------------------------------------------------------------------------
   Header — main bar
   -------------------------------------------------------------------------- */
.ef-header-main {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
}

.ef-header-main .ef-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.ef-logo {
    margin: 10px 0;
    display: inline-block;
}

.ef-logo img {
    width: 180px;
    max-width: 100%;
    height: auto;
    display: block;
}

/* Navigation */
.ef-nav ul.ef-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.ef-nav ul.ef-menu > li {
    position: relative;
}

.ef-nav ul.ef-menu > li > a {
    display: block;
    padding: 26px 15px;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 15px;
    color: #333;
    text-decoration: none;
    transition: color .2s ease;
}

.ef-nav ul.ef-menu > li > a:hover,
.ef-nav ul.ef-menu > li.active > a {
    color: #26276a;
}

.ef-nav ul.ef-menu > li > a i {
    margin-left: 5px;
    font-size: 12px;
}

/* Dropdown / mega menu */
.ef-nav li.ef-has-mega {
    position: static;
}

.ef-mega {
    position: absolute;
    left: 0;
    right: 0;
    top: 120%;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
    padding: 25px 30px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all .25s ease;
    z-index: 50;
}

.ef-nav li.ef-has-mega:hover > .ef-mega {
    opacity: 1;
    visibility: visible;
    top: 100%;
    transform: translateY(0);
}

.ef-mega h3 {
    margin: 0 0 15px;
    font-size: 18px;
    color: #26276a;
    text-transform: uppercase;
}

.ef-mega-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px 30px;
}

.ef-mega-grid a {
    display: block;
    padding: 6px 0;
    font-size: 15px;
    color: #444;
    text-decoration: none;
    transition: color .2s ease;
}

.ef-mega-grid a i {
    color: #857eb0;
    margin-right: 8px;
}

.ef-mega-grid a:hover {
    color: #26276a;
}

/* Mobile toggle */
.ef-nav-toggle {
    display: none;
    background: none;
    border: 0;
    font-size: 26px;
    color: #26276a;
    cursor: pointer;
    padding: 10px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.ef-footer-top {
    background: #ffffff;
    border-top: 1px solid #b7b7b7;
    padding: 80px 0 60px;
    color: #000;
}

.ef-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.ef-footer-col h4 {
    color: #000;
    font-size: 18px;
    margin: 0 0 35px;
    position: relative;
    text-transform: uppercase;
    font-weight: 600;
}

.ef-footer-col h4::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -12px;
    height: 1px;
    width: 60px;
    background: #666;
}

.ef-footer-col h4::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -13px;
    height: 3px;
    width: 30px;
    background: #2e325d;
}

.ef-footer-logo {
    margin-bottom: 20px;
    display: inline-block;
}

.ef-footer-logo img {
    width: 220px;
    max-width: 100%;
    height: auto;
}

.ef-footer-col p {
    color: #000;
    font-size: 16px;
    line-height: 26px;
}

.ef-footer-address {
    list-style: none;
    margin: 15px 0;
    padding: 0;
}

.ef-footer-address li {
    margin: 5px 0;
}

.ef-footer-address a {
    color: #000;
    text-decoration: none;
    font-size: 16px;
}

.ef-footer-address a i {
    margin-right: 8px;
    color: #26276a;
}

.ef-footer-address a:hover {
    color: #857eb0;
}

.ef-iso-logo {
    margin-top: 20px;
}

.ef-iso-logo h4 {
    font-size: 18px;
    background: #f6f6f6;
    padding: 10px;
    margin: 0 0 12px;
    border-bottom: 1px solid #22256a;
}

.ef-iso-logo h4::before,
.ef-iso-logo h4::after {
    display: none;
}

.ef-iso-logo img {
    width: 100%;
    max-width: 400px;
    height: auto;
}

/* Footer links */
.ef-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ef-footer-links li {
    border-bottom: 1px dashed #666;
}

.ef-footer-links li:last-child {
    border-bottom: none;
}

.ef-footer-links a {
    color: #000;
    display: inline-block;
    margin: 10px 0;
    font-size: 16px;
    text-decoration: none;
}

.ef-footer-links a i {
    margin-right: 6px;
    color: #857eb0;
}

.ef-footer-links a:hover {
    color: #857eb0;
}

/* Social contact */
.ef-social {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

.ef-social li {
    margin: 0 5px 5px 0;
}

.ef-social a {
    border: 1px solid #ddd;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    height: 40px;
    width: 40px;
    color: #26276a;
    text-decoration: none;
    transition: all .2s ease;
}

.ef-social a:hover {
    border-color: #857eb0;
    color: #857eb0;
}

.ef-whatsapp img {
    width: 200px;
    max-width: 100%;
    height: auto;
}

/* Copyright bar */
.ef-footer-bottom {
    background: #25294b;
    text-align: center;
}

.ef-footer-bottom p {
    color: #ccc;
    line-height: 60px;
    margin: 0;
    font-size: 16px;
}

.ef-footer-bottom a {
    color: #857eb0;
    text-decoration: none;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
    .ef-footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .ef-footer-col:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767px) {
    .ef-nav-toggle {
        display: inline-block;
    }

    .ef-nav {
        flex-basis: 100%;
    }

    .ef-nav ul.ef-menu {
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding-bottom: 15px;
    }

    .ef-nav.ef-open ul.ef-menu {
        display: flex;
    }

    .ef-nav ul.ef-menu > li > a {
        padding: 12px 5px;
        border-top: 1px solid #eee;
    }

    .ef-mega {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        border: none;
        box-shadow: none;
        padding: 0 0 0 15px;
        display: none;
    }

    .ef-nav li.ef-has-mega:hover > .ef-mega {
        display: block;
    }

    .ef-mega-grid {
        grid-template-columns: 1fr;
    }

    .ef-footer-grid {
        grid-template-columns: 1fr;
    }

    .ef-header-top .ef-container {
        justify-content: center;
        text-align: center;
    }
}
