/* ===== Brand Variables ===== */
:root {
    --hp-navy: #1B2B4B;
    --hp-navy-light: #233560;
    --hp-white: #ffffff;
    --hp-light-grey: #f8f9fa;
    --hp-text-muted: #6c757d;
}

/* ===== Base ===== */
html { font-size: 16px; }
.container { max-width: 1200px !important; }
body { padding-top: 72px; margin-bottom: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #131f4a; }

/* ===== Navbar ===== */
.hp-navbar {
    background-color: #ffffff;
    border-bottom: 1px solid rgba(27,43,75,0.1);
    padding: 0.75rem 0;
    transition: background-color 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.hp-navbar.scrolled {
    background-color: var(--hp-navy);
    border-bottom-color: transparent;
    box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.hp-navbar .nav-link {
    color: var(--hp-navy) !important;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem 0.9rem !important;
    letter-spacing: 0.01em;
    transition: color 0.2s;
}
.hp-navbar.scrolled .nav-link {
    color: rgba(255,255,255,0.85) !important;
}
.hp-navbar .nav-link:hover,
.hp-navbar .nav-link.active {
    color: #4a7cbf !important;
}
.hp-navbar.scrolled .nav-link:hover,
.hp-navbar.scrolled .nav-link.active {
    color: #ffffff !important;
}

.hp-dropdown {
    border: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 24px rgba(27,43,75,0.18);
    margin-top: 0.5rem;
}
.hp-dropdown .dropdown-item {
    color: var(--hp-navy);
    font-size: 0.95rem;
    padding: 0.6rem 1.25rem;
}
.hp-dropdown .dropdown-item:hover {
    background: rgba(27,43,75,0.06);
    color: #4a7cbf;
}

/* ===== Hero ===== */
.hero-section {
    position: relative;
    overflow: hidden;
    height: 450px;
}
.hero-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(27,43,75,0.35) 40%, rgba(27,43,75,0.08) 100%);
    display: flex;
    align-items: center;
    padding: 2.5rem;
}
.hero-overlay h1 {
    color: var(--hp-white);
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

/* ===== Home Hero (taller) ===== */
.hero-section.hero-home {
    height: calc(100vh - 72px);
}
.hero-home .hero-overlay {
    align-items: center;
    padding-bottom: 14rem;
    background: linear-gradient(to right, rgba(27,43,75,0.38) 40%, rgba(27,43,75,0.05) 100%);
}
.hero-home .hero-overlay .hero-text {
    max-width: 700px;
    color: var(--hp-white);
    font-size: 2.2rem;
    font-weight: 300;
    line-height: 1.35;
    letter-spacing: -0.01em;
}
.hero-home .hero-overlay .hero-text strong { font-weight: 700; }

@media (max-width: 768px) {
    .hero-home .hero-overlay .hero-text { font-size: 1.5rem; }
}

/* ===== Badge Strip ===== */
.badge-delay { animation-delay: 0.4s; }
.badge-strip {
    position: absolute;
    bottom: 4rem;
    left: 0;
    right: 0;
    background: none;
    padding: 0;
    z-index: 2;
}
.badge-strip .container {
    border-top: 1px solid rgba(255,255,255,0.7);
    padding-top: 1.25rem;
}
.badge-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--hp-white);
    white-space: nowrap;
}
.badge-item .check-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.8);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    flex-shrink: 0;
}

/* ===== Mission Statement ===== */
.mission-section {
    padding: 3.5rem 0;
    text-align: center;
}
.mission-section p {
    max-width: 760px;
    margin: 0 auto;
    font-size: 1.2rem;
    line-height: 1.75;
    color: #131f4a;
}

