/* ================================================
   Virtufi Advisor — Main Stylesheet
   ================================================ */

:root {
    --primary:      #1c8167;
    --primary-dark: #155a4a;
    --accent:       #69a775;
    --accent-light: #a8d4b0;
    --text-dark:    #1D1E20;
    --text-muted:   #64748b;
    --bg-light:     #F4F5F7;
    --bg-section:   #edf4f0;
    --white:        #ffffff;
    --border:       #d4e8de;
    --shadow:       0 4px 24px rgba(28, 129, 103, 0.10);
    --shadow-hover: 0 8px 32px rgba(28, 129, 103, 0.18);
}

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

body {
    font-family: 'Nunito', sans-serif;
    color: var(--text-dark);
    background: var(--white);
    font-size: 1rem;
    line-height: 1.7;
}

h1, h2, h3, h4 {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.3;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--accent); }

img { max-width: 100%; }

/* ---- Top Bar ---- */
.topbar {
    background: var(--primary-dark);
    padding: 8px 0;
    font-size: 0.82rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.topbar a {
    color: rgba(255,255,255,0.85);
    transition: color 0.2s;
}
.topbar a:hover { color: var(--accent); }
.topbar-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    margin-left: 6px;
    font-size: 0.78rem;
    transition: background 0.2s;
}
.topbar-social a:hover { background: var(--accent); color: #fff; }

/* ---- Navbar ---- */
#mainNav {
    background: var(--primary);
    box-shadow: 0 2px 16px rgba(28,129,103,0.18);
    transition: box-shadow 0.3s;
    padding: 10px 0;
}
#mainNav.scrolled { box-shadow: 0 4px 24px rgba(28,129,103,0.28); }
.navbar-brand { font-weight: 800; font-size: 1.5rem; color: var(--white); }
.brand-text-fallback { font-size: 1.6rem; font-weight: 800; color: var(--white) !important; }
.navbar-toggler { border-color: rgba(255,255,255,0.4); }
.navbar-toggler-icon { filter: invert(1); }
.nav-link {
    font-weight: 500;
    font-size: 0.92rem;
    color: rgba(255,255,255,0.9) !important;
    padding: 8px 14px !important;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}
.nav-link:hover, .nav-link.active { color: #fff !important; background: rgba(255,255,255,0.15); }
.nav-link.btn-primary { background: var(--white) !important; color: var(--primary) !important; font-weight: 700; }
.nav-link.btn-primary:hover { background: var(--accent-light) !important; color: var(--primary-dark) !important; }
.dropdown-menu { border: none; box-shadow: var(--shadow); border-radius: 10px; padding: 8px; background: var(--white); }
.dropdown-item { border-radius: 6px; font-size: 0.9rem; padding: 8px 14px; color: var(--text-dark); }
.dropdown-item:hover { background: var(--bg-section); color: var(--primary); }
.dropdown-toggle::after { border-top-color: rgba(255,255,255,0.8); }

/* ---- Buttons ---- */
.btn-primary-custom {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.25s, transform 0.2s, box-shadow 0.2s;
    display: inline-block;
}
.btn-primary-custom:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(105,167,117,0.40);
}
.btn-outline-custom {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 10px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.25s;
    display: inline-block;
}
.btn-outline-custom:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

/* ---- Page Banner ---- */
.page-banner {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, #22a07f 100%);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}
.page-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('/assets/images/banner-pattern.svg') repeat;
    opacity: 0.04;
}
.page-banner h1 { color: var(--white); margin-bottom: 12px; }
.page-banner .breadcrumb { background: transparent; margin: 0; padding: 0; }
.page-banner .breadcrumb-item, .page-banner .breadcrumb-item a { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.page-banner .breadcrumb-item.active { color: var(--accent-light); }
.page-banner .breadcrumb-item+.breadcrumb-item::before { color: rgba(255,255,255,0.4); }

/* ---- Section Utilities ---- */
.section { padding: 80px 0; }
.section-sm { padding: 60px 0; }
.section-bg { background: var(--bg-light); }
.section-dark { background: var(--primary); }
.section-title { margin-bottom: 48px; }
.section-title .label {
    display: inline-block;
    background: rgba(105,167,117,0.15);
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 14px;
}
.section-title h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 16px; }
.section-title p { color: var(--text-muted); font-size: 1.05rem; max-width: 580px; }
.section-title.centered { text-align: center; }
.section-title.centered p { margin-inline: auto; }

