﻿/* =========================
ROOT / GLOBAL
========================= */
:root {
    --brand: #1e3a8a;
    --brand-dark: #172554;
    --text-dark: #1f2937;
    --text-muted: #6b7280;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: #ffffff;
    color: var(--text-dark);
    padding-top: 150px; /* match your navbar height */
}

    body.loading {
        opacity: 0;
    }

/* =========================
NAVBAR
========================= */
/* NAVBAR BASE */
.navbar {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: #ffffff;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}


    /* ON SCROLL */
    .navbar.scrolled {
        padding: 10px 0;
        box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    }

.navbar-brand img {
    height: 80px;
}

.nav-link {
    position: relative;
    font-weight: 500;
    margin-left: 15px;
    color: var(--text-dark) !important;
    transition: 0.3s;
}

    .nav-link:hover {
        color: var(--brand) !important;
    }

    .nav-link::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -6px;
        width: 0%;
        height: 2px;
        background: var(--brand);
        transition: width 0.3s ease;
    }

    .nav-link:hover::after {
        width: 100%;
    }

    .nav-link.active {
        color: var(--brand) !important;
    }

        .nav-link.active::after {
            width: 100%;
        }

/* =========================
HERO
========================= */
.hero {
    position: relative;
    padding: 200px 0 150px;
    text-align: center;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    overflow: hidden;
}

    .hero h1 {
        font-size: 56px;
        font-weight: 800;
        letter-spacing: -1px;
    }

    .hero p {
        font-size: 17px;
        line-height: 1.6;
    }

/* BACKGROUND SVG */
.hero-bg-svg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

    .hero-bg-svg svg {
        width: 100%;
        height: 100%;
        display: block;
        animation: floatWave 12s ease-in-out infinite;
    }

/* CONTENT ABOVE */
.hero .container {
    position: relative;
    z-index: 2;
}

/* LEFT CURVE */
.hero::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50%;
    height: 200px;
    background: radial-gradient(circle at bottom left, rgba(30,58,138,0.08), transparent);
}

/* TEXT */
.gradient-text {
    background: linear-gradient(90deg, #1e3a8a, #3b82f6, #1e3a8a);
    background-size: 200% 200%;
    animation: gradientMove 4s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-muted-custom {
    color: var(--text-muted);
}

.divider {
    width: 60px;
    height: 3px;
    background: var(--brand);
    margin: 20px auto;
}

/* =========================
BUTTONS
========================= */
.btn-brand {
    --bs-btn-bg: var(--brand);
    --bs-btn-color: var(--brand);
    --bs-btn-border-color: var(--brand);
    --bs-btn-hover-bg: var(--brand-dark);
    --bs-btn-hover-border-color: var(--brand-dark);
    --bs-btn-hover-color: #fff;
}

    .btn-brand:hover {
        background: var(--brand-dark);
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(30,58,138,0.25);
    }

    .btn-brand:active {
        transform: scale(0.97);
    }

    /* Ripple */
    .btn-brand::after {
        content: "";
        position: absolute;
        width: 300%;
        height: 300%;
        top: 50%;
        left: 50%;
        background: rgba(255,255,255,0.2);
        transform: translate(-50%, -50%) scale(0);
        border-radius: 50%;
        transition: transform 0.5s ease;
    }

    .btn-brand:active::after {
        transform: translate(-50%, -50%) scale(1);
    }

.btn-outline-brand {
    border: 1px solid var(--brand);
    color: var(--brand);
    padding: 10px 22px;
}

    .btn-outline-brand:hover {
        background: var(--brand);
        color: #fff;
    }

/* =========================
SECTIONS
========================= */
section {
    padding: 60px 0;
}

.section-light {
    background: #f9fafb;
}

/* =========================
CARDS
========================= */
.card-custom {
    border: 1px solid #eee;
    border-radius: 12px;
    transition: 0.3s;
}

    .card-custom:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 50px rgba(0,0,0,0.08);
    }

.icon-box {
    font-size: 28px;
    color: var(--brand);
    margin-bottom: 15px;
}

/* =========================
SCROLL ANIMATION
========================= */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

    .reveal.active {
        opacity: 1;
        transform: translateY(0);
    }

/* =========================
WHATSAPP
========================= */
.whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #22c55e;
    padding: 14px;
    border-radius: 50%;
    color: #fff;
}

/* =========================
ANIMATIONS
========================= */
@keyframes floatWave {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes gradientMove {
    0% {
        background-position: 0%
    }

    50% {
        background-position: 100%
    }

    100% {
        background-position: 0%
    }
}

.container-narrow {
    max-width: 600px;
}

.navbar .btn {
    margin-left: 20px;
}
