/* ==============================
   CSS VARIABLES & ROOT
============================== */
:root {
    --primary: #1a3a5c;
    --primary-light: #2563a8;
    --accent: #e8a020;
    --accent-light: #f5c044;
    --dark: #0d1b2a;
    --dark2: #132338;
    --light: #f8f5f0;
    --light2: #eef2f7;
    --white: #ffffff;
    --text: #2d3748;
    --text-muted: #718096;
    --border: rgba(26,58,92,0.12);
    --shadow-sm: 0 2px 12px rgba(26,58,92,0.08);
    --shadow-md: 0 8px 32px rgba(26,58,92,0.14);
    --shadow-lg: 0 20px 60px rgba(26,58,92,0.18);
    --radius: 16px;
    --radius-sm: 8px;
    --transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'DM Sans', system-ui, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

section {
    position: relative;
}

/* ==============================
   UTILITY CLASSES
============================== */
.section-pad {
    padding: 100px 0;
}

    .section-pad.section-pad-tight {
        padding: 24px 0;
    }

.section-pad-sm {
    padding: 70px 0;
}

.bg-dark-gradient {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark2) 60%, #1a3a5c 100%);
}

.bg-accent-gradient {
    background: linear-gradient(135deg, var(--accent) 0%, #c07010 100%);
}

.bg-light-pattern {
    background: var(--light);
    background-image: radial-gradient(circle at 20% 80%, rgba(37,99,168,0.06) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(232,160,32,0.06) 0%, transparent 50%);
}

.text-primary-custom {
    color: var(--primary);
}

.text-accent {
    color: var(--accent);
}

.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: #fff;
    border: none;
    padding: 13px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-body);
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(37,99,168,0.35);
}

    .btn-primary-custom:hover {
        background: linear-gradient(135deg, var(--primary), #0f2740);
        transform: translateY(-2px);
        box-shadow: 0 8px 28px rgba(37,99,168,0.45);
        color: #fff;
    }

.btn-accent-custom {
    background: linear-gradient(135deg, var(--accent), #c07010);
    color: #fff;
    border: none;
    padding: 13px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(232,160,32,0.40);
}

    .btn-accent-custom:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 28px rgba(232,160,32,0.55);
        color: #fff;
    }

.btn-outline-white {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.6);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
}

    .btn-outline-white:hover {
        background: rgba(255,255,255,0.15);
        border-color: #fff;
        color: #fff;
        transform: translateY(-2px);
    }

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(232,160,32,0.12);
    color: var(--accent);
    border: 1px solid rgba(232,160,32,0.25);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

    .section-label.light {
        background: rgba(255,255,255,0.12);
        color: rgba(255,255,255,0.85);
        border-color: rgba(255,255,255,0.2);
    }

.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--primary);
    margin-bottom: 16px;
}

    .section-title.light {
        color: #fff;
    }

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 580px;
    line-height: 1.8;
}

    .section-subtitle.light {
        color: rgba(255,255,255,0.75);
    }

.divider-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--primary-light));
    border-radius: 2px;
    margin: 16px 0 24px;
}

    .divider-line.center {
        margin-left: auto;
        margin-right: auto;
    }

/* ==============================
   NAVBAR
============================== */
#mainNav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(13, 27, 42, 0.90);
    transition: var(--transition);
    padding: 18px 0;
}

    #mainNav.scrolled {
        background: rgba(13,27,42,0.97);
        backdrop-filter: blur(20px);
        padding: 10px 0;
        box-shadow: 0 4px 30px rgba(0,0,0,0.25);
    }

.navbar-brand-custom {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--accent), var(--primary-light));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    flex-shrink: 0;
}

.brand-text {
    line-height: 1.1;
}

.brand-name {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.15rem;
    color: #fff;
    letter-spacing: 0.3px;
}

.brand-tagline {
    font-size: 0.65rem;
    color: var(--accent-light);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 500;
}

.nav-link-custom {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 8px 14px !important;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
    cursor: pointer;
}

    .nav-link-custom::after {
        content: '';
        position: absolute;
        bottom: 4px;
        left: 14px;
        right: 14px;
        height: 2px;
        background: var(--accent);
        border-radius: 1px;
        transform: scaleX(0);
        transition: transform 0.3s ease;
    }

    .nav-link-custom:hover {
        color: #fff !important;
        background: rgba(255,255,255,0.08);
    }

        .nav-link-custom:hover::after {
            transform: scaleX(1);
        }

    .nav-link-custom.active {
        color: var(--accent-light) !important;
    }

.nav-cta {
    background: linear-gradient(135deg, var(--accent), #c07010);
    color: #fff !important;
    padding: 9px 22px !important;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(232,160,32,0.35);
}

    .nav-cta:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 20px rgba(232,160,32,0.5);
    }

.navbar-toggler-custom {
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 8px;
    padding: 8px 10px;
    background: transparent;
    cursor: pointer;
}

.toggler-line {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    margin: 4px 0;
    transition: var(--transition);
}

@media (max-width: 991px) {
    #mainNav .container > .d-flex {
        flex-wrap: wrap;
    }

    .navbar-collapse-custom {
        display: none;
        width: 100%;
        flex-basis: 100%;
        background: rgba(13,27,42,0.98);
        backdrop-filter: blur(20px);
        border-radius: var(--radius);
        padding: 20px;
        margin-top: 12px;
        border: 1px solid rgba(255,255,255,0.08);
        position: relative;
        z-index: 1002;
    }

        .navbar-collapse-custom.d-flex,
        #navMenu[style*="display: flex"] {
            display: flex !important;
        }
}

