﻿@import url("./theme.css");

/* ==========================================================
   SHARED PUBLIC NAVBAR
   Used by Home, About Us, Life at SantaCruz, and Careers.
   ========================================================== */

.sc-site-public .sc-public-header {
    width: 100%;
    margin: 0;
    padding: 0;
    background: var(--theme-hero-bg);
}

.sc-site-public .navbar.sc-navbar {
    position: relative;
    z-index: 50;
    width: 100%;
    margin: 0 !important;
    padding: 0.8rem 0;
    border: 0;
    border-bottom: 1px solid rgba(var(--theme-rgb-brand-soft), 0.12);
    background: linear-gradient(90deg, rgba(var(--theme-rgb-hero-bg-alt), .96) 0%, rgba(var(--theme-rgb-hero-bg), .96) 100%) !important;
    box-shadow: none;
    backdrop-filter: blur(16px);
}

    .sc-site-public .navbar.sc-navbar .container-fluid {
        width: min(100%, 1360px);
        padding-inline: clamp(1rem, 4vw, 4rem);
    }

.sc-site-public .sc-brand img {
    filter: brightness(0) invert(1);
    opacity: 0.96;
}

.sc-site-public .navbar.sc-navbar .nav-link,
.sc-site-public .navbar.sc-navbar .nav-link.text-dark {
    position: relative;
    padding: 0.65rem 0.9rem !important;
    color: rgba(var(--theme-rgb-surface), 0.78) !important;
    font-size: 0.94rem;
    font-weight: 600;
    transition: color 180ms ease;
}

    .sc-site-public .navbar.sc-navbar .nav-link:hover,
    .sc-site-public .navbar.sc-navbar .nav-link:focus {
        color: var(--theme-brand-soft-alt) !important;
        text-decoration: none;
    }

    .sc-site-public .navbar.sc-navbar .nav-link.is-active {
        color: var(--theme-text-inverse) !important;
    }

        .sc-site-public .navbar.sc-navbar .nav-link.is-active::after {
            position: absolute;
            right: 0.9rem;
            bottom: 0.3rem;
            left: 0.9rem;
            height: 2px;
            content: "";
            border-radius: 999px;
            background: var(--theme-brand-soft-alt);
        }

