/* ==========================================================================
   CSS Variables & Custom Properties
   ========================================================================== */
:root {
    /* Color Palette */
    --primary: #4B4F52;
    --dark: #202426;
    --light: #F5F6F7;
    --white: #FFFFFF;
    --accent: #005f73; /* Professional blue/teal accent */
    --accent-hover: #0a9396;
    --text: #333333;
    --text-light: #666666;
    --border: #E0E0E0;
    --error: #d32f2f;
    --success: #2e7d32;

    /* Typography */
    --font-main: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    
    /* Layout & Spacing */
    --container-width: 1200px;
    --section-spacing: clamp(4rem, 8vw, 8rem);
    --border-radius: 4px;
    --transition: all 0.3s ease;
    
    /* Header */
    --header-height: 80px;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.12);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    color: var(--text);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
    list-style: none;
}

/* Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent);
    color: var(--white);
    padding: 8px;
    z-index: 9999;
    transition: top 0.2s ease;
}
.skip-link:focus {
    top: 0;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark);
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; }
h4 { font-size: 1.25rem; font-weight: 600; }

p { margin-bottom: 1rem; color: var(--text-light); }
p:last-child { margin-bottom: 0; }

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

/* ==========================================================================
   Layout & Utilities
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: var(--section-spacing) 0;
}

.bg-light { background-color: var(--light); }
.bg-dark { background-color: var(--dark); color: var(--white); }
.bg-dark p { color: #A0A4A8; }

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

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

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

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

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--dark);
    color: var(--white);
}

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

.btn-outline:hover, .btn-outline:focus {
    background-color: var(--primary);
    color: var(--white);
}

.btn-block {
    width: 100%;
}

.desktop-only { display: inline-flex; }
.mobile-only { display: none; }

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

.site-header.scrolled {
    background-color: var(--white);
    border-bottom-color: var(--border);
    box-shadow: var(--shadow-sm);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.site-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

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

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

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

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

.hamburger {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--dark);
    margin-bottom: 5px;
    transition: var(--transition);
}

.hamburger-line:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    overflow: hidden;
    background-color: var(--light);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(circle at 80% 20%, rgba(224, 224, 224, 0.4) 0%, transparent 40%),
                radial-gradient(circle at 20% 80%, rgba(224, 224, 224, 0.4) 0%, transparent 40%);
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(var(--border) 1px, transparent 1px),
                      linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
}

.floating-node {
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: var(--accent);
    border-radius: 50%;
    opacity: 0.5;
}
.node-1 { top: 30%; left: 15%; animation: float 15s infinite ease-in-out; }
.node-2 { top: 60%; right: 20%; animation: float 20s infinite ease-in-out reverse; }
.node-3 { bottom: 20%; left: 40%; animation: float 18s infinite ease-in-out; }

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); }
    33% { transform: translateY(-20px) translateX(10px); }
    66% { transform: translateY(15px) translateX(-15px); }
}

.hero-container {
    position: relative;
    z-index: 1;
}

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

.hero-logo {
    height: 60px;
    margin-bottom: 2rem;
    object-fit: contain;
}

.eyebrow {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.hero-text {
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
}

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

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

.highlight-statement {
    margin-top: 2rem;
    padding-left: 1.5rem;
    border-left: 4px solid var(--accent);
}

.highlight-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark);
}

.process-flow {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.process-node {
    padding: 1.5rem;
    text-align: center;
    background-color: var(--light);
    font-weight: 600;
    color: var(--primary);
    border-radius: var(--border-radius);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.node-accent {
    background-color: var(--accent);
    color: var(--white);
}

.process-arrow {
    width: 2px;
    height: 30px;
    background-color: var(--border);
    margin: 0 auto;
    position: relative;
}

.process-arrow::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: -4px;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--border);
    border-bottom: 2px solid var(--border);
    transform: rotate(45deg);
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.service-category {
    margin-bottom: 4rem;
}

.service-category:last-child {
    margin-bottom: 0;
}

.category-title {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.category-desc {
    margin-bottom: 2.5rem;
    font-size: 1.125rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.cards-grid-small {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.service-card {
    background: var(--light);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.service-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
    border-color: rgba(0,0,0,0.1);
}

.card-number {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 1rem;
}

.service-card h4 {
    margin-bottom: 0.75rem;
    color: var(--dark);
}

.service-card-small {
    background: var(--light);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    transition: var(--transition);
}

.service-card-small:hover {
    box-shadow: var(--shadow-md);
    background-color: var(--white);
}

.service-card-small h4 {
    margin: 0;
    font-size: 1rem;
}

.category-footer {
    background-color: var(--light);
    padding: 1.5rem;
    border-left: 3px solid var(--primary);
}

.category-footer p {
    margin: 0;
    color: var(--primary);
    font-weight: 500;
}

/* ==========================================================================
   Capabilities Section
   ========================================================================== */
