/* Explain: App-specific layout utilities, including header, footer, and contact bar styling. */
.container-x {
    width: 100%;
    max-width: 1180px;
    margin-inline: auto;
    padding-inline: 1rem;
}

.section-y {
    padding-block: 3.5rem;
}

@media (min-width: 768px) {
    .section-y {
        padding-block: 5rem;
    }
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.hotline-strip {
    background: linear-gradient(90deg, var(--hotline-dark), var(--hotline-color));
    color: #fff;
    font-size: .8rem;
}

.hotline-strip__link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: rgba(255, 255, 255, .18);
    border-radius: 999px;
    padding: .15rem .7rem;
    font-weight: 700;
    white-space: nowrap;
    transition: background-color .2s ease;
}

.hotline-strip__link:hover {
    background: rgba(255, 255, 255, .34);
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
}

.brand-logo {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    font-size: 1.15rem;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.brand-name {
    display: block;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.05rem;
    line-height: 1.25;
    color: var(--text-color);
}

.brand-sub {
    display: block;
    font-size: .72rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .55rem .9rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: .95rem;
    color: var(--text-color);
    transition: background-color .2s ease, color .2s ease;
}

.nav-link:hover {
    background: var(--primary-light);
    color: var(--primary-color);
}

.menu-toggle {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--primary-color);
    font-size: 1.1rem;
    cursor: pointer;
}

.mobile-panel {
    border-top: 1px solid var(--border-color);
    background: #fff;
    padding: .5rem 1rem 1.25rem;
}

.mobile-link {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .9rem .4rem;
    font-weight: 700;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
}

.mobile-link:last-child {
    border-bottom: 0;
}

/* ---------- Footer ---------- */
.site-footer {
    background: #071a30;
    color: #c3d4e8;
}

.site-footer h3 {
    color: #fff;
}

.site-footer .brand-name {
    color: #fff;
}

.site-footer .brand-sub {
    color: rgba(195, 212, 232, .8);
}

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: inherit;
    transition: color .2s ease;
}

.footer-link:hover {
    color: #fff;
}

/* ---------- Floating contact bar ---------- */
.call-bar {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .5rem;
    padding: .55rem .7rem calc(.55rem + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .97);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -8px 22px rgba(11, 79, 158, .1);
    backdrop-filter: blur(8px);
}

.call-bar__btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .2rem;
    min-height: 58px;
    padding: .45rem .35rem;
    border-radius: 16px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: .8rem;
    line-height: 1.2;
    color: #fff;
    text-align: center;
    box-shadow: 0 8px 18px rgba(11, 79, 158, .16);
    animation: contactBuzz 4s ease-in-out infinite;
    transition: transform .25s ease, box-shadow .25s ease;
}

.call-bar__btn i {
    font-size: 1.25rem;
}

.call-bar__btn--hot {
    background: linear-gradient(135deg, var(--hotline-color), var(--hotline-dark));
    box-shadow: 0 8px 18px rgba(216, 31, 54, .3);
}

.call-bar__btn--call {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.call-bar__btn--wa {
    background: var(--whatsapp-color);
    box-shadow: 0 8px 18px rgba(37, 211, 102, .3);
}

.call-bar__btn:nth-child(1) {
    animation-delay: 0s;
}

.call-bar__btn:nth-child(2) {
    animation-delay: .22s;
}

.call-bar__btn:nth-child(3) {
    animation-delay: .44s;
}

.call-bar__btn:active {
    transform: scale(.95);
}

@keyframes contactBuzz {
    0%, 86%, 100% {
        transform: translateX(0) rotate(0deg);
    }
    88% {
        transform: translateX(-3px) rotate(-2deg);
    }
    90% {
        transform: translateX(3px) rotate(2deg);
    }
    92% {
        transform: translateX(-3px) rotate(-2deg);
    }
    94% {
        transform: translateX(3px) rotate(2deg);
    }
    96% {
        transform: translateX(-2px) rotate(-1deg);
    }
    98% {
        transform: translateX(0) rotate(0deg);
    }
}

@media (min-width: 1024px) {
    .call-bar {
        inset-inline: auto;
        left: 50%;
        transform: translateX(-50%);
        bottom: 1.25rem;
        width: auto;
        max-width: 580px;
        grid-template-columns: repeat(3, minmax(150px, 1fr));
        border: 1px solid var(--border-color);
        border-radius: 999px;
        padding: .5rem;
        box-shadow: 0 16px 38px rgba(11, 79, 158, .24);
    }

    .call-bar__btn {
        flex-direction: row;
        gap: .55rem;
        min-height: 50px;
        border-radius: 999px;
        padding: .5rem 1.1rem;
        font-size: .95rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .call-bar__btn {
        animation: none;
    }
}