/* =========================================================
   SMARTCLASS GROUP HEADER
   File: assets/css/header.css
========================================================= */

/* =========================================================
   SKIP LINK
========================================================= */

.skip-link {
    position: fixed;
    z-index: 10000;
    top: 10px;
    left: 10px;
    padding: 11px 17px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    background: #073f7d;
    border-radius: 7px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(-150%);
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.skip-link:focus {
    opacity: 1;
    transform: translateY(0);
}


/* =========================================================
   SITE HEADER
========================================================= */

.site-header {
    position: relative;
    z-index: 1000;
    width: 100%;
    background: #ffffff;
}

.site-header.is-sticky {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    animation: headerSlideDown 0.35s ease;
    box-shadow: 0 7px 30px rgba(8, 42, 79, 0.11);
}

@keyframes headerSlideDown {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================================================
   TOP BAR
========================================================= */

.topbar {
    min-height: 39px;
    color: #d9e9f8;
    background: #071d3a;
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 39px;
    gap: 25px;
}

.topbar-contact,
.topbar-actions {
    display: flex;
    align-items: center;
    min-width: 0;
}

.topbar-contact {
    gap: 23px;
}

.topbar-actions {
    align-self: stretch;
}

.topbar a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #cbdced;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition:
        color 0.25s ease,
        background-color 0.25s ease;
}

.topbar a:hover {
    color: #62dcf4;
}

.topbar-contact a span {
    color: #49d2ee;
    font-size: 12px;
}

.topbar-actions a {
    height: 100%;
    min-height: 39px;
    padding: 0 14px;
    border-left: 1px solid rgba(255, 255, 255, 0.11);
}

.topbar-actions a:last-child {
    border-right: 1px solid rgba(255, 255, 255, 0.11);
}

.topbar-actions a:hover {
    color: #ffffff;
    background: rgba(56, 202, 231, 0.11);
}


/* =========================================================
   MAIN NAVIGATION
========================================================= */

.main-navbar {
    position: relative;
    min-height: 81px;
    background: #ffffff;
    border-bottom: 1px solid #e5edf5;
    transition:
        min-height 0.3s ease,
        box-shadow 0.3s ease;
}

.site-header.is-sticky .topbar {
    display: none;
}

.site-header.is-sticky .main-navbar {
    min-height: 70px;
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: inherit;
    gap: 25px;
}


/* =========================================================
   BRAND
========================================================= */

.brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 11px;
    max-width: 310px;
    color: #0a2b53;
    text-decoration: none;
}

.brand-logo {
    display: block;
    width: auto;
    max-width: 165px;
    height: 53px;
    object-fit: contain;
}

.brand-text {
    display: none;
    min-width: 0;
}

.brand-text strong,
.brand-text span {
    display: block;
}

