:root {
    --hpca-navy: #002749;
    --hpca-maroon: #5e1113;
    --hpca-accent: #ff4e31;
    --hpca-light: #f6f1e7;
    --hpca-rule: rgba(94,17,19,.18);
}

body {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #241f1a;
}

h1, h2, h3, h4, h5, h6, .brand-font {
    font-family: 'Source Serif 4', Georgia, serif;
    font-weight: 600;
}

a { color: var(--hpca-navy); }
a:hover { color: var(--hpca-accent); }

/* ---------- Top info bar ---------- */
.top-bar {
    background-color: var(--hpca-maroon);
    color: #fff;
    font-size: .875rem;
}
.top-bar a { color: #fff; text-decoration: none; }
.top-bar a:hover { color: var(--hpca-accent); }
.top-bar .divider { opacity: .35; margin: 0 .6rem; }
.top-bar .social-link {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: .25rem;
    background: rgba(255,255,255,.12); margin-left: .4rem;
}
.top-bar .social-link:hover { background: var(--hpca-accent); }

/* ---------- Navbar ---------- */
.navbar-brand img { height: 62px; width: auto; }
.navbar-hpca { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.navbar-hpca .nav-link {
    font-family: 'Lato', sans-serif;
    font-weight: 600;
    font-size: .96rem;
    color: var(--hpca-navy);
    padding: 1.6rem .9rem !important;
}
.navbar-hpca .nav-link:hover,
.navbar-hpca .nav-link.active { color: var(--hpca-accent); }
.navbar-hpca .dropdown-menu { border: 0; box-shadow: 0 8px 24px rgba(0,0,0,.12); border-radius: .25rem; }
.navbar-hpca .dropdown-item:hover { background: var(--hpca-light); color: var(--hpca-accent); }

/* ---------- Buttons ---------- */
.btn-hpca {
    background-color: var(--hpca-accent);
    border-color: var(--hpca-accent);
    color: #fff;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    border-radius: .4rem;
    padding: .7rem 1.6rem;
}
.btn-hpca:hover { background-color: #e03d22; border-color: #e03d22; color: #fff; }
.btn-hpca-outline {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    border-radius: .4rem;
    padding: .65rem 1.6rem;
}
.btn-hpca-outline:hover { background: var(--hpca-accent); border-color: var(--hpca-accent); color: #fff; }
.btn-navy {
    background-color: var(--hpca-navy);
    border-color: var(--hpca-navy);
    color: #fff;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    border-radius: .4rem;
    padding: .7rem 1.6rem;
}
.btn-navy:hover { background-color: var(--hpca-accent); border-color: var(--hpca-accent); color: #fff; }

/* ---------- Hero slider ---------- */
.hero-carousel { background: #0a0c14; }
.hero-carousel .carousel-item {
    height: 82vh; min-height: 640px; max-height: 860px;
    padding: 2rem 1.5rem;
    overflow: hidden;
}
.hero-carousel .carousel-item.active,
.hero-carousel .carousel-item-next,
.hero-carousel .carousel-item-prev {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 1rem;
}
.hero-slide-glow {
    position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.hero-slide-glow::before,
.hero-slide-glow::after {
    content: ''; position: absolute; width: 32rem; height: 32rem; border-radius: 50%;
    filter: blur(110px); opacity: .35;
}
.hero-slide-glow::before { background: #5e1113; top: -14rem; left: -10rem; }
.hero-slide-glow::after { background: #002749; bottom: -16rem; right: -10rem; }

.hero-slide-media {
    position: relative; z-index: 1;
    width: 75%; max-width: 1100px;
    height: 75%; flex-shrink: 0;
    border-radius: 1.5rem; overflow: hidden;
    box-shadow: 0 30px 60px -20px rgba(0,0,0,.6);
}
.hero-slide-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.hero-slide-card {
    position: relative; z-index: 1;
    width: 75%; max-width: 900px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 1.5rem;
    padding: 1.25rem clamp(1.25rem, 4vw, 3rem);
    text-align: center;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}
.hero-slide-card .eyebrow {
    color: #ffb199; font-weight: 700; font-size: .9rem; font-family: 'Lato', sans-serif;
    text-transform: uppercase; letter-spacing: .08em; margin-bottom: .5rem;
}
.hero-slide-card h1 {
    font-size: clamp(1.5rem, 3vw, 2.4rem);
    color: #fff;
    margin-bottom: 0;
    line-height: 1.25;
}
.hero-slide-card .btn { margin-top: .85rem; }

.hero-carousel .carousel-indicators [data-bs-target] {
    width: 10px; height: 10px; border-radius: 50%; background-color: rgba(255,255,255,.5); border: 0;
}
.hero-carousel .carousel-indicators .active { background-color: var(--hpca-accent); }
.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next { width: 5%; opacity: 0; transition: opacity .2s; z-index: 2; }
.hero-carousel:hover .carousel-control-prev,
.hero-carousel:hover .carousel-control-next { opacity: .85; }

/* ---------- Sections ---------- */
.section-pad { padding: 5rem 0; }
.section-title .eyebrow {
    color: var(--hpca-accent); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .82rem;
}
.section-title h2 { color: var(--hpca-navy); margin-top: .3rem; }
.bg-navy { background-color: var(--hpca-navy); }
.bg-maroon { background-color: var(--hpca-maroon); }
.bg-light-soft { background-color: var(--hpca-light); }

.program-ledger-item {
    padding: 1.6rem 0;
    border-bottom: 1px solid var(--hpca-rule);
}
.program-ledger-item:last-child { border-bottom: 0; }
.program-ledger-item h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.program-ledger-item p { color: #4a4238; max-width: 30rem; }

/* ---------- Donation embed ---------- */
.donation-card {
    position: relative;
    background: #fff;
    border-radius: 1.25rem;
    box-shadow: 0 25px 60px -25px rgba(0, 39, 73, .35);
    padding: 2rem clamp(1rem, 4vw, 2.5rem) 2.25rem;
    overflow: hidden;
}
.donation-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 6px;
    background: linear-gradient(90deg, var(--hpca-maroon), var(--hpca-accent));
}
.donation-card-header {
    display: flex; align-items: center; justify-content: center; gap: .5rem;
    color: var(--hpca-navy);
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: .95rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 1.25rem;
}
.donation-card-header i { color: var(--hpca-accent); font-size: 1.1rem; }
.donation-embed { display: flex; justify-content: center; }
.donation-embed iframe { width: 100%; max-width: 800px; border: 0; }
.donation-secure-note {
    text-align: center;
    color: #6b7280;
    font-size: .85rem;
    margin: 1.5rem 0 0;
}
.donation-secure-note i { color: var(--hpca-navy); margin-right: .3rem; }

.purpose-eyebrow {
    display: flex; align-items: center; gap: .6rem;
}
.purpose-eyebrow::before {
    content: ''; display: inline-block; width: 28px; height: 2px;
    background: var(--hpca-accent);
}

.purpose-heading {
    font-family: 'Lato', sans-serif;
    font-weight: 800;
    font-size: 2.35rem;
    letter-spacing: -.01em;
    line-height: 1.22;
}

.purpose-photo-frame {
    position: relative;
    margin: 0 22px 22px 0;
}
.purpose-photo-frame::before {
    content: ''; position: absolute; inset: 0;
    transform: translate(22px, 22px);
    background: var(--hpca-maroon);
    border-radius: .35rem;
}
.purpose-photo {
    position: relative; z-index: 1; display: block;
    width: 100%; height: 22rem; object-fit: cover;
    border-radius: .35rem;
    box-shadow: 0 20px 40px rgba(0,39,73,.18);
}

.btn-pill-caps {
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: .04em;
    box-shadow: 0 10px 22px rgba(0,39,73,.22);
    transition: transform .15s ease, box-shadow .15s ease;
}
.btn-pill-caps:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(0,39,73,.28);
}

.text-link-underline {
    font-weight: 700; border-bottom: 2px solid var(--hpca-maroon); padding-bottom: .15rem;
}
.text-link-underline:hover { color: var(--hpca-accent); border-color: var(--hpca-accent); }

.steps-list .step {
    display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 0;
    border-bottom: 1px dashed #dcdcdc;
}
.steps-list .step:last-child { border-bottom: 0; }
.steps-list .step-num {
    flex: 0 0 auto; width: 28px;
    font-family: 'Source Serif 4', serif; font-weight: 700; font-size: 1.4rem;
    color: var(--hpca-maroon);
}

.admission-content-card {
    background: #fff; border-radius: 1rem; padding: 2.25rem 2.5rem; height: 100%;
    box-shadow: 0 6px 22px rgba(0,39,73,.08);
}
.admission-content-card p { color: #4a4a4a; line-height: 1.8; }
.admission-content-card h3 {
    color: var(--hpca-navy); position: relative;
    margin-top: 1.75rem; padding-bottom: .7rem;
}
.admission-content-card h3::after {
    content: ''; position: absolute; left: 0; bottom: 0;
    width: 48px; height: 3px; background: var(--hpca-accent); border-radius: 30px;
}
.admission-content-card p:last-child {
    /* The closing pull-quote paragraph gets a callout treatment instead of
       blending in as plain italic text. */
    position: relative; margin-top: 1.5rem; padding: 1.1rem 1.5rem;
    background: var(--hpca-light); border-left: 3px solid var(--hpca-accent);
    border-radius: .5rem; color: var(--hpca-navy);
}

.enrollment-panel {
    box-shadow: 0 6px 22px rgba(0,39,73,.08);
    border-top: 4px solid var(--hpca-accent);
    height: 100%;
}
.enrollment-panel h4 { color: var(--hpca-navy); }

.tuition-terms-card {
    background: #fff; border-radius: 1rem; padding: 2.25rem 2.5rem;
    box-shadow: 0 6px 22px rgba(0,39,73,.08);
    border-left: 4px solid var(--hpca-accent);
}
.tuition-terms-card p { color: #4a4a4a; line-height: 1.8; margin-bottom: 1rem; }
.tuition-terms-card p:last-child { margin-bottom: 0; }

.staff-card { text-align: center; }
.staff-card img {
    width: 100%; aspect-ratio: 1/1; object-fit: cover;
    /* Headshots are typically framed with more room below the face than above;
       centering the crop cuts off foreheads/hair, so bias it toward the top. */
    object-position: center 30%;
    border-radius: .75rem; margin-bottom: 1rem;
}

.gallery-thumb { display: block; border-radius: .5rem; overflow: hidden; aspect-ratio: 4/3; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gallery-thumb:hover img { transform: scale(1.06); }
.gallery-filters .btn { border-radius: 30px; margin: .2rem; }

.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.5); }

/* ---------- Services page ---------- */
.services-section { background: linear-gradient(180deg, #fff 0%, var(--hpca-light) 100%); }
.services-hero-title h2 { text-transform: uppercase; letter-spacing: .04em; }
.services-hero-title .title-divider {
    display: block; width: 64px; height: 4px; margin: 1rem auto 0;
    background: var(--hpca-accent); border-radius: 30px;
}

.services-panel {
    background: #fff; border-radius: 1.25rem; padding: 2.25rem;
    box-shadow: 0 10px 30px rgba(0,39,73,.08);
    border-top: 4px solid var(--hpca-accent);
}
.services-eyebrow {
    color: var(--hpca-navy); font-family: 'Montserrat', sans-serif; font-weight: 700;
    text-transform: uppercase; letter-spacing: .03em; font-size: 1.15rem;
}
.services-subtitle {
    color: #6d879c; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
    font-size: .95rem; line-height: 1.5; margin-top: .3rem;
}
.services-checklist { list-style: none; margin: 0; padding: 0; }
.services-checklist li {
    display: flex; align-items: center; gap: .75rem; padding: .5rem 0;
    color: #2c2c2c; font-weight: 600; font-size: .92rem;
    border-bottom: 1px dashed #e5e5e5;
}
.services-checklist li:last-child { border-bottom: 0; }
.services-checklist .check-badge {
    flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%;
    background: rgba(255,78,49,.12); color: var(--hpca-accent);
    display: flex; align-items: center; justify-content: center; font-size: .85rem;
}

.service-card {
    background: #fff; border-radius: 1.1rem; padding: 2rem 1.75rem;
    height: 100%; box-shadow: 0 6px 22px rgba(0,39,73,.08);
    transition: transform .25s ease, box-shadow .25s ease;
}
.service-card:hover { transform: translateY(-8px); box-shadow: 0 18px 34px rgba(0,39,73,.15); }
.service-icon {
    width: 72px; height: 72px; border-radius: 50%;
    background: linear-gradient(135deg, var(--hpca-accent) 0%, #ff7a52 100%);
    color: #fff; box-shadow: 0 10px 22px rgba(255,78,49,.35);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; flex: 0 0 auto;
}
.service-card .service-icon { margin-bottom: 1.25rem; }
.service-icon-sm { width: 40px; height: 40px; font-size: 1.05rem; box-shadow: none; }
.service-card h5 {
    color: var(--hpca-maroon); text-transform: uppercase; font-size: 1rem;
    letter-spacing: .03em; margin-bottom: .6rem;
}
.service-card p { color: #5a5a5a; font-size: .92rem; margin-bottom: 1.1rem; }
.service-link {
    display: inline-flex; align-items: center; gap: .4rem;
    color: var(--hpca-navy); font-family: 'Montserrat', sans-serif; font-weight: 700;
    font-size: .82rem; text-transform: uppercase; letter-spacing: .03em;
    text-decoration: none;
    background: none; border: 0; padding: 0; cursor: pointer;
}
.service-link i { transition: transform .2s ease; }
.service-link:hover { color: var(--hpca-accent); }
.service-link:hover i { transform: translateX(4px); }

footer.site-footer { background-color: var(--hpca-navy); color: #cfd9e3; }
footer.site-footer a { color: #cfd9e3; text-decoration: none; }
footer.site-footer a:hover { color: var(--hpca-accent); }
footer.site-footer h5 { color: #fff; font-family: 'Montserrat', sans-serif; margin-bottom: 1.1rem; }
footer.site-footer .footer-bottom { background: rgba(0,0,0,.2); font-size: .85rem; }

/* lazy-load fade-in */
img.lazy-fade { opacity: 0; transition: opacity .35s ease; }
img.lazy-fade.is-loaded { opacity: 1; }

@media (max-width: 991.98px) {
    .navbar-hpca .nav-link { padding: .6rem 1rem !important; }
    .hero-carousel .carousel-item { height: 64vh; gap: 1.25rem; }
    .hero-slide-media, .hero-slide-card { width: 88%; }
}
