/* ==================================================================
   Site chrome: utility strip, sticky header, footer, mobile taskbar.
   Loaded by sni/header.php on every page (home included).
   Prefixed .sni- so the theme CSS never collides.
   ================================================================== */
:root {
    --sf-ink:     #15314b;
    --sf-navy:    #0b2d45;
    --sf-navy-dk: #082236;
    --sf-body:    #5f7283;
    --sf-blue:    #0092c6;
    --sf-blue-dk: #006a94;
    --sf-gold:    #fcbe32;
    --sf-paper:   #f3f8fb;
    --sf-line:    #dbe6ee;
}

/* The theme wraps the page in .boxed{overflow-x:hidden}, which breaks
   position:sticky. "clip" keeps the horizontal clipping without that. */
.boxed { overflow-x: clip; }

/* ---- Utility strip ------------------------------------------------ */
.sni-topbar {
    background: var(--sf-navy);
    color: rgba(255, 255, 255, 0.85);
    font-family: "Poppins", sans-serif;
    font-size: 13px;
}
.sni-topbar__in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 38px;
}
.sni-topbar__contact { display: flex; align-items: center; gap: 22px; }
.sni-topbar__contact a {
    display: inline-flex; align-items: center; gap: 8px;
    color: rgba(255, 255, 255, 0.85); text-decoration: none; line-height: 1;
    transition: color .15s ease;
}
.sni-topbar__contact a:hover, .sni-topbar__contact a:focus { color: var(--sf-gold); }
.sni-topbar__contact i { color: var(--sf-gold); font-size: 13px; }
.sni-social { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.sni-social li { margin: 0; padding: 0; list-style: none; }
.sni-social a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: 50%;
    color: #fff; font-size: 13px; text-decoration: none;
    background: rgba(255, 255, 255, 0.10);
    transition: background .15s ease, color .15s ease, transform .15s ease;
}
.sni-social a:hover, .sni-social a:focus { background: var(--sf-gold); color: var(--sf-navy); transform: translateY(-1px); }

/* ---- Header ----------------------------------------------------- */
.sni-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    border-bottom: 1px solid var(--sf-line);
    box-shadow: 0 1px 0 rgba(21, 49, 75, 0.02);
    font-family: "Poppins", sans-serif;
    transition: box-shadow .2s ease;
}
.sni-header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(21, 49, 75, 0.45); }
.sni-header__in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 84px;
}
.sni-header__logo { display: inline-flex; align-items: center; flex: 0 0 auto; }
.sni-header__logo img { height: 48px; width: auto; display: block; }

.sni-nav__list {
    display: flex; align-items: center; gap: 4px;
    list-style: none; margin: 0; padding: 0;
}
.sni-nav__list li { list-style: none; margin: 0; padding: 0; }
.sni-nav__item { position: relative; }
.sni-nav__item > a,
.sni-nav__parent {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 14px;
    border: 0; border-radius: 8px;
    background: transparent;
    font-family: "Montserrat", sans-serif;
    font-size: 13px; font-weight: 700;
    letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--sf-ink); line-height: 1.2;
    text-decoration: none; cursor: pointer;
    transition: color .15s ease, background .15s ease;
}
.sni-nav__parent i { font-size: 12px; transition: transform .2s ease; }
.sni-nav__item > a:hover, .sni-nav__item > a:focus,
.sni-nav__parent:hover, .sni-nav__parent:focus,
.sni-nav__item.is-open > .sni-nav__parent {
    color: var(--sf-blue-dk); background: var(--sf-paper); outline: none;
}
.sni-nav__item > a.is-active { color: var(--sf-blue-dk); }
.sni-nav__item > a.is-active::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px;
    height: 3px; border-radius: 2px; background: var(--sf-gold);
}
.sni-nav__item.is-current > .sni-nav__parent { color: var(--sf-blue-dk); }

