/* 
 * Premium Construction Theme v2.0
 * Refined for a corporate, high-end construction brand.
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Outfit:wght@600;700;800;900&display=swap');

:root {
    /* Color Palette - Deeper, more sophisticated shades */
    --primary: #0a1d37;
    --primary-light: #162c4b;
    --primary-dark: #051020;
    --accent: #f9d342;
    --accent-dark: #e5c13b;
    --secondary: #2c3e50;
    --bg-light: #f8fafc;
    --white: #ffffff;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Shadows - Layered for depth */
    --shadow-sm: 0 2px 4px rgba(10, 29, 55, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(10, 29, 55, 0.08), 0 4px 6px -2px rgba(10, 29, 55, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(10, 29, 55, 0.1), 0 10px 10px -5px rgba(10, 29, 55, 0.04);
    --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);

    /* Spacing */
    --section-padding: 100px;
    --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Global Reset & Base */
body {
    font-family: var(--font-body);
    color: #1e293b;
    /* Darker for better general readability */
    line-height: 1.7;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

.text-muted {
    color: #334155 !important;
    /* Darker for better general readability */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

/* Navbar - Premium Refinement */
.navbar {
    padding: 1.6rem 0; /* Original height */
    background: rgba(10, 29, 55, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    /* Finer border */
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(10, 29, 55, 0.98);
    box-shadow: var(--shadow-md);
}

.navbar-nav {
    display: flex;
    align-items: center;
}

.navbar .nav-item {
    margin: 0 0.35rem;
    /* Improved horizontal spacing */
}

.navbar .nav-link {
    font-weight: 700;
    font-size: 1.1rem;
    /* Increased nav readability */
    letter-spacing: 0.08em;
    /* Adjusted for premium feel */
    padding: 0.5rem 1rem !important;
    /* Balanced inside padding */
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85) !important;
    transition: var(--transition-smooth);
    position: relative;
    display: inline-flex;
    align-items: center;
}

.navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0.15rem;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition-smooth);
    opacity: 0;
}

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

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
    width: 40%;
    opacity: 1;
}

/* Rebalanced CTA Button */
.navbar .btn-primary {
    font-size: 0.9rem !important;
    /* Proper relative sizing */
    padding: 0.75rem 2.2rem !important;
    /* Robust balanced padding */
    letter-spacing: 0.1em;
    border-radius: 50px;
    /* Premium fully rounded pill */
    box-shadow: 0 4px 15px rgba(249, 211, 66, 0.15);
    font-family: var(--font-heading);
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    margin-left: 0.5rem;
    transition: var(--transition-smooth);
}

.navbar .btn-primary:hover {
    box-shadow: 0 8px 25px rgba(249, 211, 66, 0.35);
    transform: translateY(-2px);
    background-color: var(--accent-dark);
}

.navbar-brand {
    font-weight: 900;
    font-size: 1.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0;
    display: flex;
    align-items: center;
}

.navbar-brand i {
    font-size: 1.8rem;
    line-height: 1;
}

/* Hero Section - Split Layout Refinement */
.hero-section {
    position: relative;
    padding: 135px 0 90px; /* Sharper reduction for more compact feel */
    background: var(--primary-dark);
    overflow: hidden;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background-size: cover;
    background-position: center;
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
    z-index: 1;
}

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

.hero-tagline {
    font-weight: 700;
    letter-spacing: 0.15em;
    font-size: 0.85rem;
    margin-bottom: 2rem;
    display: inline-block;
    padding-bottom: 5px;
    border-bottom: 2px solid var(--accent);
}

