/* Shared layout: containers, footer, responsive structural layouts. */

/* Detailed Services */
.detailed-services {
    padding: 6rem 0;
    background: white;
    display: none; /* Hidden by default */
}
section,
.section {
    padding-block: var(--section-pad-y);
}

/* Normalize section headers */
.section-header,
.section-title,
.section > header {
    margin-block: 0 clamp(16px, 2.5vw, 28px);
}

/* ---------- Container alignment ---------- */
.container,
.content-container,
.wrapper,
.inner {
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-pad-x);
    width: 100%;
    box-sizing: border-box;
}
/* ---------- Major Clients section ---------- */
#clients,
.clients,
.major-clients {
    padding-block: var(--section-pad-y-tight);
}

.clients .grid,
.major-clients .grid,
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: var(--grid-gap);
    align-items: center;
}
.client-card,
.clients .card,
.major-clients .card,
.client-logo {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: clamp(16px, 2vw, 24px);
    display: grid;
    place-items: center;
}

.client-card img,
.client-logo img,
.clients img {
    max-width: 100%;
    max-height: 64px;
    height: auto;
    width: auto;
    object-fit: contain;
    display: block;
    filter: none;
}

/* Tighten headings + text inside clients section */
.major-clients h2,
.clients h2 {
    margin-bottom: clamp(12px, 2vw, 16px);
}

.major-clients p.lead,
.clients p.lead {
    margin-bottom: clamp(20px, 3vw, 28px);
}

/* ---------- Footer ---------- */
footer.footer,
.site-footer,
.footer {
    padding-block: clamp(32px, 4vw, 56px);
}

.footer .container {
    max-width: var(--container-max);
    padding-inline: var(--container-pad-x);
}

.footer .columns,
.footer .grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--grid-gap);
}

.footer .col,
.footer .column {
    grid-column: span 4;
}

@media (max-width: 1024px) {
    .footer .col,
    .footer .column {
        grid-column: span 6;
    }
}

@media (max-width: 640px) {
    .footer .col,
    .footer .column {
        grid-column: span 12;
    }
}

/* Reduce oversize items within footer blocks */
.footer h4,
.footer h5 {
    margin: 0 0 12px;
}

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

.footer li + li {
    margin-top: 8px;
}

/* ---------- Kill stray pushes ---------- */
.section > *:first-child {
    margin-top: 0 !important;
}

.section > *:last-child {
    margin-bottom: 0 !important;
}

.section,
.clients,
.footer {
    transform: none !important;
}

/* ---------- Safety policy page ---------- */
.policy-hero {
    background: linear-gradient(180deg, var(--brand-navy) 0%, var(--brand-navy-700) 100%);
    color: var(--text-on-navy);
    padding-block: clamp(72px, 12vw, 140px);
}

.policy-hero .container {
    display: grid;
    gap: clamp(16px, 3vw, 28px);
}

.policy-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(233, 241, 248, 0.65);
}

.policy-breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.policy-breadcrumb a:hover {
    color: var(--link-on-navy);
}

.policy-hero h1 {
    font-size: clamp(2.8rem, 6vw, 3.75rem);
    font-weight: 800;
    letter-spacing: 0.06em;
}

.policy-kicker {
    font-size: 0.95rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--accent);
}

.policy-hero-intro {
    max-width: 640px;
    color: rgba(233, 241, 248, 0.85);
    line-height: 1.8;
}

.policy-meta {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(233, 241, 248, 0.55);
}

.policy-intro {
    /* background: radial-gradient(circle at top, rgba(15, 34, 50, 0.8) 0%, rgba(10, 27, 42, 1) 65%); */
    background: transparent;
    color: rgba(233, 241, 248, 0.85);
}

.policy-copy {
    display: grid;
    gap: clamp(18px, 3vw, 24px);
    text-align: center;
    line-height: 1.8;
}

.policy-diagram {
    /* background: linear-gradient(180deg, rgba(8, 22, 34, 0.95) 0%, rgba(5, 16, 26, 1) 100%); */
    background: transparent;
    color: rgba(233, 241, 248, 0.9);
}

.policy-diagram h2 {
    text-align: center;
    font-size: clamp(2rem, 4.2vw, 2.6rem);
    margin-bottom: clamp(24px, 4vw, 36px);
}