.brand-text strong {
    overflow: hidden;
    color: #0b3970;
    font-size: 19px;
    font-weight: 850;
    line-height: 1.15;
    letter-spacing: -0.4px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brand-text span {
    margin-top: 3px;
    color: #1688b8;
    font-size: 9px;
    font-weight: 750;
    line-height: 1.2;
    letter-spacing: 1.1px;
    text-transform: uppercase;
}


/* =========================================================
   NAVIGATION MENU
========================================================= */

.nav-menu {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 3px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-list > li {
    position: relative;
}

.nav-list > li > a,
.nav-list > li > button {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 80px;
    padding: 0 12px;
    color: #263b53;
    font-family: inherit;
    font-size: 12px;
    font-weight: 750;
    line-height: 1;
    text-decoration: none;
    background: transparent;
    border: 0;
    cursor: pointer;
    transition:
        color 0.25s ease,
        background-color 0.25s ease;
}

.site-header.is-sticky .nav-list > li > a,
.site-header.is-sticky .nav-list > li > button {
    min-height: 69px;
}

.nav-list > li > a::after,
.nav-list > li > button::after {
    position: absolute;
    right: 12px;
    bottom: 0;
    left: 12px;
    height: 3px;
    content: "";
    background: linear-gradient(90deg, #0875c1, #18b8d8);
    border-radius: 5px 5px 0 0;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.nav-list > li > a:hover,
.nav-list > li > button:hover,
.nav-list > li > a.active,
.nav-list > li > button.active {
    color: #0874bb;
}

.nav-list > li > a:hover::after,
.nav-list > li > button:hover::after,
.nav-list > li > a.active::after,
.nav-list > li > button.active::after {
    transform: scaleX(1);
}

.nav-dropdown > button > span {
    margin-top: -3px;
    font-size: 13px;
    transition: transform 0.25s ease;
}

.nav-dropdown.dropdown-open > button > span {
    transform: rotate(180deg);
}


/* =========================================================
   DROPDOWN MENU
========================================================= */

.dropdown-menu {
    position: absolute;
    z-index: 100;
    top: calc(100% + 10px);
    left: 0;
    width: 245px;
    margin: 0;
    padding: 9px;
    visibility: hidden;
    list-style: none;
    background: #ffffff;
    border: 1px solid #dfe8f1;
    border-top: 3px solid #0b89c4;
    border-radius: 4px 4px 11px 11px;
    box-shadow: 0 17px 45px rgba(7, 40, 78, 0.17);
    opacity: 0;
    transform: translateY(10px);
    transition:
        opacity 0.25s ease,
        visibility 0.25s ease,
        transform 0.25s ease;
}

.dropdown-menu::before {
    position: absolute;
    top: -10px;
    left: 24px;
    width: 12px;
    height: 12px;
    content: "";
    background: #ffffff;
    border-top: 1px solid #dfe8f1;
    border-left: 1px solid #dfe8f1;
    transform: rotate(45deg);
}

.nav-dropdown:hover > .dropdown-menu,
.nav-dropdown:focus-within > .dropdown-menu,
.nav-dropdown.dropdown-open > .dropdown-menu {
    top: 100%;
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-menu li + li {
    border-top: 1px solid #edf2f6;
}

.dropdown-menu a {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 43px;
    padding: 10px 12px 10px 29px;
    color: #385069;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.45;
    text-decoration: none;
    border-radius: 6px;
    transition:
        color 0.25s ease,
        padding-left 0.25s ease,
        background-color 0.25s ease;
}

.dropdown-menu a::before {
    position: absolute;
    left: 12px;
    width: 7px;
    height: 7px;
    content: "";
    border: 2px solid #18a6cf;
    border-bottom: 0;
    border-left: 0;
    transform: rotate(45deg);
}

.dropdown-menu a:hover {
    padding-left: 33px;
    color: #0872b6;
    background: #eef9fd;
}


/* =========================================================
   DEMO BUTTON
========================================================= */

.nav-demo-button {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-height: 45px;
    padding: 12px 19px;
    overflow: hidden;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    background: linear-gradient(135deg, #0753a1, #0d9bcf);
    border-radius: 8px;
    box-shadow: 0 9px 22px rgba(7, 91, 160, 0.22);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.nav-demo-button::before {
    position: absolute;
    top: 0;
    left: -80%;
    width: 45%;
    height: 100%;
    content: "";
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.28),
        transparent
    );
    transform: skewX(-20deg);
    transition: left 0.6s ease;
}

.nav-demo-button:hover {
    color: #ffffff;
    box-shadow: 0 13px 28px rgba(7, 91, 160, 0.3);
    transform: translateY(-2px);
}

.nav-demo-button:hover::before {
    left: 130%;
}


/* =========================================================
   MOBILE TOGGLE
========================================================= */

.nav-toggle {
    display: none;
    width: 44px;
    height: 42px;
    padding: 10px;
    background: #eef7fc;
    border: 1px solid #d6e7f2;
    border-radius: 8px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 5px 0;
    background: #0c4c88;
    border-radius: 10px;
    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}

.nav-toggle.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* =========================================================
   FLOATING WHATSAPP
========================================================= */

.floating-whatsapp {
    position: fixed;
    z-index: 850;
    right: 22px;
    bottom: 24px;
    display: grid;
    width: 55px;
    height: 55px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
    background: #20b95a;
    border: 4px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 12px 30px rgba(12, 112, 52, 0.3);
    place-items: center;
    transition:
        background-color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.floating-whatsapp::before {
    position: absolute;
    inset: -8px;
    content: "";
    border: 2px solid rgba(32, 185, 90, 0.34);
    border-radius: 50%;
    animation: whatsappPulse 2.2s infinite;
}

.floating-whatsapp:hover {
    color: #ffffff;
    background: #159747;
    box-shadow: 0 15px 35px rgba(12, 112, 52, 0.4);
    transform: translateY(-4px);
}

@keyframes whatsappPulse {
    0% {
        opacity: 0.8;
        transform: scale(0.85);
    }

    75%,
    100% {
        opacity: 0;
        transform: scale(1.35);
    }
}


/* =========================================================
   FLASH MESSAGE
========================================================= */

.flash-message {
    position: fixed;
    z-index: 9999;
    top: 100px;
    right: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: min(400px, calc(100% - 40px));
    padding: 15px 17px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    border-radius: 9px;
    box-shadow: 0 16px 40px rgba(5, 30, 61, 0.2);
    animation: flashMessageIn 0.35s ease;
}

.flash-success {
    background: #16884c;
}

.flash-error {
    background: #c33131;
}

.flash-warning {
    color: #4b3600;
    background: #f4bd3f;
}

.flash-info {
    background: #176fa8;
}

.flash-message button {
    display: grid;
    flex: 0 0 27px;
    width: 27px;
    height: 27px;
    padding: 0;
    color: inherit;
    font-size: 21px;
    line-height: 1;
    background: rgba(255, 255, 255, 0.15);
    border: 0;
    border-radius: 50%;
    place-items: center;
    cursor: pointer;
}

.flash-message.is-closing {
    opacity: 0;
    transform: translateX(30px);
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}

@keyframes flashMessageIn {
    from {
        opacity: 0;
        transform: translateX(35px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* =========================================================
   VALIDATION SUMMARY
========================================================= */

.validation-summary {
    width: min(1200px, calc(100% - 40px));
    margin: 20px auto;
    padding: 16px 19px;
    color: #7a2020;
    font-size: 13px;
    line-height: 1.6;
    background: #fff1f1;
    border: 1px solid #f2bcbc;
    border-left: 5px solid #d63b3b;
    border-radius: 8px;
}

.validation-summary strong {
    display: block;
    margin-bottom: 6px;
}

.validation-summary ul {
    margin: 0;
    padding-left: 19px;
}


/* =========================================================
   LARGE SCREEN ADJUSTMENT
========================================================= */

@media (min-width: 1200px) {
    .brand-text {
        display: block;
    }

    .brand-logo {
        max-width: 72px;
        height: 52px;
    }
}


/* =========================================================
   TABLET NAVIGATION
========================================================= */

@media (max-width: 1100px) {
    .nav-menu {
        gap: 12px;
    }

    .nav-list > li > a,
    .nav-list > li > button {
        padding-right: 8px;
        padding-left: 8px;
        font-size: 11px;
    }

    .nav-demo-button {
        padding-right: 13px;
        padding-left: 13px;
        font-size: 11px;
    }

    .brand-logo {
        max-width: 140px;
    }
}


/* =========================================================
   MOBILE NAVIGATION
========================================================= */

@media (max-width: 900px) {
    body.nav-open {
        overflow: hidden;
    }

    .topbar {
        display: none;
    }

    .main-navbar,
    .site-header.is-sticky .main-navbar {
        min-height: 70px;
    }

    .brand-logo {
        max-width: 150px;
        height: 49px;
    }

    .nav-toggle {
        display: block;
        flex: 0 0 auto;
    }

    .nav-menu {
        position: fixed;
        z-index: 999;
        top: 70px;
        right: 0;
        bottom: 0;
        display: block;
        width: min(360px, 88vw);
        padding: 17px;
        overflow-x: hidden;
        overflow-y: auto;
        visibility: hidden;
        background: #ffffff;
        border-top: 1px solid #e2eaf2;
        box-shadow: -15px 20px 45px rgba(5, 30, 60, 0.16);
        opacity: 0;
        transform: translateX(105%);
        transition:
            opacity 0.3s ease,
            visibility 0.3s ease,
            transform 0.3s ease;
    }

    .nav-menu.is-open {
        visibility: visible;
        opacity: 1;
        transform: translateX(0);
    }

    .nav-menu::before {
        position: fixed;
        z-index: -1;
        top: 70px;
        right: min(360px, 88vw);
        bottom: 0;
        left: 0;
        content: "";
        pointer-events: none;
        background: rgba(3, 19, 40, 0.52);
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .nav-menu.is-open::before {
        pointer-events: auto;
        opacity: 1;
    }

    .nav-list {
        display: block;
        width: 100%;
    }

    .nav-list > li {
        width: 100%;
        border-bottom: 1px solid #e8eef4;
    }

    .nav-list > li > a,
    .nav-list > li > button,
    .site-header.is-sticky .nav-list > li > a,
    .site-header.is-sticky .nav-list > li > button {
        justify-content: space-between;
        width: 100%;
        min-height: 49px;
        padding: 12px 8px;
        font-size: 13px;
        text-align: left;
    }

    .nav-list > li > a::after,
    .nav-list > li > button::after {
        display: none;
    }

    .nav-list > li > a.active,
    .nav-list > li > button.active {
        padding-left: 13px;
        color: #0875b9;
        background: #eef9fd;
        border-left: 3px solid #0d96c7;
    }

    .nav-dropdown:hover > .dropdown-menu {
        visibility: hidden;
        opacity: 0;
    }

    .nav-dropdown.dropdown-open > .dropdown-menu {
        visibility: visible;
        opacity: 1;
    }

    .dropdown-menu {
        position: static;
        display: none;
        width: 100%;
        padding: 4px 5px 10px 13px;
        visibility: visible;
        background: #f6fafc;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        opacity: 1;
        transform: none;
        transition: none;
    }

    .nav-dropdown.dropdown-open > .dropdown-menu {
        display: block;
        transform: none;
    }

    .dropdown-menu::before {
        display: none;
    }

    .dropdown-menu a {
        min-height: 41px;
        padding: 9px 11px 9px 28px;
        font-size: 12px;
    }

    .dropdown-menu a:hover {
        padding-left: 31px;
    }

    .nav-demo-button {
        width: 100%;
        min-height: 48px;
        margin-top: 20px;
        font-size: 13px;
    }

    .flash-message {
        top: 84px;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 520px) {
    .navbar-inner {
        gap: 12px;
    }

    .brand {
        max-width: calc(100% - 58px);
    }

    .brand-logo {
        max-width: 135px;
        height: 46px;
    }

    .nav-menu {
        width: 90vw;
    }

    .nav-menu::before {
        right: 90vw;
    }

    .floating-whatsapp {
        right: 15px;
        bottom: 17px;
        width: 50px;
        height: 50px;
        border-width: 3px;
    }

    .flash-message {
        top: 79px;
        right: 12px;
        width: calc(100% - 24px);
    }

    .validation-summary {
        width: calc(100% - 24px);
    }
}


/* =========================================================
   PRINT
========================================================= */

@media print {
    .site-header,
    .floating-whatsapp,
    .flash-message,
    .validation-summary,
    .skip-link {
        display: none !important;
    }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
    .site-header,
    .nav-menu,
    .dropdown-menu,
    .nav-toggle span,
    .floating-whatsapp,
    .floating-whatsapp::before,
    .flash-message {
        animation: none !important;
        transition: none !important;
    }
}