.sni-nav__sub {
    position: absolute; top: calc(100% + 8px); left: 0;
    min-width: 260px; margin: 0; padding: 8px;
    background: #fff; border: 1px solid var(--sf-line); border-radius: 12px;
    box-shadow: 0 24px 40px -22px rgba(21, 49, 75, 0.45);
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
    z-index: 5;
}
.sni-nav__sub::before { /* hover bridge so the menu does not close in the gap */
    content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px;
}
.sni-nav__item.has-children:hover > .sni-nav__sub,
.sni-nav__item.has-children:focus-within > .sni-nav__sub,
.sni-nav__item.is-open > .sni-nav__sub {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.sni-nav__item.has-children:hover > .sni-nav__parent i,
.sni-nav__item.is-open > .sni-nav__parent i { transform: rotate(180deg); }
.sni-nav__sub a {
    display: block; padding: 10px 12px; border-radius: 8px;
    font-size: 14px; color: var(--sf-ink); text-decoration: none; line-height: 1.4;
    transition: background .15s ease, color .15s ease;
}
.sni-nav__sub a:hover, .sni-nav__sub a:focus { background: var(--sf-paper); color: var(--sf-blue-dk); outline: none; }
.sni-nav__sub a.is-active { color: var(--sf-blue-dk); font-weight: 500; box-shadow: inset 3px 0 0 var(--sf-gold); }

.sni-nav__item--cta { margin-left: 8px; }
.sni-nav__item--cta > a.sni-nav__cta,
.sni-nav__item--cta > a.sni-nav__cta.is-active {
    background: var(--sf-blue); color: #fff; border-radius: 999px; padding: 11px 20px;
    box-shadow: 0 8px 18px -10px rgba(0, 106, 148, 0.7);
}
.sni-nav__item--cta > a.sni-nav__cta:hover, .sni-nav__item--cta > a.sni-nav__cta:focus { background: var(--sf-blue-dk); color: #fff; }
.sni-nav__item--cta > a.is-active::after { display: none; }

/* Hamburger */
.sni-header__toggle {
    display: none;
    width: 44px; height: 44px; padding: 10px; margin: 0;
    border: 1px solid var(--sf-line); border-radius: 10px; background: #fff;
    flex-direction: column; justify-content: center; gap: 5px;
    cursor: pointer; line-height: 0;
}
.sni-header__toggle:hover, .sni-header__toggle:focus { background: var(--sf-paper); outline: none; }
.sni-header__toggle span {
    display: block; height: 2px; width: 100%; background: var(--sf-ink); border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
}
.sni-header__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.sni-header__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.sni-header__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.sni-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- Footer ----------------------------------------------------- */
.sni-footer {
    background: var(--sf-navy);
    color: rgba(255, 255, 255, 0.78);
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    position: relative;
}
.sni-footer::before { /* thin gold rule at the very top */
    content: ""; display: block; height: 4px;
    background: linear-gradient(90deg, var(--sf-gold) 0%, var(--sf-gold) 180px, transparent 180px);
}
.sni-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 0.9fr)) minmax(0, 1.4fr);
    gap: 40px;
    padding: 56px 0 48px;
}
.sni-footer__logo {
    display: inline-block; background: #fff; border-radius: 12px; padding: 12px 16px; margin: 0 0 22px;
}
.sni-footer__logo img { height: 44px; width: auto; display: block; }
.sni-footer__contact { list-style: none; margin: 0; padding: 0; }
.sni-footer__contact li {
    display: flex; gap: 12px; align-items: flex-start;
    margin: 0 0 12px; padding: 0; list-style: none; line-height: 1.6;
}
.sni-footer__contact i { color: var(--sf-gold); margin-top: 4px; font-size: 14px; width: 14px; text-align: center; flex: 0 0 auto; }
.sni-footer__contact a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.sni-footer__contact a:hover, .sni-footer__contact a:focus { color: var(--sf-gold); }

.sni-footer h5 {
    font-family: "Montserrat", sans-serif;
    font-size: 12px; font-weight: 700;
    letter-spacing: 0.16em; text-transform: uppercase;
    color: #fff; margin: 10px 0 18px;
}
.sni-footer__col ul { list-style: none; margin: 0; padding: 0; }
.sni-footer__col li { margin: 0 0 10px; padding: 0; list-style: none; }
.sni-footer__col a {
    color: rgba(255, 255, 255, 0.78); text-decoration: none; line-height: 1.5;
    transition: color .15s ease, padding-left .15s ease;
}
.sni-footer__col a:hover, .sni-footer__col a:focus { color: var(--sf-gold); padding-left: 4px; }

