/* 
   ARMO - Industrial Engineering Showcase
   Design System & Global Styles
*/

:root {
    /* Color Palette */
    --color-primary: #0A192F;
    /* Deep Navy Blue */
    --color-primary-light: #112240;
    --color-secondary: #233554;
    --color-accent: #4c5a8d;
    /* Custom Blue Accent */
    --color-accent-hover: #3b4670;
    --color-text: #8892B0;
    /* Steel Gray text */
    --color-text-light: #CCD6F6;
    /* Lighter reading text */
    --color-white: #FFFFFF;
    --color-bg-light: #F8F9FA;
    --color-bg-dark: #020C1B;
    --color-border: rgba(255, 255, 255, 0.1);

    /* Typography */
    --font-heading: 'Barlow', sans-serif;
    --font-body: 'Public Sans', sans-serif;

    /* Layout */
    --container-width: 1200px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-slow: all 0.5s ease;

    /* Box Shadows */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
    --shadow-lg: 0 20px 40px -15px rgba(2, 12, 27, 0.8);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

main {
    display: block;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-white);
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

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

.section-title {
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    display: none;
}

.text-accent {
    color: var(--color-accent);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 0;
    font-weight: 600;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    white-space: nowrap;
}

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

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(76, 90, 141, 0.3);
    color: var(--color-white);
}

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

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

.btn-large {
    padding: 16px 36px;
    font-size: 1rem;
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 24px 0;
}

.header.scrolled {
    background-color: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: var(--shadow-md);
}

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

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

.logo img {
    height: 40px;
    /* Adjust this height according to the proportions of the actual logo */
    width: auto;
}

.nav-list {
    display: flex;
    gap: 20px;
}

.nav-link {
    color: var(--color-text-light);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 5px 0;
    white-space: nowrap;
}

.nav-link.active,
.nav-link:hover {
    color: var(--color-accent);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--color-accent);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-item.has-dropdown {
    position: relative;
}

.nav-icon {
    font-size: 0.7rem;
    margin-left: 5px;
}

/* Header Actions & Lang Switcher */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-white);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    transition: var(--transition);
    padding: 8px 16px;
    border: none;
    border-radius: 0;
}

.lang-switcher:hover {
    color: var(--color-accent);
    background: rgba(255, 255, 255, 0.05);
}

.lang-switcher i {
    font-size: 1.1rem;
}

/* Dropdown styling */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--color-primary-light);
    min-width: 260px;
    border-top: 3px solid var(--color-accent);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    padding: 10px 0;
    border-radius: 0;
}

.nav-item.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(10px);
}

.dropdown li a {
    display: block;
    padding: 12px 25px;
    color: var(--color-text-light);
    font-size: 0.9rem;
    font-weight: 500;
    border-bottom: 1px solid var(--color-border);
}

.dropdown li:last-child a {
    border-bottom: none;
}

.dropdown li a:hover {
    color: var(--color-white);
    background-color: rgba(255, 255, 255, 0.05);
    padding-left: 30px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--color-white);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    color: var(--color-white);
    overflow: hidden;
}



/* Hero Slider */
.hero-slider-section {
    position: relative;
    min-height: 600px;
    height: 80vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 47, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 80px;
    width: 100%;
}

.hero-content-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    width: 100%;
}

.hero-text-card {
    flex: 1;
    position: relative;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 45px;
    max-width: 650px;
    border-radius: 0;
    /* Square corners for architectural look */
    clip-path: polygon(0 0, calc(100% - 40px) 0, 100% 40px, 100% 100%, 0 100%);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-text-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/her1.webp');
    /* Professional structural background */
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    /* Subtly integrated for 40% perception with base alpha */
    z-index: -1;
}

.hero-text-card .hero-title {
    font-size: 2.5rem;
    color: #111;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-text-card .text-accent {
    color: var(--color-primary);
}

.hero-text-card .hero-desc {
    font-size: 1.05rem;
    color: #444;
    margin-bottom: 25px;
    line-height: 1.6;
}

.hero-image-card {
    flex: 1;
    max-width: 550px;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    border: 4px solid var(--color-white);
    transform: translateY(20px);
}

.hero-floating-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    max-height: 400px;
    display: block;
}

