/* ==========================================================================
   THE DESIGN SYSTEM (STRICT CSS VARIABLES)
   ========================================================================== */
:root {
    /* Core Brand Colors */
    --navy: #0B2545;
    --obsidian: #030A14; 
    --bronze: #B88E3E;
    
    /* Backgrounds & Surfaces */
    --concrete-bg: #F4F5F7; 
    --surface: #FFFFFF;
    
    /* Typography Colors */
    --text-main: #1E293B;
    --text-muted: #475569;
    --text-light: #94A3B8;
    
    /* Sophisticated Layered Shadows */
    --shadow-soft: 0 10px 30px rgba(11, 37, 69, 0.03), 0 4px 6px rgba(11, 37, 69, 0.04), 0 1px 2px rgba(11, 37, 69, 0.05);
    --shadow-hover: 0 20px 40px rgba(11, 37, 69, 0.08), 0 8px 16px rgba(11, 37, 69, 0.06);
    
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --font-primary: 'Montserrat', sans-serif;
    
    /* Layout Variables */
    --header-height: 80px;
}

/* ==========================================================================
   GLOBAL RESETS & SCROLL MARGINS
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none !important;
}

html {
    scroll-padding-top: var(--header-height);
    scroll-behavior: smooth;
}

html, body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    scrollbar-width: none; 
    -ms-overflow-style: none; 
    font-family: var(--font-primary);
    background-color: var(--concrete-bg);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body::-webkit-scrollbar {
    display: none; 
}

.container {
    width: 100%;
    max-width: 1400px; 
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 60px); 
}

/* ==========================================================================
   1. Pristine Corporate Header & Mobile Nav
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--header-height);
    background-color: var(--surface);
    border-bottom: 1px solid rgba(11, 37, 69, 0.06);
    z-index: 1000;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    align-items: center;
}

.site-header.scrolled {
    box-shadow: 0 4px 20px rgba(11, 37, 69, 0.06);
}

.header-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 clamp(20px, 4vw, 60px);
    max-width: 1600px;
    margin: 0 auto;
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: clamp(10px, 1vw, 15px);
    text-decoration: none;
    z-index: 1001; 
    flex-wrap: nowrap;
}

.brand-logo {
    height: clamp(36px, 3vw, 48px);
    mix-blend-mode: multiply;
    flex-shrink: 0;
}

.brand-text {
    color: var(--navy);
    font-weight: 800;
    font-size: clamp(0.9rem, 4vw, 1.35rem);
    letter-spacing: 0.06em; 
    text-transform: uppercase;
    white-space: nowrap;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: clamp(15px, 2vw, 25px);
    z-index: 1001;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: clamp(1.5rem, 2.5vw, 3.5rem);
    list-style: none;
    align-items: center;
}

.nav-link {
    color: var(--navy);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em; 
    text-decoration: none;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 100%;
    height: 2px;
    background-color: var(--bronze);
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary {
    background-color: var(--bronze);
    color: var(--surface);
    padding: clamp(10px, 1.2vw, 14px) clamp(20px, 2.5vw, 32px);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
    border-radius: 2px;
    transition: var(--transition);
    border: 1px solid var(--bronze);
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

/* Hover States protected for Mouse Devices Only */
@media (hover: hover) {
    .nav-link:hover { color: var(--bronze); }
    .nav-link:hover::after { transform: translateX(-50%) scaleX(1); }
    
    .btn-primary:hover {
        background-color: var(--navy);
        border-color: var(--navy);
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(11, 37, 69, 0.15);
    }
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--navy);
    cursor: pointer;
    transition: var(--transition);
    padding: 10px;
    margin-right: -10px;
}

.mobile-only {
    display: none;
}

/* ==========================================================================
   2. Cinematic Hero Section
   ========================================================================== */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 100vh; 
    min-height: 100svh; 
    display: flex;
    flex-direction: column;
    padding-top: var(--header-height); 
    overflow: hidden; 
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('hero-bg.jpg');
    background-size: cover;
    background-position: center;
    z-index: 0;
    animation: cinematicZoom 30s linear infinite alternate;
}

@keyframes cinematicZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.08); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 40%, rgba(11, 37, 69, 0.65) 0%, rgba(11, 37, 69, 0.9) 60%, rgba(11, 37, 69, 0.98) 100%);
    z-index: 1;
}

.hero-content-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
    padding: clamp(30px, 4vh, 60px) clamp(20px, 4vw, 60px);
}

.hero-content {
    text-align: center;
    max-width: 950px; 
}