.hero-title {
    font-size: clamp(2.5rem, 4.2vw, 3.8rem); /* Refined for more compact height */
    font-weight: 900;
    color: var(--white);
    margin-bottom: 1.25rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-content .lead {
    color: rgba(255, 255, 255, 0.9) !important;
    /* Brighter for hero section */
    font-weight: 500;
}

.trust-strip {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.trust-item {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    font-weight: 600;
}

/* Premium Buttons */
.btn {
    padding: 0.9rem 2.2rem;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    transition: var(--transition-smooth);
}

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

.btn-primary:hover {
    background-color: var(--accent-dark);
    border-color: var(--accent-dark);
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(249, 211, 66, 0.4);
}

.btn-outline-white {
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: var(--white);
}

.btn-outline-white:hover {
    border-color: var(--white);
    background: var(--white);
    color: var(--primary);
    transform: translateY(-3px);
}

/* Sections & Typography */
section {
    padding: var(--section-padding) 0;
}

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

.bg-primary-dark {
    background-color: var(--primary-dark) !important;
}

.section-head {
    margin-bottom: 4rem;
}

.section-subtitle {
    font-weight: 800;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: block;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 2rem;
    line-height: 1.1;
}

section {
    padding: 100px 0;
}

/* Inner Page Hero */
.inner-hero {
    position: relative;
    padding: 160px 0 120px;
    background-color: var(--primary-dark);
    background-image: linear-gradient(rgba(5, 16, 32, 0.9), rgba(5, 16, 32, 0.9)), url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&q=80&w=1920');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

.inner-hero .display-3 {
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.01em;
    font-weight: 900 !important;
}

.inner-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(249, 211, 66, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.inner-hero .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.inner-hero .breadcrumb-item {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.inner-hero .breadcrumb-item+.breadcrumb-item::before {
    content: '/';
    color: rgba(255, 255, 255, 0.3);
}

/* Service Cards - Premium */
.service-card {
    background: var(--white);
    padding: 4rem 3rem;
    /* Slightly more generous spacing */
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(10, 29, 55, 0.04);
    /* Even more subtle, higher-end shadow */
    border: 1px solid rgba(10, 29, 55, 0.06);
    height: 100%;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card p.text-muted {
    color: #2d3436 !important;
    /* Deep "ink" contrast for maximum premium feel */
    line-height: 1.8;
    font-weight: 500;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 40px 80px rgba(10, 29, 55, 0.18);
    /* More dramatic premium shadow */
    border-color: rgba(249, 211, 66, 0.8);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 2.2rem;
    margin-bottom: 2rem;
    transition: var(--transition-smooth);
    border: 1px solid rgba(10, 29, 55, 0.05);
}

.service-card:hover .service-icon {
    background: var(--primary);
    color: var(--accent);
    transform: scale(1.05);
}

.service-card h4 {
    font-size: 1.4rem;
    font-weight: 700;
}

/* Project Cards */
.project-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: var(--primary);
    aspect-ratio: 4 / 3;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
    opacity: 0.9;
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2.5rem;
    background: linear-gradient(to top, rgba(10, 29, 55, 0.95) 0%, rgba(10, 29, 55, 0.4) 60%, transparent 100%);
    color: var(--white);
    transform: translateY(10px);
    transition: var(--transition-smooth);
}

.project-overlay h4 {
    color: var(--white);
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

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

.project-card:hover .project-img {
    transform: scale(1.1);
    opacity: 0.7;
}

.project-card:hover .project-overlay {
    transform: translateY(0);
}

/* Stats Section Refinement */
.stat-box {
    padding: 2rem;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--accent);
    font-family: var(--font-heading);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.7);
}

/* About Imagery Layout */
/* --- FAIL-SAFE REBUILD OF OUR STORY SECTION --- */
.story-visual-block {
    position: relative;
    width: 100%;
    min-height: 550px;
    /* Strong height guarantee */
    background-color: var(--primary-dark);
    background-image: linear-gradient(rgba(10, 29, 55, 0.1), rgba(10, 29, 55, 0.1)), url('https://images.unsplash.com/photo-1504307651254-35680f3366d4?auto=format&fit=crop&q=80&w=1200');
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    box-shadow: 0 40px 80px rgba(10, 29, 55, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: flex-end;
    overflow: visible;
}

.story-badge-integrated {
    background: var(--accent);
    color: var(--primary);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 20px 45px rgba(249, 211, 66, 0.5);
    border: 4px solid var(--white);
    transform: translate(-30px, 30px);
    /* Secure overlap anchor */
    min-width: 180px;
    z-index: 10;
}

.story-badge-integrated h2 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 0.5rem;
    color: var(--primary) !important;
}

.story-badge-integrated span {
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.1em;
    display: block;
}

/* Explicit Suppression of Legacy and Broken Elements */
.premium-story-visual,
.premium-story-img,
.premium-story-badge,
.premium-story-box,
.story-visual-wrap,
.story-main-img,
.story-badge,
.about-img-stack,
.about-img-main,
.about-img-sub,
.experience-badge {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    position: absolute !important;
    pointer-events: none !important;
}

/* Force-hide image alt text if it breaks the layout */
img {
    color: transparent;
    font-size: 0;
}

.img-fluid,
.premium-story-img {
    text-indent: -9999px;
}

@media (max-width: 992px) {
    .story-visual-block {
        min-height: 450px;
        margin-top: 3rem;
        margin-bottom: 3rem;
    }

    .story-badge-integrated {
        transform: translate(20px, 20px);
        padding: 1.8rem 1.5rem;
        min-width: 150px;
    }

    .story-badge-integrated h2 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .story-visual-block {
        margin-left: 20px;
        margin-right: 20px;
    }
}

/* Cleanup of any legacy or ghost elements */
.about-img-stack,
.about-img-main,
.about-img-sub,
.experience-badge,
.story-visual-wrap,
.story-main-img,
.story-badge {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

@media (max-width: 992px) {
    .premium-story-box {
        min-height: 400px;
        margin-top: 4rem;
        margin-right: 20px;
    }

    .premium-story-badge {
        bottom: -20px;
        right: -20px;
        padding: 1.8rem 1.5rem;
        min-width: 150px;
    }

    .premium-story-badge h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .premium-story-box {
        margin-right: 0;
        margin-bottom: 40px;
    }

    .premium-story-badge {
        right: 20px;
        bottom: -20px;
    }
}


/* Footer Refinement */
footer {
    padding-top: 100px;
    background: #030a13;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

footer h3,
footer h4 {
    color: #ffffff !important;
}

.footer-logo {
    font-weight: 900;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.footer-link {
    color: #ffffff;
    opacity: 0.9;
    text-decoration: none;
    transition: var(--transition-smooth);
    display: block;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.footer-link:hover {
    color: var(--accent);
    padding-left: 8px;
}

/* Responsive Overrides */
@media (max-width: 992px) {
    .hero-bg-overlay {
        display: none;
    }

    .hero-section {
        background: var(--primary-dark);
        padding: 115px 0 70px;
        text-align: center;
    }

    .hero-bg-mobile {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0.3;
        background-size: cover;
        z-index: 1;
    }

    .section-title {
        font-size: 2.2rem;
    }
}

/* Leadership Cards */
.leader-card {
    transition: var(--transition-smooth);
}

.leader-card .img-wrapper {
    width: 220px;
    height: 220px;
    margin: 0 auto;
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    border: 8px solid var(--bg-light);
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
}

.leader-card:hover .img-wrapper {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
}

.leader-card h4 {
    margin-top: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.leader-card .leader-role {
    color: var(--accent-dark);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    display: block;
    margin-top: 0.25rem;
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* CTA Section - Services/Global */
.services-cta {
    background: linear-gradient(rgba(10, 29, 55, 0.94), rgba(10, 29, 55, 0.94)), url('https://images.unsplash.com/photo-1541888946425-d81bb19480c5?auto=format&fit=crop&q=80&w=1920');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 120px 0;
}

.cta-box {
    background: rgba(255, 255, 255, 0.03);
    padding: 5rem 3rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.cta-box .display-5 {
    font-weight: 900;
    letter-spacing: -0.02em;
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.cta-box p.text-white-75 {
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 500;
}

.btn-xl {
    padding: 1.25rem 3.5rem;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 8px;
}

@media (max-width: 992px) {
    .section-title {
        font-size: 2.5rem;
    }

    section {
        padding: 80px 0;
    }
}

/* Utility Classes - Shadows */
.text-shadow-strong {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 0, 0, 0.3);
    /* Sharper, more elegant */
}

.text-shadow-elegant {
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    /* Much cleaner for light pass */
}

.text-shadow-soft {
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.6);
}

/* Trust Visual Block - Services Page */
.trust-visual-container {
    padding: 20px;
}

.trust-visual-block {
    min-height: 500px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    background-color: var(--primary-dark);
}

.trust-visual-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(10, 29, 55, 0.4), transparent);
}

.trust-experience-tag {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: var(--accent);
    color: var(--primary);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.fw-900 {
    font-weight: 900 !important;
}

@media (max-width: 992px) {
    .trust-visual-block {
        min-height: 400px;
    }
}

/* Trust Section Refinements */
.accordion-button:not(.collapsed) {
    background-color: transparent !important;
    color: var(--primary) !important;
    box-shadow: none !important;
}

.accordion-item {
    background-color: transparent !important;
    border: none !important;
    border-bottom: 1px solid rgba(10, 29, 55, 0.1) !important;
}

.accordion-item:last-child {
    border-bottom: none !important;
}

.accordion-body {
    padding-top: 0.5rem;
    padding-bottom: 1.5rem;
}

/* Projects Page Enhancements */
.filter-pill {
    border-radius: 50px;
    padding: 0.6rem 1.8rem;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    border: 2px solid transparent;
    transition: var(--transition-smooth);
    background: transparent;
    color: var(--primary-dark);
}

.filter-pill.active {
    background: var(--primary-dark);
    color: var(--white);
    border-color: var(--primary-dark);
    box-shadow: 0 4px 15px rgba(10, 29, 55, 0.2);
}

.filter-pill:hover:not(.active) {
    background: rgba(10, 29, 55, 0.05);
    border-color: rgba(10, 29, 55, 0.1);
}

.portfolio-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(10, 29, 55, 0.04);
    border: 1px solid rgba(10, 29, 55, 0.06);
    overflow: hidden;
    height: 100%;
    transition: var(--transition-smooth);
    position: relative;
    display: flex;
    flex-direction: column;
}

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 40px 80px rgba(10, 29, 55, 0.15);
    /* Premium hover lift */
}

.portfolio-img-wrapper {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.portfolio-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.status-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--white);
    color: var(--primary-dark);
    padding: 0.4rem 1rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.portfolio-body {
    padding: 2.5rem 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.portfolio-card .text-primary.fw-bold {
    transition: var(--transition-smooth);
}

.portfolio-card:hover .text-primary.fw-bold {
    color: var(--accent) !important;
}

/* Contact Page Enhancements */
.contact-panel {
    background: var(--primary-dark);
    color: var(--white);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(10, 29, 55, 0.15);
}

.contact-panel .icon-circle {
    background: rgba(255, 255, 255, 0.05) !important;
    color: var(--accent) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
}

.contact-panel .d-flex:hover .icon-circle {
    background: var(--accent) !important;
    color: var(--primary-dark) !important;
}

.form-control-custom {
    background-color: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 0.8rem 1.2rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    color: var(--primary-dark);
}

.form-control-custom:focus {
    background-color: var(--white);
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(249, 211, 66, 0.15);
}

.form-control-custom::placeholder {
    color: #adb5bd;
    font-weight: 400;
}