/* St Claude Secondary School – brand theme (logo colors) */

:root {
    --sc-navy: #0c2340;
    --sc-navy-light: #15345c;
    --sc-maroon: #8b1a2b;
    --sc-green: #1f5c3a;
    --sc-gold: #c9a227;
    --sc-gold-soft: #e8d49a;
    --sc-cream: #f7f5f0;
    --sc-white: #ffffff;
    --sc-text: #1e2430;
    --sc-text-muted: #5a6472;
    --sc-border: #e2ddd3;
    --sc-shadow: 0 12px 40px rgba(12, 35, 64, 0.08);
    --sc-radius: 8px;
    --sc-radius-lg: 14px;
    --bs-primary: #0c2340;
    --bs-primary-rgb: 12, 35, 64;
    --bs-link-color: #0c2340;
    --bs-link-hover-color: #8b1a2b;
}

body {
    font-family: "Source Sans 3", "Segoe UI", sans-serif;
    color: var(--sc-text);
    background: var(--sc-white);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: "Libre Baskerville", Georgia, serif;
    color: var(--sc-navy);
    letter-spacing: -0.02em;
}

/* Top bar */
.sc-topbar {
    background: var(--sc-navy);
    border-bottom: 3px solid var(--sc-gold);
    font-size: 0.88rem;
}

.sc-topbar a,
.sc-topbar p,
.sc-topbar span {
    color: rgba(255, 255, 255, 0.92);
}

.sc-topbar-item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: rgba(255, 255, 255, 0.92) !important;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s;
}

.sc-topbar-item:hover {
    color: var(--sc-gold-soft) !important;
    text-decoration: none;
}

.sc-topbar-item img {
    height: 17px;
    width: auto;
    opacity: 0.95;
    flex-shrink: 0;
}

.sc-topbar-location {
    white-space: normal;
}

.sc-topbar-social a {
    display: inline-flex;
    line-height: 0;
}

.sc-topbar-social img {
    height: 24px;
    width: auto;
    opacity: 0.95;
    transition: opacity 0.2s, transform 0.2s;
}

.sc-topbar-social a:hover img {
    opacity: 1;
    transform: translateY(-1px);
}

@media (max-width: 767px) {
    .sc-topbar {
        font-size: 0.82rem;
    }

    .sc-topbar-contacts {
        width: 100%;
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.45rem !important;
    }

    .sc-topbar-item {
        white-space: normal;
    }

    .sc-topbar-social {
        width: 100%;
        justify-content: flex-start;
        padding-top: 0.15rem;
    }
}

/* Main navigation */
.sc-navbar {
    background: var(--sc-white);
    border-bottom: 1px solid var(--sc-border);
    box-shadow: 0 2px 12px rgba(12, 35, 64, 0.04);
}

.sc-navbar .navbar-brand img {
    height: 72px;
    width: auto;
}

.sc-navbar .nav-link {
    color: var(--sc-text) !important;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.5rem 0.85rem !important;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}

.sc-navbar .nav-link:hover,
.sc-navbar .nav-link.active {
    color: var(--sc-navy) !important;
    background: var(--sc-cream);
}

.sc-navbar .nav-link.sc-nav-home {
    color: var(--sc-maroon) !important;
}

.sc-btn {
    display: inline-block;
    font-weight: 600;
    border-radius: var(--sc-radius);
    padding: 0.65rem 1.35rem;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
    border: 2px solid transparent;
}

.sc-btn:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

.sc-btn-primary {
    background: var(--sc-navy);
    color: var(--sc-white) !important;
    border-color: var(--sc-navy);
}

.sc-btn-primary:hover {
    background: var(--sc-navy-light);
    color: var(--sc-white) !important;
    box-shadow: var(--sc-shadow);
}

.sc-btn-outline {
    background: transparent;
    color: var(--sc-navy) !important;
    border-color: var(--sc-navy);
}

.sc-btn-outline:hover {
    background: var(--sc-cream);
    color: var(--sc-navy) !important;
}