/* Slider Controls */
.slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: var(--color-white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 0;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 3;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-nav-btn:hover {
    background: var(--color-accent);
}

.prev-btn {
    left: 40px;
}

.next-btn {
    right: 40px;
}



/* Featured Project Section */
.featured-project {
    position: relative;
    margin: 120px 0 40px 0;
    padding: 0 20px;
    background: url('https://www.s3dengineering.net/wp-content/uploads/2024/04/Plan-2D.webp') no-repeat right top;
    background-size: 50%;
    opacity: 0.95;
}

.featured-wrapper {
    position: relative;
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 650px;
}

.featured-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 75%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.featured-content-box {
    background-color: var(--color-white);
    padding: 60px 50px;
    max-width: 550px;
    position: relative;
    z-index: 2;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.featured-content-box h2 {
    color: var(--color-primary);
    font-size: 2rem;
    font-family: var(--font-heading);
    margin-bottom: 25px;
    line-height: 1.3;
}

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

.featured-content-box p {
    color: var(--color-text);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Partners Section */
.partners {
    background-color: var(--color-white);
    padding: 20px 0 60px 0;
    border-bottom: 1px solid #E2E8F0;
}

.partners-title {
    text-align: center;
    color: var(--color-text);
    font-weight: 500;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.partners-carousel {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
}

.partners-carousel::before,
.partners-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
}

.partners-carousel::before {
    left: 0;
    background: linear-gradient(to right, white, transparent);
}

.partners-carousel::after {
    right: 0;
    background: linear-gradient(to left, white, transparent);
}

.partners-track {
    display: inline-block;
    animation: marquee 20s linear infinite;
}

.partners-track:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.partner-logo {
    display: inline-block;
    margin: 0 40px;
    vertical-align: middle;
}

.partner-img {
    height: 60px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.6);
    transition: var(--transition);
}

.partner-logo:hover .partner-img {
    filter: grayscale(0%) opacity(1);
}

/* Values Section */
.values-section {
    position: relative;
    padding: 80px 0;
    background-color: var(--color-bg-light);
    overflow: hidden;
}

.values-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(248, 250, 252, 0.8), rgba(248, 250, 252, 0.8)), url('https://leleusas.com/img/cms/plan%203d%20charpente%20me%CC%81tallique.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.3;
    z-index: 0;
}

.values-section .container {
    position: relative;
    z-index: 1;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.value-card {
    position: relative;
    background-color: var(--color-white);
    padding: 40px 30px;
    clip-path: polygon(0 0, calc(100% - 40px) 0, 100% 40px, 100% 100%, 0 100%);
    transition: all 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    cursor: pointer;
    min-height: 280px;
    display: flex;
    flex-direction: column;
}

.value-card:hover,
.value-card.active-card {
    background-color: var(--color-primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.value-number {
    position: absolute;
    bottom: -10px;
    right: -10px;
    font-size: 8rem;
    font-weight: 800;
    line-height: 1;
    color: rgba(0, 0, 0, 0.03);
    z-index: 0;
    transition: all 0.2s ease;
}

.value-card:hover .value-number,
.value-card.active-card .value-number {
    color: rgba(255, 255, 255, 0.05);
}

.value-icon {
    font-size: 2.5rem;
    color: var(--color-accent);
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.value-icon-img {
    height: 45px;
    width: auto;
    object-fit: contain;
    transition: all 0.2s ease;
    /* Filter to achieve #0a192f from black/dark source */
    filter: invert(7%) sepia(35%) saturate(1915%) hue-rotate(183deg) brightness(95%) contrast(102%);
}

.value-card:hover .value-icon-img,
.value-card.active-card .value-icon-img {
    filter: brightness(0) invert(1);
}

.value-title {
    font-size: 1.4rem;
    color: var(--color-primary);
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
    transition: all 0.2s ease;
}

.value-card:hover .value-title,
.value-card.active-card .value-title {
    color: var(--color-white);
}

.value-desc {
    color: var(--color-text);
    font-size: 1rem;
    line-height: 1.6;
    position: relative;
    z-index: 1;
    transition: all 0.2s ease;
}

.value-card:hover .value-desc,
.value-card.active-card .value-desc {
    color: var(--color-text-light);
}

/* Expertises Section */
.expertises {
    position: relative;
    padding: 50px 0;
    background-color: var(--color-bg-light);
    z-index: 1;
}

.expertises .container {
    position: relative;
    z-index: 2;
}

.expertises .section-title {
    color: var(--color-primary);
}

.expertises .section-subtitle {
    position: relative;
    display: inline-block;
    padding-bottom: 5px;
}

.expertises .section-subtitle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background-color: var(--color-accent);
}

.expertises-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

@media (max-width: 991px) {
    .expertises-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .expertises-grid {
        grid-template-columns: 1fr;
    }
}

.expertise-card {
    background-color: var(--color-white);
    border-radius: 0;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-bottom: 3px solid transparent;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.expertise-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-bottom-color: var(--color-accent);
}

.expertise-img-wrapper {
    overflow: hidden;
}

.expertise-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: var(--transition-slow);
}

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

.expertise-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.expertise-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(76, 90, 141, 0.1);
    color: var(--color-accent);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 25px;
    transition: var(--transition);
}

.expertise-card:hover .expertise-icon {
    background-color: var(--color-accent);
    color: var(--color-white);
}

.expertise-title {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--color-primary);
}

.expertise-desc {
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.expertise-link {
    color: var(--color-primary);
    font-weight: 600;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    margin-top: auto;
}

.expertise-link i {
    transition: transform 0.3s ease;
}

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

/* --- Professional Sectors Grid (Background Image Style) --- */
#secteurs {
    padding: 50px 0;
    background-color: var(--color-bg-light);
}

.secteurs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 50px;
}