.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.capability-block {
    padding: 2rem 0;
}

.cap-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.cap-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

.cap-line {
    flex-grow: 1;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
}

.cap-title {
    color: var(--white);
    margin-bottom: 1rem;
}

/* ==========================================================================
   Global Reach Section
   ========================================================================== */
.global-reach {
    position: relative;
    background-color: var(--primary);
    color: var(--white);
    padding: 6rem 0;
    overflow: hidden;
}

.global-reach .section-title {
    color: var(--white);
}

.map-background {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.15) 2px, transparent 2px);
    background-size: 30px 30px;
    opacity: 0.5;
}

.global-highlight {
    margin: 3rem 0;
}

.stat-number {
    display: inline-block;
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1;
    position: relative;
    padding-bottom: 1rem;
}

.stat-number::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--accent);
}

.global-text {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.global-subtext {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-intro {
    font-size: 1.125rem;
    margin-bottom: 3rem;
}

.contact-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.detail-block {
    margin-bottom: 0;
}

.detail-label {
    font-size: 0.875rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.contact-link {
    font-weight: 500;
}

.contact-link:hover {
    color: var(--accent);
    text-decoration: underline;
}

address {
    font-style: normal;
    color: var(--dark);
    font-weight: 500;
}

/* Form Styles */
.contact-form-wrapper {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark);
}

.required {
    color: var(--error);
}

input, select, textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    font-family: var(--font-main);
    font-size: 1rem;
    color: var(--text);
    background-color: var(--white);
    transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 95, 115, 0.1);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

.error-message {
    display: none;
    color: var(--error);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.form-group.has-error input, 
.form-group.has-error textarea {
    border-color: var(--error);
}

.form-group.has-error .error-message {
    display: block;
}

.form-status {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: var(--border-radius);
    display: none;
    font-weight: 500;
}

.form-status.success {
    display: block;
    background-color: rgba(46, 125, 50, 0.1);
    color: var(--success);
    border: 1px solid rgba(46, 125, 50, 0.2);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background-color: var(--primary);
    color: var(--light);
    padding: 4rem 0 2rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    height: 40px;
    object-fit: contain;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

.footer-slogan {
    font-size: 1.25rem;
    color: var(--white);
    font-weight: 500;
}

.footer-nav h4, .footer-contact h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.footer-nav ul li {
    margin-bottom: 0.75rem;
}

.footer-nav a, .footer-contact a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-nav a:hover, .footer-contact a:hover {
    color: var(--white);
}

.footer-contact p {
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

.coming-soon-badge {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 500;
}

/* Back to ToO */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--dark);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-md);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

/* ==========================================================================
   Animations
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ==========================================================================
   Media Queries
   ========================================================================== */
@media (max-width: 992px) {
    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
    
    .contact-form-wrapper {
        padding: 2rem;
    }
    
    .process-flow {
        flex-direction: row;
        padding: 2rem;
        align-items: center;
        justify-content: space-between;
        overflow-x: auto;
    }
    
    .process-arrow {
        width: 30px;
        height: 2px;
        margin: 0;
    }
    
    .process-arrow::after {
        top: -4px;
        right: -5px;
        left: auto;
        transform: rotate(-45deg);
    }
}

@media (max-width: 768px) {
    .desktop-only { display: none; }
    .mobile-only { display: block; }
    
    .hamburger { display: block; }
    
    .nav-links {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
        padding: 2rem;
    }
    
    .nav-links.open {
        left: 0;
    }
    
    .nav-link {
        font-size: 1.25rem;
    }
    
    body.menu-open {
        overflow: hidden;
    }
    
    .hamburger.active .hamburger-line:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    
    .hamburger.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .hamburger-line:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .btn { width: 100%; }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .contact-details {
        grid-template-columns: 1fr;
    }
    
    .process-flow {
        flex-direction: column;
    }
    
    .process-arrow {
        width: 2px;
        height: 30px;
        margin: 0 auto;
    }
    
    .process-arrow::after {
        top: auto;
        bottom: -5px;
        left: -4px;
        transform: rotate(45deg);
    }
}

@media (max-width: 576px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}