* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans 3', Arial, Helvetica, sans-serif;
    background: #f7f9fc;
    color: #203649;
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

.italic-i {
    font-style: italic;
}

.top-bar {
    background: #0f2b3d;
    color: #eef7ff;
    width: 100%;
}

.top-bar-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.88rem;
}

.top-bar-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.top-bar-item a {
    color: inherit;
    text-decoration: none;
}

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 18px 48px;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    background: transparent;
}

.main-header.scrolled {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.main-header.scrolled .logo-text h1,
.main-header.scrolled .nav-bar a,
.main-header.scrolled .menu-toggle {
    color: #22384e;
    text-shadow: none;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.logo-icon img {
    width: 46px;
    height: 46px;
    object-fit: contain;
}

.logo-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.35);
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.nav-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.8rem;
    margin-left: auto;
}

.nav-bar a {
    color: #fff;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.nav-bar a:hover,
.nav-bar a.active {
    color: #f1c75d;
}

.nav-bar a.active {
    border-bottom: 2px solid #f1c75d;
    padding-bottom: 2px;
}

.main-header.scrolled .nav-bar a.active {
    color: #0f2b3d;
    border-bottom-color: #2f678c;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 0.75rem;
}

.login-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    background: #5b6a8a;
    color: #eef7ff;
    border-radius: 999px;
    padding: 0.7rem 1rem;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

.login-btn:hover {
    background: #f1c75d;
    color: #16324a;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
}

.hero {
    position: relative;
    min-height: 660px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background:
        linear-gradient(rgba(0, 0, 0, 0.46), rgba(0, 0, 0, 0.46)),
        url('../images/bk2.jpg') center/cover no-repeat;
    padding: 170px 1rem 150px;
}

.hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 110px;
    background: linear-gradient(to bottom, rgba(245,247,251,0), rgba(245,247,251,0.98));
}

.hero-top-info {
    position: relative;
    z-index: 2;
    width: min(1120px, 100%);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    padding: 0.6rem 1rem;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(6px);
    border-radius: 999px;
}

.hero-top-item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #f7f9fc;
    font-size: 0.88rem;
    white-space: nowrap;
}

.hero-top-item a {
    color: inherit;
    text-decoration: none;
}

.hero-top-item:first-child {
    justify-self: start;
}

.hero-top-item:nth-child(2) {
    justify-self: center;
}

.hero-top-item:last-child {
    justify-self: end;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
    padding: 0 1rem;
}

.hero-logo-wrapper {
    width: 220px;
    height: 220px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-animate {
    animation: fadeUp 0.7s ease both;
}

.hero-content .hero-logo-wrapper { animation-delay: 0.1s; }
.hero-content h2.hero-animate { animation-delay: 0.2s; }
.hero-content .hero-sub.hero-animate { animation-delay: 0.3s; }
.hero-content .hero-tagline.hero-animate { animation-delay: 0.4s; }
.hero-content .hero-actions.hero-animate { animation-delay: 0.5s; }
.hero-top-info.hero-animate { animation-delay: 0s; }

.hero-logo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.hero h2 {
    color: #fff;
    font-size: 3.2rem;
    font-weight: 800;
    text-shadow: 0 3px 8px rgba(0,0,0,0.3);
    letter-spacing: 1.2px;
    margin-bottom: 0.45rem;
}

.hero h2 .welcome-text,
.hero h2 .welcome-word,
.hero h2 .welcome-space,
.hero h2 .welcome-brand {
    display: inline-block;
}

.hero-sub {
    color: #eef7ff;
    font-size: 1rem;
    margin-bottom: 0.8rem;
}

.hero-tagline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #f3cf6a;
    font-weight: 700;
    letter-spacing: 0.4px;
    margin-bottom: 1.4rem;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.4rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease, border-color 0.25s ease;
}

.hero-btn:hover {
    transform: translateY(-2px);
}

.hero-btn-primary {
    background: #f1c75d;
    color: #16324a;
    border: 2px solid #f1c75d;
}

.hero-btn-primary:hover {
    background: #e5b84a;
    border-color: #e5b84a;
}

.hero-btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.85);
    font-family: inherit;
}

.hero-btn-outline:hover {
    background: #e5b84a;
    border-color: #e5b84a;
}

