@import url("./theme.css");

/* ==========================================================
   SANTACRUZ — LIFE AT SANTACRUZ
   Scoped to .slc-page to avoid affecting Home, About, or Careers.
   ========================================================== */

html:has(.slc-page) {
    scroll-behavior: smooth;
}

body:has(.slc-page) {
    margin: 0;
    overflow-x: hidden;
    background: var(--theme-page-bg);
    color: var(--theme-text);
    font-family: var(--theme-font-sans);
}

    body:has(.slc-page) main,
    body:has(.slc-page) main.pb-3 {
        width: 100%;
        max-width: none;
        margin: 0 !important;
        padding: 0 !important;
    }

    body:has(.slc-page) .container:has(.slc-page) {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

.slc-page,
.slc-page * {
    box-sizing: border-box;
}

.slc-page {
    background: radial-gradient(circle at 97% 15%, rgba(var(--theme-rgb-brand), 0.09), transparent 24%), radial-gradient(circle at 3% 70%, rgba(var(--theme-rgb-action), 0.07), transparent 27%), var(--theme-page-bg);
}

    .slc-page a {
        text-decoration: none;
    }

.slc-shell {
    width: min(100%, 1360px);
    margin-inline: auto;
    padding-inline: clamp(1rem, 4vw, 4rem);
}

.slc-eyebrow {
    display: inline-block;
    margin: 0 0 0.95rem;
    color: var(--theme-brand-strong);
    font-size: 0.74rem;
    font-weight: 820;
    letter-spacing: 0.16em;
    line-height: 1;
    text-transform: uppercase;
}

.slc-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.72rem;
    min-height: 49px;
    padding: 0.82rem 1.18rem;
    border-radius: 10px;
    font-size: 0.93rem;
    font-weight: 760;
    line-height: 1;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

    .slc-button span {
        font-size: 1.2rem;
        transition: transform 180ms ease;
    }

    .slc-button:hover {
        text-decoration: none;
        transform: translateY(-2px);
    }

        .slc-button:hover span {
            transform: translateX(3px);
        }

.slc-button--dark {
    color: var(--theme-surface) !important;
    background: var(--theme-text-strong);
    box-shadow: 0 8px 20px rgba(var(--theme-rgb-hero-bg), 0.16);
}

    .slc-button--dark:hover {
        background: var(--theme-text);
    }

.slc-button--teal {
    border: 1px solid var(--theme-surface);
    color: var(--theme-hero-bg) !important;
    background: var(--theme-surface);
}

    .slc-button--teal:hover {
        color: var(--theme-surface) !important;
        background: rgba(var(--theme-rgb-surface), .12);
    }

/* Hero feature image */

.slc-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(3.2rem, 5.6vw, 5rem) 0 clamp(2.2rem, 4.8vw, 3.8rem);
    background: radial-gradient(circle at 87% 18%, rgba(var(--theme-rgb-brand), 0.12), transparent 23%), radial-gradient(circle at 4% 90%, rgba(var(--theme-rgb-action), 0.08), transparent 30%), var(--theme-page-bg);
}

    .slc-hero::before {
        position: absolute;
        top: 10%;
        right: -8%;
        width: 32%;
        height: 76%;
        content: "";
        opacity: 0.34;
        background-image: radial-gradient(circle, rgba(var(--theme-rgb-brand), 0.32) 0 2px, transparent 2.8px);
        background-size: 15px 15px;
        mask-image: linear-gradient(to left, var(--theme-text-static-dark), transparent);
        pointer-events: none;
    }

.slc-hero__layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(420px, 0.82fr);
    gap: clamp(2.2rem, 6vw, 5.2rem);
    align-items: center;
}

.slc-hero__copy {
    max-width: 610px;
}

.slc-hero h1 {
    margin: 0;
    color: var(--theme-text-strong) !important;
    -webkit-text-fill-color: var(--theme-text-strong) !important;
    font-size: clamp(2.7rem, 4.8vw, 4.75rem);
    font-weight: 790;
    letter-spacing: -0.077em;
    line-height: 0.98;
}

    .slc-hero h1 span {
        color: var(--theme-brand-strong) !important;
        -webkit-text-fill-color: var(--theme-brand-strong) !important;
    }

.slc-hero__copy > p:last-of-type {
    max-width: 560px;
    margin: 1.25rem 0 1.55rem;
    color: var(--theme-text) !important;
    -webkit-text-fill-color: var(--theme-text) !important;
    font-size: clamp(1rem, 1.32vw, 1.12rem);
    font-weight: 540;
    line-height: 1.65;
}

.slc-hero__feature {
    position: relative;
    display: grid;
    gap: 0.9rem;
}