.secteur-card {
    border-radius: 0;
    height: 220px;
    display: flex;
    align-items: flex-end;
    padding: 20px 25px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    cursor: pointer;
    background-size: cover;
    background-position: center;
}

/* Gradient Overlay */
.secteur-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(2, 12, 27, 0.95) 0%, rgba(2, 12, 27, 0.2) 70%, rgba(2, 12, 27, 0.05) 100%);
    z-index: -1;
    transition: all 0.4s ease;
}

.secteur-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.secteur-card:hover::before {
    background: linear-gradient(to top, rgba(76, 90, 141, 0.95) 0%, rgba(76, 90, 141, 0.4) 100%);
}

/* Content Area */
.secteur-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    z-index: 2;
    transform: translateY(12px);
    transition: all 0.4s ease;
}

.secteur-card:hover .secteur-content {
    transform: translateY(0);
}

.secteur-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-white);
    margin: 0 0 8px 0;
    font-family: var(--font-heading);
}

.secteur-link-text {
    color: var(--color-accent);
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.secteur-card:hover .secteur-link-text {
    color: var(--color-white);
    opacity: 1;
    visibility: visible;
}

.secteur-link-text i {
    transition: transform 0.3s ease;
}

.secteur-card:hover .secteur-link-text i {
    transform: translateX(5px);
}

@media (max-width: 991px) {
    .secteurs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .secteurs-grid {
        grid-template-columns: 1fr;
    }

    .secteur-card {
        height: 200px;
    }
}

.expertise-link:hover i {
    transform: translateX(5px);
}

/* Realisations / Portfolio Section */
.realisations {
    background-color: var(--color-white);
    overflow: hidden;
    padding: 100px 0;
}



.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition-slow);
    clip-path: polygon(0 0, calc(100% - 40px) 0, 100% 40px, 100% 100%, 0 100%);
    height: 350px;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

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

.gallery-item:hover .gallery-img {
    transform: scale(1.08);
    /* Zoom effect on hover */
}

.gallery-overlay {
    display: none;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}

.gallery-overlay h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Removed unique shapes - replaced by standard clip-path */

/* À Propos Section */
.about-section {
    background-color: var(--color-white);
}

.about-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-main h3 {
    color: var(--color-primary);
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-family: var(--font-heading);
}

.about-text-block {
    margin-bottom: 30px;
}

.about-text-block p {
    font-size: 1.05rem;
    line-height: 1.8;
}

.about-sidebar {
    position: sticky;
    top: 120px;
}

.sidebar-box {
    background-color: var(--color-bg-light);
    padding: 40px;
    border-radius: 0;
    box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--color-accent);
}

.sidebar-icon {
    font-size: 2.5rem;
    color: var(--color-accent);
    margin-bottom: 20px;
}

.sidebar-box h3 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-size: 1.5rem;
    margin-bottom: 25px;
}