.sni-footer__form { display: flex; flex-direction: column; gap: 10px; }
.sni-footer__form input[type="email"],
.sni-footer__form textarea {
    width: 100%; margin: 0; padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 10px;
    background: rgba(255, 255, 255, 0.06); color: #fff;
    font-family: "Poppins", sans-serif; font-size: 14px; line-height: 1.4; height: auto;
    box-shadow: none; transition: border-color .15s ease, background .15s ease;
}
.sni-footer__form textarea { min-height: 96px; resize: vertical; }
.sni-footer__form input::placeholder, .sni-footer__form textarea::placeholder { color: rgba(255, 255, 255, 0.5); }
.sni-footer__form input:focus, .sni-footer__form textarea:focus {
    outline: none; border-color: var(--sf-gold); background: rgba(255, 255, 255, 0.10);
}
.sni-footer__send {
    align-self: flex-start;
    display: inline-flex; align-items: center; gap: 10px;
    padding: 11px 20px; margin: 0; border: 0; border-radius: 999px;
    background: var(--sf-gold); color: var(--sf-navy);
    font-family: "Montserrat", sans-serif; font-size: 12px; font-weight: 700;
    letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.2; cursor: pointer;
    transition: background .15s ease, transform .15s ease;
}
.sni-footer__send:hover, .sni-footer__send:focus { background: #ffd069; color: var(--sf-navy); transform: translateY(-1px); outline: none; }
.sni-footer__status p, .sni-footer__status h3 { color: var(--sf-gold); font-size: 13px; margin: 6px 0 0; font-family: "Poppins", sans-serif; font-weight: 500; }

.sni-footer__bottom { background: var(--sf-navy-dk); }
.sni-footer__bottom-in {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    min-height: 58px; font-size: 13px; color: rgba(255, 255, 255, 0.6);
}

/* Back-to-top (theme JS shows it with .show and handles the click) */
a.go-top.sni-gotop {
    position: fixed; right: 20px; bottom: 24px; z-index: 950;
    width: 44px; height: 44px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--sf-blue); color: #fff; font-size: 14px;
    box-shadow: 0 10px 24px -10px rgba(0, 106, 148, 0.8);
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
    line-height: 1; text-decoration: none; margin: 0; padding: 0;
}
a.go-top.sni-gotop.show { opacity: 1; visibility: visible; transform: translateY(0); }
a.go-top.sni-gotop:hover { background: var(--sf-blue-dk); color: #fff; }

/* ---- Mobile taskbar (phones only) ---------------------------------- */
.sni-taskbar { display: none; }

/* ---- Responsive ------------------------------------------------ */
@media (max-width: 1199px) {
    .sni-nav__item > a, .sni-nav__parent { padding: 10px 10px; font-size: 12px; }
    .sni-footer__grid { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); }
    .sni-footer__form { grid-column: 1 / -1; max-width: 520px; }
}
@media (max-width: 991px) {
    .sni-header__in { min-height: 72px; }
    .sni-header__logo img { height: 42px; }
    .sni-header__toggle { display: flex; }

    .sni-nav {
        position: absolute; left: 0; right: 0; top: 100%;
        background: #fff; border-bottom: 1px solid var(--sf-line);
        box-shadow: 0 24px 40px -22px rgba(21, 49, 75, 0.45);
        max-height: 0; overflow: hidden; visibility: hidden;
        transition: max-height .28s ease, visibility .28s;
    }
    .sni-nav.is-open { max-height: calc(100vh - 110px); overflow-y: auto; visibility: visible; }
    .sni-nav__list { display: block; padding: 8px 16px 16px; }
    .sni-nav__item { border-bottom: 1px solid var(--sf-line); }
    .sni-nav__item:last-child { border-bottom: 0; }
    .sni-nav__item > a, .sni-nav__parent {
        display: flex; width: 100%; justify-content: space-between;
        padding: 14px 6px; border-radius: 0; font-size: 13px;
    }
    .sni-nav__item > a.is-active::after { display: none; }
    .sni-nav__item > a.is-active { box-shadow: inset 3px 0 0 var(--sf-gold); padding-left: 12px; }
    .sni-nav__sub {
        position: static; min-width: 0; margin: 0 0 8px; padding: 0 0 0 12px;
        border: 0; border-left: 2px solid var(--sf-line); border-radius: 0; box-shadow: none;
        opacity: 1; visibility: visible; transform: none; transition: none;
        display: none;
    }
    .sni-nav__item.is-open > .sni-nav__sub { display: block; }
    .sni-nav__item.has-children:hover > .sni-nav__sub { display: none; }
    .sni-nav__item.has-children.is-open:hover > .sni-nav__sub { display: block; }
    .sni-nav__item.has-children:hover > .sni-nav__parent i { transform: none; }
    .sni-nav__item.is-open > .sni-nav__parent i { transform: rotate(180deg); }
    .sni-nav__item--cta { margin: 12px 0 0; border: 0; }
    .sni-nav__item--cta > a.sni-nav__cta { justify-content: center; }

    .sni-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; padding: 44px 0 40px; }
    .sni-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
    body { padding-bottom: 58px; }               /* room for the fixed taskbar */
    .sni-topbar__contact a span { display: none; } /* icons only on phones */
    .sni-topbar__contact { gap: 14px; }
    .sni-topbar__contact a { width: 28px; height: 28px; justify-content: center; border-radius: 50%; background: rgba(255,255,255,0.10); }
    .sni-topbar__contact i { color: #fff; }

    .sni-footer__grid { grid-template-columns: 1fr; gap: 28px; }
    .sni-footer__bottom-in { flex-direction: column; justify-content: center; padding: 14px 0; text-align: center; }
    a.go-top.sni-gotop { bottom: 72px; right: 14px; }

    .sni-taskbar {
        display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
        background: var(--sf-navy); border-top: 1px solid rgba(255, 255, 255, 0.08);
        padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
        justify-content: space-around; align-items: center;
    }
    .sni-taskbar a {
        display: inline-flex; align-items: center; justify-content: center;
        width: 44px; height: 44px; border-radius: 12px; color: #fff; font-size: 18px; text-decoration: none;
    }
    .sni-taskbar a:active, .sni-taskbar a:focus { background: rgba(255, 255, 255, 0.10); color: var(--sf-gold); outline: none; }
    .sni-taskbar__sep { width: 1px; height: 24px; background: rgba(255, 255, 255, 0.14); }
}
@media (max-width: 420px) {
    .sni-header__logo img { height: 36px; }
}
@media (prefers-reduced-motion: reduce) {
    .sni-nav, .sni-nav__sub, .sni-header__toggle span, .sni-social a, a.go-top.sni-gotop { transition: none; }
}

