/* styles.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    /* Custom Colors from Tailwind Config */
    --bs-navy: #1e293b;
    --bs-slate: #475569;
    --bs-electric: #3b82f6;
    --bs-teal: #0d9488;
    --bs-offWhite: #e5f8ff;
    --bs-charcoal: #0f172a;

    --bs-font-sans-serif: 'Inter', sans-serif;
    --bs-body-font-family: var(--bs-font-sans-serif);
    --bs-body-bg: var(--bs-offWhite);
    --bs-body-color: var(--bs-navy);
}

body {
    font-family: var(--bs-font-sans-serif);
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   RESPONSIVE PAGE HEADER (all inner pages)
   Accounts for fixed navbar height (~66px)
   ============================================================ */
.page-header {
    padding-top: 6rem;
    padding-bottom: 2.5rem;
}

@media (min-width: 768px) {
    .page-header {
        padding-top: 7.5rem;
        padding-bottom: 3rem;
    }
}

@media (min-width: 992px) {
    .page-header {
        padding-top: 9rem;
        padding-bottom: 4rem;
    }
}

/* ============================================================
   FLUID / RESPONSIVE TYPOGRAPHY
   Tame Bootstrap's display-* on small screens
   ============================================================ */
@media (max-width: 575.98px) {
    .display-1 {
        font-size: 2.5rem !important;
        line-height: 1.1 !important;
    }
    .display-2 {
        font-size: 2.25rem !important;
        line-height: 1.1 !important;
    }
    .display-3 {
        font-size: 2rem !important;
        line-height: 1.1 !important;
    }
    .display-4 {
        font-size: 1.75rem !important;
        line-height: 1.15 !important;
    }
    .display-5 {
        font-size: 1.5rem !important;
        line-height: 1.2 !important;
    }
    .display-6 {
        font-size: 1.25rem !important;
    }
    /* Hero subtitle */
    .fs-5 {
        font-size: 1rem !important;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .display-1 {
        font-size: 3rem !important;
        line-height: 1.05 !important;
    }
    .display-3 {
        font-size: 2.25rem !important;
    }
    .display-4 {
        font-size: 2rem !important;
    }
    .display-5 {
        font-size: 1.75rem !important;
    }
}

/* ============================================================
   TYPOGRAPHY UTILITIES
   ============================================================ */
.font-sans {
    font-family: var(--bs-font-sans-serif) !important;
}

.font-medium {
    font-weight: 500 !important;
}

.font-bold {
    font-weight: 700 !important;
}

.font-black {
    font-weight: 900 !important;
}

.tracking-tighter {
    letter-spacing: -0.05em !important;
}

.tracking-tight {
    letter-spacing: -0.025em !important;
}

.tracking-normal {
    letter-spacing: 0em !important;
}

.tracking-wide {
    letter-spacing: 0.025em !important;
}

.tracking-wider {
    letter-spacing: 0.05em !important;
}

.tracking-widest {
    letter-spacing: 0.1em !important;
}

/* ============================================================
   TEXT COLORS
   ============================================================ */
.text-navy {
    color: var(--bs-navy) !important;
}

.text-slate {
    color: var(--bs-slate) !important;
}

.text-electric {
    color: var(--bs-electric) !important;
}

.text-teal {
    color: var(--bs-teal) !important;
}

.text-offWhite {
    color: var(--bs-offWhite) !important;
}

.text-charcoal {
    color: var(--bs-charcoal) !important;
}

/* ============================================================
   BACKGROUND COLORS
   ============================================================ */
.bg-navy {
    background-color: var(--bs-navy) !important;
}

.bg-slate {
    background-color: var(--bs-slate) !important;
}

.bg-electric {
    background-color: var(--bs-electric) !important;
}

.bg-teal {
    background-color: var(--bs-teal) !important;
}

.bg-offWhite {
    background-color: var(--bs-offWhite) !important;
}

.bg-charcoal {
    background-color: var(--bs-charcoal) !important;
}

/* ============================================================
   BORDER COLORS
   ============================================================ */
.border-navy {
    border-color: var(--bs-navy) !important;
}

.border-slate {
    border-color: var(--bs-slate) !important;
}

.border-electric {
    border-color: var(--bs-electric) !important;
}

.border-teal {
    border-color: var(--bs-teal) !important;
}

.border-offWhite {
    border-color: var(--bs-offWhite) !important;
}

.border-charcoal {
    border-color: var(--bs-charcoal) !important;
}

/* ============================================================
   TRANSPARENT / OPACITY VARIANTS
   ============================================================ */
.bg-navy-5 {
    background-color: rgba(30, 41, 59, 0.05) !important;
}

.bg-navy-10 {
    background-color: rgba(30, 41, 59, 0.1) !important;
}

.bg-electric-5 {
    background-color: rgba(59, 130, 246, 0.05) !important;
}

.bg-electric-10 {
    background-color: rgba(59, 130, 246, 0.1) !important;
}

.bg-electric-20 {
    background-color: rgba(59, 130, 246, 0.2) !important;
}

.bg-teal-5 {
    background-color: rgba(13, 148, 136, 0.05) !important;
}

.bg-teal-10 {
    background-color: rgba(13, 148, 136, 0.1) !important;
}

.bg-white-5 {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

.bg-white-10 {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.5) !important;
}

.text-navy-80 {
    color: rgba(30, 41, 59, 0.8) !important;
}

.border-navy-5 {
    border-color: rgba(30, 41, 59, 0.05) !important;
}

.border-navy-10 {
    border-color: rgba(30, 41, 59, 0.1) !important;
}

.border-white-5 {
    border-color: rgba(255, 255, 255, 0.05) !important;
}

.border-white-10 {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.border-white-20 {
    border-color: rgba(255, 255, 255, 0.2) !important;
}

/* ============================================================
   CUSTOM UTILITIES
   ============================================================ */
.min-h-screen {
    min-height: 100vh !important;
}

.text-6xl {
    font-size: 3.75rem !important;
    line-height: 1 !important;
}

.text-8xl {
    font-size: 6rem !important;
    line-height: 1 !important;
}

@media (min-width: 992px) {
    .lg\:text-8xl {
        font-size: 6rem !important;
        line-height: 1 !important;
    }
}

.leading-none {
    line-height: 1 !important;
}

.leading-tight {
    line-height: 1.25 !important;
}

.leading-snug {
    line-height: 1.375 !important;
}

.leading-normal {
    line-height: 1.5 !important;
}

.leading-relaxed {
    line-height: 1.625 !important;
}

.leading-loose {
    line-height: 2 !important;
}

.rounded-xl {
    border-radius: 0.75rem !important;
}

.rounded-2xl {
    border-radius: 1rem !important;
}

.rounded-3xl {
    border-radius: 1.5rem !important;
}

/* ============================================================
   GLASS CARD
   ============================================================ */
.glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ============================================================
   DESKTOP DROPDOWN (hover-based, with focus-within for accessibility)
   ============================================================ */
.dropdown-content {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   MOBILE MENU (legacy — kept for backward compat)
   ============================================================ */
.mobile-menu {
    display: none;
}

.mobile-menu.active {
    display: block;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes bounce-slow {
    0%,
    100% {
        transform: translateY(-25%);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }

    50% {
        transform: translateY(0);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

.animate-bounce-slow {
    animation: bounce-slow 3s infinite;
}

/* ============================================================
   OTHER HELPERS
   ============================================================ */
.z-100 {
    z-index: 100 !important;
}

.w-4\.5 {
    width: 1.125rem !important;
}

.h-4\.5 {
    height: 1.125rem !important;
}

/* ============================================================
   NAVBAR
   ============================================================ */
#navbar {
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0 1px 3px rgba(10, 37, 64, 0.06);
}

/* Hero section on home — ensure content never hides behind navbar */
#heroCarousel .container-xxl {
    padding-top: 5rem;
}

@media (min-width: 992px) {
    #heroCarousel .container-xxl {
        padding-top: 6rem;
    }
}

/* ============================================================
   RESPONSIVE HELPERS FOR SMALL SCREENS
   ============================================================ */
@media (max-width: 575.98px) {
    /* Ensure hero section overflows well */
    .carousel-item .row {
        text-align: center;
    }
    .carousel-item .d-flex.flex-wrap {
        justify-content: center;
    }

    /* Prevent stats cards from being too large on tiny screens */
    .p-md-5 {
        padding: 1.25rem !important;
    }

    /* Footer columns */
    .col-lg-4,
    .col-sm-6 {
        margin-bottom: 1rem;
    }
}

@media (max-width: 767.98px) {
    /* Form padding on contact page */
    .rounded-5.bg-white.p-5 {
        padding: 1.5rem !important;
    }
}