.sc-btn-gold {
    background: var(--sc-gold);
    color: var(--sc-navy) !important;
    border-color: var(--sc-gold);
}

.sc-btn-white {
    background: var(--sc-white);
    color: var(--sc-navy) !important;
}

.btn-primary {
    background-color: var(--sc-navy);
    border-color: var(--sc-navy);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--sc-navy-light);
    border-color: var(--sc-navy-light);
}

.btn-outline-primary {
    color: var(--sc-navy);
    border-color: var(--sc-navy);
}

.btn-outline-primary:hover {
    background: var(--sc-cream);
    color: var(--sc-navy);
    border-color: var(--sc-navy);
}

/* Page hero (inner pages) */
.sc-page-hero {
    background: var(--sc-navy);
    position: relative;
    overflow: hidden;
    min-height: 38vh;
    display: flex;
    align-items: center;
}

.sc-page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(139, 26, 43, 0.15) 0%, transparent 40%),
        linear-gradient(225deg, rgba(31, 92, 58, 0.2) 0%, transparent 45%);
    pointer-events: none;
}

.sc-page-hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--sc-navy) 0%, var(--sc-maroon) 25%, var(--sc-green) 50%, var(--sc-gold) 75%, var(--sc-navy) 100%);
}

.sc-page-hero .sc-hero-inner {
    position: relative;
    z-index: 1;
}

.sc-page-hero h1,
.sc-page-hero .display-3 {
    color: var(--sc-white) !important;
    font-weight: 600;
}

.sc-page-hero .sc-hero-subtitle {
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.2rem;
    max-width: 42rem;
    margin: 0 auto;
}

/* Homepage hero — split layout: text left, slider right */
.sc-home-hero {
    background: var(--sc-cream);
    position: relative;
    overflow: hidden;
}

.sc-home-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, rgba(12, 35, 64, 0.04) 0%, rgba(31, 92, 58, 0.04) 100%);
    pointer-events: none;
}

.sc-home-hero .sc-hero-content {
    position: relative;
    z-index: 1;
}

.sc-hero-copy {
    min-height: 340px;
}

.sc-hero-text-panels {
    position: relative;
    min-height: 280px;
}

.sc-hero-text-panel {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.45s ease, transform 0.45s ease, visibility 0.45s;
}

.sc-hero-text-panel.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sc-hero-text-panel h1,
.sc-hero-text-panel .display-5 {
    color: var(--sc-navy) !important;
    font-weight: 600;
    line-height: 1.2;
}

.sc-hero-slider-col {
    position: relative;
}

.sc-hero-slider {
    border-radius: var(--sc-radius-lg);
    overflow: hidden;
    box-shadow: var(--sc-shadow);
    border: 4px solid var(--sc-white);
    background: var(--sc-navy);
}

.sc-hero-slider .carousel-inner {
    height: 100%;
}

.sc-hero-slider.carousel-fade .carousel-item {
    height: 100%;
    opacity: 0;
    transition-duration: 0.7s;
}

.sc-hero-slider.carousel-fade .carousel-item.active {
    opacity: 1;
}

.sc-hero-slider .carousel-item img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.sc-hero-slider .carousel-indicators {
    margin-bottom: 0.85rem;
}

.sc-hero-slider .carousel-indicators [data-bs-target] {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: var(--sc-gold);
    opacity: 0.5;
    border: none;
}

.sc-hero-slider .carousel-indicators .active {
    opacity: 1;
}

.sc-hero-slider .carousel-control-prev,
.sc-hero-slider .carousel-control-next {
    width: 14%;
    opacity: 0.85;
}

.sc-home-hero .sc-hero-divider {
    border: none;
    border-top: 3px solid var(--sc-gold);
    margin: 0;
    opacity: 1;
}

.sc-motto {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--sc-maroon);
    margin-bottom: 0.75rem;
}

@media (max-width: 991px) {
    .sc-home-hero::before {
        width: 100%;
        height: 45%;
    }

    .sc-hero-copy {
        min-height: auto;
    }

    .sc-hero-text-panels {
        min-height: auto;
    }

    .sc-hero-text-panel {
        position: relative;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
    }

    .sc-hero-text-panel.active {
        display: block;
    }

    .sc-hero-slider .carousel-item img {
        height: 280px;
    }
}

