@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:wght@500;600;700;800&display=swap');

:root {
    --blue-900: #0f2d52;
    --blue-800: #1a4a7a;
    --blue-700: #1e5a96;
    --blue-600: #2563a8;
    --blue-500: #3b82c4;
    --green-600: #1a7a4a;
    --green-500: #22a058;
    --green-400: #34c471;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-400: #94a3b8;
    --gray-600: #475569;
    --gray-800: #1e293b;
    --shadow-sm: 0 1px 3px rgba(15, 45, 82, 0.06);
    --shadow-md: 0 8px 24px rgba(15, 45, 82, 0.08);
    --shadow-lg: 0 20px 48px rgba(15, 45, 82, 0.12);
    --radius: 16px;
    --radius-lg: 24px;
    --font-display: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --nav-height: 72px;
    --header-top-height: 40px;
    --header-total: calc(var(--header-top-height) + var(--nav-height));
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--gray-800);
    background: var(--white);
    line-height: 1.65;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-display {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.25;
    color: var(--blue-900);
}

a { transition: color var(--transition), opacity var(--transition); }

/* ── Site header (two-row fixed) ── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    transition: box-shadow var(--transition);
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

/* Top info row */
.header-top {
    background: var(--blue-900);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    height: var(--header-top-height);
}

.header-top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-top-height);
    gap: 1rem;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.85);
    white-space: nowrap;
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    min-width: 0;
}

.header-contact a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.header-contact a:hover { color: var(--green-400); }

.header-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.header-meta-divider {
    opacity: 0.35;
}

/* Main nav row */
.header-main {
    padding: 0;
    min-height: var(--nav-height);
    transition: background var(--transition), backdrop-filter var(--transition);
}

.header-main .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    min-height: var(--nav-height);
}

.header-main .navbar-collapse {
    flex-grow: 1;
}

.header-main .navbar-nav {
    align-items: center;
    gap: 0.15rem;
}

.header-main .nav-link {
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem !important;
    border-radius: 8px;
    white-space: nowrap;
    transition: all var(--transition);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    margin-left: auto;
}

.btn-header-outline {
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    color: white;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.8125rem;
    padding: 0.45rem 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.btn-header-outline:hover {
    background: white;
    color: var(--blue-800);
    border-color: white;
}

.btn-header-green {
    background: linear-gradient(135deg, var(--green-600), var(--green-500));
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.8125rem;
    padding: 0.45rem 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(26, 122, 74, 0.35);
}

.btn-header-green:hover {
    background: linear-gradient(135deg, var(--green-500), var(--green-400));
    color: white;
}

/* Home: transparent nav over hero until scroll */
.site-header.is-home:not(.scrolled) .header-main {
    background: rgba(15, 45, 82, 0.55);
    backdrop-filter: blur(12px);
}

.site-header.is-home:not(.scrolled) .header-main .nav-link,
.site-header.is-home:not(.scrolled) .navbar-brand {
    color: white !important;
}

.site-header.is-home:not(.scrolled) .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.45);
}

.site-header.is-home:not(.scrolled) .navbar-toggler-icon {
    filter: invert(1);
}

/* Scrolled or inner pages: solid white nav */
.site-header.scrolled .header-main,
.site-header.is-inner .header-main {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--gray-200);
}

.site-header.scrolled .header-main .nav-link,
.site-header.is-inner .header-main .nav-link {
    color: var(--gray-800) !important;
}

.site-header.scrolled .header-main .nav-link:hover,
.site-header.scrolled .header-main .nav-link.active,
.site-header.is-inner .header-main .nav-link:hover,
.site-header.is-inner .header-main .nav-link.active {
    color: var(--green-600) !important;
    background: rgba(34, 160, 88, 0.08);
}

.site-header.scrolled .btn-header-outline,
.site-header.is-inner .btn-header-outline {
    border-color: var(--blue-600);
    color: var(--blue-700);
}

.site-header.scrolled .btn-header-outline:hover,
.site-header.is-inner .btn-header-outline:hover {
    background: var(--blue-700);
    color: white;
    border-color: var(--blue-700);
}

.site-header.scrolled .navbar-brand,
.site-header.is-inner .navbar-brand {
    color: var(--blue-900) !important;
}

.site-header.is-inner .header-top {
    display: block;
}

@media (min-width: 1200px) {
    .header-main .navbar-collapse {
        display: flex !important;
        flex-wrap: nowrap;
        align-items: center;
    }

    .header-main .navbar-nav {
        flex-wrap: nowrap;
    }
}

.navbar-brand {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.brand-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--green-500), var(--green-400));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(34, 160, 88, 0.35);
}