/* ---- Hero ---- */
.hero {
    position: relative;
    min-height: 88vh;
    overflow: hidden;
    background: var(--primary-dark);
}
.hero-video {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.28;
    pointer-events: none;
    z-index: 0;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(21,90,74,0.86) 0%, rgba(28,129,103,0.78) 55%, rgba(34,160,127,0.72) 100%);
    z-index: 1;
}
.hero-container {
    position: relative;
    z-index: 2;
    min-height: 88vh;
    display: flex;
    align-items: center;
    padding-top: 60px;
    padding-bottom: 60px;
}
.hero-content { position: relative; z-index: 2; }
.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 24px;
}
.hero h1 .highlight { color: var(--accent); }
.hero p.lead {
    color: rgba(255,255,255,0.82);
    font-size: 1.1rem;
    max-width: 520px;
    margin-bottom: 36px;
}
.hero-visual {
    position: relative;
    z-index: 2;
}
.hero-card {
    background: rgba(255,255,255,0.07);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    padding: 28px;
    color: var(--white);
    transition: transform 0.3s;
}
.hero-card:hover { transform: translateY(-4px); }
.hero-card .stat-number {
    font-size: 2.4rem;
    font-weight: 800;
    font-family: 'Nunito', sans-serif;
    color: var(--accent);
}
.hero-card .stat-label { font-size: 0.85rem; opacity: 0.8; }

/* ---- Stats Bar ---- */
.stats-bar {
    background: var(--white);
    padding: 0;
    margin-top: -1px;
    box-shadow: 0 8px 32px rgba(28,129,103,0.1);
}
.stat-item {
    padding: 32px 24px;
    text-align: center;
    border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-number-lg {
    font-size: 2.6rem;
    font-weight: 800;
    font-family: 'Nunito', sans-serif;
    color: var(--primary);
    line-height: 1;
}
.stat-number-lg span { color: var(--accent); }
.stat-label-lg { font-size: 0.88rem; color: var(--text-muted); margin-top: 6px; font-weight: 500; }

/* ---- Cards ---- */
.card-service {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 36px 28px;
    height: 100%;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.card-service:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}
.card-service .icon-wrap {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(28,129,103,0.08), rgba(28,129,103,0.04));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: 20px;
}
.card-service:hover .icon-wrap { background: var(--primary); color: var(--white); }
.card-service h4 { font-size: 1.1rem; margin-bottom: 10px; }
.card-service p { color: var(--text-muted); font-size: 0.92rem; margin: 0; }

.card-team {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.25s, box-shadow 0.25s;
    height: 100%;
}
.card-team:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.card-team .team-photo {
    width: 100%;
    height: 240px;
    object-fit: cover;
    object-position: top;
    background: var(--bg-section);
}
.card-team .team-photo-placeholder {
    width: 100%;
    height: 240px;
    background: linear-gradient(135deg, var(--bg-section), #c3dfc9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.4;
}
.card-team .team-body { padding: 24px; }
.card-team .team-name { font-size: 1.1rem; margin-bottom: 4px; }
.card-team .team-role { color: var(--accent); font-weight: 600; font-size: 0.85rem; margin-bottom: 4px; }
.card-team .team-qual { color: var(--text-muted); font-size: 0.82rem; margin-bottom: 12px; }
.card-team .team-exp { font-size: 0.85rem; color: var(--primary); font-weight: 600; }
.card-team .team-bio { color: var(--text-muted); font-size: 0.88rem; margin-top: 10px; line-height: 1.6; }

.card-industry {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px 20px;
    text-align: center;
    height: 100%;
    transition: all 0.25s;
}
.card-industry:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}
.card-industry .icon { font-size: 2.2rem; color: var(--primary); margin-bottom: 14px; display: block; }
.card-industry:hover .icon { color: var(--accent); }
.card-industry h5 { font-size: 1rem; font-family: 'Nunito', sans-serif; font-weight: 600; margin: 0; }
.card-industry:hover h5 { color: var(--white); }

