@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@600;700;800&display=swap');

:root {
    /* Colors */
    --primary: #0047AB;      /* Deep Trust Blue */
    --primary-dark: #003380;
    --primary-light: #3370C2;
    --secondary: #008080;    /* Professional Teal */
    --accent: #0EA5E9;       /* Sky Blue */
    --background: #F8FAFC;  /* Clean Light Gray */
    --surface: #FFFFFF;
    --text: #1E293B;        /* Dark Slate */
    --text-light: #64748B;  /* Slate Gray */
    --border: #E2E8F0;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;
    --surface: #ffffff;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 15px rgba(0,71,171,0.08);
    --shadow-lg: 0 10px 25px -5px rgba(0,71,171,0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Next-Gen Tokens */
    --glass: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --blur: blur(12px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Fallback for no-js or if something fails */
.no-js .reveal {
    opacity: 1;
    transform: none;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .font-heading {
    font-family: var(--font-heading);
    color: var(--text);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

.section-padding {
    padding: var(--space-lg) 0;
}

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.grid { display: grid; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
}

/* Glassmorphism Utility */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.25rem 0;
    background: var(--surface);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: none;
}

.navbar.glass {
    padding: 0.75rem 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-sm);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: var(--space-md);
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    color: var(--text);
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1100;
}

.mobile-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--primary);
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.mobile-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 992px) {
    .mobile-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--surface);
        flex-direction: column;
        justify-content: center;
        padding: var(--space-xl) var(--space-md);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1050;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        font-size: 1.25rem;
        display: block;
        padding: 1rem;
    }

    .nav-content .btn {
        display: none; /* Hide button on mobile, put inside nav if needed */
    }

    .nav-links .btn {
        display: inline-flex;
        margin-top: var(--space-md);
    }
    
    .mobile-only {
        display: block !important;
    }
}

/* Hero Section */
.hero {
    padding-top: calc(var(--space-xl) + 2rem);
    background: radial-gradient(circle at 90% 10%, rgba(14, 165, 233, 0.1) 0%, transparent 40%),
                radial-gradient(circle at 10% 90%, rgba(0, 71, 171, 0.05) 0%, transparent 40%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-lg);
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(0, 71, 171, 0.1);
    color: var(--primary);
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: var(--space-sm);
    color: var(--text);
}

.text-primary {
    color: var(--primary);
}

.lead {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: var(--space-md);
    max-width: 600px;
}

.text-center .lead {
    margin-left: auto;
    margin-right: auto;
}

.hero-btns {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.hero-stats {
    display: flex;
    gap: var(--space-lg);
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
}

.hero-image {
    position: relative;
}

.image-box {
    width: 100%;
    aspect-ratio: 4/5;
    background: var(--primary);
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    position: relative;
}

.image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(1.05); /* Slightly brighten images */
}

.image-box::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 71, 171, 0.1), rgba(0, 0, 0, 0.15));
    pointer-events: none;
}

/* Services Section */
.bg-light {
    background-color: #F1F5F9;
}

.section-header {
    margin-bottom: var(--space-lg);
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: var(--space-xs);
}

.section-header p {
    color: var(--text-light);
    font-size: 1.125rem;
    max-width: 700px;
}

.text-center .section-header p {
    margin-left: auto;
    margin-right: auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
}

.service-card {
    background: var(--surface);
    padding: var(--space-md);
    border-radius: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.service-card .icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 71, 171, 0.1);
    color: var(--primary);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

.service-card h3 {
    margin-bottom: var(--space-xs);
    font-size: 1.5rem;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: var(--space-sm);
}

.learn-more {
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.learn-more:hover i {
    transform: translateX(4px);
}

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-btns {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-image {
        max-width: 500px;
        margin: 0 auto;
    }
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: var(--space-lg);
    align-items: center;
}

.image-box.secondary {
    background: var(--secondary);
}

.benefits-list {
    margin-top: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.benefit-item {
    display: flex;
    gap: var(--space-sm);
    align-items: flex-start;
}

.benefit-item .check {
    color: var(--secondary);
    font-weight: 800;
}

/* CTA Section */
.bg-primary {
    background-color: var(--primary);
}

.text-white {
    color: white;
}

.text-white-offset {
    color: rgba(255, 255, 255, 0.8);
}

.btn-secondary {
    background-color: var(--secondary);
    color: white;
}

.btn-secondary:hover {
    background-color: #006666;
    transform: translateY(-2px);
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    background: var(--surface);
    padding: var(--space-lg);
    border-radius: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 71, 171, 0.1);
}

.w-full {
    width: 100%;
}

/* Footer */
.bg-dark {
    background-color: #0F172A;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: var(--space-lg);
}

.footer-brand p {
    margin-top: var(--space-sm);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    max-width: 300px;
}

.footer-links h4 {
    color: white;
    margin-bottom: var(--space-md);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    position: relative;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--secondary);
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-contact {
    color: rgba(255, 255, 255, 0.6);
}

.footer-contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-contact-item i {
    color: var(--secondary);
    margin-top: 5px;
}

.footer-copy {
    grid-column: 1 / -1;
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .about-grid,
    .contact-container,
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Process Section */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.process-step {
    text-align: center;
    padding: var(--space-md);
    position: relative;
    background: var(--surface);
    border-radius: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.5rem;
    margin: 0 auto var(--space-sm);
    box-shadow: var(--shadow-md);
}

/* FAQ Accordion */
.faq-container {
    max-width: 800px;
    margin: var(--space-lg) auto 0;
}

.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1rem;
    margin-bottom: var(--space-sm);
    overflow: hidden;
    transition: var(--transition);
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    text-align: left;
    color: var(--text);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-light);
    display: none;
    font-size: 1rem;
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .fa-chevron-down {
    transform: rotate(180deg);
}

/* Responsive Audit Fixes */
@media (max-width: 1200px) {
    .container {
        padding: 0 2rem;
    }
}

@media (max-width: 480px) {
    :root {
        --space-lg: 3rem;
        --space-xl: 5rem;
    }
    
    .hero-content h1 {
        font-size: 2.25rem;
    }
    
    .section-header h2 {
        font-size: 1.875rem;
    }
}