.services-section {
    position: relative;
    z-index: 2;
    background: transparent;
    margin-top: -85px;
    padding: 0 1rem 4rem;
}

.cards-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    position: relative;
    z-index: 3;
}

.card {
    background: #fff;
    border-radius: 1rem;
    padding: 1.7rem;
    box-shadow: 0 16px 36px rgba(15, 43, 61, 0.08);
    min-height: 100%;
    border: 1px solid #eef4fb;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 44px rgba(15, 43, 61, 0.14);
}

.card:hover .card-icon {
    background: #0f2b3d;
    color: #f1c75d;
}

.card.reveal:nth-child(1) { transition-delay: 0s; }
.card.reveal:nth-child(2) { transition-delay: 0.12s; }
.card.reveal:nth-child(3) { transition-delay: 0.24s; }

.card-icon {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    background: #eef6ff;
    color: #0f2b3d;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    transition: background 0.3s ease, color 0.3s ease;
}

.card h3 {
    color: #0f2b3d;
    margin-bottom: 0.6rem;
}

.card p {
    color: #4d6277;
    margin-bottom: 1rem;
}

.card-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #0f2b3d;
    text-decoration: none;
    border: 1.5px solid #0f2b3d;
    border-radius: 999px;
    padding: 0.7rem 1rem;
    font-size: 0.82rem;
    font-weight: 700;
}

.card-btn:hover {
    background: #0f2b3d;
    color: #fff;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 800;
    color: #0f2b3d;
    margin-bottom: 1.2rem;
}

.about-section {
    background: #fff;
    border-radius: 1.5rem;
    box-shadow: 0 18px 38px -22px rgba(0,0,0,0.18);
}

.about-text p {
    color: #31485c;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.vm-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
}

.vm-card {
    background: #fff;
    border-radius: 1rem;
    padding: 1.6rem;
    box-shadow: 0 12px 28px -18px rgba(0,0,0,0.18);
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.vm-card-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.9rem;
}

.vm-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef6ff;
    color: #0f2b3d;
}

.vm-list {
    padding-left: 1.1rem;
    color: #4d6277;
    display: grid;
    gap: 0.6rem;
    line-height: 1.7;
}

.advocates-section {
    text-align: center;
}

.advocates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.advocate-card {
    background: #fff;
    border-radius: 1rem;
    padding: 1.5rem 1rem;
    box-shadow: 0 14px 32px -20px rgba(0,0,0,0.18);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.advocate-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px -16px rgba(0,0,0,0.22);
}

.advocate-photo-wrap {
    width: 140px;
    height: 140px;
    border-radius: 999px;
    overflow: hidden;
    margin: 0 auto 1rem;
    background: #dceeff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, 0.35);
}

.advocate-photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.advocate-initials {
    color: #0f2b3d;
    font-size: 2rem;
    font-weight: 800;
}

.advocate-name {
    font-size: 1rem;
    font-weight: 700;
    color: #0f2b3d;
}

.advocate-role {
    color: #5b748d;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.advocate-schedule {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #2f678c;
    font-size: 0.88rem;
    font-weight: 600;
    background: #eef6ff;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    margin-top: 0.25rem;
}

.intro-section-wrap {
    padding: 0 1rem 3rem;
}

.intro-section {
    max-width: 1100px;
    margin: 0 auto;
    background: #fff;
    border-radius: 1.5rem;
    padding: 2.5rem 1.5rem;
    text-align: center;
    box-shadow: 0 20px 35px -18px rgba(0,0,0,0.18);
}

.signage-ribbon {
    margin-bottom: 1rem;
}

.empower-signage {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: #2f678c;
    color: #fff;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    font-weight: 700;
}

.intro-title {
    font-size: 2rem;
    font-weight: 800;
    color: #0f2b3d;
    margin-bottom: 1rem;
}

.intro-title span {
    color: #f0b94b;
}

.intro-highlight {
    max-width: 900px;
    margin: 0 auto 1rem;
    color: #31485c;
}

.intro-quote {
    color: #5b748d;
    font-style: italic;
}

.contact-section {
    background: #fff;
    border-radius: 1.5rem;
    box-shadow: 0 16px 35px -18px rgba(0,0,0,0.12);
}

.contact-info {
    background: #f9fbfd;
    border-radius: 1rem;
    padding: 1.4rem;
}