.policy-diagram-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.85fr 1.25fr;
    grid-template-areas:
        "management center accountability"
        "culture center risk";
    gap: 70px;
    align-items: stretch;
}

.policy-center {
    grid-area: center;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    aspect-ratio: 1;
    min-width: 220px;
    max-width: 320px;
    margin: auto;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
    position: relative;
    padding: clamp(28px, 5vw, 40px);
}

.policy-center::before {
    content: "";
    position: absolute;
    inset: -14px;
    border-radius: 50%;
    border: 2px solid rgba(1, 208, 215, 0.6);
    box-shadow: 0 0 35px rgba(1, 208, 215, 0.45);
    opacity: 0.85;
}

.policy-center span {
    text-align: center;
    font-size: clamp(1.25rem, 2.6vw, 1.6rem);
    font-weight: 700;
    letter-spacing: 0.22em;
    line-height: 1.6;
}

.policy-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 24px 16px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(12px);
}

.policy-card.management { grid-area: management; }
.policy-card.accountability { grid-area: accountability; }
.policy-card.culture { grid-area: culture; }
.policy-card.risk { grid-area: risk; }

.policy-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(1, 208, 215, 0.42), rgba(7, 126, 168, 0.38));
    color: #0feaf5;
    font-size: 1.6rem;
}

.policy-card-body h3 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-on-navy);
}

.policy-card-body p,
.policy-card-body ul {
    margin: 0;
    color: rgba(233, 241, 248, 0.82);
    line-height: 1.4;
}

.policy-card-body ul {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-left: 1.1rem;
    list-style-type: disc;
    margin-top: 0.5rem;
}

.policy-card-sub {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: grid;
    gap: 6px;
}

.policy-card-sub h4 {
    margin: 0;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(233, 241, 248, 0.72);
}

.policy-cta {
    background: linear-gradient(180deg, rgba(5, 16, 26, 1) 0%, rgba(8, 24, 37, 0.92) 100%);
}

.policy-cta-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.policy-cta-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.policy-cta .btn {
    min-width: 200px;
}

@media (max-width: 1024px) {
    .policy-diagram-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas:
            "center center"
            "management accountability"
            "culture risk";
    }

    .policy-center {
        max-width: 260px;
    }
}

@media (max-width: 768px) {
    .policy-hero {
        padding-block: clamp(64px, 18vw, 96px);
        text-align: center;
    }

    .policy-breadcrumb {
        justify-content: center;
    }

    .policy-diagram-grid {
        position: relative;
        display: block;
        min-height: 680px;
        padding: 10px 6px;
        max-width: 100%;
        margin: 0 auto;
    }

    .policy-center {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 10;
        width: 150px;
        height: 150px;
        min-width: 150px;
        max-width: 150px;
        margin: 0;
        padding: 14px;
    }

    .policy-center span {
        font-size: 0.8rem;
        line-height: 1.25;
        letter-spacing: 0.08em;
    }

    .policy-card {
        position: absolute;
        width: calc(50% - 10px);
        max-width: calc(50% - 10px);
        min-width: calc(50% - 10px);
        padding: 12px;
        text-align: left;
        z-index: 5;
        font-size: 0.85rem;
        height: 240px;
        max-height: 240px;
        min-height: 240px;
        overflow: visible;
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
        word-wrap: break-word;
        word-break: break-word;
    }

    /* Two cards at top, two at bottom, circle in middle - with adequate spacing */
    .policy-card.management {
        top: calc(50% - 345px);
        left: 2%;
    }

    .policy-card.culture {
        top: calc(50% - 345px);
        right: 2%;
    }

    .policy-card.accountability {
        top: calc(50% + 95px);
        left: 2%;
    }

    .policy-card.risk {
        top: calc(50% + 95px);
        right: 2%;
    }

    .policy-card-icon {
        width: 32px;
        height: 32px;
        font-size: 1.1rem;
        margin-bottom: 6px;
        flex-shrink: 0;
    }

    .policy-card-body {
        flex: 1;
        display: flex;
        flex-direction: column;
        overflow: visible;
        min-height: 0;
        word-wrap: break-word;
        word-break: break-word;
    }

    .policy-card-body h3 {
        font-size: 0.9rem;
        margin-bottom: 6px;
        line-height: 1.3;
        flex-shrink: 0;
        word-wrap: break-word;
        word-break: break-word;
    }

    .policy-card-body p,
    .policy-card-body ul {
        font-size: 0.75rem;
        line-height: 1.4;
        margin: 0;
        overflow: visible;
        word-wrap: break-word;
        word-break: break-word;
    }

    .policy-card-body p {
        text-align: justify;
    }

    .policy-card-body ul {
        gap: 0;
        padding-left: 0.8rem;
        margin: 0;
    }

    .policy-card-body li {
        font-size: 0.7rem;
        word-wrap: break-word;
        word-break: break-word;
    }

    /* Show more content now that we have more height */
    .policy-card.management .policy-card-body ul li:nth-child(n+3) {
        display: none;
    }

    .policy-card.accountability .policy-card-body ul li:nth-child(n+3) {
        display: none;
    }

    /* Hide the sub-section on mobile for management card */
    .policy-card.management .policy-card-sub {
        display: none;
    }

    .policy-card-sub {
        margin-top: 5px;
        padding-top: 5px;
    }

    .policy-card-sub h4 {
        font-size: 0.7rem;
    }

    .policy-card-sub ul {
        font-size: 0.65rem;
        gap: 2px;
    }
}

