:root {
    /* Primary Colors */
    --deep-charcoal: #1C1F22;
    --graphite: #2D3136;
    --concrete-grey: #8A929B;
    
    /* Accent Colors */
    --construction-orange: #FF5A00;
    --warm-amber: #FF9E00;
    
    /* Supporting Colors */
    --white: #FFFFFF;
    --off-white: #F5F7FA;
    --steel-grey: #E2E8F0;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

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

.text-primary { color: var(--construction-orange) !important; }
.bg-primary { background-color: var(--construction-orange) !important; }
.text-light-grey { color: var(--concrete-grey) !important; }
.bg-dark { background-color: var(--deep-charcoal) !important; }

/* Buttons */
.btn-primary {
    background-color: var(--construction-orange);
    border-color: var(--construction-orange);
    border-radius: 0;
    padding: 12px 28px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--deep-charcoal);
    border-color: var(--deep-charcoal);
}

.btn-outline-primary {
    color: var(--construction-orange);
    border-color: var(--construction-orange);
    border-radius: 0;
    padding: 12px 28px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

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

/* Header & Navbar */
.site-header {
    position: relative;
    z-index: 1030;
}

.navbar {
    padding: 20px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background-color: var(--deep-charcoal) !important;
    padding: 10px 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.brand-logo {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-name {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 24px;
    letter-spacing: 2px;
    color: var(--white);
}

.brand-tagline {
    font-family: var(--font-body);
    font-size: 10px;
    letter-spacing: 3px;
    color: var(--construction-orange);
    text-transform: uppercase;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    padding: 10px 15px;
    position: relative;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--white);
}

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

.navbar-dark .navbar-nav .nav-link:hover::after,
.navbar-dark .navbar-nav .nav-link.active::after {
    width: calc(100% - 30px);
}

/* Page Header (inner pages) */
.page-header {
    padding-top: 150px !important;
    padding-bottom: 80px !important;
}

/* Blueprint / Grid Backgrounds */
.blueprint-bg {
    background-color: #1a365d;
    background-image: 
        linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 30px 30px;
    color: var(--white);
}

.grid-bg-light {
    background-color: var(--off-white);
    background-image: 
        linear-gradient(var(--steel-grey) 1px, transparent 1px),
        linear-gradient(90deg, var(--steel-grey) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    min-height: 600px;
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to right, rgba(28, 31, 34, 0.9) 0%, rgba(28, 31, 34, 0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    padding-top: 80px;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.hero-title span {
    color: var(--construction-orange);
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    max-width: 600px;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-location {
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    margin-top: 3rem;
}

.hero-location::before {
    content: '';
    display: inline-block;
    width: 30px;
    height: 2px;
    background-color: var(--construction-orange);
    margin-right: 10px;
}

/* Quick Enquiry Bar */
.quick-enquiry-bar {
    background-color: var(--white);
    box-shadow: 0 -10px 30px rgba(0,0,0,0.05);
    position: relative;
    z-index: 10;
    margin-top: -50px;
    padding: 30px;
    border-radius: 4px;
}

.quick-enquiry-bar .form-control {
    border-radius: 0;
    border: 1px solid var(--steel-grey);
    padding: 12px 15px;
}

.quick-enquiry-bar .form-control:focus {
    border-color: var(--construction-orange);
    box-shadow: none;
}

/* Sections */
.section-padding {
    padding: 100px 0;
}

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

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

.section-subtitle {
    color: var(--construction-orange);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: block;
}

/* Service Cards */
.service-card {
    background: var(--white);
    border: 1px solid var(--steel-grey);
    padding: 40px 30px;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

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

.service-card:hover {
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
    transform: translateY(-5px);
}

.service-card:hover::before {
    height: 100%;
}

.service-icon {
    font-size: 40px;
    color: var(--construction-orange);
    margin-bottom: 20px;
}

.service-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.service-card-link {
    color: var(--deep-charcoal);
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    margin-top: 15px;
}

.service-card-link::after {
    content: '→';
    margin-left: 5px;
    transition: margin-left 0.3s ease;
}

.service-card:hover .service-card-link {
    color: var(--construction-orange);
}

.service-card:hover .service-card-link::after {
    margin-left: 10px;
}

/* Image Wrapper for animations */
.img-wrapper {
    overflow: hidden;
    position: relative;
}

.img-wrapper img {
    transition: transform 0.8s ease;
}

.img-wrapper:hover img {
    transform: scale(1.05);
}

.structural-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border: 1px solid rgba(255,255,255,0.2);
    margin: 15px;
    pointer-events: none;
}

/* Footer */
.site-footer {
    background-color: var(--deep-charcoal);
    color: var(--concrete-grey);
    padding: 80px 0 30px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--concrete-grey);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-legal-links a, .footer-legal-links button {
    color: var(--concrete-grey);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-legal-links a:hover, .footer-legal-links button:hover {
    color: var(--white);
}

/* Loading Screen */
#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--deep-charcoal);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.loader {
    position: relative;
    width: 100px;
    height: 100px;
}

.structural-line {
    position: absolute;
    width: 2px;
    height: 100%;
    background: var(--construction-orange);
    left: 50%;
    transform: translateX(-50%);
    animation: grow 1s ease-in-out infinite alternate;
}

.loader-text {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-family: var(--font-heading);
    letter-spacing: 2px;
    font-size: 12px;
}

@keyframes grow {
    0% { height: 0; }
    100% { height: 100%; }
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--construction-orange);
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
}

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

.back-to-top:hover {
    background: var(--deep-charcoal);
    color: var(--white);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    z-index: 1040;
    padding: 20px 0;
    border-top: 1px solid var(--steel-grey);
}

/* Process Timeline */
.process-timeline {
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 2px;
    background-color: var(--steel-grey);
}

.process-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 40px;
}

.process-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 42px;
    height: 42px;
    background: var(--white);
    border: 2px solid var(--construction-orange);
    color: var(--construction-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: var(--font-heading);
    z-index: 2;
}

/* Layer Animation Section */
.layer-section {
    background: var(--deep-charcoal);
    color: var(--white);
    padding: 100px 0;
    overflow: hidden;
}

.layer-container {
    position: relative;
    height: 400px;
    perspective: 1000px;
}

.layer {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.5s ease, opacity 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
    transform: rotateX(60deg) translateY(0) translateZ(0);
}

.layer-text {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 5px;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
    text-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.layer-1 { transform: rotateX(60deg) translateZ(-100px); z-index: 1; }
.layer-2 { transform: rotateX(60deg) translateZ(-50px); z-index: 2; }
.layer-3 { transform: rotateX(60deg) translateZ(0px); z-index: 3; }
.layer-4 { transform: rotateX(60deg) translateZ(50px); z-index: 4; }
.layer-5 { transform: rotateX(60deg) translateZ(100px); z-index: 5; }

.layer-container:hover .layer-1 { transform: rotateX(60deg) translateZ(-150px); opacity: 0.3; }
.layer-container:hover .layer-2 { transform: rotateX(60deg) translateZ(-75px); opacity: 0.5; }
.layer-container:hover .layer-3 { transform: rotateX(60deg) translateZ(0px); opacity: 1; border-color: var(--construction-orange); }
.layer-container:hover .layer-4 { transform: rotateX(60deg) translateZ(75px); opacity: 0.5; }
.layer-container:hover .layer-5 { transform: rotateX(60deg) translateZ(150px); opacity: 0.3; }

/* Contact Form */
.contact-form-wrap {
    background: var(--white);
    padding: 50px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.form-group { margin-bottom: 25px; }

.form-label {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--graphite);
    letter-spacing: 1px;
}

.form-control, .form-select {
    border-radius: 0;
    border: 1px solid var(--steel-grey);
    padding: 12px 15px;
    background-color: var(--off-white);
}

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

/* Responsive */
@media (max-width: 991.98px) {
    .hero-title { font-size: 3rem; }
    .quick-enquiry-bar { margin-top: 20px; }
    .navbar-collapse {
        background: var(--deep-charcoal);
        padding: 20px;
        margin-top: 15px;
    }
}

@media (max-width: 767.98px) {
    .hero-title { font-size: 2.5rem; }
    .section-padding { padding: 60px 0; }
    .contact-form-wrap { padding: 30px; }
    
    .mobile-cta-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1030;
        background: var(--white);
        padding: 10px;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    }
    
    body { padding-bottom: 60px; /* Space for mobile CTA */ }
}
