/* ========================================
   LAYOUT - Header, Footer, Navigation
   ======================================== */

/* Top Bar */
.topbar {
    display: none;
    background: #eff8ff;
    border-bottom: 1px solid #e2edf7;
    color: #46617a;
    font-size: .8125rem
}

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

.top-info,
.top-social {
    display: flex;
    align-items: center
}

.top-info {
    gap: 1.5rem
}

.top-info a,
.top-info span {
    display: inline-flex;
    align-items: center;
    gap: .4rem
}

.top-info .i {
    color: var(--blue);
    width: 1em;
    height: 1em
}

.top-info a:hover {
    color: var(--blue2);
    text-decoration: underline
}

.top-social {
    gap: .4rem
}

.top-social a {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border: 1px solid #c3ddec;
    border-radius: 50%;
    color: #0b82d9
}

.top-social a:hover {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff
}

.top-social .i {
    width: 12px;
    height: 12px
}

@media(min-width:900px) {
    .topbar {
        display: block
    }
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: #fff;
    border-bottom: 1px solid #edf2f7
}

.header .container {
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem
}

.logo {
    flex: none
}

.logo img {
    width: 172px;
    height: auto
}

/* Mobile Menu Button */
.menu-btn {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    cursor: pointer;
    color: var(--navy)
}

.menu-btn span,
.menu-btn span::before,
.menu-btn span::after {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform .25s, background-color .25s
}

.menu-btn span {
    position: relative
}

.menu-btn span::before,
.menu-btn span::after {
    content: "";
    position: absolute;
    left: 0
}

.menu-btn span::before {
    top: -6px
}

.menu-btn span::after {
    top: 6px
}

.menu-btn[aria-expanded="true"] span {
    background: transparent
}

.menu-btn[aria-expanded="true"] span::before {
    transform: translateY(6px) rotate(45deg)
}

.menu-btn[aria-expanded="true"] span::after {
    transform: translateY(-6px) rotate(-45deg)
}

.header-right {
    display: none
}

/* Navigation */
.nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: .25rem var(--g) 1.5rem;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    box-shadow: 0 20px 30px rgba(7, 57, 99, .08)
}

.nav.open {
    display: block
}

.nav ul {
    display: flex;
    flex-direction: column
}

.nav li a:not(.btn) {
    display: block;
    padding: 1rem .25rem;
    border-bottom: 1px solid var(--line);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text)
}

.nav li a.active {
    color: var(--blue)
}

.nav .nav-cta {
    margin-top: 1.25rem
}

.nav .nav-cta .btn {
    width: 100%
}

@media(min-width:900px) {
    .header-right {
        display: block
    }

    .menu-btn {
        display: none
    }

    .logo img {
        width: 200px
    }

    .nav {
        display: flex;
        position: static;
        padding: 0;
        border: 0;
        box-shadow: none;
        max-height: none;
        overflow: visible;
        flex: 1;
        height: 100%;
        background: none
    }

    .nav ul {
        flex-direction: row;
        justify-content: center;
        align-items: stretch;
        gap: clamp(1.5rem, 3.2vw, 3rem);
        flex: 1
    }

    .nav li {
        display: flex
    }

    .nav li a:not(.btn) {
        display: flex;
        align-items: center;
        position: relative;
        padding: 0;
        border: 0;
        font-size: .9375rem
    }

    .nav li a:not(.btn):hover {
        color: var(--blue)
    }

    .nav li a.active::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: 0;
        width: 30px;
        height: 3px;
        transform: translateX(-50%);
        background: var(--blue);
        border-radius: 3px
    }

    .nav .nav-cta {
        display: none
    }
}

/* Footer */
.footer {
    background: var(--dark);
    color: #dce9f3
}

.footer-main {
    padding: 3rem 0 2rem
}

.footer-grid {
    display: grid;
    gap: 2rem
}

.footer-brand {
    padding-bottom: 1.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, .1)
}

.footer-logo {
    display: inline-block;
    margin-bottom: .9rem
}

.footer-logo img {
    width: 190px;
    filter: brightness(0) invert(1)
}

.footer-description {
    max-width: 300px;
    margin-bottom: 1rem;
    color: #a9bdce;
    font-size: .9375rem;
    line-height: 1.6
}

.contact-list {
    display: grid;
    gap: .6rem;
    font-style: normal
}

.contact-list div,
.contact-list a {
    display: flex;
    gap: .6rem;
    align-items: flex-start;
    color: #b7cad9;
    font-size: .9rem;
    line-height: 1.5
}

.contact-list .i {
    margin-top: .2rem;
    color: var(--cyan);
    width: 1em;
    height: 1em
}

.contact-list a:hover {
    color: #fff;
    text-decoration: underline
}

.footer h3 {
    margin-bottom: .9rem;
    color: #fff;
    font-family: var(--head);
    font-size: 1rem
}

.footer-links {
    display: grid;
    gap: .55rem
}

.footer-links a {
    color: #a9bdce;
    font-size: .9375rem
}

.footer-links a::before {
    content: "›";
    color: #0c9cf3;
    margin-right: .5rem
}

.footer-links a:hover {
    color: #fff
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    max-width: 260px
}

.gallery img {
    width: 100%;
    height: 56px;
    object-fit: cover;
    border-radius: 5px
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem
}

.footer-social a {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid #4b687d;
    border-radius: 50%;
    color: #dce9f3;
    transition: background-color .2s, border-color .2s
}

.footer-social a:hover {
    background: var(--blue);
    border-color: var(--blue)
}

.footer-social .i {
    width: 16px;
    height: 16px
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding: 1rem 0;
    color: #93a9ba;
    font-size: .8125rem
}

.footer-bottom .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .5rem 1.5rem
}

.footer-bottom nav a {
    margin-left: 1rem
}

.footer-bottom nav a:first-child {
    margin-left: 0
}

.footer-bottom a:hover {
    color: #fff;
    text-decoration: underline
}

@media(min-width:600px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr
    }

    .footer-brand {
        grid-column: 1/-1
    }
}

@media(min-width:1000px) {
    .footer-grid {
        grid-template-columns: 1.45fr .8fr 1.1fr .8fr;
        gap: 2.5rem
    }

    .footer-brand {
        grid-column: auto;
        padding: 0 2rem 0 0;
        border-bottom: 0;
        border-right: 1px solid rgba(255, 255, 255, .1)
    }
}