@media (max-width: 480px) {
    .policy-diagram-grid {
        min-height: 620px;
        padding: 8px 4px;
    }

    .policy-center {
        width: 130px;
        height: 130px;
        min-width: 130px;
        max-width: 130px;
        padding: 12px;
    }

    .policy-center span {
        font-size: 0.7rem;
        line-height: 1.2;
        letter-spacing: 0.06em;
    }

    .policy-card {
        width: calc(50% - 8px);
        max-width: calc(50% - 8px);
        min-width: calc(50% - 8px);
        padding: 10px;
        height: 220px;
        max-height: 220px;
        min-height: 220px;
        overflow: visible;
        word-wrap: break-word;
        word-break: break-word;
    }

    .policy-card.management {
        top: calc(50% - 315px);
        left: 1.5%;
    }

    .policy-card.culture {
        top: calc(50% - 315px);
        right: 1.5%;
    }

    .policy-card.accountability {
        top: calc(50% + 85px);
        left: 1.5%;
    }

    .policy-card.risk {
        top: calc(50% + 85px);
        right: 1.5%;
    }

    .policy-card-icon {
        width: 28px;
        height: 28px;
        font-size: 1rem;
        margin-bottom: 5px;
    }

    .policy-card-body {
        word-wrap: break-word;
        word-break: break-word;
        overflow: visible;
    }

    .policy-card-body h3 {
        font-size: 0.85rem;
        margin-bottom: 5px;
        line-height: 1.3;
        word-wrap: break-word;
        word-break: break-word;
    }

    .policy-card-body p,
    .policy-card-body ul {
        font-size: 0.7rem;
        line-height: 1.35;
        word-wrap: break-word;
        word-break: break-word;
        overflow: visible;
    }

    .policy-card-body p {
        text-align: justify;
    }

    .policy-card-body ul {
        gap: 0;
        padding-left: 0.7rem;
    }

    .policy-card-body li {
        font-size: 0.65rem;
        word-wrap: break-word;
        word-break: break-word;
    }

    /* Show content that fits within the increased height */
    .policy-card.management .policy-card-body ul li:nth-child(n+3) {
        display: none;
    }

    .policy-card.accountability .policy-card-body ul li:nth-child(n+3) {
        display: none;
    }
}
/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding-top: 1rem;
    }
    
    .hero-logo-image {
        height: 80px;
        max-width: 300px;
    }
    
    .nav-logo .logo-image {
        height: 35px;
        max-width: 120px;
    }
    
    .company-name {
        font-size: 1.1rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }

    .hero { padding-top: 80px; }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .stats {
        grid-template-columns: 1fr;
        gap: 1.2rem !important;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .certificate-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .certificate-item {
        padding: 1.5rem;
        gap: 1.2rem !important;
    }
    
    .certificate-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .detailed-services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .detailed-service-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
        padding: 1rem;
        gap: 0.8rem !important;
    }

    .detailed-service-card h3 {
        font-size: 0.95rem !important;
        margin-bottom: 0.5rem;
    }

    .detailed-service-card p {
        font-size: 0.75rem !important;
        line-height: 1.4;
    }
    
    .detailed-service-card .service-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .client-sector {
        flex-direction: column;
        gap: 1.2rem !important;
        padding: 1rem;
    }
    
    .sector-header {
        min-width: auto;
        width: 100%;
        text-align: center;
    }
    
    .sector-title {
        font-size: 1.1rem;
        text-align: center;
    }
    
    .sector-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .clients-group {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.6rem;
    }
    
    .client-item {
        padding: 0.5rem 0.3rem;
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }
    
    .client-item img {
        width: 25px;
        height: 25px;
    }
    
    .client-name {
        font-size: 0.65rem;
        white-space: normal;
        text-align: center;
        line-height: 1.1;
    }
    
    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    /* Services Mobile Styles */
    .services-hero :is(h1, h2) {
        font-size: 2.5rem;
    }
    
    .services-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 3rem 0;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .service-card h3 {
        font-size: 1.2rem;
        margin-bottom: 1.25rem;
    }
    
    .service-icon {
        margin-bottom: 1.5rem;
    }
    
    .service-card p {
        font-size: 0.9rem;
    }
    
    .service-description {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .service-description li {
        font-size: 0.9rem;
        line-height: 1.7;
        margin-bottom: 0.65rem;
    }
    
    /* Trust Indicators Mobile */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    /* About Mobile Styles */
    .about-hero-content h2 {
        font-size: 2.2rem;
    }
    
    .about-subtitle {
        font-size: 1.1rem;
    }
    
    .about-intro h3 {
        font-size: 1.8rem;
    }
    
    .about-intro p {
        font-size: 1rem;
    }
    
    .about-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 2rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    /* Engineering Showcase Mobile */
    .project-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .project-item img {
        height: 200px;
    }
    
    .engineering-showcase h3 {
        font-size: 1.6rem;
    }
    
    .solution-card {
        padding: 2rem;
    }
    
    .company-details {
        grid-template-columns: 1fr;
    }
}