.sc-site-public .sc-public-login,
.sc-site-public .navbar.sc-navbar .sc-btn-outline {
    padding: 0.55rem 1rem;
    border: 1px solid var(--theme-surface);
    border-radius: 10px;
    color: var(--theme-hero-bg) !important;
    background: var(--theme-surface);
    font-size: 0.94rem;
    font-weight: 700;
    transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

    .sc-site-public .sc-public-login:hover,
    .sc-site-public .sc-public-login:focus,
    .sc-site-public .navbar.sc-navbar .sc-btn-outline:hover {
        border-color: var(--theme-surface);
        color: var(--theme-surface) !important;
        background: rgba(var(--theme-rgb-surface), 0.12);
        text-decoration: none;
        transform: translateY(-1px);
    }

.sc-site-public .navbar-toggler {
    border-color: rgba(var(--theme-rgb-surface), 0.3);
}

.sc-site-public .navbar-toggler-icon {
    filter: brightness(0) invert(1);
}

@media (max-width: 991.98px) {
    .sc-site-public .navbar.sc-navbar .navbar-collapse {
        margin-top: 0.9rem;
        padding-top: 0.85rem;
        border-top: 1px solid rgba(var(--theme-rgb-surface), 0.12);
    }

    .sc-site-public .navbar.sc-navbar .nav-link,
    .sc-site-public .navbar.sc-navbar .nav-link.text-dark {
        padding-block: 0.6rem !important;
    }

    .sc-site-public .navbar.sc-navbar .nav-item.ms-lg-2 {
        margin-top: 0.7rem;
    }

    .sc-site-public .navbar.sc-navbar .nav-link.is-active::after {
        right: auto;
        bottom: 0.25rem;
        left: 0.9rem;
        width: 28px;
    }
}

/* ==========================================================
   SHARED PUBLIC FOOTER
   ========================================================== */

.sc-public-footer {
    position: relative;
    overflow: hidden;
    margin: 0;
    border-top: 1px solid rgba(var(--theme-rgb-surface), .08);
    color: var(--theme-text-inverse);
    background: linear-gradient(160deg, var(--theme-hero-bg-strong) 0%, var(--theme-text-strong) 100%);
}

.sc-public-footer__inner {
    position: relative;
    z-index: 2;
    width: min(calc(100% - 3rem), 1360px);
    margin: 0 auto;
    min-height: 120px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 2.5rem;
    padding: 1.4rem 0;
}

/* ---------- Brand ---------- */

.sc-public-footer__brand {
    display: inline-flex;
    flex-direction: column;
    text-decoration: none;
}

    .sc-public-footer__brand:hover {
        text-decoration: none;
    }

.sc-public-footer__brand-name {
    color: var(--theme-text-inverse);
    font-size: 2rem;
    font-style: italic;
    font-weight: 800;
    line-height: .9;
    letter-spacing: -.06em;
}

.sc-public-footer__brand-subtitle {
    margin-top: .35rem;
    color: var(--theme-brand-soft);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

/* ---------- Tagline ---------- */

.sc-public-footer__tagline,
.sc-public-footer__tagline *,
.sc-public-footer p.sc-public-footer__tagline {
    margin: 0;
    max-width: 450px;
    color: var(--theme-surface-soft) !important;
    opacity: 1 !important;
    font-size: .9rem;
    font-weight: 400;
    line-height: 1.65;
}

/* ---------- Right Side ---------- */

.sc-public-footer__meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .9rem;
    white-space: nowrap;
    font-size: .82rem;
}

.sc-public-footer__phone,
.sc-public-footer__privacy {
    color: var(--theme-brand-soft) !important;
    font-weight: 700;
    text-decoration: none;
    transition: color .2s ease;
}

    .sc-public-footer__phone:hover,
    .sc-public-footer__privacy:hover {
        color: var(--theme-text-inverse) !important;
        text-decoration: none;
    }

.sc-public-footer__divider {
    width: 1px;
    height: 16px;
    background: rgba(var(--theme-rgb-surface), .25);
}

.sc-public-footer__copyright {
    color: rgba(var(--theme-rgb-surface), .72);
}

.sc-public-footer * {
    text-shadow: none;
}

/* ---------- Tablet ---------- */

@media (max-width:991px) {

    .sc-public-footer__inner {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }

    .sc-public-footer__brand {
        align-items: center;
    }

    .sc-public-footer__tagline {
        max-width: 650px;
        margin: auto;
    }

    .sc-public-footer__meta {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* ---------- Mobile ---------- */

@media (max-width:576px) {

    .sc-public-footer__inner {
        padding: 1.4rem 0;
    }

    .sc-public-footer__brand-name {
        font-size: 1.7rem;
    }

    .sc-public-footer__tagline {
        font-size: .85rem;
    }

    .sc-public-footer__meta {
        font-size: .78rem;
        gap: .6rem;
    }
}
/* ==========================================================================
   Cookie consent modal
   Uses theme.css variables so it follows the active public-site theme.
   ========================================================================== */

.sc-cookie-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: radial-gradient(circle at 20% 20%, rgba(var(--theme-rgb-brand), .18), transparent 34%), radial-gradient(circle at 78% 16%, rgba(var(--theme-rgb-brand-soft), .22), transparent 30%), rgba(var(--theme-rgb-hero-bg), .62);
    backdrop-filter: blur(8px);
}

.sc-cookie-banner {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 9999;
    width: min(92vw, 520px);
    transform: translate(-50%, -50%);
    padding: 2.25rem;
    border: 1px solid var(--theme-border);
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(var(--theme-rgb-surface), .98), rgba(var(--theme-rgb-surface-soft), .96));
    box-shadow: 0 28px 70px rgba(var(--theme-rgb-hero-bg), .24);
    color: var(--theme-text);
    text-align: center;
}

.sc-cookie-banner__icon {
    display: grid;
    width: 58px;
    height: 58px;
    margin: 0 auto 1rem;
    place-items: center;
    border: 1px solid var(--theme-feature-icon-border);
    border-radius: 18px;
    background: linear-gradient( 135deg, var(--theme-feature-icon-bg-start), var(--theme-feature-icon-bg-end) );
    color: var(--theme-feature-icon);
    font-size: 1.6rem;
    font-weight: 900;
    box-shadow: 0 14px 30px rgba(var(--theme-rgb-brand), .15);
}

.sc-cookie-banner__eyebrow,
.sc-privacy-modal__eyebrow {
    margin: 0 0 .55rem;
    color: var(--theme-brand-strong);
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.sc-cookie-banner__title {
    margin: 0 0 .85rem;
    color: var(--theme-text-heading);
    font-size: clamp(1.45rem, 2vw, 1.9rem);
    font-weight: 900;
    line-height: 1.1;
}

.sc-cookie-banner__text {
    max-width: 420px;
    margin: 0 auto 1rem;
    color: var(--theme-text);
    font-size: .98rem;
    line-height: 1.65;
}

.sc-cookie-banner__notice {
    margin: 0 0 1rem;
    padding: .95rem 1rem;
    border: 1px solid rgba(var(--theme-rgb-brand), .22);
    border-radius: 16px;
    background: rgba(var(--theme-rgb-brand), .08);
    color: var(--theme-text);
    font-size: .9rem;
    line-height: 1.55;
}

    .sc-cookie-banner__notice strong {
        display: block;
        color: var(--theme-text-strong);
        font-weight: 900;
    }

.sc-cookie-banner__privacy-link {
    display: inline-flex;
    margin-bottom: 1.25rem;
    color: var(--theme-brand-strong);
    font-size: .9rem;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 4px;
}

    .sc-cookie-banner__privacy-link:hover {
        color: var(--theme-brand-hover);
    }

.sc-cookie-banner__actions,
.sc-privacy-modal__actions {
    display: flex;
    gap: .75rem;
}

.sc-cookie-banner__actions {
    flex-direction: column;
}

.sc-cookie-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: .88rem 1.25rem;
    font-size: .95rem;
    font-weight: 900;
    line-height: 1.2;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}

    .sc-cookie-btn:hover {
        transform: translateY(-1px);
    }

.sc-cookie-btn--primary {
    border: 1px solid var(--theme-button-brand-light-border);
    background: var(--theme-button-brand-light-bg);
    color: var(--theme-brand-contrast);
}

    .sc-cookie-btn--primary:hover {
        border-color: var(--theme-button-brand-light-border-hover);
        background: var(--theme-button-brand-light-bg-hover);
        color: var(--theme-action);
    }

.sc-cookie-btn--secondary {
    border: 1px solid var(--theme-border);
    background: rgba(var(--theme-rgb-surface), .74);
    color: var(--theme-text-muted);
}

    .sc-cookie-btn--secondary:hover {
        border-color: rgba(var(--theme-rgb-brand), .32);
        color: var(--theme-text-strong);
        background: rgba(var(--theme-rgb-brand), .07);
    }

.sc-cookie-banner__small {
    margin: 1rem 0 0;
    color: var(--theme-text-muted);
    font-size: .78rem;
    line-height: 1.5;
}

.sc-cookie-banner__small--muted {
    display: none;
    margin-top: .55rem;
}

.sc-privacy-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10001;
    overflow-y: auto;
    padding: 1.5rem;
}