.contact-detail {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.contact-detail i {
    color: #2f678c;
    font-size: 1rem;
    margin-top: 0.2rem;
}

.contact-detail strong {
    display: block;
    color: #0f2b3d;
}

.contact-detail a,
.footer-col a {
    color: inherit;
    text-decoration: none;
}

.contact-hours {
    color: #4d6277;
}

.footer {
    background: linear-gradient(135deg, #0f2b3d 0%, #163a52 100%);
    color: #d8e7f3;
    padding: 2.4rem 1rem 1.6rem;
    margin-top: 2rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

.footer-brand,
.footer-col {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 1rem;
    padding: 1.2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.footer-logo img {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.footer-brand h3 {
    color: #fff;
    font-size: 1rem;
}

.footer-description {
    color: #c4d7e7;
    line-height: 1.7;
    font-size: 0.95rem;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 0.85rem;
}

.footer-col ul {
    list-style: none;
    display: grid;
    gap: 0.6rem;
}

.footer-col li {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    color: #d8e7f3;
    line-height: 1.6;
}

.footer-col li i {
    margin-top: 0.2rem;
    color: #f1c75d;
}

.footer-col a {
    color: #f7fbff;
}

.footer-bottom {
    max-width: 1200px;
    margin: 1.1rem auto 0;
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.12);
}

.reveal {
    opacity: 0;
    transform: translateY(28px) translateZ(-60px) rotateX(12deg) scale(0.96);
    transform-origin: 50% 100%;
    transition:
        opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.35s ease;
    will-change: transform, opacity;
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0) translateZ(0) rotateX(0deg) scale(1);
}

/* Depth stage for section groups */
.cards-container,
.vm-grid,
.advocates-grid,
.footer-inner {
    perspective: 1000px;
    perspective-origin: 50% 40%;
}

.card.reveal,
.vm-card.reveal,
.advocate-card.reveal,
.footer-brand.reveal,
.footer-col.reveal {
    transform-style: preserve-3d;
}

.card.reveal.in-view:hover,
.vm-card.reveal.in-view:hover,
.advocate-card.reveal.in-view:hover {
    transform: translateY(-8px) translateZ(18px) rotateX(2deg) scale(1.02);
    box-shadow: 0 18px 36px rgba(15, 43, 61, 0.14);
}

@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal.in-view,
    .card.reveal.in-view:hover,
    .vm-card.reveal.in-view:hover,
    .advocate-card.reveal.in-view:hover {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

@media (max-width: 980px) {
    .main-header {
        padding: 15px 18px;
        align-items: center;
    }

    .logo-area {
        min-width: 0;
    }

    .logo-text h1 {
        font-size: 0.78rem;
    }

    .nav-bar {
        position: absolute;
        top: 100%;
        right: 18px;
        left: 18px;
        background: #fff;
        flex-direction: column;
        gap: 0.7rem;
        padding: 1rem;
        display: none;
        border-radius: 0.9rem;
        box-shadow: 0 12px 24px rgba(0,0,0,0.08);
        margin-left: 0;
    }

    .nav-bar.open {
        display: flex;
    }

    .nav-bar a {
        color: #22384e;
        text-shadow: none;
        width: 100%;
        text-align: center;
    }

    .menu-toggle {
        display: inline-block;
    }

    .cards-container,
    .vm-grid,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 540px;
        padding-top: 210px;
    }

    .hero-top-info {
        grid-template-columns: 1fr;
        border-radius: 1rem;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
    }

    .hero-top-item:first-child,
    .hero-top-item:nth-child(2),
    .hero-top-item:last-child {
        justify-self: center;
        white-space: normal;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .top-bar-inner {
        justify-content: flex-start;
        padding: 0.55rem 0.9rem;
    }

    .main-header {
        padding: 12px 12px;
        gap: 0.5rem;
    }

    .logo-area {
        gap: 8px;
        flex: 1 1 auto;
        min-width: 0;
    }

    .logo-icon img {
        width: 40px;
        height: 40px;
    }

    .logo-text {
        min-width: 0;
    }

    .logo-text h1 {
        font-size: 0.68rem;
        line-height: 1.2;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .nav-bar {
        right: 12px;
        left: 12px;
        padding: 0.85rem;
    }

    .menu-toggle {
        font-size: 1rem;
    }

    .hero {
        min-height: 500px;
        padding: 200px 0.8rem 70px;
    }

    .hero h2 {
        font-size: 2.2rem;
    }

    .hero-logo-wrapper {
        width: 160px;
        height: 160px;
        padding: 18px;
    }

    .hero-top-item {
        font-size: 0.8rem;
    }

    .hero-actions {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: center;
        width: auto;
        max-width: 100%;
        margin: 0 auto;
        gap: 0.4rem;
    }

    .hero-btn {
        width: auto;
        flex: 0 1 auto;
        min-width: 0;
        min-height: 36px;
        padding: 0.45rem 0.75rem;
        font-size: 0.72rem;
        white-space: nowrap;
    }

    .cards-container,
    .section-container,
    .intro-section-wrap,
    .footer {
        padding-left: 0.8rem;
        padding-right: 0.8rem;
    }

    .cards-container {
        gap: 0.85rem;
        max-width: 340px;
        margin-left: auto;
        margin-right: auto;
    }

    .vm-grid {
        gap: 0.85rem;
        max-width: 340px;
        margin-left: auto;
        margin-right: auto;
    }

    .section-title,
    .intro-title {
        font-size: 1.6rem;
    }

    .about-section,
    .contact-section,
    .intro-section {
        padding: 1.25rem 1rem;
    }

    .card {
        padding: 1.05rem 0.95rem;
        border-radius: 0.9rem;
    }

    .card-icon {
        width: 44px;
        height: 44px;
        font-size: 1.15rem;
        border-radius: 0.75rem;
        margin-bottom: 0.7rem;
    }

    .card h3 {
        font-size: 1rem;
        margin-bottom: 0.4rem;
    }

    .card p {
        font-size: 0.86rem;
        line-height: 1.55;
        margin-bottom: 0.75rem;
    }

    .card-btn {
        min-height: 40px;
        font-size: 0.74rem;
        padding: 0.55rem 0.8rem;
    }

    .vm-card {
        padding: 1.05rem 0.95rem;
        border-radius: 0.9rem;
    }

    .vm-card-header {
        gap: 0.55rem;
        margin-bottom: 0.65rem;
    }

    .vm-card-icon {
        width: 40px;
        height: 40px;
        font-size: 0.95rem;
    }

    .vm-card h3 {
        font-size: 1rem;
    }

    .vm-card p,
    .vm-list {
        font-size: 0.86rem;
        line-height: 1.55;
    }

    .advocate-card {
        padding: 1.05rem 0.9rem;
        border-radius: 0.9rem;
    }

    .advocate-photo-wrap {
        width: 112px;
        height: 112px;
        margin-bottom: 0.75rem;
    }

    .advocate-name {
        font-size: 0.92rem;
    }

    .advocate-role,
    .advocate-schedule {
        font-size: 0.82rem;
    }

    .contact-detail {
        flex-direction: column;
        gap: 0.45rem;
    }

    .advocates-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        gap: 1.1rem;
    }
}

@media (max-width: 480px) {
    .main-header {
        padding: 10px 10px;
    }

    .logo-text h1 {
        font-size: 0.6rem;
    }

    .hero {
        min-height: 460px;
        padding: 180px 0.7rem 60px;
    }

    .hero h2 {
        font-size: 1.8rem;
        letter-spacing: 0.6px;
    }

    .hero-sub {
        font-size: 0.95rem;
    }

    .hero-logo-wrapper {
        width: 140px;
        height: 140px;
        padding: 14px;
    }

    .hero-actions {
        max-width: 100%;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 0.35rem;
    }

    .hero-btn {
        min-height: 32px;
        padding: 0.4rem 0.65rem;
        font-size: 0.68rem;
    }

    .services-section {
        margin-top: -45px;
        padding-bottom: 2.5rem;
    }

    .section-title,
    .intro-title {
        font-size: 1.4rem;
    }

    .intro-section,
    .about-section,
    .contact-section {
        padding: 1.1rem 0.85rem;
        border-radius: 1rem;
    }

    .advocate-photo-wrap {
        width: 120px;
        height: 120px;
    }

    .footer {
        padding: 1.5rem 0.8rem;
    }

    .footer-logo {
        align-items: flex-start;
        flex-direction: column;
    }
}