/* Explain: App-specific layout utilities and component styles. */
.container {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 1.25rem;
}

.section {
    padding-block: clamp(3rem, 7vw, 5.5rem);
}

.section--tight {
    padding-block: clamp(1.5rem, 4vw, 2.5rem);
}

.section--surface {
    background: var(--surface-color);
}

section[id],
article[id] {
    scroll-margin-top: 6.5rem;
}

.section-head {
    max-width: 44rem;
    margin-bottom: 2.5rem;
}

.section-head--center {
    margin-inline: auto;
    text-align: center;
}

.section-head h2 {
    font-size: clamp(1.6rem, 3.4vw, 2.35rem);
    margin-bottom: .75rem;
}

/* ---------- header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--background-color);
    box-shadow: var(--shadow-sm);
}

.topbar {
    background: var(--surface-dark);
    color: #cfe0ec;
    font-size: .8125rem;
}

.topbar__inner {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-block: .5rem;
}

@media (min-width: 900px) {
    .topbar__inner {
        display: flex;
    }
}

.topbar__links {
    display: flex;
    gap: 1.5rem;
}

.topbar__item {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin: 0;
    color: inherit;
    text-decoration: none;
}

.topbar__item i {
    color: var(--accent-color);
}

.topbar__item:hover {
    color: #ffffff;
}

.navbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-block: .8rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: .65rem;
    text-decoration: none;
    color: var(--text-color);
}

.brand__logo {
    height: 3rem;
    width: auto;
    object-fit: contain;
}

@media (max-width: 639px) {
    .brand__logo {
        height: 2.4rem;
    }
}

.brand__mark {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    flex: none;
    border-radius: 12px;
    background: var(--primary-color);
    color: #ffffff;
    font-size: 1.1rem;
}

.brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand__text strong {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.brand__text small {
    font-size: .72rem;
    color: var(--text-muted);
}

@media (max-width: 639px) {
    .brand__text strong {
        font-size: .95rem;
    }

    .brand__text small {
        display: none;
    }
}

.nav-links {
    display: none;
    align-items: center;
    gap: 1.15rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (min-width: 1150px) {
    .nav-links {
        gap: 1.75rem;
    }
}

@media (min-width: 1150px) {
    .nav-links {
        display: flex;
    }
}

.nav-link {
    position: relative;
    display: inline-block;
    padding-block: .35rem;
    font-size: .95rem;
    font-weight: 500;
    color: var(--text-color);
    text-decoration: none;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0;
    background: var(--accent-color);
    transition: width .25s ease;
}

.nav-link:hover::after,
.nav-link.is-active::after {
    width: 100%;
}

.nav-link.is-active {
    color: var(--primary-color);
}

.navbar__actions {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.nav-toggle {
    display: inline-grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: transparent;
    color: var(--text-color);
    font-size: 1.1rem;
    cursor: pointer;
}

@media (min-width: 1150px) {
    .nav-toggle {
        display: none;
    }
}

.mobile-nav {
    border-top: 1px solid var(--border-color);
    background: var(--background-color);
}

.mobile-nav.hidden {
    display: none;
}

.mobile-nav__inner {
    display: flex;
    flex-direction: column;
    padding-block: .5rem 1.25rem;
}

.mobile-nav__link {
    padding: .9rem .25rem;
    font-weight: 500;
    color: var(--text-color);
    text-decoration: none;
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav__link.is-active {
    color: var(--accent-color);
}

.mobile-nav__cta {
    margin-top: 1.15rem;
}

.hide-sm {
    display: none;
}

@media (min-width: 640px) {
    .hide-sm {
        display: inline-flex;
    }
}

/* ---------- footer ---------- */
.site-footer {
    background: var(--surface-dark);
    color: #c3d4e0;
    padding-block: 3rem 1.5rem;
}

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

@media (min-width: 700px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    }
}

.site-footer h3 {
    color: #ffffff;
    font-size: 1rem;
    margin: 0 0 1rem;
}

.site-footer a {
    color: inherit;
    text-decoration: none;
}

.site-footer a:hover {
    color: #ffffff;
}

.footer-about {
    font-size: .9rem;
    max-width: 26rem;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    padding: .5rem .9rem;
    margin-bottom: 1rem;
    background: #ffffff;
    border-radius: 12px;
}

.footer-brand__logo {
    height: 2.4rem;
    width: auto;
    object-fit: contain;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .65rem;
    font-size: .9rem;
}

.footer-links i {
    color: var(--accent-color);
    width: 1.1rem;
}

.footer-links li {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
}

.footer-bottom {
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, .12);
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    justify-content: space-between;
    font-size: .8rem;
}

.to-top {
    position: fixed;
    right: 1.25rem;
    bottom: 5.2rem;
    z-index: 60;
    width: 2.9rem;
    height: 2.9rem;
    border: none;
    border-radius: 999px;
    background: var(--primary-color);
    color: #ffffff;
    display: grid;
    place-items: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    box-shadow: var(--shadow-md);
    transition: all .3s ease;
}

.to-top.is-visible {
    opacity: 1;
    visibility: visible;
}

.to-top:hover {
    background: var(--accent-color);
}

.whatsapp-fab {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 60;
    display: grid;
    place-items: center;
    width: 3.1rem;
    height: 3.1rem;
    border-radius: 999px;
    background: #25d366;
    color: #ffffff;
    font-size: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: all .3s ease;
}

.whatsapp-fab:hover {
    background: #1ebe5a;
    transform: translateY(-2px);
}