.dropdown-custom {
    position: relative;
    display: flex;
    align-items: center;
}

.dropdown-menu-custom {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    background: #1e293b;
    border-radius: 12px;
    padding: 10px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 999;
}

.dropdown-custom:hover .dropdown-menu-custom {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item-custom {
    display: block;
    padding: 10px 18px;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    transition: 0.3s;
    font-size: 0.9rem;
    white-space: nowrap;
}

    .dropdown-item-custom:hover {
        background: rgba(255,255,255,0.08);
        color: #fff;
    }

/* ==============================
   FOOTER
============================== */
footer {
    background: var(--dark);
    color: rgba(255,255,255,0.7);
}

.footer-top {
    padding: 80px 0 50px;
}

.footer-brand {
    margin-bottom: 20px;
}

.footer-desc {
    font-size: 0.88rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.55);
    margin-bottom: 24px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social-btn {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    transition: var(--transition);
}

    .footer-social-btn:hover {
        background: var(--accent);
        border-color: var(--accent);
        color: #fff;
    }

.footer-heading {
    color: #fff;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 22px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-links {
    list-style: none;
}

    .footer-links li {
        margin-bottom: 10px;
    }

    .footer-links a {
        color: rgba(255,255,255,0.55);
        font-size: 0.875rem;
        display: flex;
        align-items: center;
        gap: 8px;
        transition: var(--transition);
    }

        .footer-links a:hover {
            color: var(--accent-light);
            padding-left: 4px;
        }

        .footer-links a::before {
            content: '\203A';
            color: var(--accent);
            font-size: 1rem;
            line-height: 1;
        }

.footer-contact-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 16px;
    font-size: 0.875rem;
}

.footer-phone-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

    .footer-phone-list span {
        line-height: 1.6;
    }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 24px 0;
}

.footer-bottom-text {
    color: rgba(255,255,255,0.4);
    font-size: 0.8rem;
}

.footer-badge {
    margin-top: 16px;
    margin-bottom: 20px;
}

.badge-approved {
    display: inline-block;
    padding: 8px 18px;
    background: rgba(18, 184, 134, 0.12);
    color: #12b886;
    border: 1px solid rgba(18, 184, 134, 0.3);
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
}

.footer-contact-item span {
    display: block;
    line-height: 1.6;
}

.footer-subscribe-form {
    position: relative;
    background: #fff;
    border-radius: 30px;
    padding: 4px;
    max-width: 320px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.footer-subscribe-input {
    border: none;
    outline: none;
    background: transparent;
    padding: 10px 52px 10px 18px;
    border-radius: 30px;
    flex: 1;
    font-family: var(--font-body);
    font-size: 0.88rem;
    color: var(--text);
    width: 100%;
}

    .footer-subscribe-input:focus {
        box-shadow: none;
        outline: none;
    }

.footer-subscribe-btn {
    position: absolute;
    right: 4px;
    top: 4px;
    bottom: 4px;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

    .footer-subscribe-btn:hover {
        background: var(--primary-light);
    }

/* ==============================
   LIGHTBOX (shared)
============================== */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

    .lightbox-overlay.active {
        opacity: 1;
        pointer-events: all;
    }

.lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: var(--radius-sm);
    box-shadow: 0 0 80px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

    .lightbox-close:hover {
        background: rgba(255,255,255,0.2);
    }

/* ==============================
   SCROLL TO TOP (shared)
============================== */
#scrollTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    z-index: 999;
    box-shadow: var(--shadow-md);
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

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

    #scrollTop:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-lg);
    }

/* ==============================
   PAGE SECTIONS NAV (used by Index page tabs)
============================== */
.page-section {
    display: none;
}

    .page-section.active {
        display: block;
    }

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}


.footer-login-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 18px;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 50px;
    color: rgba(255,255,255,.85);
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all .25s ease;
}

    .footer-login-link:hover {
        background: rgba(255,255,255,.12);
        border-color: rgba(255,255,255,.45);
        color: #fff;
    }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .section-pad {
        padding: 70px 0;
    }

    .section-pad-sm {
        padding: 50px 0;
    }

    .brand-tagline {
        display: none;
    }
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

    .footer-social a {
        width: 38px;
        height: 38px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        text-decoration: none;
        font-size: 18px;
        transition: all 0.2s ease;
    }

        /* Instagram */
        .footer-social a:nth-child(1) {
            color: #E4405F;
            border: 1px solid #E4405F;
        }

            .footer-social a:nth-child(1):hover {
                background: #E4405F;
                color: #fff;
            }

        /* Facebook */
        .footer-social a:nth-child(2) {
            color: #1877F2;
            border: 1px solid #1877F2;
        }

            .footer-social a:nth-child(2):hover {
                background: #1877F2;
                color: #fff;
            }

        /* LinkedIn */
        .footer-social a:nth-child(3) {
            color: #0A66C2;
            border: 1px solid #0A66C2;
        }

            .footer-social a:nth-child(3):hover {
                background: #0A66C2;
                color: #fff;
            }
