/* =========================================================
   NAVBAR
   Fixed to the top of the screen, so it stays put when you
   scroll or zoom. Works on desktop, tablet and phone.
========================================================= */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
}

.navbar {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    min-height: 74px;
    padding: 0 clamp(14px, 4vw, 56px);
    background: rgba(6, 17, 31, 0.84);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

/* ---------- Brand: W and name close together ---------- */

.brand-w {
    flex-shrink: 0;
    margin-right: 0px;              /* gap between W and "est": raise or lower this */
    color: var(--blue-400);
    font-size: 52px;
    font-weight: 800;
    line-height: 0.8;
    letter-spacing: -4px;
}

.brand-name {
    margin-right: auto;             /* pushes the links to the right */
    color: var(--white);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.3px;
    white-space: nowrap;
}

/* ---------- Links ---------- */

.nav-links {
    display: flex;
    align-items: center;
    gap: 34px;
}

.nav-links a {
    position: relative;
    padding: 27px 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    white-space: nowrap;
    transition: color 0.25s ease;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 18px;
    width: 0;
    height: 2px;
    background: var(--blue-400);
    border-radius: 5px;
    transition: width 0.25s ease;
}

.nav-links a:hover {
    color: var(--white);
}

/* current page: put class="active" on that page's link */
.nav-links a.active {
    color: var(--white);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:focus-visible {
    outline: 2px solid var(--blue-400);
    outline-offset: 3px;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .navbar {
        min-height: 68px;
        gap: 14px;
    }

    .brand-w {
        font-size: 44px;
        margin-right: 2px;
    }

    .brand-name {
        font-size: clamp(14px, 2.6vw, 17px);
    }

    .nav-links {
        gap: 20px;
    }

    .nav-links a {
        padding: 24px 0;
        font-size: 12px;
        letter-spacing: 0.3px;
    }

    .nav-links a::after {
        bottom: 16px;
    }
}
/* =========================================================
   TABLET AND PHONE: no brand, links centered
========================================================= */

@media (max-width: 900px) {

    .navbar {
        justify-content: center;
        gap: 0;
        min-height: 66px;
    }

    /* W and brand name both hidden */
    .brand-w,
    .brand-name {
        display: none;
    }

    .nav-links {
        flex: 1;
        justify-content: center;
        gap: 28px;
        min-width: 0;
    }

    .nav-links a {
        padding: 24px 0;
        font-size: 13px;
        letter-spacing: 0.3px;
    }

    .nav-links a::after {
        bottom: 16px;
    }
}

/* =========================================================
   PHONE: tighter links
========================================================= */

@media (max-width: 650px) {

    .navbar {
        min-height: 64px;
    }

    .nav-links {
        gap: 18px;
    }

    .nav-links a {
        padding: 20px 0;
        font-size: 12px;
        line-height: 1.25;
        letter-spacing: 0;
        text-align: center;
        white-space: normal;
    }

    .nav-links a::after {
        bottom: 12px;
    }

    /* "Programs and Strand" wraps onto two lines instead of overflowing */
    .nav-links a:nth-child(2) {
        max-width: 78px;
    }
}

/* Small phones */
@media (max-width: 380px) {

    .nav-links {
        gap: 12px;
    }

    .nav-links a {
        font-size: 11px;
    }

    .nav-links a:nth-child(2) {
        max-width: 68px;
    }
}


/* PAGE HERO */

.page-hero {
    position: relative;
    min-height: 0;
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(
            circle at 72% 40%,
            rgba(30, 136, 229, 0.28),
            transparent 28%
        ),
        radial-gradient(
            circle at 15% 80%,
            rgba(59, 167, 255, 0.14),
            transparent 25%
        ),
        linear-gradient(
            120deg,
            #06111f,
            #0b1f3a 55%,
            #08223d
        );
}

/* Decorative circles */

.page-hero::before,
.page-hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
    border-radius: 50%;
}

.page-hero::before {
    width: 600px;
    height: 600px;
    top: -280px;
    right: -180px;
    border: 1px solid rgba(112, 196, 255, 0.12);
}

.page-hero::after {
    width: 800px;
    height: 800px;
    top: -380px;
    right: -280px;
    border: 1px solid rgba(112, 196, 255, 0.06);
}

/* Main content */

.page-hero-inner {
    position: relative;
    z-index: 1;
    width: min(var(--max-width, 1180px), 90%);
    margin: 0 auto;
    padding: clamp(85px, 10vw, 125px) 0
             clamp(65px, 8vw, 90px);
}

/* Small heading */

.page-hero .eyebrow {
    display: block;
    margin-bottom: 25px;
    color: var(--blue-300, #70c4ff);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.8;
    letter-spacing: 4px;
    overflow-wrap: anywhere;
}

/* Main title */

.page-hero h1 {
    max-width: 850px;
    margin: 0;
    color: var(--white, #ffffff);
    font-size: clamp(48px, 7.5vw, 105px);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: clamp(-5px, -0.4vw, -2px);
    overflow-wrap: anywhere;
}

.page-hero h1 span {
    display: block;
    color: var(--blue-400, #3ba7ff);
}

/* Description */

.page-hero .hero-description {
    max-width: 620px;
    margin-top: 30px;
    color: #b7ccdd;
    font-size: clamp(15px, 1.5vw, 17px);
    line-height: 1.8;
    overflow-wrap: anywhere;
}

/* Decorative divider */

.page-hero .hero-divider {
    width: 75px;
    max-width: 100%;
    height: 3px;
    margin-top: 35px;
    background: var(--blue-400, #3ba7ff);
    border-radius: 5px;
}

/* Tagline */

.page-hero .hero-tagline {
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.8;
    letter-spacing: 3px;
    overflow-wrap: anywhere;
}

/* Optional buttons */

.page-hero .hero-actions {
    margin-top: 35px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

/* TABLETS */

@media (max-width: 900px) {

    .page-hero-inner {
        width: 88%;
        padding: 85px 0 70px;
    }

    .page-hero::before {
        width: 480px;
        height: 480px;
        top: -230px;
        right: -200px;
    }

    .page-hero::after {
        width: 650px;
        height: 650px;
        top: -300px;
        right: -260px;
    }

    .page-hero h1 {
        max-width: 700px;
        font-size: clamp(46px, 8vw, 72px);
        letter-spacing: -3px;
    }

    .page-hero .eyebrow {
        margin-bottom: 20px;
        font-size: 10px;
        letter-spacing: 3px;
    }

    .page-hero .hero-description {
        max-width: 560px;
        margin-top: 25px;
    }
}

/* PHONES */

@media (max-width: 600px) {

    .page-hero-inner {
        width: auto;
        margin: 0;
        padding: 70px 22px 60px;
    }

    .page-hero::before {
        width: 350px;
        height: 350px;
        top: -175px;
        right: -190px;
    }

    .page-hero::after {
        width: 470px;
        height: 470px;
        top: -230px;
        right: -260px;
    }

    .page-hero .eyebrow {
        max-width: 100%;
        margin-bottom: 18px;
        font-size: 9px;
        line-height: 1.9;
        letter-spacing: 2px;
    }

    .page-hero h1 {
        font-size: clamp(38px, 10vw, 54px);
        line-height: 1.08;
        letter-spacing: -2px;
    }

    .page-hero .hero-description {
        margin-top: 22px;
        font-size: 14px;
        line-height: 1.8;
    }

    .page-hero .hero-divider {
        width: 60px;
        margin-top: 28px;
    }

    .page-hero .hero-tagline {
        margin-top: 17px;
        font-size: 11px;
        letter-spacing: 2px;
    }

    .page-hero .hero-actions {
        margin-top: 28px;
        gap: 10px;
    }
}

/* EXTRA-SMALL PHONES */

@media (max-width: 360px) {

    .page-hero-inner {
        padding: 60px 18px 50px;
    }

    .page-hero h1 {
        font-size: 36px;
        letter-spacing: -1.5px;
    }

    .page-hero .eyebrow {
        font-size: 8px;
        letter-spacing: 1.5px;
    }

    .page-hero .hero-description {
        font-size: 13px;
    }

    .page-hero .hero-tagline {
        font-size: 10px;
        letter-spacing: 1.5px;
    }
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    padding: 35px 5%;
    background: var(--navy-950);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-inner {
    width: min(var(--max-width, 1180px), 100%);
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;

    flex: 0 1 auto;
    min-width: 0;
}

.footer-brand img {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 50%;
    object-fit: cover;
}

.footer-brand strong {
    display: block;
    margin-bottom: 4px;
    color: var(--white);
    font-size: 12px;
    line-height: 1.5;
}

.footer-brand span {
    display: block;
    color: #6f8ba1;
    font-size: 10px;
    line-height: 1.6;
}

.footer-copy {
    flex: 0 1 auto;
    min-width: 0;
    margin-left: auto;
    text-align: right;
}

.footer-copy p {
    color: #5d758a;
    font-size: 10px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

/* TABLETS */

@media (max-width: 768px) {
    .site-footer {
        padding: 28px 4%;
    }

    .footer-inner {
        gap: 16px;
    }

    .footer-brand {
        gap: 10px;
    }

    .footer-brand img {
        width: 36px;
        height: 36px;
    }

    .footer-brand strong {
        font-size: 11px;
    }

    .footer-brand span {
        font-size: 9px;
    }

    .footer-copy p {
        font-size: 9px;
    }
}

/* PHONES */

@media (max-width: 480px) {
    .site-footer {
        padding: 24px 16px;
    }

    .footer-inner {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .footer-brand {
        flex: 1 1 55%;
        gap: 8px;
    }

    .footer-brand img {
        width: 32px;
        height: 32px;
    }

    .footer-brand strong {
        font-size: 10px;
        line-height: 1.4;
    }

    .footer-brand span {
        font-size: 9px;
        line-height: 1.5;
    }

    .footer-copy {
        flex: 0 1 42%;
        margin-left: auto;
        text-align: right;
    }

    .footer-copy p {
        font-size: 9px;
        line-height: 1.6;
    }
}

/* EXTRA-SMALL PHONES */

@media (max-width: 350px) {
    .site-footer {
        padding: 20px 12px;
    }

    .footer-inner {
        gap: 8px;
    }

    .footer-brand {
        gap: 6px;
    }

    .footer-brand img {
        width: 28px;
        height: 28px;
    }

    .footer-brand strong {
        font-size: 9px;
    }

    .footer-brand span {
        font-size: 8px;
    }

    .footer-copy p {
        font-size: 8px;
    }
}