.slc-hero-feature-card {
    position: relative;
    min-height: clamp(260px, 28vw, 385px);
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(var(--theme-rgb-brand), 0.14);
    border-radius: 26px;
    background: var(--theme-border-muted);
    box-shadow: var(--shadow-page-card);
}

    .slc-hero-feature-card::after {
        position: absolute;
        inset: 0;
        content: "";
        background: linear-gradient(180deg, transparent 35%, rgba(var(--theme-rgb-hero-bg), 0.62));
        pointer-events: none;
    }

    .slc-hero-feature-card img {
        display: block;
        width: 100%;
        height: 100%;
        min-height: inherit;
        object-fit: cover;
        object-position: center;
    }

    .slc-hero-feature-card figcaption {
        position: absolute;
        right: 1.15rem;
        bottom: 1.15rem;
        left: 1.15rem;
        z-index: 1;
        display: grid;
        gap: 0.3rem;
        padding: 1rem 1.05rem;
        border: 1px solid rgba(var(--theme-rgb-surface), 0.24);
        border-radius: 18px;
        background: rgba(var(--theme-rgb-hero-bg), 0.64);
        backdrop-filter: blur(10px);
    }

        .slc-hero-feature-card figcaption span {
            color: var(--theme-brand-soft);
            font-size: 0.7rem;
            font-weight: 850;
            letter-spacing: 0.14em;
            text-transform: uppercase;
        }

        .slc-hero-feature-card figcaption strong {
            color: var(--theme-surface);
            font-size: clamp(1rem, 1.4vw, 1.18rem);
            font-weight: 780;
            line-height: 1.25;
        }

.slc-hero-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
}

    .slc-hero-highlights span {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 42px;
        padding: 0.7rem 0.85rem;
        border: 1px solid var(--theme-border);
        border-radius: 999px;
        background: rgba(var(--theme-rgb-surface), 0.74);
        color: var(--theme-text-strong);
        font-size: 0.78rem;
        font-weight: 760;
        line-height: 1.15;
        text-align: center;
        box-shadow: 0 10px 22px rgba(var(--theme-rgb-text-strong), 0.045);
    }

/* Culture principles */

.slc-traditions {
    padding: 0 0 clamp(4.4rem, 7vw, 6.5rem);
}

.slc-traditions__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid var(--theme-border);
    border-radius: 18px;
    background: var(--theme-surface);
    box-shadow: var(--shadow-section-card);
}

.slc-traditions article {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    padding: 1.5rem 1.4rem;
    border-right: 1px solid var(--theme-border);
}

    .slc-traditions article:last-child {
        border-right: 0;
    }

    .slc-traditions article > span {
        display: grid;
        flex: 0 0 auto;
        width: 35px;
        height: 35px;
        place-items: center;
        border-radius: 50%;
        font-size: 0.72rem;
        font-weight: 850;
    }

.slc-traditions__grid article:nth-child(1) > span { color: var(--theme-icon-teal);   background: var(--theme-icon-teal-bg); }
.slc-traditions__grid article:nth-child(2) > span { color: var(--theme-icon-green);  background: var(--theme-icon-green-bg); }
.slc-traditions__grid article:nth-child(3) > span { color: var(--theme-icon-violet); background: var(--theme-icon-violet-bg); }

.slc-traditions strong,
.slc-traditions p {
    display: block;
}

.slc-traditions strong {
    color: var(--theme-text-strong) !important;
    font-size: 1.08rem;
    font-weight: 760;
    line-height: 1.28;
}

.slc-traditions p {
    margin: 0.35rem 0 0;
    color: var(--theme-text-muted) !important;
    font-size: 0.96rem;
    line-height: 1.55;
}

/* Event stories */

.slc-stories {
    padding: 0 0 clamp(4.5rem, 8vw, 7rem);
}

.slc-story {
    display: grid;
    grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1fr);
    gap: clamp(1.4rem, 3.5vw, 3.2rem);
    align-items: center;
    padding: clamp(1rem, 2vw, 1.4rem);
    border: 1px solid var(--theme-border);
    border-radius: 22px;
    background: rgba(var(--theme-rgb-surface), 0.9);
    box-shadow: var(--shadow-section-card);
}

    .slc-story + .slc-story {
        margin-top: clamp(1rem, 2.2vw, 1.45rem);
    }

.slc-story--reverse .slc-story__media {
    order: 2;
}

.slc-story--reverse .slc-story__copy {
    order: 1;
}

.slc-story--soft {
    background: radial-gradient(circle at 92% 12%, rgba(var(--theme-rgb-brand), 0.12), transparent 26%), var(--theme-surface-soft);
}

.slc-story__media {
    position: relative;
    width: 100%;
    min-width: 0;
    height: clamp(280px, 31vw, 395px);
    min-height: 0;
    overflow: hidden;
    border-radius: 18px;
    background: var(--theme-border-muted);
}