.brand-text span {
    display: block;
    font-size: 0.65rem;
    font-weight: 500;
    opacity: 0.85;
    font-family: var(--font-body);
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.nav-link:hover { background: rgba(34, 160, 88, 0.08); }

/* ── Buttons ── */
.btn {
    font-family: var(--font-body);
    font-weight: 600;
    border-radius: 12px;
    padding: 0.65rem 1.5rem;
    transition: all var(--transition);
    border: none;
}

.btn-lg { padding: 0.85rem 2rem; border-radius: 14px; }

.btn-primary-custom {
    background: linear-gradient(135deg, var(--blue-700), var(--blue-600));
    color: white;
    box-shadow: 0 4px 16px rgba(30, 90, 150, 0.3);
}

.btn-primary-custom:hover {
    background: linear-gradient(135deg, var(--blue-800), var(--blue-700));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(30, 90, 150, 0.35);
}

.btn-green-custom {
    background: linear-gradient(135deg, var(--green-600), var(--green-500));
    color: white;
    box-shadow: 0 4px 16px rgba(26, 122, 74, 0.3);
}

.btn-green-custom:hover {
    background: linear-gradient(135deg, var(--green-600), var(--green-400));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(26, 122, 74, 0.35);
}

.btn-outline-light-custom {
    border: 2px solid rgba(255, 255, 255, 0.6);
    color: white;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
}

.btn-outline-light-custom:hover {
    background: white;
    color: var(--blue-800);
    border-color: white;
}

.btn-outline-primary-custom {
    border: 2px solid var(--blue-600);
    color: var(--blue-700);
    background: transparent;
}

.btn-outline-primary-custom:hover {
    background: var(--blue-700);
    color: white;
    border-color: var(--blue-700);
}

/* ── Hero ── */
.hero-modern {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: calc(var(--header-total) + 40px) 0 80px;
}

.hero-modern .hero-bg {
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?w=1920&q=80') center/cover no-repeat;
}

.hero-modern .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 45, 82, 0.92) 0%, rgba(26, 74, 122, 0.85) 50%, rgba(26, 122, 74, 0.75) 100%);
}

.hero-modern .hero-content { position: relative; z-index: 2; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    color: white;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.hero-meta {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9375rem;
    margin-bottom: 2rem;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.stat-item .stat-num {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: white;
    line-height: 1;
}

.stat-item .stat-label {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.25rem;
}

/* ── Sections ── */
.section-padding { padding: 5rem 0; }

.section-padding-sm { padding: 3.5rem 0; }

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--green-600);
    margin-bottom: 0.75rem;
}

.section-heading {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-desc {
    color: var(--gray-600);
    font-size: 1.0625rem;
    max-width: 640px;
}

.bg-soft { background: var(--gray-50); }

.bg-gradient-soft {
    background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
}

/* ── Cards ── */
.modern-card {
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    padding: 2rem;
    height: 100%;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}

.modern-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.modern-card .card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
}

.icon-blue { background: rgba(37, 99, 168, 0.1); color: var(--blue-600); }
.icon-green { background: rgba(34, 160, 88, 0.1); color: var(--green-600); }
.icon-gradient { background: linear-gradient(135deg, rgba(37, 99, 168, 0.12), rgba(34, 160, 88, 0.12)); color: var(--blue-700); }

.modern-card h5 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.modern-card p {
    color: var(--gray-600);
    font-size: 0.9375rem;
    margin-bottom: 0;
}

/* ── Feature showcase (portal / fees) ── */
.feature-showcase {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 100%);
    color: white;
    position: relative;
}

.feature-showcase.green {
    background: linear-gradient(135deg, var(--green-600) 0%, var(--blue-700) 100%);
}

.feature-showcase .showcase-inner { padding: 3.5rem; position: relative; z-index: 2; }

.feature-showcase .showcase-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.06;
    background-image: radial-gradient(circle at 2px 2px, white 1px, transparent 0);
    background-size: 32px 32px;
}

.feature-list-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-list-item:last-child { border-bottom: none; }

.feature-list-item .fi-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-list-item h6 { color: white; margin-bottom: 0.15rem; font-size: 0.9375rem; }
.feature-list-item p { color: rgba(255, 255, 255, 0.7); font-size: 0.8125rem; margin: 0; }

/* ── Timeline / Steps ── */
.steps-row { display: flex; flex-wrap: wrap; gap: 1.5rem; }

.step-card {
    flex: 1;
    min-width: 200px;
    text-align: center;
    padding: 2rem 1.5rem;
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    position: relative;
    transition: all var(--transition);
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.step-num {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--blue-600), var(--green-500));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.125rem;
    margin: 0 auto 1rem;
}

/* ── Page hero (inner pages) ── */
.page-hero {
    position: relative;
    padding: calc(var(--header-total) + 32px) 0 4rem;
    margin-top: 0;
    background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 60%, var(--green-600) 100%);
    overflow: hidden;
}

