/* ==========================================================================
   Variables & Resets
   ========================================================================== */
:root {
    /* Color Palette (AdvancedMD / Modern Corporate Style) */
    --primary: #0066cc;
    /* Deep professional blue */
    --primary-light: #3385ff;
    --primary-dark: #004c99;
    --accent: #00e5ff;
    /* Electric blue accent for highlights */

    --brand-brown: #C8571E;
    /* Updated URU brown to match the logo image */
    --brand-navy: #014D6A;
    /* Updated SPARES navy/teal to match the logo image */

    --text-main: #1e293b;
    /* Slate 800 for high readability */
    --text-muted: #64748b;
    /* Slate 500 for secondary text */

    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    /* Slate 50 for alternate section background */
    --bg-dark: #0f172a;
    /* Slate 900 for footer and dark accents */

    --border-color: #e2e8f0;
    /* Light gray borders */

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Effects */
    --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 25px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-card: 0 12px 30px rgba(15, 23, 42, 0.06);

    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;

    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

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

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

ul {
    list-style: none;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

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

.text-white {
    color: var(--bg-white);
}

/* ==========================================================================
   Global Layout & Components
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

.section-header {
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-desc {
    font-size: 1.125rem;
    color: var(--text-muted);
}

.bg-light {
    background-color: var(--bg-light);
}

.text-center {
    text-align: center;
}

.max-w-2xl {
    max-width: 42rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--bg-white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-main);
    border-color: var(--border-color);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background-color: var(--bg-light);
}

.btn-glow {
    box-shadow: 0 10px 25px rgba(0, 102, 204, 0.4);
}

/* Setup for Scroll Animations utilizing main.js */
.fade-up,
.fade-in-left,
.fade-in-right {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up {
    transform: translateY(30px);
}

.fade-in-left {
    transform: translateX(-30px);
}

.fade-in-right {
    transform: translateX(30px);
}

.animate {
    opacity: 1 !important;
    transform: translate(0, 0) !important;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 5rem;
}

.logo-text {
    font-family: 'Times New Roman', Times, serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--brand-brown);
    letter-spacing: 0.02em;
    /* Adjusted for Times New Roman readability */
    line-height: 1.1;
}

.logo-accent {
    color: var(--brand-navy);
    font-family: 'Times New Roman', Times, serif;
    font-weight: 700;
}

.logo-tagline {
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    font-size: 0.95rem;
    color: var(--brand-navy);
    font-style: italic;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-top: -0.25rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-link.active::after,
.nav-link:hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--text-main);
    border-radius: 3px;
    transition: var(--transition);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    padding-top: 8rem;
    padding-bottom: 5rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: rgba(0, 102, 204, 0.1);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image-wrapper {
    position: relative;
    height: 600px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.hero-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-xl);
}

.floating-card {
    position: absolute;
    bottom: -30px;
    left: -30px;
    background-color: var(--bg-white);
    padding: 1.5rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    z-index: 2;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 0.25rem;
    font-size: 0.9rem;
}

/* ==========================================================================
   Trust Banner
   ========================================================================== */
.trust-banner {
    padding: 3rem 0;
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
}

.trust-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.trust-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.trust-divider {
    width: 1px;
    height: 40px;
    background-color: var(--border-color);
}

.trust-item h4 {
    color: var(--primary);
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.trust-item span {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-image-col {
    position: relative;
}

.about-image {
    width: 100%;
    height: 500px;
    border-radius: var(--radius-xl);
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow-md);
}

.about-experience {
    position: absolute;
    bottom: 2rem;
    right: -2rem;
    background-color: var(--bg-dark);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    color: var(--bg-white);
    max-width: 250px;
}

.exp-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.mission-vision-grid {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.mv-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.mv-card:hover {
    box-shadow: var(--shadow-card);
    transform: translateY(-5px);
    border-color: var(--primary-light);
}

.mv-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: rgba(0, 102, 204, 0.1);
    color: var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
}

.mv-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.mv-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Capabilities (Bento Grid)
   ========================================================================== */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(250px, auto);
    gap: 1.5rem;
    margin-top: 3rem;
}

.bento-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    text-align: left;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.bento-icon {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.bento-icon svg {
    width: 40px;
    height: 40px;
    stroke: var(--primary);
    stroke-width: 1.5;
    fill: none;
}

.card-large .bento-icon svg {
    stroke: var(--accent);
}

.bento-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.bento-card p {
    color: var(--text-muted);
    font-size: 1rem;
}

.card-large {
    grid-column: span 1;
    grid-row: span 2;
    background: linear-gradient(180deg, var(--bg-dark) 0%, #1e293b 100%);
    color: var(--bg-white);
    border: none;
}

.card-large h3 {
    color: var(--bg-white);
}

.card-large p {
    color: #94a3b8;
}

.card-wide {
    grid-column: span 2;
}

/* ==========================================================================
   Process Section
   ========================================================================== */
.process-timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 800px;
    margin: 3rem auto 0;
}

.process-card {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.process-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.process-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    color: rgba(0, 102, 204, 0.1);
    line-height: 1;
    min-width: 80px;
    transition: var(--transition);
}

.process-card:hover .process-number {
    color: var(--primary);
}

.process-content h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.process-content p {
    color: var(--text-muted);
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1e293b 100%);
    color: var(--bg-white);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 102, 204, 0.3) 0%, rgba(0, 0, 0, 0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.cta-title {
    color: var(--bg-white);
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.cta-desc {
    font-size: 1.25rem;
    color: #cbd5e1;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background-color: var(--bg-dark);
    color: var(--bg-white);
    padding: 5rem 0 2rem;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand .logo-text {
    color: #e6b89c;
    /* Lighter tint of brand-brown to prevent conflict on dark background */
    font-size: 2.25rem;
    font-family: 'Times New Roman', Times, serif;
    font-weight: 700;
}

.footer-brand .logo-accent {
    color: var(--bg-white);
    /* White for SPARES text over navy background */
    font-family: 'Times New Roman', Times, serif;
}

.footer-brand .logo-tagline {
    color: #94a3b8;
}

.footer-about {
    margin-top: 1.5rem;
    color: #94a3b8;
    max-width: 300px;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--bg-white);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: #94a3b8;
    transition: var(--transition);
}

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

.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    color: #94a3b8;
}

.footer-contact span {
    color: var(--bg-white);
    font-weight: 600;
    margin-right: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #64748b;
    font-size: 0.875rem;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .card-large {
        grid-row: span 1;
    }

    .card-wide {
        grid-column: span 2;
    }

    .about-container {
        gap: 3rem;
    }
}

@media (max-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image-wrapper {
        height: 400px;
    }

    .floating-card {
        left: 20px;
        bottom: -20px;
    }

    .about-container {
        grid-template-columns: 1fr;
    }

    .about-experience {
        right: 20px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 5rem;
        left: -100%;
        width: 100%;
        height: calc(100vh - 5rem);
        background-color: var(--bg-white);
        flex-direction: column;
        justify-content: center;
        transition: left 0.3s ease;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-links {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
        margin-bottom: 2rem;
    }

    .nav-link {
        font-size: 1.25rem;
    }

    .mobile-toggle {
        display: flex;
    }

    .mobile-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .trust-divider {
        display: none;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .card-large,
    .card-wide {
        grid-column: span 1;
    }

    .mission-vision-grid {
        grid-template-columns: 1fr;
    }

    .process-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .section {
        padding: 4rem 0;
    }
}