.sidebar-values {
    list-style: none;
    padding: 0;
}

.sidebar-values li {
    margin-bottom: 20px;
    padding-left: 30px;
    position: relative;
    font-size: 0.95rem;
    line-height: 1.5;
}

.sidebar-values li::before {
    content: '\f058';
    /* FontAwesome check-circle */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--color-accent);
}

.sidebar-values li strong {
    color: var(--color-secondary);
    display: block;
    margin-bottom: 5px;
}

/* CTA Section */
.cta-section {
    background-color: var(--color-primary-light);
    padding: 80px 0;
    border-top: 4px solid var(--color-accent);
}

.cta-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="100" cy="50" r="50" fill="rgba(255,255,255,0.02)"/><circle cx="0" cy="50" r="30" fill="rgba(255,255,255,0.02)"/></svg>') no-repeat center;
    background-size: cover;
}

.cta-content h2 {
    color: var(--color-white);
    font-size: 2.2rem;
    margin-bottom: 10px;
}

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

/* CTA Banner Section (Reduced Size) */
.cta-banner-section {
    position: relative;
    padding: 40px 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--color-primary);
    overflow: hidden;
}

.cta-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 65%;
    height: 100%;
    background: linear-gradient(90deg, rgba(10, 25, 47, 0.95) 0%, rgba(76, 90, 141, 0.85) 75%, transparent 100%);
    z-index: 1;
}

/* Secondary dark overlay for the rest of the image if needed */
.cta-banner-section::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 0;
}

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

.cta-banner-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.cta-banner-content {
    max-width: 600px;
    color: var(--color-white);
    flex: 1;
}

.cta-banner-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.brochure-img {
    max-width: 320px;
    height: auto;
    transition: transform 0.4s ease;
}

.brochure-img:hover {
    transform: translateY(-10px);
}

