/* 
 * WHANSON ENGINEERING SERVICES - Primary Stylesheet
 * 
 * Core Palette:
 * Deep Navy: #0B1624
 * Industrial Blue: #123B5D
 * Steel Grey: #586570
 * Light Steel: #DDE3E8
 * Off White: #F6F8FA
 * White: #FFFFFF
 * Engineering Orange: #F28C28
 * Dark Charcoal: #171C21
 */

:root {
    --c-deep-navy: #0B1624;
    --c-ind-blue: #123B5D;
    --c-steel-grey: #586570;
    --c-light-steel: #DDE3E8;
    --c-off-white: #F6F8FA;
    --c-white: #FFFFFF;
    --c-orange: #F28C28;
    --c-dark-charcoal: #171C21;
    
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
}

body {
    font-family: var(--font-primary);
    color: var(--c-dark-charcoal);
    background-color: var(--c-off-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--c-deep-navy);
}

a {
    color: var(--c-ind-blue);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--c-orange);
}

/* Typography Classes */
.text-orange { color: var(--c-orange) !important; }
.text-navy { color: var(--c-deep-navy) !important; }
.text-steel { color: var(--c-steel-grey) !important; }

/* Backgrounds */
.bg-navy { background-color: var(--c-deep-navy) !important; }
.bg-ind-blue { background-color: var(--c-ind-blue) !important; }
.bg-off-white { background-color: var(--c-off-white) !important; }
.bg-light-steel { background-color: var(--c-light-steel) !important; }

/* Grid Background */
.bg-blueprint {
    background-color: var(--c-deep-navy);
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px, 50px 50px, 10px 10px, 10px 10px;
    background-position: center center;
    color: var(--c-white);
}

.bg-blueprint h1, .bg-blueprint h2, .bg-blueprint h3, .bg-blueprint h4, .bg-blueprint h5, .bg-blueprint h6 {
    color: var(--c-white);
}

/* Top Bar */
.top-bar {
    background-color: var(--c-dark-charcoal);
    padding: 8px 0;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.top-bar-text { color: var(--c-light-steel); letter-spacing: 0.5px; text-transform: uppercase; }
.top-bar-link { color: var(--c-orange); }

/* Header & Navbar */
.main-header {
    background-color: var(--c-white);
    border-bottom: 1px solid var(--c-light-steel);
    transition: all 0.3s ease;
}

.main-header.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.logo-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
    color: var(--c-deep-navy);
    letter-spacing: 1px;
}

.logo-subtitle {
    font-family: var(--font-primary);
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--c-steel-grey);
    letter-spacing: 2px;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--c-deep-navy) !important;
    padding: 0.5rem 1rem !important;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    position: relative;
}

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

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: calc(100% - 2rem);
}

.btn-technical {
    background-color: var(--c-orange);
    color: var(--c-white);
    border: none;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 0.85rem;
    padding: 10px 24px;
    border-radius: 0;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.3s ease;
}

.btn-technical::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: var(--c-deep-navy);
    transition: all 0.3s ease;
    z-index: -1;
}

.btn-technical:hover {
    color: var(--c-white);
}

.btn-technical:hover::before {
    width: 100%;
}

.btn-outline-technical {
    background-color: transparent;
    border: 1px solid var(--c-deep-navy);
    color: var(--c-deep-navy);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 0.85rem;
    padding: 10px 24px;
    border-radius: 0;
    transition: all 0.3s ease;
}

.btn-outline-technical:hover {
    background-color: var(--c-deep-navy);
    color: var(--c-white);
}

/* Hero Section */
.hero-section {
    position: relative;
    background-color: var(--c-deep-navy);
    padding: 100px 0;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-label {
    display: inline-block;
    color: var(--c-orange);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 40px;
}

.hero-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 2px;
    background-color: var(--c-orange);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    color: var(--c-white);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.hero-text {
    color: var(--c-light-steel);
    font-size: 1.15rem;
    max-width: 600px;
    margin-bottom: 2.5rem;
}

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

.hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    box-shadow: -20px 20px 0 var(--c-orange);
}

.hero-image-label {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background-color: var(--c-dark-charcoal);
    color: var(--c-white);
    padding: 8px 16px;
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Technical Cards */
.tech-card {
    background-color: var(--c-white);
    border: 1px solid var(--c-light-steel);
    padding: 2.5rem;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--c-orange);
    transition: width 0.3s ease;
}

.tech-card:hover {
    box-shadow: 0 10px 30px rgba(11, 22, 36, 0.05);
    border-color: var(--c-steel-grey);
}

.tech-card:hover::before {
    width: 100%;
}

.tech-card-num {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--c-light-steel);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 1rem;
}

.tech-card-title {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.tech-card-text {
    color: var(--c-steel-grey);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Section Styling */
.section-padding {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background-color: var(--c-orange);
}

.section-subtitle {
    color: var(--c-steel-grey);
    font-size: 1.1rem;
    max-width: 700px;
}

/* Process Section */
.process-step {
    position: relative;
    padding-left: 60px;
    margin-bottom: 2rem;
}

.process-step::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 40px;
    bottom: -20px;
    width: 1px;
    background-color: var(--c-light-steel);
}

.process-step:last-child::before {
    display: none;
}

.process-num {
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    background-color: var(--c-deep-navy);
    color: var(--c-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: var(--font-heading);
}

/* Footer */
.main-footer {
    background-color: var(--c-dark-charcoal);
    color: var(--c-light-steel);
    padding-top: 2rem;
}

.footer-brand {
    color: var(--c-white);
    letter-spacing: 1px;
}

.footer-heading {
    color: var(--c-orange);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 600;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--c-light-steel);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--c-orange);
}

.main-footer .text-muted {
    color: var(--c-light-steel) !important;
}

/* Floating Actions */
.floating-email {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--c-orange);
    color: var(--c-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 99;
}

.floating-email:hover {
    background-color: var(--c-deep-navy);
    color: var(--c-white);
}

.back-to-top {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--c-deep-navy);
    color: var(--c-white);
    border: none;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--c-dark-charcoal);
    border-top: 3px solid var(--c-orange);
    padding: 1.5rem 0;
    z-index: 1050;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.4s ease;
}

.cookie-banner.show {
    opacity: 1;
    transform: translateY(0);
}

.cookie-text {
    color: var(--c-light-steel);
    font-size: 0.9rem;
}

.technical-modal {
    background-color: var(--c-dark-charcoal);
    color: var(--c-light-steel);
    border: 1px solid var(--c-steel-grey);
    border-radius: 0;
}

/* Forms */
.form-control, .form-select {
    border-radius: 0;
    border: 1px solid var(--c-light-steel);
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
}

.form-control:focus, .form-select:focus {
    box-shadow: none;
    border-color: var(--c-orange);
}

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

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

/* Responsive */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-image-wrap {
        margin-top: 3rem;
    }
}

/* Custom Enhancements */
.transition-all { transition: all 0.3s ease; }
.hover-elevate { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.hover-elevate:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(11, 22, 36, 0.08) !important; border-color: var(--c-orange) !important; }
.letter-spacing-1 { letter-spacing: 1px; }
