html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

.site-header-nav {
    position: sticky;
    top: 0;
    z-index: 50;
}

.site-nav-link {
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.site-theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.site-nav-link--active {
    background: rgba(37, 99, 235, 0.12);
    color: #1d4ed8 !important;
    box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.22);
}

.dark .site-nav-link--active {
    background: rgba(59, 130, 246, 0.18);
    color: #bfdbfe !important;
}

footer .md\:flex.md\:justify-between {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
}

footer .map-container {
    width: min(100%, 320px) !important;
    flex: 1 1 320px;
    margin-bottom: 1rem;
}

footer .map-container iframe {
    display: block;
    width: 100% !important;
    max-width: 100%;
    height: 250px;
    border-radius: 1rem;
}

footer .grid.grid-cols-2.gap-8.sm\:gap-6.sm\:grid-cols-3 {
    flex: 1 1 360px;
}

.site-whatsapp-fab {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 60;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border-radius: 9999px;
    background: #25d366;
    color: #ffffff;
    box-shadow: 0 16px 40px rgba(37, 211, 102, 0.32);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.site-whatsapp-fab:hover {
    background: #1fb959;
    box-shadow: 0 18px 42px rgba(31, 185, 89, 0.35);
    transform: translateY(-2px);
}

.site-whatsapp-fab:focus-visible,
.site-inline-whatsapp:focus-visible {
    outline: 3px solid rgba(37, 211, 102, 0.35);
    outline-offset: 3px;
}

.site-whatsapp-fab__icon {
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
}

.site-whatsapp-fab__label {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.site-whatsapp-inline {
    padding-top: 1rem;
}

.site-inline-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    border-radius: 9999px;
    background: #25d366;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    padding: 0.85rem 1rem;
    box-shadow: 0 10px 24px rgba(37, 211, 102, 0.24);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.site-inline-whatsapp:hover {
    background: #1fb959;
    transform: translateY(-1px);
}

.site-inline-whatsapp__icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

.site-inline-whatsapp__icon svg,
.site-whatsapp-fab__icon svg {
    width: 100%;
    height: 100%;
}

.site-inline-whatsapp__note {
    margin-top: 0.65rem;
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.5;
}

@media (max-width: 767px) {
    footer .map-container {
        width: 100% !important;
    }

    footer .grid.grid-cols-2.gap-8.sm\:gap-6.sm\:grid-cols-3 {
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.25rem;
    }

    .site-whatsapp-fab {
        right: 0.75rem;
        bottom: 0.75rem;
        padding: 0.9rem;
    }

    .site-whatsapp-fab__label {
        display: none;
    }
}