.cta-banner-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
    color: var(--color-white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cta-banner-desc {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 40px;
    opacity: 0.95;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.cta-banner-action {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
}

.cta-banner-text {
    display: flex;
    flex-direction: column;
}

.cta-hint {
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 500;
}

.cta-phone {
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--color-white);
}

.cta-banner-btn {
    background-color: var(--color-accent);
    color: var(--color-white);
    padding: 15px 40px;
    font-size: 1.1rem;
    margin-top: 10px;
    border: none;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

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



/* New Footer Section */
.footer-section {
    background-color: var(--color-white);
    padding: 60px 0;
    position: relative;
}

.footer-card {
    background-color: var(--color-white);
    border-radius: 0;
    padding: 60px 50px 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.footer-top-row {
    display: grid;
    grid-template-columns: 1.2fr 2fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dark-logo-filter {
    filter: brightness(0);
    /* Make the white logo dark */
    height: 40px;
    width: auto;
}

.footer-desc {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-links-grid {
    display: flex;
    justify-content: center;
    gap: 80px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links a {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--color-accent);
    padding-left: 5px;
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.footer-phone {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
}

.footer-email {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    position: relative;
    padding-bottom: 5px;
    margin-bottom: 20px;
}

.footer-email::after {
    display: none;
}

.footer-social-inline {
    color: #9ca3af;
    font-size: 0.9rem;
    font-weight: 500;
}

.footer-social-inline a {
    color: #9ca3af;
    text-decoration: none;
    padding: 0 8px;
    font-size: 1.5rem;
    transition: var(--transition);
}

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

.footer-divider {
    height: 1px;
    background-color: #e5e7eb;
    margin: 30px 0;
}

.footer-bottom-row {
    text-align: center;
    color: var(--color-primary);
    font-size: 0.95rem;
}

.footer-bottom-row strong {
    color: var(--color-primary);
    font-weight: 600;
}

/* Drawer overlay */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(2, 12, 27, 0.7);
    backdrop-filter: blur(5px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Drawer Elements (Hidden on Desktop) */
.drawer-header,
.drawer-footer {
    display: none;
}

/* Responsiveness */
@media (max-width: 1100px) {
    .header-actions .btn {
        display: none;
        /* Hide primary CTA on very small screens in header */
    }

    .menu-toggle {
        display: block;
        z-index: 1002;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 320px;
        max-width: 85vw;
        height: 100vh;
        background-color: rgba(10, 25, 47, 0.9);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 0;
        transition: right 0.5s cubic-bezier(0.85, 0, 0.15, 1);
        box-shadow: -15px 0 45px rgba(0, 0, 0, 0.4);
        z-index: 1005;
        display: flex;
        flex-direction: column;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav.active {
        right: 0;
    }

    /* Staggered Animation for Items */
    .nav.active .nav-item {
        animation: slideInRight 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
        animation-delay: calc(var(--i) * 0.1s + 0.2s);
        opacity: 0;
    }

    @keyframes slideInRight {
        from {
            opacity: 0;
            transform: translateX(30px);
        }

        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    .drawer-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 40px 30px 30px;
        position: relative;
    }

    .drawer-logo {
        height: 32px;
        filter: brightness(0) invert(1);
    }

    .close-drawer {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: var(--color-white);
        font-size: 1.2rem;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border-radius: 0;
        transition: all 0.3s ease;
    }

    .close-drawer:hover {
        background-color: var(--color-accent);
        transform: rotate(90deg);
        border-color: transparent;
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
        padding: 10px 0;
        overflow-y: auto;
        flex-grow: 1;
        scrollbar-width: none;
    }

    .nav-list::-webkit-scrollbar {
        display: none;
    }

    .nav-item {
        border: none;
        margin: 0;
    }

    .nav-link {
        color: rgba(255, 255, 255, 0.7);
        font-size: 1.05rem;
        padding: 18px 30px;
        display: flex;
        align-items: center;
        gap: 15px;
        font-weight: 500;
        letter-spacing: 0.5px;
        border-left: 3px solid transparent;
        transition: all 0.3s ease;
    }

    /* Add icons via CSS for mobile drawer ONLY */
    .nav-link::before {
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        width: 24px;
        font-size: 1.1rem;
        color: var(--color-accent);
        opacity: 0.8;
        transition: all 0.3s ease;
        display: inline-block;
    }

    .nav-item:nth-child(1) .nav-link::before {
        content: "\f015";
    }

    /* Home */
    .nav-item:nth-child(2) .nav-link::before {
        content: "\f05a";
    }

    /* Info */
    .nav-item:nth-child(3) .nav-link::before {
        content: "\f013";
    }

    /* Cog */
    .nav-item:nth-child(4) .nav-link::before {
        content: "\f275";
    }

    /* Industry */
    .nav-item:nth-child(5) .nav-link::before {
        content: "\f807";
    }

    /* Hard Hat */
    .nav-item:nth-child(6) .nav-link::before {
        content: "\f0e0";
    }

    /* Envelope */

    .nav-link.active,
    .nav-link:hover {
        color: var(--color-white);
        background-color: rgba(255, 255, 255, 0.05);
        border-left-color: var(--color-accent);
    }

    .nav-link:hover::before {
        opacity: 1;
        transform: scale(1.1);
    }

    .nav-link::after {
        display: none;
    }

    .nav-icon {
        margin-left: auto;
        font-size: 0.8rem;
        transition: transform 0.3s ease;
    }

    .nav-item.has-dropdown.active .nav-icon {
        transform: rotate(180deg);
        color: var(--color-accent);
    }

    .dropdown {
        position: static;
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        transform: none;
        box-shadow: none;
        border: none;
        background-color: rgba(0, 0, 0, 0.15);
        margin: 0;
        padding: 0;
        overflow: hidden;
        display: block;
        /* Use block with max-height for transition */
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-item.has-dropdown.active .dropdown {
        opacity: 1;
        visibility: visible;
        max-height: 500px;
        /* Sufficient for sub-menu items */
        padding: 5px 0;
    }

    .dropdown a {
        color: rgba(255, 255, 255, 0.6);
        padding: 14px 30px 14px 69px;
        font-size: 0.9rem;
        border: none;
    }

    .dropdown a:hover {
        color: var(--color-accent);
        background-color: transparent;
    }

    .drawer-footer {
        padding: 30px;
        background-color: rgba(0, 0, 0, 0.2);
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        margin-top: auto;
    }

    .drawer-contact {
        margin-bottom: 25px;
    }

    .drawer-contact a {
        color: rgba(255, 255, 255, 0.6);
        text-decoration: none;
        margin-bottom: 12px;
        font-size: 0.85rem;
        display: flex;
        align-items: center;
        gap: 12px;
        transition: all 0.3s ease;
    }

    .drawer-contact a:hover {
        color: var(--color-white);
    }

    .drawer-contact a i {
        color: var(--color-accent);
        font-size: 1rem;
    }

    .drawer-socials {
        display: flex;
        gap: 12px;
    }

    .drawer-socials a {
        color: var(--color-white);
        width: 38px;
        height: 38px;
        border-radius: 0;
        background-color: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        font-size: 1rem;
    }

    .drawer-socials a:hover {
        background-color: var(--color-accent);
        border-color: transparent;
        transform: translateY(-3px);
    }
}

@media (max-width: 1024px) {
    .hero-content-inner {
        flex-direction: column;
        justify-content: center;
    }

    .hero-image-card {
        display: none;
        /* Hide image card on smaller screens to emphasize text */
    }

    .featured-wrapper {
        min-height: auto;
        flex-direction: column;
        justify-content: center;
        padding: 0;
    }

    .featured-bg {
        width: 100%;
        height: 300px;
        position: relative;
    }

    .featured-content-box {
        max-width: 100%;
        margin: 0;
        padding: 40px 25px;
        box-shadow: none;
    }

    .about-container {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .cta-banner-overlay {
        width: 100%;
        background: rgba(230, 92, 0, 0.9);
    }

    .footer-top-row {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-links-grid {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 40px;
    }

    .footer-card {
        padding: 40px 30px;
    }

    .cta-banner-overlay {
        width: 100%;
        background: linear-gradient(180deg, rgba(10, 25, 47, 0.95) 0%, rgba(76, 90, 141, 0.9) 100%);
    }

    /* Services Tab Section (Tablet) */
    .services-tab-layout {
        flex-direction: column;
    }

    .services-sidebar {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 10px;
        scrollbar-width: none;
        /* Firefox */
    }

    .services-sidebar::-webkit-scrollbar {
        display: none;
        /* Safari and Chrome */
    }

    .svc-tab-btn {
        white-space: nowrap;
        padding: 15px 20px;
        border-left: none;
        border-bottom: 4px solid transparent;
    }

    .svc-tab-btn.active {
        border-color: var(--color-accent);
    }

    .svc-tab-btn:hover:not(.active) {
        transform: translateY(-3px);
    }

    .services-panels {
        width: 100%;
    }

    .cta-banner-section {
        padding: 40px 0;
        text-align: center;
    }

    .cta-banner-inner {
        flex-direction: column;
        gap: 30px;
    }

    .cta-banner-image {
        justify-content: center;
    }

    .brochure-img {
        max-width: 250px;
        transform: none;
    }

    .brochure-img:hover {
        transform: translateY(-5px);
    }

    .cta-banner-content {
        margin: 0 auto;
    }

    .cta-banner-title {
        font-size: 1.8rem;
    }

    .cta-banner-action {
        align-items: center;
    }
}

@media (max-width: 768px) {
    .hero-slider-section {
        min-height: 420px;
        height: 75vh;
        height: 75svh;
        /* Modern mobile height unit */
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-content {
        padding-top: 50px;
        /* Slight offset for header */
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .hero-content-inner {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .hero-text-card {
        padding: 30px 20px;
        width: 95%;
        margin: 0 auto;
        border-radius: 0;
        clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 0 100%);
        text-align: center;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    }

    .hero-text-card .hero-title {
        font-size: 1.7rem;
        margin-bottom: 12px;
        line-height: 1.2;
    }

    .hero-text-card .hero-desc {
        font-size: 0.9rem;
        margin-bottom: 20px;
        line-height: 1.5;
    }

    /* Smaller buttons for mobile UX */
    .btn {
        padding: 10px 20px;
        font-size: 0.75rem;
    }

    .btn-large {
        padding: 12px 28px;
        font-size: 0.9rem;
    }

    .slider-nav-btn {
        display: none !important;
        /* Hide arrows on mobile */
    }

    .prev-btn {
        left: 5px;
    }

    .next-btn {
        right: 5px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }

    /* Values Section Mobile Optimization */
    .values-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .value-card {
        padding: 35px 25px;
        min-height: auto;
    }

    .value-number {
        font-size: 6rem;
        bottom: -5px;
        right: -5px;
    }

    .value-title {
        font-size: 1.25rem;
    }
}

/* Specific adjustment for very small screens (iPhone SE / 5 / 6) */
@media (max-width: 380px) {
    .hero-text-card {
        width: 92%;
        padding: 20px 15px;
    }

    .hero-text-card .hero-title {
        font-size: 1.5rem;
    }

    .hero-text-card .hero-desc {
        font-size: 0.85rem;
    }
}

/* Optimization for modern tall iPhones (XR, 12, 13, 14, 15 Pro) */
@media (min-width: 390px) and (max-height: 950px) and (max-width: 768px) {
    .hero-slider-section {
        height: 70vh;
        height: 70svh;
    }
}

@media (max-width: 576px) {
    .footer-links-grid {
        flex-direction: column;
        gap: 20px;
    }

    .footer-phone {
        font-size: 1.5rem;
    }

    .cta-banner-title {
        font-size: 1.5rem;
    }

    .cta-phone {
        font-size: 1.4rem;
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }

    .brochure-img {
        max-width: 200px;
    }

    /* Force all gallery items to simple cut rectangles on mobile */
    .gallery-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .gallery-item {
        height: 250px;
    }
}

/* -----------------------------------
   SERVICES TABBED LAYOUT SECTION
----------------------------------- */
.services-detail-section {
    background-color: #f7f9fc;
    padding: 100px 0;
}

.services-tab-layout {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

/* Sidebar Navigation */
.services-sidebar {
    width: 25%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex-shrink: 0;
}

.svc-tab-btn {
    background-color: var(--color-white);
    color: var(--color-text);
    border: none;
    padding: 20px 25px;
    text-align: left;
    font-size: 1.05rem;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border-left: 4px solid transparent;
}

.svc-tab-btn.active {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-accent);
}

.svc-tab-btn:hover:not(.active) {
    color: var(--color-primary);
    transform: translateX(5px);
}

/* Panels Area */
.services-panels {
    width: 75%;
    position: relative;
    min-height: 420px;
}

.svc-panel {
    display: none;
    gap: 40px;
    animation: fadeInFadeUp 0.5s ease forwards;
}

.svc-panel.active {
    display: flex;
}

@keyframes fadeInFadeUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Image wrapper with cut corner */
.svc-image-wrapper {
    width: 45%;
    flex-shrink: 0;
    border-radius: 0;
    overflow: hidden;
    clip-path: polygon(0 0, 85% 0, 100% 15%, 100% 100%, 0 100%);
    box-shadow: var(--shadow-md);
}

.svc-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 380px;
}

/* Text Content Area */
.svc-text-content {
    width: 55%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.svc-text-content h2 {
    font-size: 2.2rem;
    color: var(--color-secondary);
    margin-bottom: 20px;
    line-height: 1.2;
}

.svc-text-content p {
    color: var(--color-text);
    margin-bottom: 30px;
    font-size: 1.05rem;
    line-height: 1.6;
}

.svc-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.svc-features li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.svc-features li i {
    color: var(--color-primary);
    font-size: 1.2rem;
    margin-top: 3px;
}

.svc-features li span {
    color: var(--color-text-dark);
    font-size: 1rem;
    line-height: 1.5;
}

.svc-link {
    color: var(--color-text-dark);
    text-decoration: none;
    font-weight: 600;
    font-family: var(--font-heading);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
    align-self: flex-start;
}

.svc-link:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
}

/* Responsive Overrides */
@media (max-width: 991px) {
    .services-tab-layout {
        flex-direction: column;
    }

    .services-sidebar {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 10px;
        scrollbar-width: none;
    }

    .services-sidebar::-webkit-scrollbar {
        display: none;
    }

    .svc-tab-btn {
        white-space: nowrap;
        padding: 15px 20px;
        border-left: none;
        border-bottom: 4px solid transparent;
    }

    .svc-tab-btn.active {
        border-color: var(--color-accent);
    }

    .svc-tab-btn:hover:not(.active) {
        transform: translateY(-3px);
    }

    .services-panels {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .svc-panel {
        flex-direction: column;
        gap: 30px;
    }

    .svc-image-wrapper {
        width: 100%;
        max-height: 300px;
    }

    .svc-text-content {
        width: 100%;
    }

    .svc-text-content h2 {
        font-size: 1.8rem;
    }
}