/* ===== Compact About layout overrides ===== */

/* tighten section headers globally for better vertical rhythm */
.section-header {
  margin-bottom: 2rem; /* was 4rem */
}

.feature-content h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.feature-content p {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.6;
}

/* Hero Section */
.hero {
    position: relative;
    isolation: isolate;
    min-height: clamp(80vh, 100vh, 100vh);
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 56px 24px 64px;
    background: url("/assets/images/clients/lumico_background_wordless.webp") center 35% / cover no-repeat fixed;
    color: #ffffff;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(80% 60% at 65% 50%, rgba(5, 16, 26, 0.35) 0%, rgba(5, 16, 26, 0.85) 55%, rgba(5, 16, 26, 0.95) 100%);
    pointer-events: none;
    z-index: 0;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--overlay) 0%, rgba(0, 0, 0, 0.55) 65%, rgba(0, 0, 0, 0.7) 100%);
    pointer-events: none;
    z-index: 0;
}

.page-hero {
    position: relative;
    isolation: isolate;
    min-height: 52vh;
    padding: 96px 0 48px;
    display: flex;
    align-items: flex-end;
    color: var(--text-on-navy);
    background: url("/assets/images/clients/lumico_background_wordless.webp") center 35% / cover no-repeat fixed;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(3, 18, 30, 0.45) 0%, rgba(3, 18, 30, 0.65) 60%, rgba(3, 18, 30, 0.75) 100%);
    pointer-events: none;
    z-index: 0;
}

.page-hero > .container {
    position: relative;
    z-index: 1;
}

@media (max-width: 820px) {
    .hero {
        background-attachment: scroll;
    }

    .page-hero {
        background-position: center 45%;
        min-height: 44vh;
        padding: 84px 0 36px;
        background-attachment: scroll;
    }
}
.service-card {
    background: rgba(20, 24, 32, 0.75);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    text-align: center;
    color: var(--text-on-navy);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f97316, #fb923c);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
    position: relative;
    transform: rotate(0deg);
}

.service-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-on-navy);
    margin-bottom: 1rem;
}

