/* -------------------------------------------------------------------------- */
/*                              CORE VARIABLES                                */
/* -------------------------------------------------------------------------- */
:root {
    /* Top-Tier Engineering Consultancy Palette */
    --color-primary: #041424;
    /* Deep Authoritative Navy */
    --color-primary-light: #0B243B;
    --color-accent: #005EB8;
    /* Engineering Professional Blue */
    --color-accent-hover: #00458A;

    /* Backgrounds & Surfaces */
    --bg-white: #FFFFFF;
    --bg-gray-light: #F4F6F8;
    /* Clean Steel Gray for section contrast */
    --bg-gray-dark: #EAECEF;
    --bg-dark: #071A2C;
    /* Footer / Dark sections */

    /* Typography Colors */
    --text-primary: #1C2331;
    /* Near Black for optimal readability */
    --text-secondary: #4A5568;
    /* Slate gray for body text */
    --text-inverse: #FFFFFF;
    --text-inverse-muted: #A0AEC0;

    /* Border & Structure */
    --border-subtle: #DDE2E5;
    --border-dark: rgba(255, 255, 255, 0.1);

    /* Fonts */
    --font-heading: 'Inter', -apple-system, sans-serif;
    --font-body: 'Outfit', 'Inter', -apple-system, sans-serif;

    /* Utilities */
    --transition-fast: 0.2s ease-in-out;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-sm: 0 2px 4px rgba(4, 20, 36, 0.05);
    --shadow-md: 0 4px 12px rgba(4, 20, 36, 0.08);
    --shadow-lg: 0 12px 24px rgba(4, 20, 36, 0.12);
    /* Scroll Progress */
    --scroll-progress: 0%;
}

#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--scroll-progress);
    height: 4px;
    background-color: var(--color-accent);
    z-index: 9999;
    transition: width 0.1s ease-out;
}

/* -------------------------------------------------------------------------- */
/*                               RESET & BASE                                 */
/* -------------------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

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

/* Typography Hierarchy */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-weight: 700;
    line-height: 1.2;
}

p {
    margin-bottom: 1.5rem;
}

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

a:hover {
    color: var(--color-accent-hover);
}

/* -------------------------------------------------------------------------- */
/*                             LAYOUT & SECTIONS                              */
/* -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 100px 0;
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
}

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

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

.section-primary {
    background-color: var(--color-primary);
    color: var(--text-inverse);
}

.section-dark {
    background-color: var(--bg-dark);
    color: var(--text-inverse);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-primary h1,
.section-primary h2,
.section-primary h3,
.section-primary h4 {
    color: var(--text-inverse);
}

.section-dark p {
    color: var(--text-inverse-muted);
}

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

.section-title {
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.divider {
    width: 60px;
    height: 4px;
    background-color: var(--color-accent);
}

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

.center-divider {
    margin: 0 auto;
}

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

/* -------------------------------------------------------------------------- */
/*                                COMPONENTS                                  */
/* -------------------------------------------------------------------------- */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.02em;
    border-radius: 50px;
    transition: var(--transition-fast);
    cursor: pointer;
    text-decoration: none;
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    color: var(--bg-white);
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 94, 184, 0.3);
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.15rem;
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--bg-white);
    color: var(--bg-white);
}

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

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

.btn-outline:hover {
    background-color: var(--color-accent);
    color: var(--bg-white);
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 94, 184, 0.2);
}

/* Lists */
.check-list {
    list-style: none;
    padding: 0;
}

.check-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.check-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 14px;
    height: 14px;
    background-image: url('data:image/svg+xml;charset=UTF-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23005EB8" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpolyline points="20 6 9 17 4 12"%3E%3C/polyline%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-size: contain;
}

.section-dark .check-list li {
    color: var(--text-inverse-muted);
}