.sc-privacy-modal__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(var(--theme-rgb-hero-bg), .56);
    backdrop-filter: blur(6px);
}

.sc-privacy-modal__panel {
    position: relative;
    z-index: 1;
    width: min(100%, 760px);
    margin: 2rem auto;
    padding: 2.25rem;
    border: 1px solid var(--theme-border);
    border-radius: 28px;
    background: var(--theme-surface);
    color: var(--theme-text);
    box-shadow: 0 28px 70px rgba(var(--theme-rgb-hero-bg), .25);
}

.sc-privacy-modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid var(--theme-border);
    border-radius: 50%;
    background: var(--theme-surface-raised);
    color: var(--theme-text-muted);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    transition: background .18s ease, color .18s ease, border-color .18s ease;
}

    .sc-privacy-modal__close:hover {
        border-color: rgba(var(--theme-rgb-brand), .32);
        background: rgba(var(--theme-rgb-brand), .08);
        color: var(--theme-text-strong);
    }

.sc-privacy-modal__title {
    margin: 0 2.5rem .35rem 0;
    color: var(--theme-text-heading);
    font-size: clamp(1.55rem, 2.5vw, 2.15rem);
    font-weight: 900;
    line-height: 1.15;
}

.sc-privacy-modal__date {
    margin: 0 0 1.45rem;
    color: var(--theme-text-muted);
    font-size: .88rem;
}

.sc-privacy-modal__panel p,
.sc-privacy-modal__panel li {
    color: var(--theme-text);
    line-height: 1.7;
}

.sc-privacy-modal__panel h6 {
    margin-top: 1.35rem;
    color: var(--theme-text-heading);
    font-size: 1rem;
    font-weight: 900;
}

.sc-privacy-modal__panel ul {
    margin-bottom: 0;
    padding-left: 1.25rem;
}

.sc-privacy-modal__actions {
    margin-top: 1.8rem;
    flex-wrap: wrap;
}

@media (max-width: 576px) {
    .sc-cookie-banner {
        padding: 1.45rem;
        border-radius: 22px;
    }

    .sc-cookie-banner__icon {
        width: 50px;
        height: 50px;
        border-radius: 16px;
        font-size: 1.35rem;
    }

    .sc-privacy-modal {
        padding: .75rem;
    }

    .sc-privacy-modal__panel {
        margin: 1rem auto;
        padding: 1.45rem;
        border-radius: 22px;
    }

    .sc-privacy-modal__actions {
        flex-direction: column;
    }

    .sc-cookie-btn {
        width: 100%;
    }
}