.service-btn {
    background: var(--accent);
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--brand-navy);
        width: 100%;
        text-align: center;
        align-items: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(21, 37, 64, 0.35);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding-top: 1rem;
    }
    
    .hero-logo-image {
        height: 80px;
        max-width: 300px;
    }
    
    .nav-logo .logo-image {
        height: 35px;
        max-width: 120px;
    }
    
    .company-name {
        font-size: 1.1rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }

    .hero { padding-top: 80px; }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .stats {
        grid-template-columns: 1fr;
        gap: 1.2rem !important;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .certificate-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .certificate-item {
        padding: 1.5rem;
        gap: 1.2rem !important;
    }
    
    .certificate-icon {
    width: 50px;
    height: 50px;
        font-size: 1.2rem;
    }
    
    .detailed-services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .detailed-service-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
        padding: 1rem;
        gap: 0.8rem !important;
    }

    .detailed-service-card h3 {
        font-size: 0.95rem !important;
        margin-bottom: 0.5rem;
    }

    .detailed-service-card p {
        font-size: 0.75rem !important;
        line-height: 1.4;
    }
    
    .detailed-service-card .service-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .client-sector {
        flex-direction: column;
        gap: 1.2rem !important;
        padding: 1rem;
    }
    
    .sector-header {
        min-width: auto;
        width: 100%;
        text-align: center;
    }
    
    .sector-title {
        font-size: 1.1rem;
        text-align: center;
    }
    
    .sector-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .clients-group {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.6rem;
    }
    
    .client-item {
        padding: 0.5rem 0.3rem;
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }
    
    .client-item img {
        width: 25px;
        height: 25px;
    }
    
    .client-name {
        font-size: 0.65rem;
        white-space: normal;
        text-align: center;
        line-height: 1.1;
    }
    
    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    /* Services Mobile Styles */
    .services-hero :is(h1, h2) {
        font-size: 2.5rem;
    }
    
    .services-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 3rem 0;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .service-card h3 {
        font-size: 1.2rem;
        margin-bottom: 1.25rem;
    }
    
    .service-icon {
        margin-bottom: 1.5rem;
    }
    
    .service-card p {
        font-size: 0.9rem;
    }
    
    .service-description {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .service-description li {
        font-size: 0.9rem;
        line-height: 1.7;
        margin-bottom: 0.65rem;
    }
    
    /* Trust Indicators Mobile */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    /* About Mobile Styles */
    .about-hero-content h2 {
        font-size: 2.2rem;
    }
    
    .about-subtitle {
        font-size: 1.1rem;
    }
    
    .about-intro h3 {
        font-size: 1.8rem;
    }
    
    .about-intro p {
        font-size: 1rem;
    }
    
    .about-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 2rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    /* Engineering Showcase Mobile */
    .project-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .project-item img {
        height: 200px;
    }
    
    .engineering-showcase h3 {
        font-size: 1.6rem;
    }
    
    .solution-card {
        padding: 2rem;
    }
    
    .company-details {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-logo-image {
        height: 60px;
        max-width: 250px;
    }
    
    .nav-logo .logo-image {
        height: 30px;
        max-width: 100px;
    }
    
    .company-name {
        font-size: 1rem;
    }
    
    .footer-logo-image {
        height: 45px;
        max-width: 200px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-header :is(h1, h2) {
        font-size: 1.6rem;
    }
    
    .detailed-services .section-header h2 {
        font-size: 1.5rem;
        letter-spacing: 0.5px;
    }
    
    .detailed-services .section-header p {
        font-size: 1rem;
    }
    
    .solutions-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem !important;
    }
    
    .solution-card {
        padding: 1.5rem;
    }
    
    .service-card,
    .contact-form {
        padding: 1.5rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}


.logo-image:not([src]) { 
    background: none !important; 
    min-height: 0 !important; 
    min-width: 0 !important; 
    display: inline-block !important; 
  }
  .logo-image:not([src])::before { content: none !important; }
  
  /* force the nav logo to stay visible */
  .nav-logo .logo-image {
    display: inline-block !important; 
    height: 45px !important;       /* keep your existing sizing */
    max-width: 150px !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  
  /* responsive sizes - ensure aspect ratio is preserved */
  @media (max-width: 768px) {
    .nav-logo .logo-image { 
        height: 40px !important; 
        width: auto !important; 
        max-width: 250px !important; 
        object-fit: contain !important;
    }
  }
  @media (max-width: 480px) {
    .nav-logo .logo-image { 
        height: 35px !important; 
        width: auto !important; 
        max-width: 200px !important;
        object-fit: contain !important;
    }
  }

