/* school365.ky overrides on top of legacy-public.css.
   Brand palette (carried over from legacy SPOS):
     --brand-orange:        #f36b20
     --brand-orange-hover:  #e4611a
     --brand-teal:          #2b6062
     --brand-teal-hover:    #274a4b
     --brand-bg:            #ececec
*/
:root {
    --brand-orange: #f36b20;
    --brand-orange-hover: #e4611a;
    --brand-teal: #2b6062;
    --brand-teal-hover: #274a4b;
    --brand-bg: #f5f6fa;
    --brand-soft: #fff7f0;
}

html, body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1f2937;
}

/* ───── Sticky footer ───────────────────────────────────────────────
   Flex column on <body> so the footer is pinned to the viewport bottom
   on short pages (login, 404, empty admin screens). <main> grows to
   fill leftover space. The navbar keeps its own `sticky-top` behaviour
   because it's outside <main>. */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
body > main {
    flex: 1 0 auto;
}
body > footer {
    flex-shrink: 0;
}

/* ───── Top brand strip ─────────────────────────────────────────── */
.brand-strip {
    height: 4px;
    background: linear-gradient(90deg, var(--brand-orange) 0%, var(--brand-teal) 100%);
}

/* ───── Navbar / brand wordmark ─────────────────────────────────── */
.navbar { padding-top: .65rem; padding-bottom: .65rem; }
.navbar-brand { font-weight: 700; }
.brand-logo { height: 44px; width: 44px; object-fit: contain; border-radius: 6px; }
.brand-wordmark { font-size: 1.2rem; letter-spacing: -0.01em; }
.brand-school { color: var(--brand-teal); font-weight: 700; }
.brand-365 { color: var(--brand-orange); font-weight: 800; }
.brand-ky { color: var(--brand-teal); font-weight: 700; }

/* ───── Buttons — bridge Bootstrap 5 → legacy classes ───────────── */
.btn-primary {
    background-color: var(--brand-orange) !important;
    border-color: var(--brand-orange) !important;
    color: #fff !important;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: var(--brand-orange-hover) !important;
    border-color: var(--brand-orange-hover) !important;
    box-shadow: 0 4px 12px rgba(243, 107, 32, 0.25);
}
.btn-green {
    background-color: var(--brand-teal);
    border-color: var(--brand-teal);
    color: #fff;
}
.btn-green:hover, .btn-green:focus, .btn-green:active {
    background-color: var(--brand-teal-hover);
    border-color: var(--brand-teal-hover);
    color: #fff;
    box-shadow: 0 4px 12px rgba(43, 96, 98, 0.25);
}
.btn-outline-secondary { color: var(--brand-teal); border-color: var(--brand-teal); }
.btn-outline-secondary:hover { background: var(--brand-teal); border-color: var(--brand-teal); color: #fff; }

.dropdown-toggle::after { margin-left: .4em; }
.dropdown-menu { border-radius: .5rem; border: 0; box-shadow: 0 .5rem 1.5rem rgba(0,0,0,.08); }
.dropdown-item i { color: var(--brand-orange); }

/* ───── Auth card (Login / Signup / ForgotPassword / ResetPassword /
   ChangePassword) — one card design, shared shell.

   Default 520px works for single-column forms (Login, ForgotPassword,
   ResetPassword, ChangePassword). Signup pages use `.row > .col-md-6`
   for a two-column layout and add the .auth-card-wide modifier to
   open up to 760px. ─────────────────────────────────────────────────── */
.auth-card {
    max-width: 520px;
    margin: 2.5rem auto;
    padding: 2.25rem 2.5rem;
    background: #fff;
    border-radius: .75rem;
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, .06);
}
.auth-card.auth-card-wide {
    max-width: 760px;
}
.auth-card h1 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--brand-teal);
    font-weight: 700;
}
.auth-card h6.text-uppercase {
    letter-spacing: .04em;
    color: var(--brand-teal) !important;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: .35rem;
    margin-top: 1.75rem !important;
}

/* Reset the legacy underline-only .form-control rule (border: none;
   border-bottom: 2px solid #2b6062) ONLY inside auth-cards. The legacy
   look is preserved on the marketing pages (banner/contact form) where
   it was originally designed for. */