/* ===== Services Section (Home) ===== */
.services-section {
    position: relative;
    padding: 4rem 0;
}
.services-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('/images/heroes/hero-blue-curves.jpg');
    background-size: cover;
    background-position: center;
    filter: brightness(0.75);
    z-index: 0;
}
.services-section > * { position: relative; z-index: 1; }
.services-section h2 {
    color: var(--hp-white);
    font-weight: 700;
    font-size: 2.1rem;
    text-align: center;
    margin-bottom: 2.5rem;
}
.service-card {
    background: rgba(27,43,75,0.82);
    border-radius: 30px 8px 30px 8px;
    padding: 3rem 1.75rem;
    color: var(--hp-white);
    height: 100%;
    min-height: 340px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(10,20,40,0.35);
    background: rgba(27,43,75,0.95);
}
.service-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.25rem;
}
.service-card ul {
    list-style: disc;
    padding-left: 1.2rem;
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.7;
}
.btn-outline-hp {
    border: 1.5px solid var(--hp-white);
    color: var(--hp-white);
    border-radius: 50px;
    padding: 0.65rem 2rem;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    font-weight: 600;
    background: transparent;
    transition: background 0.2s, color 0.2s;
}
.btn-outline-hp:hover {
    background: var(--hp-white);
    color: var(--hp-navy);
}
.btn-hp {
    background: var(--hp-navy);
    color: var(--hp-white);
    border-radius: 50px;
    padding: 0.65rem 2rem;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    font-weight: 600;
    border: none;
    transition: background 0.2s;
}
.btn-hp:hover { background: var(--hp-navy-light); color: var(--hp-white); }

/* ===== Proactive / CTA Section ===== */
.cta-image {
    position: relative;
}
.cta-image img {
    width: 100%;
    height: 640px;
    object-fit: cover;
    object-position: center 60%;
    display: block;
}
.cta-image-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 4rem 1rem 2rem;
    background: linear-gradient(to bottom, rgba(10,20,40,0.35), transparent);
}
.cta-image-top h2 { color: var(--hp-white); font-weight: 700; font-size: 2.1rem; margin-bottom: 1.25rem; }
.cta-image-top p { color: rgba(255,255,255,0.9); font-size: 1.05rem; max-width: 720px; margin: 0 auto; }
.cta-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem 1rem 1.25rem;
    background: linear-gradient(to top, rgba(10,20,40,0.65), transparent);
}
.cta-image-overlay p { color: var(--hp-white); font-size: 1.05rem; margin-bottom: 0.5rem; }

/* ===== Page content sections ===== */
.page-section { padding: 3.5rem 0; }
.page-section p, .page-section ul { font-weight: 500; }
.page-section-dark {
    background: var(--hp-navy);
    padding: 3.5rem 0;
}
.page-section-dark h2, .page-section-dark h3, .page-section-dark p { color: var(--hp-white); }

/* ===== Team Cards ===== */
.team-card { padding: 2rem 0; border-bottom: 1px solid #eee; }
.team-card:last-child { border-bottom: none; }
.team-photo {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
    filter: grayscale(100%);
}
.team-divider {
    width: 30px;
    border-top: 2px solid var(--hp-navy);
    margin: 0.5rem 0 0.75rem;
}
.team-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--hp-navy); margin-bottom: 0.2rem; }
.team-card .role { font-size: 0.9rem; color: var(--hp-text-muted); margin-bottom: 0; }
.team-card a { color: var(--hp-navy); font-size: 0.875rem; font-weight: 500; }
.team-card .bio-short, .team-card .bio-expanded { font-size: 0.9rem; line-height: 1.7; color: #131f4a; }
.team-card .bio-expanded { display: none; }
.btn-read-more {
    background: none;
    border: none;
    padding: 0;
    color: var(--hp-navy);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.75rem;
}
.btn-read-more .toggle-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--hp-navy);
    color: var(--hp-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    line-height: 1;
    font-weight: 400;
}

@media (max-width: 767.98px) {
    .team-card { text-align: center; }
    .team-photo { margin-left: auto; margin-right: auto; display: block; }
    .team-divider { margin-left: auto; margin-right: auto; }
    .btn-read-more { margin-left: auto; margin-right: auto; }
}

