:root {
    --page-bg: #f2f2f2;
    --surface: #f7f7f7;
    --ink: #0b0d12;
    --muted: #7d8088;
    --line: #e2e2e2;
    --navy: #0d2456;
    --gold: #ccb084;
    --card: #f4f4f4;
    --radius-lg: 28px;
    --radius-md: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    margin: 0;
    overflow-x: clip;
    background: var(--page-bg);
    color: var(--ink);
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 16px;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        linear-gradient(to right, rgba(13, 36, 86, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(13, 36, 86, 0.05) 1px, transparent 1px);
    background-size: 160px 160px;
    opacity: 0.35;
}

h1,
h2,
h3,
h4,
p {
    margin: 0;
}

img {
    width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-wrap {
    position: relative;
    width: 100%;
    max-width: 100vw;
    overflow-x: clip;
    z-index: 1;
    padding: clamp(6px, 0.7vw, 12px);
}

.layout-shell {
    width: 100%;
    max-width: min(1780px, 100%);
    overflow-x: clip;
    margin: 0 auto;
}

.section-container {
    margin-bottom: 18px;
}

.eyebrow {
    font-style: italic;
    font-size: 20px;
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
}

/* Motion foundation */
@keyframes fadeUpIn {
    from {
        opacity: 0;
        transform: translate3d(0, 26px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.reveal {
    opacity: 0;
    transform: translate3d(0, 26px, 0);
    transition: opacity 0.75s ease, transform 0.75s ease;
    transition-delay: var(--reveal-delay, 0ms);
}

.reveal.in-view {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.hover-widget {
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease, background-color 0.22s ease;
}

.hover-widget:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 18px -14px rgba(8, 12, 24, 0.45);
}

.nav-group a,
.login-btn,
.hero-slider-controls button,
.mini-controls button,
.program-list button,
.contact-form button,
.news-foot a {
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease, background-color 0.25s ease;
}

.nav-group a:hover,
.login-btn:hover,
.hero-slider-controls button:hover,
.mini-controls button:hover,
.program-list button:hover,
.contact-form button:hover,
.news-foot a:hover {
    transform: translateY(-2px);
    filter: brightness(1.03);
}

.events-grid article img {
    transition: transform 0.45s ease, filter 0.45s ease;
}

.events-grid article:hover img {
    transform: scale(1.035);
    filter: saturate(1.06);
}

.parallax-item {
    will-change: transform;
    transform: translate3d(0, 0, 0);
}


.floating-socials {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 80;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(210, 220, 236, 0.82);
    box-shadow: 0 18px 36px -24px rgba(18, 38, 77, 0.55);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.floating-social-link {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.34);
    box-shadow: 0 14px 24px -18px rgba(8, 18, 38, 0.7);
    transition: transform 0.22s ease, filter 0.22s ease, box-shadow 0.22s ease;
}

.floating-social-link svg {
    width: 24px;
    height: 24px;
    display: block;
    fill: currentColor;
}

.floating-social-link:hover,
.floating-social-link:focus-visible {
    transform: translateY(-3px);
    filter: brightness(1.04);
    box-shadow: 0 18px 30px -20px rgba(8, 18, 38, 0.82);
    outline: none;
}

.floating-social-link--whatsapp {
    background: #25d366;
}

.floating-social-link--linkedin {
    background: #0a66c2;
}

.floating-social-link--facebook {
    background: #1877f2;
}

.floating-social-link--instagram {
    background: linear-gradient(135deg, #f58529, #dd2a7b 50%, #8134af);
}

.floating-social-link--tiktok {
    background: #0b0d12;
}

@media (max-width: 1024px) {
    .site-wrap {
        padding: 8px;
    }

    .section-container {
        margin-bottom: 16px;
    }

    .eyebrow {
        font-size: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal,
    .hover-widget,
    .events-grid article img,
    .nav-group a,
    .login-btn,
    .hero-slider-controls button,
    .mini-controls button,
    .parallax-item {
        transition: none !important;
        animation: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}

@media (max-width: 640px) {
    .floating-socials {
        right: 12px;
        bottom: 12px;
        gap: 7px;
        padding: 7px;
    }

    .floating-social-link {
        width: 44px;
        height: 44px;
    }

    .floating-social-link svg {
        width: 20px;
        height: 20px;
    }
}
/* Refined compact social dock. */
.floating-socials { right:18px; bottom:18px; flex-direction:column; align-items:center; gap:5px; padding:5px; border:1px solid rgba(205,214,228,.9); border-radius:18px; background:rgba(255,255,255,.9); box-shadow:0 16px 36px -22px rgba(15,23,42,.5),inset 0 1px 0 #fff; backdrop-filter:blur(16px) saturate(1.2); }
.floating-social-link { position:relative; width:41px; height:41px; border:0; box-shadow:none; transition:transform .22s ease,box-shadow .22s ease,opacity .22s ease; }
.floating-social-link svg { width:19px; height:19px; }
.floating-social-link::after { content:attr(data-label); position:absolute; right:calc(100% + 10px); bottom:50%; padding:6px 9px; border-radius:8px; background:#172033; color:#fff; font-size:10px; font-weight:700; white-space:nowrap; opacity:0; visibility:hidden; transform:translate(5px,50%); transition:.18s ease; pointer-events:none; }
.floating-social-link:hover,.floating-social-link:focus-visible { transform:translateX(-3px) scale(1.03); filter:none; box-shadow:0 10px 22px -14px rgba(15,23,42,.65); }
.floating-social-link:hover::after,.floating-social-link:focus-visible::after { opacity:1; visibility:visible; transform:translate(0,50%); }
@media(max-width:640px){.floating-socials{right:10px;bottom:10px;flex-direction:column;gap:4px;padding:4px;border-radius:16px}.floating-social-link{width:38px;height:38px}.floating-social-link svg{width:18px;height:18px}.floating-social-link::after{display:none}}
body:has(.program-detail.active) .floating-socials { right:10px; bottom:50%; flex-direction:column; transform:translateY(50%); border-radius:18px; }
body:has(.program-detail.active) .floating-social-link:hover,body:has(.program-detail.active) .floating-social-link:focus-visible { transform:translateX(-3px) scale(1.03); }
body:has(.program-detail.active) .floating-social-link::after { right:calc(100% + 10px); bottom:50%; transform:translate(5px,50%); }
body:has(.program-detail.active) .floating-social-link:hover::after,body:has(.program-detail.active) .floating-social-link:focus-visible::after { transform:translate(0,50%); }
@media(max-width:640px){body:has(.program-detail.active) .floating-socials{right:6px}}