body.inner-page:not(.has-header-top) .page-hero {
    padding-top: calc(var(--nav-height) + 32px);
}

@media (min-width: 1200px) {
    body.inner-page .page-hero {
        padding-top: calc(var(--header-total) + 32px);
    }
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1427504494785-3a9ca7044f45?w=1920&q=80') center/cover;
    opacity: 0.12;
}

.page-hero .container { position: relative; z-index: 2; }

.page-hero h1 {
    color: white;
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 0.75rem;
}

.page-hero .breadcrumb-nav {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.page-hero .breadcrumb-nav a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

.page-hero .breadcrumb-nav a:hover { color: var(--green-400); }

/* ── Image frames ── */
.img-frame {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.img-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.img-frame:hover img { transform: scale(1.03); }

.img-placeholder-modern {
    background: linear-gradient(145deg, var(--gray-100), var(--gray-200));
    border-radius: var(--radius-lg);
    min-height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--blue-700);
    border: 1px dashed var(--gray-200);
}

/* ── CTA band ── */
.cta-band {
    background: linear-gradient(135deg, var(--blue-800), var(--green-600));
    border-radius: var(--radius-lg);
    padding: 3.5rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-band::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
}

.cta-band h3 { color: white; }

/* ── Contact form ── */
.form-modern .form-control,
.form-modern .form-select {
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-modern .form-control:focus,
.form-modern .form-select:focus {
    border-color: var(--blue-500);
    box-shadow: 0 0 0 4px rgba(37, 99, 168, 0.12);
}

.contact-info-card {
    background: white;
    border-radius: var(--radius);
    padding: 1.5rem;
    border: 1px solid var(--gray-200);
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    transition: all var(--transition);
}

.contact-info-card:hover {
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.contact-info-card .ci-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(37, 99, 168, 0.1), rgba(34, 160, 88, 0.1));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue-700);
    flex-shrink: 0;
}

/* ── Footer ── */
.site-footer {
    background: var(--blue-900);
    color: rgba(255, 255, 255, 0.75);
    padding-top: 4rem;
}

.site-footer h5, .site-footer h6 {
    color: white;
    font-size: 1rem;
    margin-bottom: 1.25rem;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: block;
    padding: 0.25rem 0;
    font-size: 0.9375rem;
    transition: color var(--transition), padding-left var(--transition);
}

.site-footer a:hover {
    color: var(--green-400);
    padding-left: 4px;
}

.footer-brand-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--green-500), var(--green-400));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    margin-top: 3rem;
    font-size: 0.875rem;
}

.footer-social a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    margin-right: 0.5rem;
    padding: 0;
}

.footer-social a:hover {
    background: var(--green-600);
    color: white;
    padding-left: 0;
}

/* ── Animations ── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── Rules accordion ── */
.accordion-modern .accordion-item {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius) !important;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.accordion-modern .accordion-button {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    padding: 1.25rem 1.5rem;
    background: white;
    box-shadow: none;
}

.accordion-modern .accordion-button:not(.collapsed) {
    background: var(--gray-50);
    color: var(--blue-700);
}

.accordion-modern .accordion-body {
    padding: 0 1.5rem 1.25rem;
    color: var(--gray-600);
}

/* ── Main offset for fixed nav pages ── */
body.has-page-hero { padding-top: 0; }
body:not(.home-page) .main-content { min-height: 50vh; }

/* ── Responsive header ── */
@media (max-width: 1199.98px) {
    :root {
        --header-top-height: 0px;
        --header-total: var(--nav-height);
    }

    .header-top { display: none !important; }

    .site-header.is-home:not(.scrolled) .header-main {
        background: rgba(15, 45, 82, 0.96);
    }

    .header-main .navbar-collapse {
        background: inherit;
        padding: 1rem 0 0.5rem;
    }

    .header-main .navbar-nav {
        gap: 0;
    }

    .header-actions {
        flex-direction: column;
        width: 100%;
        margin: 0.75rem 0 0;
        padding-top: 0.75rem;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }

    .site-header.scrolled .header-actions,
    .site-header.is-inner .header-actions {
        border-top-color: var(--gray-200);
    }

    .header-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-modern {
        min-height: auto;
        padding-top: calc(var(--nav-height) + 32px);
    }

    .section-padding { padding: 3.5rem 0; }
    .feature-showcase .showcase-inner { padding: 2rem; }
    .cta-band { padding: 2rem; }
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
    .header-main .nav-link {
        font-size: 0.8125rem;
        padding: 0.45rem 0.55rem !important;
    }

    .btn-header-outline,
    .btn-header-green {
        font-size: 0.75rem;
        padding: 0.4rem 0.7rem;
    }

    .navbar-brand {
        font-size: 0.95rem;
    }

    .brand-icon {
        width: 38px;
        height: 38px;
    }
}