/* ===== Services Page ===== */
.service-block { padding: 3rem 0; border-bottom: 1px solid #eee; }
.service-block:last-child { border-bottom: none; }
.service-hero {
    position: relative;
    height: 200px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 2rem;
}
.service-hero img { width: 100%; height: 100%; object-fit: cover; }
.service-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(27,43,75,0.55);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}
.service-hero-overlay h2 { color: var(--hp-white); font-size: 1.4rem; font-weight: 300; margin: 0; }

/* ===== Transaction Tiles ===== */
.transaction-tile {
    padding: 0.5rem;
    text-align: center;
    width: 240px;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 8px;
    transition: box-shadow 0.25s, transform 0.25s;
}
.transaction-tile:hover {
    box-shadow: 0 8px 24px rgba(27,43,75,0.18);
    transform: translateY(-3px);
}
.transaction-tile img { max-width: 225px; max-height: 150px; object-fit: contain; }
.transaction-tile span { font-size: 0.8rem; color: var(--hp-text-muted); }

/* ===== Community Cards ===== */
.community-grid-section {
    position: relative;
    padding: 4rem 0;
}
.community-grid-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('/images/heroes/hero-blue-facade.jpg');
    background-size: cover;
    background-position: center;
    filter: brightness(0.9);
    z-index: 0;
}
.community-grid-section > * { position: relative; z-index: 1; }
.community-card {
    background: var(--hp-white);
    border-radius: 30px 8px 30px 8px;
    padding: 2.5rem 1.75rem;
    height: 100%;
    min-height: 380px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.community-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(10,20,40,0.35);
}
.community-card img { max-height: 80px; max-width: 200px; object-fit: contain; margin-bottom: 1.25rem; display: block; margin-left: auto; margin-right: auto; }
.community-card p { font-size: 0.875rem; line-height: 1.65; color: #131f4a; margin: 0; font-weight: 500; }

/* ===== Contact ===== */
.contact-details { font-size: 0.95rem; line-height: 2; font-weight: 500; }
.contact-details a { color: #131f4a; font-weight: 500; }
.contact-intro { font-weight: 500; }
.contact-map { border-radius: 6px; overflow: hidden; }
.contact-map img { width: 100%; height: 300px; object-fit: cover; }

/* ===== Footer ===== */
.hp-footer {
    background: #1a5fa0;  /* fallback for old browsers */
    background: -webkit-linear-gradient(270deg, #1a5fa0, #1b2b4b);  /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(270deg, #1a5fa0, #1b2b4b); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
    color: rgba(255,255,255,0.85);
    padding: 3rem 0;
    margin-top: 0;
}
.hp-footer p { color: rgba(255,255,255,0.9); font-size: 1.05rem; font-weight: 700; }
.footer-link {
    color: rgba(255,255,255,0.9);
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
}
.footer-link:hover { color: var(--hp-white); text-decoration: none; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.3);
}
.footer-bottom p { font-size: 0.9rem; font-weight: 400; }

/* ===== Scroll Reveal ===== */
.reveal-card {
    opacity: 0;
}
.reveal-card.revealed {
    animation: revealFadeDown 0.8s ease forwards;
}
@keyframes revealFadeDown {
    from { opacity: 0; transform: translateY(-30px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ===== Utilities ===== */
.text-navy { color: var(--hp-navy) !important; }
.section-title { font-weight: 300; color: var(--hp-navy); font-size: 1.6rem; }
.section-title strong { font-weight: 700; }

/* ===== Mobile: transaction tiles 2-up ===== */
@media (max-width: 767.98px) {
    .transaction-tile {
        width: calc(50% - 0.25rem);
        min-height: 130px;
    }
    .transaction-tile img { max-width: 100%; max-height: 110px; }
}