/* Sections */
.sc-section {
    padding: 4rem 0;
}

.sc-section-alt {
    background: var(--sc-cream);
}

.sc-section-white {
    background: var(--sc-white);
}

.sc-eyebrow {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--sc-gold);
    margin-bottom: 0.5rem;
}

.sc-section-title {
    font-family: "Libre Baskerville", Georgia, serif;
    color: var(--sc-navy);
    font-weight: 600;
    margin-bottom: 1rem;
}

.sc-section-text {
    color: var(--sc-text-muted);
    font-size: 1.05rem;
}

.sc-link-arrow {
    color: var(--sc-navy);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.sc-link-arrow:hover {
    color: var(--sc-maroon);
}

/* Cards & images */
.sc-card {
    background: var(--sc-white);
    border: 1px solid var(--sc-border);
    border-radius: var(--sc-radius-lg);
    overflow: hidden;
    box-shadow: var(--sc-shadow);
    height: 100%;
    transition: transform 0.2s, box-shadow 0.2s;
}

.sc-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 48px rgba(12, 35, 64, 0.12);
}

.sc-card img {
    width: 100%;
    object-fit: cover;
}

.sc-img-rounded {
    border-radius: var(--sc-radius-lg);
    box-shadow: var(--sc-shadow);
}

.sc-img-grid img {
    border-radius: var(--sc-radius);
    border: 1px solid var(--sc-border);
}

/* CTA band */
.sc-cta {
    background: var(--sc-navy);
    border-radius: var(--sc-radius-lg);
    position: relative;
    overflow: hidden;
}

.sc-cta::before {
    content: "";
    position: absolute;
    top: -40%;
    right: -10%;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(201, 162, 39, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.sc-cta h2,
.sc-cta p {
    color: var(--sc-white) !important;
    position: relative;
    z-index: 1;
}

/* News */
.sc-news-filters .sc-filter-btn {
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border-radius: var(--sc-radius);
    border: 1px solid var(--sc-border);
    color: var(--sc-text);
    background: var(--sc-white);
    margin-right: 0.5rem;
    white-space: nowrap;
}

.sc-news-filters .sc-filter-btn.active,
.sc-news-filters .sc-filter-btn:hover {
    background: var(--sc-navy);
    color: var(--sc-white) !important;
    border-color: var(--sc-navy);
}

.sc-news-card .sc-news-date {
    color: var(--sc-maroon);
    font-weight: 600;
    font-size: 0.95rem;
}

.sc-featured-news {
    background: var(--sc-white);
    border: 1px solid var(--sc-border);
    border-radius: var(--sc-radius-lg);
    box-shadow: var(--sc-shadow);
    overflow: hidden;
}

/* Footer */
.sc-footer {
    background: var(--sc-navy);
    color: rgba(255, 255, 255, 0.85);
    border-top: 4px solid var(--sc-gold);
}

.sc-footer h3,
.sc-footer .sc-footer-heading {
    color: var(--sc-white);
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: 1.15rem;
    margin-bottom: 1rem;
}

.sc-footer a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    font-weight: 500;
}

.sc-footer a:hover {
    color: var(--sc-gold-soft);
}

.sc-footer .sc-footer-contact {
    color: rgba(255, 255, 255, 0.78);
}

.sc-footer hr {
    border-color: rgba(255, 255, 255, 0.15);
}

.sc-footer-bottom {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Utility overrides for legacy inline styles */
.sc-text-navy { color: var(--sc-navy) !important; }
.sc-text-muted { color: var(--sc-text-muted) !important; }
.sc-bg-cream { background: var(--sc-cream) !important; }

/* Remove awkward list-item section labels when class applied */
.sc-section-label {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}

@media (max-width: 991px) {
    .sc-navbar .navbar-brand img {
        height: 58px;
    }

    .sc-section {
        padding: 2.5rem 0;
    }
}