.auth-card .form-control,
.auth-card .form-select {
    border: 1px solid #d1d5db;
    border-radius: .5rem;
    padding: .5rem .75rem;
    font-size: 1rem;
    background-color: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.auth-card .form-control:focus,
.auth-card .form-select:focus {
    border-color: var(--brand-orange);
    box-shadow: 0 0 0 .2rem rgba(243, 107, 32, .15);
    outline: 0;
}
.auth-card label.form-label {
    font-weight: 500;
    margin-bottom: .35rem;
    color: #374151;
    font-size: .9rem;
}
.auth-card .form-text {
    color: #6b7280;
}

/* Eye-icon toggle button inside the auth-card: muted by default, brand
   teal on hover. Sits flush against the input thanks to .input-group. */
.auth-card .password-toggle {
    border-color: #d1d5db;
    color: #6b7280;
    background-color: #fff;
}
.auth-card .password-toggle:hover,
.auth-card .password-toggle:focus {
    color: var(--brand-teal);
    border-color: var(--brand-teal);
    background-color: #fff;
}

/* Primary submit button across all auth pages — full-width, slightly
   taller than default, brand orange. */
.auth-card .btn-primary {
    padding-top: .6rem;
    padding-bottom: .6rem;
    font-weight: 600;
}

/* ───── Hero / banner ───────────────────────────────────────────── */
.banner {
    background: linear-gradient(160deg, #fff 0%, var(--brand-soft) 100%);
    padding: 4rem 0 3rem;
}
.banner h1 {
    color: var(--brand-teal);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
}
.banner .lead { color: #475569; }
.banner .details { margin-top: 1.5rem; }
.banner .details li { padding: .35rem 0; color: #334155; font-size: 1rem; }
.banner .details li i.text-warning { color: var(--brand-orange) !important; }
.banner img.img-fluid { border-radius: 1rem; box-shadow: 0 1rem 3rem rgba(43,96,98,.18); }

/* ───── CountUp band ────────────────────────────────────────────── */
section.CountUp {
    background: var(--brand-teal);
    color: #fff;
    padding: 2.5rem 0;
}
section.CountUp .countItem { text-align: center; padding: .5rem; }
section.CountUp .countItem h3 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--brand-orange);
    margin-bottom: .25rem;
}
section.CountUp .countItem p { font-size: .9rem; opacity: .85; margin: 0; letter-spacing: .02em; }

/* ───── Feature section ─────────────────────────────────────────── */
section.feature { padding: 4rem 0; background: #fff; }
.main-heading {
    font-size: 2.5rem;
    text-align: center;
    color: var(--brand-teal);
    font-weight: 800;
    margin-bottom: 3rem;
    letter-spacing: -0.02em;
}
/* Override legacy inline-flex on .Featurecontent that breaks our content. */
.feature .item .Featurecontent {
    display: block !important;
    padding-right: 0 !important;
}
.feature .item { margin-bottom: 3rem; }
.feature .item .Featurecontent h3 {
    color: var(--brand-teal);
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.feature .item .Featurecontent p {
    font-size: 1rem;
    line-height: 1.65;
    color: #475569;
    margin-bottom: .75rem;
}

/* ───── How it works cards ──────────────────────────────────────── */
section.weWorks { padding: 4rem 0; background: var(--brand-bg); }
section.weWorks .card {
    border: 0 !important;
    border-radius: .75rem !important;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
    background: #fff;
}
section.weWorks .card:hover { transform: translateY(-4px); box-shadow: 0 1rem 2rem rgba(0,0,0,.08) !important; }
section.weWorks .card-img-top { background: var(--brand-soft); padding: 1.5rem; height: 180px; object-fit: contain; }
section.weWorks .card-title { color: var(--brand-teal); font-weight: 700; margin-bottom: .75rem; }

/* ───── Pricing tier cards ──────────────────────────────────────── */
.tier-featured {
    position: relative;
    transform: translateY(-8px);
    border: 2px solid var(--brand-orange) !important;
    box-shadow: 0 1rem 2.5rem rgba(243, 107, 32, .18) !important;
}
.tier-flag {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    background: var(--brand-orange); color: #fff;
    font-size: .75rem; font-weight: 700; letter-spacing: .04em;
    padding: .25rem .85rem; border-radius: 99px;
    text-transform: uppercase;
}
.btn-outline-primary { color: var(--brand-orange); border-color: var(--brand-orange); }
.btn-outline-primary.active, .btn-outline-primary:hover {
    background: var(--brand-orange); border-color: var(--brand-orange); color: #fff !important;
}

/* ───── Trial banner across the top of authenticated areas ──────── */
.trial-banner {
    background: var(--brand-soft);
    border-bottom: 1px solid #f8d4ba;
    padding: .65rem 0;
    font-size: .9rem;
}
.trial-banner .trial-pill {
    background: var(--brand-orange); color: #fff;
    padding: .15rem .65rem; border-radius: 99px; font-weight: 600;
    font-size: .8rem; margin-right: .5rem;
}
.trial-banner .trial-warn { color: #92400e; font-weight: 600; }
.trial-banner a { color: var(--brand-orange); font-weight: 600; text-decoration: none; }
.trial-banner a:hover { text-decoration: underline; }

/* ───── Hero badge ──────────────────────────────────────────────── */
.banner .badge.bg-warning { background: var(--brand-orange) !important; color: #fff !important; font-weight: 600; letter-spacing: .02em; }

/* ───── Cookie consent banner ───────────────────────────────────── */
.cookie-consent {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1050;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -.5rem 1.5rem rgba(0,0,0,.06);
    font-size: .9rem;
}

/* ───── Footer ──────────────────────────────────────────────────── */
footer.bg-white { border-color: #e5e7eb !important; }

/* ───── Validation messages ─────────────────────────────────────── */
.field-validation-error, .text-danger { color: #dc3545; font-size: .875rem; }

/* ───── Responsive tweaks ───────────────────────────────────────── */
@media (max-width: 991.98px) {
    .banner { padding: 2.5rem 0 2rem; }
    .banner h1 { font-size: 1.875rem; }
    .banner .lead { font-size: 1rem; }
    .main-heading { font-size: 2rem; margin-bottom: 2rem; }
    section.feature, section.weWorks { padding: 2.5rem 0; }
    section.feature .item { margin-bottom: 2rem; }
    section.CountUp { padding: 2rem 0; }
    section.CountUp .countItem { padding: 1rem .25rem; min-width: 50%; }
    section.CountUp .countItem h3 { font-size: 1.9rem; }
}
@media (max-width: 575.98px) {
    .banner h1 { font-size: 1.625rem; }
    section.CountUp .countItem h3 { font-size: 1.6rem; }
    section.CountUp .countItem p { font-size: .8rem; }
    .brand-logo { height: 36px; width: 36px; }
    .brand-wordmark { font-size: 1rem; }
    section.weWorks .card-img-top { height: 140px; padding: 1rem; }
    .dropdown-menu { min-width: 13rem; }
}
