/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

:root {
    /* Brand Colors - Emerald */
    --primary-color: #059669;
    /* Emerald 600 */
    --primary-hover: #047857;
    /* Emerald 700 */
    --primary-light: #ecfdf5;
    /* Emerald 50 */
    --accent-color: #10b981;
    /* Emerald 500 */

    /* Text Colors */
    --text-main: #111827;
    --text-muted: #6b7280;

    /* UI Element Colors */
    --border-color: #e5e7eb;
    --bg-surface: #ffffff;
    --bg-body: #f9fafb;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-body);
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-heading {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    transition: all 0.2s;
}

/* --- Bootstrap Overrides (Force Emerald) --- */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-primary:hover {
    background-color: var(--primary-hover) !important;
    border-color: var(--primary-hover) !important;
}

.btn-outline-primary {
    color: white !important;
    border-color: #ffffff !important;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color) !important;
    color: white !important;
}

/* Also map other colors to Emerald to prevent random colors */
.text-info,
.text-success,
.text-warning {
    color: var(--primary-color) !important;
}

.bg-info,
.bg-success,
.bg-warning {
    background-color: var(--primary-color) !important;
}

/* --- Navbar Styling --- */
.navbar-custom {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.brand-logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 24px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-icon {
    width: 36px;
    height: 36px;
    background: var(--primary-color);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

/* Desktop Menu */
.desktop-menu {
    display: flex;
    gap: 30px;
    align-items: center;
    margin: 0 auto;
}

.nav-item {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: var(--text-muted);
    font-size: 15px;
    position: relative;
    cursor: pointer;
    padding: 10px 0;
}

.nav-item:hover,
.nav-item.active {
    color: var(--primary-color);
}

/* Dropdown */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: -10px;
    background-color: #ffffff;
    min-width: 200px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 10px;
    border: 1px solid var(--border-color);
    z-index: 1001;
    margin-top: 10px;
}

.nav-item:hover .dropdown-content {
    display: block;
    animation: fadeUp 0.2s ease-out;
}

.dropdown-link {
    display: block;
    padding: 10px 15px;
    color: var(--text-main);
    font-size: 14px;
    border-radius: 6px;
}

.dropdown-link:hover {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

/* Buttons */
.btn-custom {
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(5, 150, 105, 0.2);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--border-color);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* --- Mobile Menu --- */
.mobile-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-main);
}

.mobile-menu-container {
    display: none;
    position: fixed;
    top: 70px;
    /* Below navbar */
    left: 0;
    width: 100%;
    background: white;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

.mobile-nav-link {
    display: block;
    padding: 12px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    border-bottom: 1px solid var(--bg-body);
}

.mobile-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    border-bottom: 1px solid var(--bg-body);
    cursor: pointer;
}

.mobile-dropdown-content {
    display: none;
    padding-left: 15px;
    background: var(--bg-body);
}

.mobile-dropdown-content a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
}

/* --- Hero Section Fixes --- */
.hero-wrapper {
    background-color: #ffffff;
    padding: 80px 0;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 40px;
    max-width: 500px;
}

/* --- Utilities --- */
.text-emerald {
    color: var(--primary-color);
}

.bg-emerald-light {
    background-color: var(--primary-light);
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsiveness */
@media (max-width: 991px) {

    .desktop-menu,
    .desktop-btns {
        display: none !important;
    }

    .mobile-toggle {
        display: block;
    }

    .mobile-menu-container.active {
        display: block;
    }

    .hero-title {
        font-size: 2.5rem;
        text-align: center;
    }

    .hero-subtitle {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-wrapper .d-flex {
        justify-content: center;
    }

    .hero-wrapper {
        text-align: center;
        padding: 50px 0;
    }
}