.hero-kicker {
    display: block;
    color: var(--bronze);
    font-size: clamp(0.75rem, 0.9vw, 0.95rem);
    font-weight: 700;
    letter-spacing: 0.15em; 
    text-transform: uppercase;
    margin-bottom: clamp(15px, 2vh, 25px);
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.hero-title {
    color: var(--surface);
    font-size: clamp(2.2rem, 4.5vw, 5.5rem); 
    font-weight: 900;
    letter-spacing: -0.03em; 
    line-height: 1.05; 
    margin: 0 auto clamp(15px, 2vh, 25px) auto;
    max-width: 900px;
    text-shadow: 0 4px 12px rgba(0,0,0,0.4), 0 10px 40px rgba(0,0,0,0.4);
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.95); 
    font-size: clamp(0.95rem, 1.2vw, 1.25rem); 
    font-weight: 500; 
    line-height: 1.7;
    letter-spacing: 0.02em;
    max-width: 720px; 
    margin: 0 auto;
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

/* ==========================================================================
   3. Integrated Architectural Trust Bar
   ========================================================================== */
.trust-bar-wrapper {
    position: relative;
    width: 100%;
    z-index: 10;
    display: flex;
    justify-content: center;
    padding: 0 clamp(20px, 4vw, 60px) clamp(30px, 4vh, 50px);
}

.trust-bar {
    width: 100%;
    max-width: 1300px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.25); 
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.trust-item {
    display: flex;
    align-items: flex-start;
    gap: clamp(12px, 1.5vw, 20px);
    padding: clamp(20px, 2.5vw, 35px) clamp(20px, 2.5vw, 40px);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.trust-item:last-child {
    border-right: none;
}

.trust-icon i {
    font-size: clamp(1.2rem, 1.5vw, 1.6rem);
    color: var(--bronze);
    margin-top: 2px;
    filter: drop-shadow(0 2px 8px rgba(184, 142, 62, 0.5)); 
}

.trust-text h3 {
    font-size: clamp(0.95rem, 1.1vw, 1.15rem);
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--surface);
    letter-spacing: 0.03em;
}

.trust-text p {
    font-size: clamp(0.85rem, 0.9vw, 0.95rem);
    color: rgba(255, 255, 255, 0.85); 
    line-height: 1.6;
}

/* ==========================================================================
   4. Engineered Services Grid
   ========================================================================== */
.services-section {
    background-color: var(--concrete-bg);
    background-image: linear-gradient(rgba(11, 37, 69, 0.02) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(11, 37, 69, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    padding: clamp(70px, 7vw, 100px) 0; 
}

.section-header {
    text-align: center;
    margin-bottom: clamp(40px, 5vw, 60px); 
}

.section-kicker {
    display: block;
    color: var(--bronze);
    font-size: clamp(0.8rem, 0.9vw, 0.9rem);
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.section-title {
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 900;
    color: var(--navy);
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}

.title-underline {
    width: 60px;
    height: 3px;
    background-color: var(--bronze);
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(20px, 2.5vw, 35px); 
}

.service-card {
    position: relative;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-radius: 2px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    display: flex;
    overflow: hidden;
    z-index: 1;
}

.card-accent-line {
    width: 4px;
    background-color: var(--bronze);
    transition: var(--transition);
}

.card-content {
    padding: clamp(30px, 3vw, 45px) clamp(25px, 3vw, 40px); 
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-grow: 1;
}

.service-title {
    font-size: clamp(1.2rem, 1.5vw, 1.5rem);
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 15px;
    letter-spacing: -0.02em;
}

.service-desc {
    font-size: clamp(0.9rem, 1vw, 0.95rem);
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 30px;
    flex-grow: 1;
}

.explore-btn {
    background: none;
    border: none;
    color: var(--navy);
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    margin-top: auto;
    transition: color 0.3s ease;
}

.explore-btn .arrow {
    color: var(--bronze);
    font-size: 1.2rem;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (hover: hover) {
    .service-card:hover {
        transform: translateY(-6px);
        box-shadow: var(--shadow-hover);
    }
    .service-card:hover .card-accent-line {
        width: 8px;
        background-color: var(--navy);
    }
    .explore-btn:hover { color: var(--bronze); }
    .explore-btn:hover .arrow { transform: translateX(8px); }
}

/* ==========================================================================
   5. Premium Off-Canvas Specification Drawer
   ========================================================================== */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 37, 69, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    justify-content: flex-end; 
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.drawer-panel {
    background-color: var(--surface);
    width: 100%;
    max-width: 650px;
    height: 100%;
    padding: clamp(60px, 6vw, 80px) clamp(30px, 3vw, 50px) 40px; 
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: -10px 0 40px rgba(0,0,0,0.2);
    border-left: 4px solid var(--bronze);
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch; 
}

.drawer-panel::-webkit-scrollbar {
    display: none;
}

.drawer-overlay.active .drawer-panel {
    transform: translateX(0);
}

.drawer-close {
    position: absolute;
    top: clamp(15px, 2vw, 25px);
    right: clamp(20px, 2vw, 30px);
    background: transparent;
    border: none;
    font-size: 2.2rem;
    color: var(--text-light);
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
    padding: 10px; 
}

@media (hover: hover) {
    .drawer-close:hover { color: var(--navy); }
}

.drawer-content-wrapper {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.drawer-kicker {
    color: var(--bronze);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 15px;
}

.drawer-title {
    font-size: clamp(1.6rem, 2.5vw, 2.2rem);
    font-weight: 900;
    color: var(--navy);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.drawer-divider {
    width: 60px;
    height: 2px;
    background-color: var(--bronze);
    margin: 20px 0 30px;
}

.drawer-body p {
    font-size: clamp(0.9rem, 1vw, 1rem);
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
}

.drawer-footer {
    margin-top: auto;
    padding-top: 30px;
}

/* ==========================================================================
   6. Compacted & Grounded Corporate Footer
   ========================================================================== */
.site-footer {
    background-color: var(--navy); 
    color: var(--surface);
    padding: clamp(50px, 5vw, 70px) 0 0; 
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: clamp(30px, 4vw, 50px); 
    margin-bottom: clamp(30px, 4vw, 50px);
}

.footer-brand-name {
    font-size: clamp(1.2rem, 1.4vw, 1.4rem);
    font-weight: 800;
    color: var(--surface);
    letter-spacing: 0.08em;
    margin-bottom: 20px;
}

.footer-heading {
    font-size: clamp(0.85rem, 1vw, 0.95rem);
    font-weight: 700;
    color: var(--surface);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.footer-text {
    color: var(--text-light);
    font-size: clamp(0.85rem, 0.9vw, 0.9rem);
    line-height: 1.6;
    max-width: 420px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: clamp(0.85rem, 0.9vw, 0.9rem);
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
}

@media (hover: hover) {
    .footer-links a:hover { color: var(--bronze); }
}

.contact-info p {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    color: var(--text-light);
    font-size: clamp(0.85rem, 0.9vw, 0.9rem);
    margin-bottom: 15px;
    line-height: 1.5;
}

.contact-info i {
    color: var(--bronze);
    font-size: 1.1rem;
    margin-top: 2px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: clamp(20px, 2vw, 25px) 0;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-light);
    font-size: 0.85rem;
}

.engineered-tag {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ==========================================================================
   Cinematic Scroll Reveal Animation Classes
   ========================================================================== */
.reveal-on-load {
    opacity: 0;
    transform: translateY(30px);
    animation: cinematicUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.reveal-on-load-delayed {
    opacity: 0;
    transform: translateY(30px);
    animation: cinematicUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes cinematicUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Responsive Architecture (Tablet & Mobile)
   ========================================================================== */

/* Tablet Optimization (iPad Pro & Standard Tablets) */
@media (max-width: 1024px) {
    .hero-section {
        min-height: 80vh;
    }
    
    .trust-item {
        padding: 20px 15px; 
        gap: 10px;
    }

    .trust-icon i {
        font-size: 1.2rem;
    }
    
    .services-grid {
        gap: 20px;
    }

    .card-content {
        padding: 30px 25px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr; 
    }
}

/* Mobile Navigation & Layout Adjustments (Phones) */
@media (max-width: 768px) {
    .desktop-cta {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--surface);
        flex-direction: column;
        align-items: flex-start;
        padding: 0;
        box-shadow: 0 20px 40px rgba(0,0,0,0.15);
        border-bottom: 2px solid var(--bronze);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), border 0.4s ease;
        border-bottom-width: 0; 
    }

    .main-nav.active {
        max-height: 450px;
        border-bottom-width: 2px;
    }

    .nav-list {
        flex-direction: column;
        width: 100%;
        padding: 25px clamp(20px, 4vw, 60px);
        gap: 1.8rem;
        align-items: flex-start;
    }

    .mobile-only {
        display: block;
        width: 100%;
        margin-top: 15px;
    }

    .mobile-only .btn-primary {
        width: 100%;
    }

    .hero-bg-image {
        animation: none; 
    }

    .trust-bar {
        grid-template-columns: 1fr;
        background: var(--surface);
        box-shadow: var(--shadow-soft);
        border: 1px solid rgba(11, 37, 69, 0.05);
    }
    
    .trust-item {
        border-right: none;
        border-bottom: 1px solid rgba(11, 37, 69, 0.05);
        color: var(--navy);
        padding: 25px 30px; 
    }
    
    .trust-item:last-child {
        border-bottom: none;
    }

    .trust-text h3 {
        color: var(--navy);
    }

    .trust-text p {
        color: var(--text-muted);
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        padding: 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom-inner {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}