:root {
    --msal-green: #16a34a;
    --msal-green-dark: #15803d;
    --msal-red: #dc2626;
    --msal-gold: #eab308;
    --msal-blue: #1d4ed8;
    --msal-blue-dark: #1e40af;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', ui-sans-serif, system-ui, sans-serif;
}

.hero-pattern {
    background-image:
        radial-gradient(circle at 20% 20%, rgba(234, 179, 8, 0.15), transparent 35%),
        radial-gradient(circle at 80% 0%, rgba(22, 163, 74, 0.18), transparent 30%),
        radial-gradient(circle at 100% 80%, rgba(29, 78, 216, 0.15), transparent 35%),
        linear-gradient(135deg, #0f172a 0%, #1e3a8a 45%, #15803d 100%);
}

.container-msal {
    max-width: 80rem;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .container-msal {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container-msal {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 0.5rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--msal-green);
    color: #fff;
}

.btn-primary:hover {
    background: var(--msal-green-dark);
}

.btn-secondary {
    background: var(--msal-blue);
    color: #fff;
}

.btn-secondary:hover {
    background: var(--msal-blue-dark);
}

.btn-outline {
    border: 2px solid rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.btn-outline:hover {
    background: #fff;
    color: var(--msal-blue);
}

.btn-outline-light {
    border: 2px solid #cbd5e1;
    background: #fff;
    color: #334155;
}

.btn-outline-light:hover {
    border-color: var(--msal-green);
    color: var(--msal-green);
    background: #f0fdf4;
}

.btn-outline-dark {
    border: 2px solid #475569;
    background: transparent;
    color: #e2e8f0;
}

.btn-outline-dark:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.btn-whatsapp {
    background: #25d366;
    color: #fff;
}

.btn-whatsapp:hover {
    background: #1ebe57;
}

.card {
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    padding: 1.5rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

@media (max-width: 767px) {
    .card:hover {
        transform: none;
    }
}

.logo-header-wrap {
    display: inline-flex;
    align-items: center;
    border-radius: 0.5rem;
    background: #fff;
    padding: 0.25rem 0.5rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.logo-header-wrap img,
footer img[alt*="logo"] {
    object-fit: contain;
    object-position: left center;
    max-height: 4rem;
    width: auto;
}

#site-navbar.is-scrolled {
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
}

.form-input {
    width: 100%;
    border-radius: 0.5rem;
    border: 1px solid #cbd5e1;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    background: #fff;
}

.form-input:focus {
    outline: none;
    border-color: var(--msal-blue);
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.15);
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
}

.nav-link {
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #334155;
    text-decoration: none;
    transition: all 0.2s ease;
}

.nav-link:hover {
    background: #f1f5f9;
    color: var(--msal-green);
}

.nav-link-active {
    background: #f0fdf4;
    color: var(--msal-green);
}

.badge {
    display: inline-flex;
    border-radius: 9999px;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-development {
    background: #fef3c7;
    color: #92400e;
}

.badge-planned {
    background: #dbeafe;
    color: #1e40af;
}

.badge-active {
    background: #dcfce7;
    color: #166534;
}

.badge-ongoing {
    background: #f3e8ff;
    color: #6b21a8;
}

.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
}

@media (min-width: 640px) {
    .section-title {
        font-size: 2.25rem;
    }
}

.section-subtitle {
    margin-top: 1rem;
    max-width: 48rem;
    font-size: 1.125rem;
    line-height: 1.7;
    color: #64748b;
}

.whatsapp-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 50;
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    border-radius: 9999px;
    background: #25d366;
    color: #fff;
    padding: 0.875rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.35);
    transition: transform 0.2s ease, background 0.2s ease;
}

.whatsapp-float:hover {
    background: #1ebe57;
    transform: translateY(-2px);
}

.fade-in {
    animation: fadeIn 0.6s ease-out both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
    
}
/* Mobile homepage hero fix */
@media (max-width: 767px) {
    .hero-pattern {
        background:
            linear-gradient(135deg, #0f172a 0%, #1e3a8a 55%, #15803d 100%) !important;
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
        min-height: auto !important;
    }

    .hero-pattern h1 {
        color: #ffffff !important;
        font-size: 2rem !important;
        line-height: 1.15 !important;
        margin-bottom: 1rem !important;
    }

    .hero-pattern p {
        color: #f8fafc !important;
    }

    .hero-pattern .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .hero-pattern .max-w-4xl {
        max-width: 100% !important;
    }

    .container-msal {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    #site-navbar .h-20 {
        height: 4.5rem !important;
    }

    .logo-header-wrap img {
        max-width: 120px !important;
        height: auto !important;
    }

    .whatsapp-float {
        right: 1rem !important;
        bottom: 1rem !important;
        padding: 0.75rem 1rem !important;
        font-size: 0.8rem !important;
    }
}
