
/* ========================================
   RESPONSIVE BASE
======================================== */

@media (max-width: 768px) {

    .container {
        width: min(calc(100% - 30px), var(--spc-container));
    }

    h1 {
        font-size: clamp(30px, 8vw, 44px);
    }

    h2 {
        font-size: clamp(24px, 6vw, 34px);
    }

    .spc-button {
        width: 100%;
    }

}


/* =========================================
   RESPONSIVE HEADER
========================================= */

@media (max-width: 1500px) {
    .spc-header-inner {
        width: calc(100% - 40px);
        gap: 17px;
    }

    .spc-logo {
        max-width: 300px;
    }

    .spc-logo img {
        max-width: 290px;
    }

    .spc-navigation {
        gap: 18px;
    }

    .spc-nav-link {
        font-size: 14px;
    }

    .spc-help-button {
        padding: 0 20px;
        font-size: 15px;
    }

    .spc-language-toggle {
        padding: 0 13px;
    }
}

@media (max-width: 1200px) {
    .spc-header-inner {
        min-height: 88px;
    }

    .spc-navigation {
        height: 88px;
        gap: 12px;
    }

    .spc-logo {
        max-width: 235px;
    }

    .spc-logo img {
        max-width: 235px;
    }

    .spc-nav-link {
        font-size: 13px;
    }

    .spc-help-button {
        min-height: 48px;
        padding: 0 15px;
        font-size: 13px;
        gap: 8px;
    }

    .spc-language-toggle {
        min-height: 45px;
        font-size: 14px;
    }
}

/* Tablet and mobile */

@media (max-width: 1050px) {

    .spc-header-inner {
        min-height: 78px;
        width: calc(100% - 32px);
        gap: 15px;
    }

    .spc-logo {
        max-width: 260px;
        margin-right: auto;
    }

    .spc-logo img {
        max-width: 260px;
    }

    .spc-navigation,
    .spc-header-inner > .spc-header-divider:not(.spc-language-divider),
    .spc-help-button {
        display: none;
    }

    .spc-language-divider {
        display: none;
    }

    .spc-language-toggle {
        min-height: 43px;
        padding: 0 12px;
    }

    .spc-mobile-toggle {
        display: flex;
        width: 44px;
        height: 44px;
        padding: 11px 9px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        background: transparent;
        border: 1px solid #E1E5EA;
        border-radius: 9px;
    }

    .spc-mobile-toggle span {
        width: 23px;
        height: 2px;
        background: #101D32;
        border-radius: 2px;
        transition: transform .2s ease, opacity .2s ease;
    }

    .spc-mobile-toggle[aria-expanded="true"] span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .spc-mobile-toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }

    .spc-mobile-toggle[aria-expanded="true"] span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .spc-mobile-navigation {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        max-height: calc(100vh - 78px);
        overflow-y: auto;
        padding: 12px 22px 25px;
        background: #FFFFFF;
        border-top: 1px solid #E9ECF0;
        box-shadow: 0 12px 22px rgba(16, 29, 50, .12);
    }

    .spc-mobile-navigation.is-open {
        display: flex;
        flex-direction: column;
    }

    .spc-mobile-navigation > a,
    .spc-mobile-dropdown-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 14px 5px;
        border: 0;
        border-bottom: 1px solid #EDF0F3;
        background: transparent;
        color: #101D32;
        font-size: 15px;
        font-weight: 600;
        text-align: left;
    }

    .spc-mobile-submenu {
        display: none;
        flex-direction: column;
        padding: 5px 0 10px 17px;
        background: #F4F6F9;
        border-radius: 8px;
    }

    .spc-mobile-submenu.is-open {
        display: flex;
    }

    .spc-mobile-submenu a {
        padding: 10px;
        color: #27364A;
        font-size: 14px;
    }

    .spc-mobile-navigation > .spc-mobile-help {
        display: flex;
        justify-content: center;
        margin-top: 18px;
        padding: 14px;
        background: #D5A85B;
        color: #101D32;
        border-radius: 30px;
        border: 0;
        font-weight: 750;
    }
}

/* Small phones */

@media (max-width: 480px) {

    .spc-header-inner {
        width: calc(100% - 24px);
        min-height: 70px;
        gap: 10px;
    }

    .spc-logo {
        max-width: 205px;
    }

    .spc-logo img {
        max-width: 205px;
    }

    .spc-language-toggle {
        min-height: 40px;
        gap: 6px;
        padding: 0 9px;
        font-size: 13px;
    }

    .spc-language-toggle img {
        width: 19px;
        height: 13px;
    }

    .spc-mobile-toggle {
        width: 40px;
        height: 40px;
    }
}

/* WordPress admin bar compatibility */

body.admin-bar .spc-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .spc-header {
        top: 46px;
    }
}


/* =========================================
   RESPONSIVE FOOTER
========================================= */

@media (max-width: 1250px) {

    .spc-footer-container {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 45px 35px;
    }

    .spc-footer-brand {
        max-width: 100%;
    }

}

@media (max-width: 768px) {

    .spc-footer-main {
        padding: 55px 0 40px;
    }

    .spc-footer-container {
        width: calc(100% - 40px);
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 38px 25px;
    }

    .spc-footer-brand {
        grid-column: 1 / -1;
    }

    .spc-footer-logo img {
        max-width: 245px;
    }

    .spc-footer-brand h2 {
        font-size: 21px;
    }

    .spc-footer-column h3 {
        font-size: 15px;
        margin-bottom: 19px;
    }

    .spc-footer-column a {
        font-size: 13px;
    }

    .spc-footer-bottom-inner {
        width: calc(100% - 40px);
        padding: 20px 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 9px;
    }

}

@media (max-width: 420px) {

    .spc-footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .spc-footer-brand {
        grid-column: auto;
    }

    .spc-footer-column h3 {
        margin-bottom: 15px;
    }

}