/* -------------------------------------------------------------------------- */
/*                                ANIMATIONS                                  */
/* -------------------------------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

@keyframes kenBurns {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

/* -------------------------------------------------------------------------- */
/*                                NAVIGATION                                  */
/* -------------------------------------------------------------------------- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-fast);
    padding: 24px 0;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-sm);
}

nav.scrolled {
    padding: 16px 0;
    box-shadow: var(--shadow-md);
}

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

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
    margin-right: 12px;
}

.logo-text {
    font-size: 1.1rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-links a:hover {
    color: var(--color-accent);
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-primary);
    position: relative;
    transition: var(--transition-fast);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--color-primary);
    transition: var(--transition-fast);
}

.hamburger::before {
    top: -7px;
}

.hamburger::after {
    top: 7px;
}

.mobile-menu-toggle.active .hamburger {
    background: transparent;
}

.mobile-menu-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.mobile-menu-toggle.active .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

@media (max-width: 992px) {
    .nav-links {
        display: none;
        /* Hide default on tablet/mobile */
    }

    .mobile-menu-toggle {
        display: block;
        padding: 10px;
    }

    .logo-text {
        font-size: 0.9rem;
    }

    .nav-links.active {
        display: flex;
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 100%;
        max-width: 320px;
        background-color: var(--bg-white);
        flex-direction: column;
        padding: 100px 2rem 2rem;
        box-shadow: var(--shadow-lg);
    }
}

/* -------------------------------------------------------------------------- */
/*                                  HERO                                      */
/* -------------------------------------------------------------------------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background-color: var(--color-primary);
    color: var(--bg-white);
    padding-top: 80px;
    /* offset nav */
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(4, 20, 36, 0.85), rgba(4, 20, 36, 0.85)), url('../assets/images/hero-station-facade.png');
    background-size: cover;
    background-position: center;
    z-index: 1;
    animation: kenBurns 20s ease-out infinite alternate;
}

.hero-content {
    max-width: 1000px;
    position: relative;
    z-index: 2;
    text-align: center;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero h1 {
    font-size: clamp(2rem, 8vw, 4.2rem);
    color: var(--bg-white);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-highlight {
    color: var(--color-accent);
}

.hero p {
    font-size: clamp(1rem, 4vw, 1.25rem);
    color: var(--text-inverse-muted);
    max-width: 100%;
    width: 100%;
    margin: 0 auto 2.5rem;
    font-weight: 300;
    text-align: left;
}

.hero-benefits {
    list-style: none;
    padding: 0;
    margin: 0 auto 2.5rem;
    font-size: clamp(0.95rem, 3.5vw, 1.15rem);
    color: var(--text-inverse-muted);
    text-align: left;
    max-width: 100%;
    width: 100%;
}

.hero-benefits li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.hero-benefits li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: bold;
}

.hero-benefits strong {
    color: var(--bg-white);
}

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.hero-margin {
    margin-left: 1rem;
}

@media (max-width: 768px) {
    .hero-margin {
        margin-left: 0;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
    }

    .hero-btns .btn {
        width: 100%;
        justify-content: center;
    }

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

    .desktop-only {
        display: none;
    }
}

@media (min-width: 769px) {
    .mobile-only {
        display: none;
    }

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

@media (max-width: 480px) {
    .hero {
        min-height: auto;
        padding-top: 120px;
        padding-bottom: 60px;
    }
}

/* -------------------------------------------------------------------------- */
/*                                 ABOUT                                      */
/* -------------------------------------------------------------------------- */
.about-card {
    background: var(--bg-white);
    /* Architectural shadow vs glass */
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    padding: 3rem 4rem;
    position: relative;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--color-accent);
}

.about-text-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.about-text-content p:last-child {
    margin-bottom: 0;
}

.about-text-content strong {
    color: var(--color-primary);
}

@media (max-width: 768px) {
    .about-card {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .about-card {
        padding: 1.5rem 1rem;
    }
}

/* -------------------------------------------------------------------------- */
/*                               SERVICES                                     */
/* -------------------------------------------------------------------------- */
.services-grid {
    display: flex;
    flex-direction: column;
    gap: 6rem;
}

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

/* Alternate rows reverse layout */
.service-row.alternate .service-content {
    order: 2;
}

.service-row.alternate .service-media {
    order: 1;
}

.service-icon-box {
    width: 64px;
    height: 64px;
    background-color: var(--bg-gray-light);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--color-accent);
    border: 1px solid var(--border-subtle);
}

.service-content h3 {
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    margin-bottom: 1rem;
    font-weight: 700;
}

.service-media {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.service-media::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid rgba(0, 0, 0, 0.1);
    pointer-events: none;
}

.service-media img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-smooth);
}