.slc-photo-set {
    display: grid;
    grid-template-columns: minmax(0, 1.36fr) minmax(96px, 0.52fr);
    grid-template-rows: minmax(0, 1fr);
    gap: 0.55rem;
    padding: 0.55rem;
    border: 1px solid rgba(var(--theme-rgb-brand), 0.12);
    background: linear-gradient(135deg, rgba(var(--theme-rgb-surface), 0.9), rgba(var(--theme-rgb-surface-soft), 0.62));
}

    .slc-photo-set figure {
        position: relative;
        min-width: 0;
        min-height: 0;
        margin: 0;
        overflow: hidden;
        border-radius: 14px;
        background: var(--theme-border-muted);
    }

.slc-photo-set__main,
.slc-photo-set__secondary {
    min-width: 0;
    min-height: 0;
}

.slc-photo-set__thumbs {
    display: grid;
    min-width: 0;
    min-height: 0;
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
}

    .slc-photo-set__thumbs figure {
        min-width: 0;
        min-height: 0;
    }

/*
   Desktop frame normalization:
   Keep every inner frame constrained to the fixed media-card height.
   This fixes the lower thumbnails spilling beyond the visible card.
*/
@media (min-width: 768px) {
    .slc-photo-set > .slc-photo-set__main,
    .slc-photo-set > .slc-photo-set__secondary,
    .slc-photo-set > .slc-photo-set__thumbs {
        height: 100%;
    }

    .slc-photo-set:not(.slc-photo-set--outing) .slc-photo-set__thumbs {
        overflow: hidden;
    }
}

/* Outing-specific photo set: one main activity image + four supporting moments. */
.slc-photo-set--outing {
    grid-template-columns: minmax(0, 1.32fr) minmax(150px, 0.58fr);
}

    .slc-photo-set--outing .slc-photo-set__thumbs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: repeat(2, minmax(0, 1fr));
    }

.slc-photo-set__main--outing img {
    object-position: 46% 52%;
}


/* Christmas-specific photo set: one wide team photo + one portrait tree photo. */
.slc-photo-set--christmas {
    grid-template-columns: minmax(0, 1.5fr) minmax(180px, 0.58fr);
}

.slc-photo-set__main--christmas img {
    object-position: center 42%;
}

.slc-photo-set__secondary--christmas {
    min-height: 0;
}

    .slc-photo-set__secondary--christmas img {
        object-position: center;
    }

.slc-story__media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    object-position: center;
    transition: transform 600ms ease;
}

.slc-photo-set__thumbs img {
    min-height: 0;
}

.slc-story__copy {
    max-width: 600px;
    padding: clamp(0.1rem, 1vw, 0.45rem) 0;
}

.slc-story h2 {
    margin: 0;
    color: var(--theme-text-strong) !important;
    -webkit-text-fill-color: var(--theme-text-strong) !important;
    font-size: clamp(1.7rem, 2.8vw, 2.55rem);
    font-weight: 780;
    letter-spacing: -0.06em;
    line-height: 1.08;
}

.slc-story__copy > p {
    margin: 0.8rem 0 0;
    color: var(--theme-text) !important;
    -webkit-text-fill-color: var(--theme-text) !important;
    font-size: 0.97rem;
    line-height: 1.62;
}

.slc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1rem;
}

    .slc-tags span {
        display: inline-flex;
        align-items: center;
        min-height: 28px;
        padding: 0.38rem 0.62rem;
        border: 1px solid rgba(var(--theme-rgb-brand), 0.18);
        border-radius: 999px;
        color: var(--theme-brand-strong);
        background: var(--theme-surface-soft);
        font-size: 0.74rem;
        font-weight: 740;
        line-height: 1;
    }

/* Dark event story */

.slc-story--dark {
    overflow: hidden;
    border-color: var(--theme-border);
    color: var(--theme-text);
    background: var(--theme-surface-soft);
    box-shadow: 0 16px 38px rgba(var(--theme-rgb-text-strong), .07);
}

    .slc-story--dark .slc-story__media img {
        filter: saturate(0.9) brightness(0.94);
    }

.slc-mini-feature {
    margin-top: 0.9rem;
    padding-top: 0.9rem;
    border-top: 1px solid var(--theme-border);
}

    .slc-mini-feature h3 {
        margin: 0;
        color: var(--theme-text-strong) !important;
        font-size: 1.05rem;
        font-weight: 760;
        letter-spacing: -0.03em;
    }

    .slc-mini-feature p {
        margin: 0.35rem 0 0;
        color: var(--theme-text-muted) !important;
        font-size: 0.86rem;
        line-height: 1.5;
    }

/* CTA */