/* ---- Problem Cards ---- */
.card-problem {
    border-left: 4px solid var(--accent);
    background: var(--white);
    padding: 24px;
    border-radius: 0 10px 10px 0;
    box-shadow: var(--shadow);
    height: 100%;
}
.card-problem h5 { font-size: 1rem; font-family: 'Nunito', sans-serif; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.card-problem p { color: var(--text-muted); font-size: 0.9rem; margin: 0; }

/* ---- Process Steps ---- */
.process-step {
    text-align: center;
    position: relative;
}
.process-step .step-num {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 auto 20px;
    font-family: 'Nunito', sans-serif;
    position: relative;
    z-index: 2;
}
.process-step::after {
    content: '';
    position: absolute;
    top: 30px;
    left: 55%;
    width: 90%;
    height: 2px;
    background: linear-gradient(to right, var(--primary), transparent);
}
.process-step:last-child::after { display: none; }
.process-step h5 { font-size: 1rem; font-family: 'Nunito', sans-serif; font-weight: 700; margin-bottom: 8px; }
.process-step p { color: var(--text-muted); font-size: 0.88rem; }

/* ---- CTA Section ---- */
.cta-section {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(105,167,117,0.15) 0%, transparent 70%);
}
.cta-section h2 { color: var(--white); position: relative; }
.cta-section p { color: rgba(255,255,255,0.75); position: relative; }
.btn-accent {
    background: var(--accent);
    color: var(--white);
    border: none;
    padding: 14px 36px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.25s;
    display: inline-block;
    position: relative;
}
.btn-accent:hover { background: #4d8f5c; color: var(--white); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(105,167,117,0.45); }

/* ---- Contact ---- */
.contact-info-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}
.contact-info-item:last-child { border-bottom: none; }
.contact-info-item .ci-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(28,129,103,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary);
    flex-shrink: 0;
}
.contact-info-item .ci-content h6 { font-family: 'Nunito', sans-serif; font-size: 0.85rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.contact-info-item .ci-content p, .contact-info-item .ci-content a { color: var(--text-dark); font-size: 0.95rem; margin: 0; }

.contact-form-card {
    background: var(--white);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow);
}
.form-control, .form-select {
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.93rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(28,129,103,0.1);
    outline: none;
}
.form-label { font-weight: 600; font-size: 0.88rem; color: var(--text-dark); margin-bottom: 6px; }

/* ---- Map ---- */
.map-wrapper {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.map-wrapper iframe { display: block; }

/* ---- Careers ---- */
.career-highlight {
    background: var(--white);
    border-radius: 14px;
    padding: 32px 28px;
    box-shadow: var(--shadow);
    text-align: center;
    height: 100%;
    border-top: 4px solid var(--primary);
    transition: border-color 0.2s;
}
.career-highlight:hover { border-color: var(--accent); }
.career-highlight .ch-icon { font-size: 2.4rem; color: var(--primary); margin-bottom: 16px; display: block; }
.career-highlight h5 { font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 1rem; }
.career-highlight p { color: var(--text-muted); font-size: 0.9rem; margin: 0; }

/* ---- Footer ---- */
.footer { background: var(--primary-dark); color: rgba(255,255,255,0.75); }
.footer-top { padding: 64px 0 48px; }
.footer-brand p { font-size: 0.9rem; opacity: 0.75; max-width: 280px; }
.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    color: rgba(255,255,255,0.7);
    margin-right: 8px;
    font-size: 0.9rem;
    transition: all 0.2s;
}
.footer-social a:hover { background: var(--accent); color: var(--white); transform: translateY(-2px); }
.footer-heading { color: var(--white); font-weight: 700; font-size: 0.9rem; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 20px; font-family: 'Nunito', sans-serif; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,0.65); font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }
.footer-contact-list { list-style: none; padding: 0; margin: 0; }
.footer-contact-list li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; color: rgba(255,255,255,0.65); font-size: 0.88rem; }
.footer-contact-list li i { color: var(--accent); margin-top: 3px; font-size: 0.9rem; flex-shrink: 0; }
.footer-contact-list a { color: rgba(255,255,255,0.65); }
.footer-contact-list a:hover { color: var(--accent); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px 0;
    font-size: 0.83rem;
    color: rgba(255,255,255,0.45);
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--accent); }

/* ---- Alert ---- */
.alert-success-custom {
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    color: #065f46;
    border-radius: 10px;
    padding: 16px 20px;
    font-size: 0.93rem;
}
.alert-error-custom {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
    border-radius: 10px;
    padding: 16px 20px;
    font-size: 0.93rem;
}

/* ---- Animations ---- */
[data-aos] { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
[data-aos].aos-animate { opacity: 1; transform: translateY(0); }

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .section { padding: 56px 0; }
    .hero { min-height: auto; padding: 80px 0 60px; }
    .hero h1 { font-size: 2rem; }
    .stat-item { border-right: none; border-bottom: 1px solid var(--border); }
    .stat-item:last-child { border-bottom: none; }
    .process-step::after { display: none; }
    .contact-form-card { padding: 24px 20px; }
}

@media (max-width: 576px) {
    .hero h1 { font-size: 1.75rem; }
    .section-title h2 { font-size: 1.6rem; }
}