.service-media:hover img {
    transform: scale(1.03);
}

@media (max-width: 992px) {
    .services-grid {
        gap: 4rem;
    }

    .service-row,
    .service-row.alternate {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .service-row.alternate .service-content {
        order: 1;
    }

    .service-row.alternate .service-media {
        order: 2;
    }

    .service-media img {
        height: 300px;
    }
}

/* -------------------------------------------------------------------------- */
/*                                UNIQUENESS                                  */
/* -------------------------------------------------------------------------- */
.manifesto {
    font-size: 1.25rem;
    font-style: italic;
    font-weight: 300;
    max-width: 800px;
    margin: 2rem 0;
}

.value-prop {
    display: flex;
    background-color: var(--color-primary-light);
    border: 1px solid var(--border-dark);
    margin: 3rem 0;
    border-radius: 4px;
    overflow: hidden;
}

.value-prop-accent {
    width: 8px;
    background-color: var(--color-accent);
}

.value-prop-content {
    padding: 2.5rem;
}

.value-prop-content h3 {
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.value-prop-content p {
    margin: 0;
    font-size: 1.1rem;
}

.unique-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.unique-box {
    background-color: var(--color-primary-light);
    border: 1px solid var(--border-dark);
    padding: 2rem;
    border-radius: 4px;
    border-top: 3px solid transparent;
    transition: var(--transition-fast);
}

.unique-box:hover {
    border-top-color: var(--color-accent);
    background-color: #0d2a45;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.unique-box h3 {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    margin-bottom: 1rem;
    color: var(--bg-white);
    font-weight: 700;
}

.unique-box p {
    font-size: 0.95rem;
    margin: 0;
}

/* -------------------------------------------------------------------------- */
/*                                TRAINING                                    */
/* -------------------------------------------------------------------------- */
.training-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.label {
    display: inline-block;
    padding: 4px 12px;
    background-color: var(--bg-gray-light);
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-subtle);
}

.training-desc {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.training-cta {
    margin-top: 2.5rem;
}

.media-container {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.media-container:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.media-container img {
    width: 100%;
    height: auto;
    display: block;
}

.media-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(4, 20, 36, 0.95), rgba(4, 20, 36, 0.5), transparent);
    padding: 3rem 2rem 2rem;
    color: var(--bg-white);
}

.media-overlay h3 {
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.media-overlay p {
    margin: 0;
    color: var(--text-inverse-muted);
    font-size: 0.95rem;
}

@media (max-width: 992px) {
    .training-layout {
        grid-template-columns: 1fr;
    }
}

/* -------------------------------------------------------------------------- */
/*                              TESTIMONIALS                                  */
/* -------------------------------------------------------------------------- */
.testimonial-quote {
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-style: italic;
    font-weight: 300;
    color: var(--color-primary);
    max-width: 900px;
    margin: 0 auto 2rem;
    line-height: 1.3;
}

/* -------------------------------------------------------------------------- */
/*                                 FOOTER                                     */
/* -------------------------------------------------------------------------- */
.footer {
    padding: 80px 0 40px;
    color: var(--text-inverse);
    font-size: 0.95rem;
}

.footer a {
    color: var(--text-inverse);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer a:hover {
    color: var(--color-accent);
}

.footer-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo {
    height: 60px;
    margin-bottom: 2rem;
    display: block;
}

.footer-col h3 {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    color: var(--bg-white);
}

.contact-detail {
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.contact-detail strong {
    color: var(--color-accent);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.social-link {
    display: inline-flex;
    align-items: center;
    color: var(--text-inverse-muted);
    transition: var(--transition-fast);
}

.social-link:hover {
    color: var(--color-accent);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-inverse-muted);
}

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

.text-inverse-muted {
    color: var(--text-inverse-muted) !important;
}

.text-large {
    font-size: 1.25rem;
    font-weight: 300;
}