/* --- Global Design System: Premium Audit/Advisory --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    /* --- Palette: Executive & Trust --- */
    --color-primary: #003366;
    /* Deep Navy - Trust, Authority */
    --color-primary-dark: #002244;
    /* Darker Navy - Footer/Headers */
    --color-secondary: #00a8a8;
    /* Teal - Modernity, Growth */
    --color-secondary-dark: #008f8f;

    --color-bg-light: #f8f9fa;
    /* Very Light Grey - Backgrounds */
    --color-bg-white: #ffffff;

    --color-text-heading: #111827;
    /* Almost Black - Headings */
    --color-text-body: #4b5563;
    /* Dark Grey - Readable Body */
    --color-text-muted: #9ca3af;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;

    --font-heading: 'Manrope', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* --- Reset & Base --- */
body {
    font-family: var(--font-body);
    color: var(--color-text-body);
    background-color: var(--color-bg-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-text-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
    color: var(--color-primary);
}

a:hover {
    color: var(--color-secondary);
}

/* --- Top Bar & Navigation --- */
.top-bar {
    background-color: var(--color-primary-dark);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    padding: 8px 0;
    font-weight: 500;
}

.top-bar a {
    color: rgba(255, 255, 255, 0.8);
}

.top-bar a:hover {
    color: white;
}

.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    padding: 1rem 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar.scrolled {
    padding: 0.75rem 0;
    box-shadow: var(--shadow-md);
}

.navbar-brand img {
    height: 135px;
    width: auto;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    color: #374151 !important;
    font-size: 0.95rem;
    margin: 0 0.8rem;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary) !important;
}

/* Subtle underline effect for nav items */
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--color-secondary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.btn-cta {
    background-color: var(--color-primary);
    color: white !important;
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-sm);
    letter-spacing: 0.02em;
    box-shadow: 0 4px 6px rgba(0, 51, 102, 0.2);
}

.btn-cta:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(0, 51, 102, 0.3);
}

/* --- Hero Section & Slider --- */
.hero-premium,
.hero-slider {
    position: relative;
    height: 85vh;
    min-height: 600px;
    color: white;
    overflow: hidden;
}

.hero-premium {
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
}

.hero-slider .carousel,
.hero-slider .carousel-inner,
.hero-slider .carousel-item {
    height: 100%;
}

.hero-slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    /* Slight zoom for premium effect (Ken Burns) */
    transition: transform 8s ease-out;
}

.carousel-item.active .hero-slide-bg {
    transform: scale(1);
}

.hero-overlay-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 34, 68, 0.7) 0%, rgba(0, 34, 68, 0.5) 50%, rgba(0, 34, 68, 0.2) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero-content-inner {
    padding-top: 4rem;
    /* Offset for fixed header overlap */
}

.hero-slider .carousel-indicators {
    margin-bottom: 2rem;
    z-index: 3;
}

.hero-slider .carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: transparent;
    border: 2px solid white;
    margin: 0 6px;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.hero-slider .carousel-indicators .active {
    opacity: 1;
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
    transform: scale(1.2);
}

.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next {
    width: 8%;
    z-index: 3;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-lead {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    font-weight: 400;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-badges {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1.5rem;
}

.hero-badge-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
}

/* --- Buttons --- */
.btn-primary-lg {
    background-color: var(--color-secondary);
    color: white;
    padding: 1rem 2.5rem;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-sm);
    display: inline-block;
}

.btn-primary-lg:hover {
    background-color: var(--color-secondary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 168, 168, 0.3);
}

.btn-outline-light-lg {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 1rem 2.5rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    display: inline-block;
}

.btn-outline-light-lg:hover {
    background: white;
    color: var(--color-primary);
    border-color: white;
}

/* --- Cards & Services --- */
.feature-card {
    background: white;
    padding: 2.5rem;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-md);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--color-primary);
    z-index: -1;
    transition: all 0.4s ease;
}

.feature-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.feature-card:hover::before {
    width: 4px;
    /* Left border strip effect */
}

.icon-wrapper-lg {
    width: 70px;
    height: 70px;
    background: var(--color-bg-light);
    color: var(--color-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.feature-card:hover .icon-wrapper-lg {
    background: var(--color-primary);
    color: white;
}

/* --- Section Styling --- */
.section-header {
    margin-bottom: 4rem;
    max-width: 800px;
}

.section-subtitle {
    color: var(--color-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    display: block;
}

.section-title {
    font-size: 2.5rem;
    color: var(--color-text-heading);
}

.bg-neutral {
    background-color: var(--color-bg-light);
}

.bg-dark-navy {
    background-color: var(--color-primary-dark);
    color: white;
}

/* --- Counters --- */
.stat-item {
    text-align: center;
    padding: 2rem;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--color-secondary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #9ca3af;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
}

/* --- FAQ Accordion --- */
.accordion-item {
    border: none;
    margin-bottom: 1rem;
    border-radius: var(--radius-md) !important;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.accordion-button {
    padding: 1.5rem;
    font-weight: 600;
    color: var(--color-primary);
    background: white;
}

.accordion-button:not(.collapsed) {
    color: var(--color-secondary);
    background: white;
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .125);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0, 0, 0, .125);
}

.accordion-body {
    padding: 2rem;
    background-color: #fcfcfc;
    color: var(--color-text-body);
}

/* --- Footer --- */
.footer-premium {
    background-color: #0b1120;
    /* Very Dark Navy */
    color: #94a3b8;
    padding-top: 5rem;
    font-size: 0.95rem;
}

.footer-heading {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-link {
    color: #94a3b8;
    display: block;
    margin-bottom: 1rem;
    transition: 0.3s;
}

.footer-link:hover {
    color: white;
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem 0;
    margin-top: 4rem;
}

/* --- Animations --- */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    opacity: 0;
    transition: opacity 1s ease-out;
}

.fade-in.visible {
    opacity: 1;
}

/* Stagger delays */
.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

/* --- Responsive --- */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-premium {
        height: auto;
        padding: 6rem 0;
    }
}

/* --- Header Spacer --- */
#header-placeholder {
    height: 180px;
    /* Accounts for 135px logo + padding + top bar */
    display: block;
}

@media (max-width: 991px) {
    #header-placeholder {
        height: 120px;
    }
}