/* Shared homepage styles - mobile first, design-agnostic.
   Per-layout personality lives in home-{layout}.css. Brand colours come
   from the school's customization (--brand-* variables set in home.html). */

.home-page {
    font-family: var(--brand-font, system-ui, sans-serif);
    color: var(--brand-text, #212529);
    background: var(--brand-bg, #ffffff);
    overflow-x: hidden;
}

.home-page .hs-section {
    padding: 3.5rem 0;
}

.home-page .hs-container {
    width: min(1140px, 92%);
    margin: 0 auto;
}

.home-page .hs-eyebrow {
    display: inline-block;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--brand-primary);
    margin-bottom: .6rem;
}

.home-page .hs-title {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: .75rem;
}

.home-page .hs-sub {
    font-size: 1.05rem;
    opacity: .75;
    max-width: 46rem;
}

.home-page .hs-btn {
    display: inline-block;
    padding: .7rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.home-page .hs-btn:hover { transform: translateY(-2px); }
.home-page .hs-btn--primary {
    background: var(--brand-primary);
    color: #fff;
    box-shadow: 0 8px 20px color-mix(in srgb, var(--brand-primary) 35%, transparent);
}
.home-page .hs-btn--ghost {
    border: 2px solid rgba(255, 255, 255, .65);
    color: #fff;
}

/* ---------- hero ---------- */
.home-hero {
    position: relative;
    color: #fff;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    overflow: hidden;
}

.home-hero .carousel-item {
    min-height: clamp(420px, 62vh, 620px);
    background-size: cover;
    background-position: center;
}

.home-hero .carousel-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(9, 16, 32, .55), rgba(9, 16, 32, .35));
}

.home-hero .hs-hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: clamp(420px, 62vh, 620px);
    padding: 4rem 0;
}

.home-hero .hs-hero-logo {
    max-height: 72px;
    margin-bottom: 1.25rem;
}

.home-hero h1 {
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.08;
    margin-bottom: 1rem;
    text-shadow: 0 2px 14px rgba(0, 0, 0, .25);
}

.home-hero p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    max-width: 40rem;
    opacity: .92;
}

.home-hero .hs-hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.75rem;
}

/* ---------- stats ---------- */
.home-stats {
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.home-stats .hs-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    text-align: center;
}

.home-stats .hs-stat-value {
    font-size: clamp(1.7rem, 4vw, 2.6rem);
    font-weight: 800;
    color: var(--brand-primary);
    line-height: 1.1;
}

.home-stats .hs-stat-label {
    font-size: .9rem;
    opacity: .7;
    margin-top: .25rem;
}

/* ---------- quick links ---------- */
.home-quicklinks .hs-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.home-quicklinks .hs-card {
    display: block;
    padding: 1.5rem;
    border-radius: 1rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .07);
    text-decoration: none;
    color: inherit;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.home-quicklinks .hs-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--brand-primary) 45%, transparent);
    box-shadow: 0 14px 30px rgba(15, 23, 42, .08);
}

.home-quicklinks .hs-card i {
    font-size: 1.7rem;
    color: var(--brand-primary);
}

.home-quicklinks .hs-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: .8rem 0 .35rem;
}

.home-quicklinks .hs-card p {
    font-size: .9rem;
    opacity: .7;
    margin: 0;
}

/* ---------- welcome / about ---------- */
.home-welcome .hs-split {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 2.5rem;
    align-items: center;
}

@media (max-width: 860px) {
    .home-welcome .hs-split { grid-template-columns: 1fr; }
}

.home-welcome .hs-panel {
    padding: 1.75rem;
    border-radius: 1rem;
    background: color-mix(in srgb, var(--brand-primary) 6%, #fff);
    border: 1px solid color-mix(in srgb, var(--brand-primary) 14%, transparent);
}

/* ---------- feature trio (excellence) ---------- */
.home-excellence .hs-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.home-excellence .hs-feature {
    padding: 1.6rem;
    border-radius: 1rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .07);
}

.home-excellence .hs-feature .hs-metric {
    display: inline-block;
    font-weight: 700;
    font-size: .85rem;
    color: var(--brand-accent);
    background: color-mix(in srgb, var(--brand-accent) 12%, #fff);
    padding: .25rem .7rem;
    border-radius: 999px;
    margin-bottom: .7rem;
}

/* ---------- programs ---------- */
.home-programs .hs-program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
}

.home-programs .hs-program {
    padding: 1.6rem;
    border-radius: 1rem;
    border-top: 4px solid var(--brand-primary);
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .05);
}

.home-programs .hs-program ul {
    padding-left: 1.1rem;
    margin: .6rem 0 0;
    font-size: .92rem;
    opacity: .8;
}

/* ---------- news ---------- */
.home-news .hs-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.home-news .hs-news-card {
    border-radius: 1rem;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .07);
    display: flex;
    flex-direction: column;
}

.home-news .hs-news-card img {
    height: 170px;
    object-fit: cover;
    width: 100%;
}

.home-news .hs-news-body {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    flex: 1;
}

.home-news .hs-badge {
    align-self: flex-start;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--brand-primary);
    background: color-mix(in srgb, var(--brand-primary) 10%, #fff);
    padding: .2rem .6rem;
    border-radius: 999px;
}

/* ---------- gallery ---------- */
.home-gallery .hs-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: .75rem;
}

.home-gallery .hs-gallery-grid a {
    display: block;
    aspect-ratio: 4 / 3;
    border-radius: .8rem;
    overflow: hidden;
    background: #eef2f7;
}

.home-gallery .hs-gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

.home-gallery .hs-gallery-grid a:hover img { transform: scale(1.06); }

/* ---------- widgets ---------- */
.home-widgets .home-widget {
    margin: 1.25rem 0;
}

.home-widgets .home-widget--full_width {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.home-widgets .home-widget--two_column .widget-body { columns: 2; }
.home-widgets .home-widget--three_column .widget-body { columns: 3; }
.home-widgets .home-widget--four_column .widget-body { columns: 4; }

@media (max-width: 900px) {
    .home-widgets .home-widget--three_column .widget-body,
    .home-widgets .home-widget--four_column .widget-body { columns: 2; }
}

@media (max-width: 600px) {
    .home-widgets .home-widget--two_column .widget-body,
    .home-widgets .home-widget--three_column .widget-body,
    .home-widgets .home-widget--four_column .widget-body { columns: 1; }
}

.home-widget .widget-shell {
    border-radius: 1rem;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .07);
}

.home-widget .widget-shell h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: .75rem;
}

/* ---------- CTA ---------- */
.home-cta {
    background: linear-gradient(120deg, var(--brand-primary), var(--brand-secondary));
    color: #fff;
}

.home-cta .hs-cta-box {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    justify-content: space-between;
}

.home-cta .hs-contact-line {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .95rem;
    opacity: .95;
}

/* ---------- scroll reveal ---------- */
.home-page .hs-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .55s ease, transform .55s ease;
}

.home-page .hs-reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .home-page .hs-reveal { opacity: 1; transform: none; transition: none; }
}
