/* =====================================================================
   Schools Connect: professional rebrand for the inner public pages
   Used by Features, Who it's for, About and Contact.

   Loaded AFTER marketing.css, so it only adds to / overrides it. Home
   keeps its own page-scoped styles and does not load this file; the
   nav treatment below is intentionally identical to Home's so the whole
   public site reads as one brand.

   Class names are prefixed (ph-, sx-, fx-) so they never collide with
   Bootstrap's .card / .badge / .alert.
   ===================================================================== */

:root {
    --teal:   #12857A;
    --indigo: #5B4BC4;
    --rose:   #C23B6B;
    --green:  #2F855A;
    --deep:   #0A2147;
}

/* ---------------------------------------------------------------------------  NAVIGATION (matches Home)  --------------------------------------------------------------------------- */
.site-nav {
    border-top: 4px solid var(--orange);
    border-bottom: 0;
    box-shadow: 0 4px 22px -8px rgba(14,42,87,.25);
}
.nav-inner { height: 76px; }
.site-nav .brand { font-size: 23px; }
.site-nav .brand img { height: 42px; }

.site-nav a.nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 28px;
    background: linear-gradient(180deg, #FFA73F 0%, #F28A1B 100%);
    color: var(--deep);
    font-family: var(--sans);
    font-weight: 800;
    font-size: 15px;
    letter-spacing: .05em;
    text-transform: uppercase;
    border: 0;
    border-radius: 10px;
    box-shadow: 0 10px 22px -8px rgba(242,138,27,.8), inset 0 -3px 0 rgba(0,0,0,.14);
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.site-nav a.nav-cta::before {
    content: "\f090";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: .95em;
}
.site-nav a.nav-cta:hover {
    background: linear-gradient(180deg, #FFB454 0%, #F6951F 100%);
    color: var(--deep);
    transform: translateY(-2px);
    box-shadow: 0 16px 28px -10px rgba(242,138,27,.9), inset 0 -3px 0 rgba(0,0,0,.14);
}

@media (min-width: 961px) {
    .nav-links { flex: 1; gap: 6px; margin-left: 36px; }
    .nav-links a.nav-link:first-child { margin-left: auto; }
    .nav-links a.nav-link:nth-last-child(2) { margin-right: auto; }
    .nav-links a.nav-link {
        padding: 10px 20px;
        border-bottom: 0;
        border-radius: 999px;
        font-weight: 600;
        font-size: 15.5px;
    }
    .nav-links a.nav-link:hover { background: var(--blue-wash); color: var(--blue); }
    .nav-links a.nav-link.active {
        background: var(--navy);
        color: #fff;
        border-bottom: 0;
        box-shadow: 0 6px 14px -6px rgba(14,42,87,.6);
    }
}

/* ---------------------------------------------------------------------------  COLOUR THEMES  ---------------------------------------------------------------------------
   Put one of these on a section or a card; everything inside picks up
   --accent (strong colour) and --tint (soft background of the same hue). */
.t-blue   { --accent: var(--blue);   --tint: #E3ECFA; }
.t-orange { --accent: #E07B0C;       --tint: #FEEEDA; }
.t-teal   { --accent: var(--teal);   --tint: #DDF3F0; }
.t-indigo { --accent: var(--indigo); --tint: #EAE7FA; }
.t-rose   { --accent: var(--rose);   --tint: #FBE6EE; }
.t-green  { --accent: var(--green);  --tint: #E1F3E8; }

/* ---------------------------------------------------------------------------  PAGE HERO  --------------------------------------------------------------------------- */
.ph {
    position: relative;
    text-align: center;
    color: #fff;
    padding: 80px 0 92px;
    overflow: hidden;
    background:
        radial-gradient(720px 360px at 90% -10%, rgba(242,138,27,.30), transparent 62%),
        radial-gradient(820px 460px at 2% 0%, rgba(90,140,230,.40), transparent 60%),
        linear-gradient(160deg, #0A2147 0%, #0E2A57 48%, #1B4F9C 100%);
}
.ph::before {                      /* faint grid texture */
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 75%);
            mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 75%);
    pointer-events: none;
}
.ph::after {                       /* orange base rule */
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--orange), #FFC37A, var(--orange));
}
.ph .wrap { z-index: 1; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 18px;
    border-radius: 999px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.25);
    color: #FFD199;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 24px;
}
.ph h1 {
    color: #fff;
    font-size: 48px;
    line-height: 1.12;
    max-width: 24ch;
    margin: 0 auto 22px;
}
.ph h1 em { font-style: normal; color: var(--orange); }
.ph .lead {
    font-size: 18.5px;
    line-height: 1.7;
    color: rgba(255,255,255,.88);
    max-width: 66ch;
    margin: 0 auto;
    text-align: justify;
    text-align-last: center;
    hyphens: auto;
}

.ph-stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 38px;
}
.ph-stat {
    min-width: 150px;
    padding: 14px 24px 13px;
    border-radius: 14px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.18);
    backdrop-filter: blur(4px);
}
.ph-stat b {
    display: block;
    font-family: var(--serif);
    font-size: 30px;
    line-height: 1.1;
    color: #FFB45E;
}
.ph-stat span { font-size: 13.5px; color: rgba(255,255,255,.82); }

.ph-chips {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 34px;
}
.ph-chips a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 999px;
    background: rgba(255,255,255,.09);
    border: 1px solid rgba(255,255,255,.24);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.ph-chips a i { color: var(--orange); font-size: 13px; }
.ph-chips a:hover { background: rgba(255,255,255,.18); border-color: #fff; color: #fff; transform: translateY(-2px); }

/* ---------------------------------------------------------------------------  SECTIONS  --------------------------------------------------------------------------- */
.sx { padding: 88px 0; }
.sx-tint { background: var(--paper); }
.sx-wash { background: var(--blue-wash); }
.sx[id] { scroll-margin-top: 76px; }

.sx-head {
    text-align: center;
    max-width: 740px;
    margin: 0 auto 52px;
}
.sx-head .sx-icon {
    width: 64px; height: 64px;
    margin: 0 auto 20px;
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    background: var(--tint, #E3ECFA);
    color: var(--accent, var(--blue));
    font-size: 26px;
    box-shadow: 0 14px 26px -14px var(--accent, var(--blue));
}
.sx-head h2 { font-size: 36px; line-height: 1.15; }
.sx-head h2::after {
    content: '';
    display: block;
    width: 64px; height: 4px;
    border-radius: 4px;
    background: var(--accent, var(--orange));
    margin: 18px auto 0;
}
.sx-head p {
    margin-top: 18px;
    font-size: 17.5px;
    color: var(--muted);
    text-align: justify;
    text-align-last: center;
    hyphens: auto;
}

/* ---------------------------------------------------------------------------  CARD GRID  ---------------------------------------------------------------------------
   Flex (not grid) so an odd last row is centred, not left-stranded. */
.fx-grid {
    --gap: 26px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--gap);
}
.fx-grid > * { flex: 0 1 calc((100% - var(--gap) * 2) / 3); min-width: 0; }
.fx-grid.two > * { flex-basis: calc((100% - var(--gap)) / 2); }
.fx-grid.narrow { max-width: 900px; margin: 0 auto; }

.fx-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--rule);
    border-top: 4px solid var(--accent, var(--blue));
    border-radius: 14px;
    padding: 30px 26px 32px;
    box-shadow: 0 18px 36px -26px rgba(14,42,87,.5);
    transition: transform .2s ease, box-shadow .2s ease;
}
.fx-card:hover { transform: translateY(-5px); box-shadow: 0 28px 46px -24px rgba(14,42,87,.55); }

.fx-badge {
    width: 60px; height: 60px;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    background: var(--tint, #E3ECFA);
    color: var(--accent, var(--blue));
    font-size: 25px;
    flex-shrink: 0;
}
.fx-card h3 {
    text-align: center;
    font-size: 18px;
    line-height: 1.3;
    color: var(--navy);
    margin-bottom: 12px;
}
.fx-card p {
    font-size: 15.5px;
    line-height: 1.7;
    color: var(--muted);
    text-align: justify;
    hyphens: auto;
}
.fx-card .fx-tag {
    align-self: center;
    margin-top: auto;
    padding-top: 0;
}

/* Check-list used inside role cards */
.fx-list { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--rule); }
.fx-list li {
    position: relative;
    padding: 5px 0 5px 28px;
    font-size: 15px;
    color: var(--ink);
    text-align: left;
}
.fx-list li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0; top: 7px;
    width: 19px; height: 19px;
    border-radius: 50%;
    background: var(--tint);
    color: var(--accent);
    font-size: 10px;
    display: flex; align-items: center; justify-content: center;
}

/* ---------------------------------------------------------------------------  DARK SHOWCASE BAND  --------------------------------------------------------------------------- */
.showcase {
    padding: 92px 0;
    background:
        radial-gradient(600px 300px at 100% 0%, rgba(242,138,27,.18), transparent 60%),
        linear-gradient(160deg, #0A2147 0%, #12408A 100%);
}
.showcase .sx-head h2 { color: #fff; }
.showcase .sx-head h2::after { background: var(--orange); }
.showcase .sx-head p { color: rgba(255,255,255,.84); }
.showcase .fx-card {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.16);
    border-top: 4px solid var(--orange);
    box-shadow: none;
}
.showcase .fx-card:hover { background: rgba(255,255,255,.12); }
.showcase .fx-card h3 { color: #fff; }
.showcase .fx-card p { color: rgba(255,255,255,.84); }
.showcase .fx-badge { background: rgba(242,138,27,.18); color: #FFB45E; }
.showcase .text-link { color: #fff; border-bottom-color: var(--orange); }
.showcase .text-link:hover { color: var(--orange); }

/* ---------------------------------------------------------------------------  CLOSING CALL TO ACTION  --------------------------------------------------------------------------- */
.final {
    position: relative;
    text-align: center;
    color: #fff;
    padding: 84px 0 90px;
    background:
        radial-gradient(700px 320px at 50% 0%, rgba(242,138,27,.26), transparent 65%),
        linear-gradient(135deg, #0A2147 0%, #0E2A57 40%, #1B4F9C 100%);
}
.final::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--orange), #FFC37A, var(--orange));
}
.final h2 { color: #fff; font-size: 38px; margin-bottom: 14px; }
.final p {
    color: rgba(255,255,255,.86);
    font-size: 18px;
    max-width: 54ch;
    margin: 0 auto;
    text-align: justify;
    text-align-last: center;
}

.btn-go {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 34px;
    padding: 18px 44px;
    background: linear-gradient(180deg, #FFA73F 0%, #F28A1B 100%);
    color: var(--deep);
    font-family: var(--sans);
    font-weight: 800;
    font-size: 16.5px;
    letter-spacing: .05em;
    text-transform: uppercase;
    border: 0;
    border-radius: 12px;
    box-shadow: 0 10px 22px -8px rgba(242,138,27,.8), inset 0 -3px 0 rgba(0,0,0,.14);
    transition: transform .15s ease, box-shadow .15s ease;
}
.btn-go::after {
    content: "\f061";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: .9em;
}
.btn-go.signin::before {
    content: "\f090";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: .95em;
}
.btn-go.signin::after { content: none; }
.btn-go:hover {
    background: linear-gradient(180deg, #FFB454 0%, #F6951F 100%);
    color: var(--deep);
    transform: translateY(-2px);
    box-shadow: 0 16px 28px -10px rgba(242,138,27,.9), inset 0 -3px 0 rgba(0,0,0,.14);
}

/* ---------------------------------------------------------------------------  RESPONSIVE  --------------------------------------------------------------------------- */
@media (max-width: 1000px) {
    .fx-grid > * { flex-basis: calc((100% - var(--gap)) / 2); }
}
@media (max-width: 960px) {
    .ph { padding: 56px 0 68px; }
    .ph h1 { font-size: 38px; }
    .sx, .showcase { padding: 64px 0; }
    .sx-head { margin-bottom: 38px; }
    .sx-head h2 { font-size: 30px; }
    .final { padding: 64px 0 70px; }
    .final h2 { font-size: 31px; }
    .site-nav.nav-open .nav-cta { margin-top: 14px; }
}
@media (max-width: 640px) {
    .fx-grid > *, .fx-grid.two > * { flex-basis: 100%; }
    .ph h1 { font-size: 31px; }
    .ph .lead, .sx-head p, .final p { font-size: 16.5px; text-align-last: auto; }
    .ph-stat { min-width: 0; flex: 1 1 130px; padding: 12px 14px; }
    .btn-go { width: 100%; padding: 18px 24px; }
}

@media (prefers-reduced-motion: reduce) {
    .fx-card, .ph-chips a, .btn-go, .site-nav a.nav-cta { transition: none !important; }
    .fx-card:hover, .ph-chips a:hover, .btn-go:hover, .site-nav a.nav-cta:hover { transform: none; }
}