/* ==================================================================
   Motion
   All rules are gated on html.sni-js (added by sni-motion.js) so content
   is never hidden when scripts do not run.
   ================================================================== */

/* Scroll reveal */
.sni-js .sni-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .65s ease, transform .65s cubic-bezier(.2, .7, .2, 1);
    transition-delay: var(--sni-d, 0ms);
    will-change: opacity, transform;
}
.sni-js .sni-reveal.is-in { opacity: 1; transform: none; }
/* keep hover transforms on cards after they are in */
.sni-js .sni-reveal.is-in:hover { transition-delay: 0ms; }

/* Hero text entrance */
@keyframes sniRise {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: none; }
}
.sni-js .sni-hero__content > *,
.sni-js .sni-home-hero__content > * {
    animation: sniRise .7s cubic-bezier(.2, .7, .2, 1) both;
}
.sni-js .sni-hero__content > :nth-child(2),
.sni-js .sni-home-hero__content > :nth-child(2) { animation-delay: .10s; }
.sni-js .sni-hero__content > :nth-child(3),
.sni-js .sni-home-hero__content > :nth-child(3) { animation-delay: .20s; }
.sni-js .sni-hero__content > :nth-child(4),
.sni-js .sni-home-hero__content > :nth-child(4) { animation-delay: .30s; }
.sni-js .sni-hero__content > :nth-child(5),
.sni-js .sni-home-hero__content > :nth-child(5) { animation-delay: .40s; }

/* Gold rule under hero grows in */
@keyframes sniGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.sni-js .sni-faculty__group-head::after { transform-origin: left; animation: sniGrow .6s .2s cubic-bezier(.2,.7,.2,1) both; }

/* Header compacts on scroll */
.sni-header__in, .sni-header__logo img { transition: min-height .25s ease, height .25s ease; }
.sni-header.is-scrolled .sni-header__in { min-height: 68px; }
.sni-header.is-scrolled .sni-header__logo img { height: 40px; }

/* Link arrows nudge */
.sni-link i { transition: transform .18s ease; }
.sni-link:hover i { transform: translateX(3px); }

/* Facility chips lift */
.sni-facnav a { transition: border-color .15s ease, background .15s ease, color .15s ease, transform .15s ease; }
.sni-facnav a:hover { transform: translateY(-2px); }

@media (prefers-reduced-motion: reduce) {
    .sni-js .sni-reveal { opacity: 1; transform: none; transition: none; }
    .sni-js .sni-hero__content > *, .sni-js .sni-home-hero__content > *,
    .sni-js .sni-faculty__group-head::after { animation: none; }
    .sni-header__in, .sni-header__logo img, .sni-link i, .sni-facnav a { transition: none; }
}