.slc-cta {
    padding: clamp(1.5rem, 3vw, 2.5rem) 0 clamp(4.5rem, 8vw, 6rem);
}

.slc-cta__panel {
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    align-items: center;
    overflow: hidden;
    padding: clamp(2rem, 4vw, 3rem);
    border: 1px solid rgba(var(--theme-rgb-brand), 0.20);
    border-radius: 22px;
    color: var(--theme-surface);
    background: linear-gradient(160deg, var(--theme-hero-bg) 0%, var(--theme-hero-bg-strong) 100%);
    box-shadow: 0 14px 30px rgba(var(--theme-rgb-hero-bg), 0.16);
}

    .slc-cta__panel::after {
        position: absolute;
        right: -10%;
        bottom: -80%;
        width: 55%;
        aspect-ratio: 1;
        content: "";
        border: 1px solid rgba(var(--theme-rgb-brand-soft), 0.18);
        border-radius: 50%;
        pointer-events: none;
    }

    .slc-cta__panel > * {
        position: relative;
        z-index: 1;
    }

.slc-cta .slc-eyebrow {
    color: var(--theme-brand-soft) !important;
    -webkit-text-fill-color: var(--theme-brand-soft) !important;
}

.slc-cta h2 {
    margin: 0;
    color: var(--theme-text-inverse) !important;
    -webkit-text-fill-color: var(--theme-text-inverse) !important;
    font-size: clamp(1.85rem, 3.2vw, 2.85rem);
    font-weight: 780;
    letter-spacing: -0.06em;
    line-height: 1.08;
}

.slc-cta p:last-of-type {
    max-width: 640px;
    margin: 0.9rem 0 0;
    color: rgba(var(--theme-rgb-surface-soft), 0.82) !important;
    -webkit-text-fill-color: rgba(var(--theme-rgb-surface-soft), 0.82) !important;
    font-size: 0.96rem;
    line-height: 1.65;
}

/* Scroll reveal */

/* Responsive */

@media (max-width: 991.98px) {
    .slc-hero__layout,
    .slc-story {
        grid-template-columns: 1fr;
    }

    .slc-hero__copy,
    .slc-hero__feature,
    .slc-story__copy {
        max-width: 700px;
    }

    .slc-story--reverse .slc-story__media,
    .slc-story--reverse .slc-story__copy {
        order: initial;
    }
}

@media (max-width: 767.98px) {
    .slc-shell {
        width: min(100%, 1240px);
    }

    .slc-hero {
        padding-top: 3.7rem;
    }

        .slc-hero h1 {
            font-size: clamp(2.7rem, 12vw, 4.35rem);
        }

    .slc-hero-feature-card {
        min-height: 280px;
    }

    .slc-hero-highlights {
        grid-template-columns: 1fr;
    }

    .slc-photo-set {
        grid-template-columns: 1fr;
    }

    .slc-photo-set__thumbs {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: 92px;
    }

    .slc-photo-set--outing .slc-photo-set__thumbs {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: 92px;
    }


    .slc-photo-set--christmas {
        grid-template-columns: minmax(0, 1.35fr) minmax(120px, 0.65fr);
        min-height: 280px;
    }

    .slc-traditions__grid {
        grid-template-columns: 1fr;
    }

    .slc-traditions article {
        border-right: 0;
        border-bottom: 1px solid var(--theme-border);
    }

        .slc-traditions article:last-child {
            border-bottom: 0;
        }

    .slc-story {
        gap: 1.5rem;
        padding: 1rem;
    }

    .slc-story__media {
        height: auto;
        min-height: 0;
    }

    .slc-photo-set__main {
        min-height: 240px;
    }

    .slc-cta__panel {
        flex-direction: column;
        align-items: flex-start;
    }

    .slc-cta .slc-button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .slc-page *,
    .slc-page *::before,
    .slc-page *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Smaller photos (thumbnails, and the Christmas secondary photo) zoom in
   smoothly on hover. Main/hero photos in each story are excluded — only the
   smaller supporting images get this treatment. Scaling the <img> (rather
   than resizing/repositioning the figure) keeps the motion perfectly smooth,
   since transform is what the browser can animate cheaply; the figure's own
   overflow:hidden clips the zoomed image to its frame. */
.slc-story__media .slc-photo-set__thumbs figure img,
.slc-story__media .slc-photo-set__secondary img {
    transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.slc-story__media .slc-photo-set__thumbs figure:hover img,
.slc-story__media .slc-photo-set__secondary:hover img {
    transform: scale(1.12);
}


@media (max-width: 520px) {
    .slc-photo-set--christmas {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .slc-photo-set__main--christmas {
        min-height: 230px;
    }

    .slc-photo-set__secondary--christmas {
        min-height: 260px;
    }
}
