/* Page-specific rules and final responsive refinements. */

/* Safety policy page */
.policy-meta {
    margin-top: 18px;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(233, 241, 248, 0.55);
}

.safety-goal {
    background: linear-gradient(180deg, rgba(10, 22, 34, 0.92) 0%, rgba(9, 21, 32, 1) 100%);
    color: var(--text-on-navy);
}

.safety-cta-section {
    background: linear-gradient(90deg, rgba(15, 34, 50, 0.92) 0%, rgba(12, 27, 42, 1) 75%);
}

.safety-cta-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.safety-cta-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.safety-back-link {
    color: var(--text-on-navy-2);
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.08em;
}

.btn-ghost {
    background: transparent;
    border: 1px solid rgba(233, 241, 248, 0.35);
    color: var(--text-on-navy);
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.btn-ghost:hover {
    border-color: var(--link-on-navy);
    color: var(--link-on-navy);
}

@media (max-width: 768px) {
    .safety-cta-content {
        flex-direction: column;
        text-align: center;
    }

    .safety-cta-buttons {
        justify-content: center;
    }
}

/* About section */
.about-section {
    position: relative;
    isolation: isolate;
    padding: clamp(48px, 8vw, 96px) 0;
    background: url("/assets/images/clients/lumico_background_wordless.webp") center / cover no-repeat fixed;
    color: var(--text-on-navy);
}

.about-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 16, 26, 0.55) 0%, rgba(5, 16, 26, 0.45) 45%, rgba(5, 16, 26, 0.65) 100%);
    pointer-events: none;
    z-index: 0;
}

.about-container {
    position: relative;
    z-index: 1;
    display: grid;
    gap: clamp(32px, 7vw, 56px);
    justify-items: center;
    text-align: center;
}

.about-heading h2 {
    font-size: clamp(2.5rem, 5vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.about-subtitle {
    margin-top: 12px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.36em;
    color: var(--accent);
    font-weight: 600;
}

.about-description {
    margin-top: 18px;
    color: var(--text-on-navy-2);
    line-height: 1.7;
}

.about-card-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(16px, 4vw, 24px);
}

.about-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: clamp(20px, 4vw, 28px);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 24px 45px rgba(5, 16, 26, 0.35);
    backdrop-filter: blur(14px);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.about-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 32px 60px rgba(5, 16, 26, 0.4);
    border-color: rgba(255, 255, 255, 0.28);
}

.about-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(15, 183, 201, 0.2), rgba(15, 183, 201, 0.45));
    display: grid;
    place-items: center;
    color: var(--accent);
    font-size: 1.6rem;
}

.about-card-text h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 6px;
}

.about-card-text p {
    margin: 0;
    color: rgba(233, 241, 248, 0.82);
}

.about-metrics {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(16px, 4vw, 24px);
}

.metric-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 180px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    padding: clamp(28px, 5vw, 36px) clamp(22px, 5vw, 28px);
    box-shadow: 0 28px 55px rgba(5, 16, 26, 0.32);
    backdrop-filter: blur(12px);
}

.metric {
    display: block;
    font-size: clamp(2.6rem, 6vw, 3.4rem);
    font-weight: 800;
    color: #00e0ff;
    text-align: center;
    margin-bottom: 0.75rem;
}

.metric-label {
    display: block;
    text-align: center;
    font-size: 0.9rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(233, 241, 248, 0.6);
}

@media (max-width: 960px) {
    .about-card-grid,
    .about-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .about-section {
        background-attachment: scroll;
    }

    .about-card-grid,
    .about-metrics {
        grid-template-columns: 1fr;
    }

    .about-card {
        flex-direction: row;
    }
}

/* Section scale refinements */
.clients {
    padding: clamp(40px, 6vw, 64px) 0;
}

.clients-list {
    gap: clamp(18px, 4vw, 28px);
}

.client-sector {
    gap: 0.75rem;
}
.clients-group {
    gap: clamp(0.55rem, 2vw, 0.9rem);
}

.client-item {
    padding: 0.55rem 0.8rem;
    border-radius: 12px;
}

.client-item img {
    width: 26px;
    height: 26px;
}

.client-name {
    font-size: 0.95rem;
}

.footer {
    padding: clamp(48px, 6vw, 72px) 0 clamp(24px, 5vw, 48px);
}

.footer-content {
    gap: clamp(1.4rem, 4vw, 2rem);
}

.footer-logo-image {
    height: 48px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 0.75rem;
}

.footer-section h3 {
    font-size: 1.3rem;
}

.footer-section p,
.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-bottom {
    padding-top: 0.75rem;
    font-size: 0.9rem;
}

/* Our Major Clients section refinements */
#clients {
    position: relative;
    isolation: isolate;
    background:
        linear-gradient(180deg, rgba(6, 18, 30, 0.78) 0%, rgba(6, 18, 30, 0.86) 100%),
        url('/assets/images/clients/clients_on_table.webp') center / cover no-repeat fixed;
    color: #eaf3f8;
}

#clients .section-header h2,
#clients .section-header p {
    color: #eaf3f8;
}

#clients .section-header p {
    opacity: 0.88;
}

#clients .client-sector {
    background: rgba(9, 22, 34, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: clamp(20px, 4vw, 28px);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(8px);
}

#clients .clients-group {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(0.6rem, 2.5vw, 1rem);
    margin-top: clamp(14px, 3vw, 20px);
}

#clients .client-item {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem 0.9rem;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
    color: #0a1a2f;
}

#clients .client-item img {
    max-height: 42px;
    max-width: 72px;
    filter: none;
    opacity: 1;
}

#clients .client-name {
    font-weight: 600;
    color: #0b1b2a;
}

#clients .clients-group + .clients-group {
    margin-top: clamp(10px, 2vw, 14px);
}

@media (max-width: 768px) {
    #clients {
        background-attachment: scroll;
    }

    /* Flatten the structure to show all clients in one grid */
    #clients .clients-list {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    #clients .client-sector,
    #clients .clients-group {
        display: contents;
    }

    #clients .sector-header {
        display: none;
    }

    #clients .client-item {
        padding: 0.4rem 0.2rem;
        flex-direction: column;
        text-align: center;
        justify-content: center;
        font-size: 0.8rem;
        min-height: 60px;
        width: 100%;
    }

    #clients .client-item img {
        max-height: 25px;
        max-width: 100%;
        width: auto;
        margin-bottom: 2px;
    }

    #clients .client-name {
        white-space: normal;
        text-align: center;
        line-height: 1;
        font-size: 0.6rem;
        display: block;
    }
}

/* Major Clients: category title color tweaks */
#clients .section-title,
#clients .section-header,
#clients .section-header h2,
#clients .sector-title,
#clients .client-category-title,
#clients .client-section-title,
#clients h3 {
    color: #fff !important;
}

#clients .title-underline {
    background-color: #fff !important;
}

#clients .client-logo,
#clients .client-badge,
#clients .client-pill {
    filter: none;
    opacity: 1;
}

/* ============================================
   MOBILE VIEW FIXES - ONLY FOR SCREENS ≤ 768px
   ============================================ */
@media (max-width: 768px) {
    /* PART 1: Our Services Section - Mobile - Horizontal Scroll */
    #services .services-cards,
    .services .services-cards,
    .services-cards {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        gap: 1rem !important;
        padding: 0 1rem !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        width: 100% !important;
        align-items: stretch !important;
        grid-template-columns: none !important;
        grid: none !important;
    }
    
    .services-cards::-webkit-scrollbar {
        display: none;
    }

    #services .service-card,
    .services .service-card,
    .service-card {
        min-width: 85vw !important;
        width: 85vw !important;
        max-width: 85vw !important;
        scroll-snap-align: center;
        padding: 2rem 1.5rem !important;
        margin: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        flex-shrink: 0 !important;
        flex-grow: 0 !important;
        float: none !important;
        clear: both !important;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 12px !important;
    }

    .service-card:last-child {
        margin-bottom: 0 !important;
    }

    /* Ensure container doesn't cause horizontal overflow */
    #services .container,
    .services .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    .service-card-content {
        width: 100%;
        box-sizing: border-box;
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .service-card h3 {
        font-size: 1.4rem !important;
        line-height: 1.2;
        margin-bottom: 0.8rem !important;
        word-wrap: break-word;
        text-align: center;
    }

    .service-card p {
        font-size: 1rem !important;
        line-height: 1.4 !important;
        margin-bottom: 1.5rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        text-align: center;
        flex: 1;
    }

    .service-card ul {
        display: block !important; 
        padding-left: 1.2rem !important;
        margin: 0 0 1.5rem 0 !important;
    }
    
    .service-card li {
        font-size: 1rem !important;
        line-height: 1.4 !important;
        margin-bottom: 0.5rem !important;
    }

    .service-icon {
        width: 48px !important;
        height: 48px !important;
        font-size: 1.5rem !important;
        margin-bottom: 0.5rem !important;
    }

    .service-btn {
        width: 100% !important;
        max-width: none !important;
        margin: auto 0 0 0 !important;
        display: block;
        box-sizing: border-box;
        text-align: center;
        padding: 0.75rem !important;
        font-size: 1rem !important;
        font-weight: 600 !important;
    }

    /* Digital Solutions - Mobile - Horizontal Scroll */
    .page-digital .capability-grid {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        gap: 1rem !important;
        padding: 0 1rem !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        width: 100% !important;
        align-items: stretch !important;
        grid-template-columns: none !important;
    }

    .page-digital .capability-grid::-webkit-scrollbar {
        display: none;
    }

    .page-digital .capability-grid .card {
        min-width: 85vw !important;
        width: 85vw !important;
        max-width: 85vw !important;
        scroll-snap-align: center;
        margin: 0 !important;
        flex-shrink: 0 !important;
        flex-grow: 0 !important;
        height: auto !important;
    }

    .section-digital .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    /* PART 2: Our Projects Section - Mobile */
    .projects-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.5rem;
        overflow-x: hidden;
        width: 100%;
    }

    .project-card {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 0 1.5rem 0;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
    }

    .project-card:last-child {
        margin-bottom: 0;
    }

    .project-image {
        width: 100%;
        height: 220px;
        box-sizing: border-box;
        flex-shrink: 0;
    }

    .project-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .project-content {
        padding: 1.5rem;
        box-sizing: border-box;
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .project-content h3 {
        font-size: 1.2rem;
        line-height: 1.4;
        margin-bottom: 0.75rem;
        word-wrap: break-word;
    }

    .project-content p {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 1rem;
        word-wrap: break-word;
    }

    .project-tags {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .tag {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    /* PART 3: Mobile Menu / Navbar Fixes - Keep navbar visible */
    .navbar {
        display: block !important;
        visibility: visible !important;
    }

    .nav-toggle {
        display: flex !important;
    }

    .nav-panel {
        /* Full-screen mobile menu overlay, scrollable if needed */
        position: fixed !important;
        inset: 0 0 0 0 !important;
        width: 100% !important;
        max-width: none !important;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 9999 !important;       /* absolutely on top of everything */
        overflow-y: auto;
    }

    .nav-panel.open,
    body.nav-open .nav-panel {
        transform: translateX(0);
    }

    body.nav-open {
        overflow: hidden !important;
    }

    .nav-list {
        padding: 24px 20px;
    }

    .nav-list a {
        padding: 14px 16px;
        font-size: 1rem;
        display: block;
        border-radius: 8px;
        transition: background-color 0.2s ease;
    }

    .nav-list a:hover,
    .nav-list a:focus {
        background-color: rgba(255, 255, 255, 0.1);
    }

    .sub-list {
        padding-left: 1rem;
        margin-top: 8px;
    }

    .sub-list a {
        padding: 12px 16px;
        font-size: 0.95rem;
    }

    /* PART 4: General Mobile Layout Fixes */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
        box-sizing: border-box;
    }

    /* Prevent horizontal overflow and ensure a continuous dark base background on mobile */
    body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
        background-color: var(--brand-navy);
    }

    html {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }

    /* Ensure main containers don't overflow */
    main,
    .container {
        overflow-x: hidden;
        max-width: 100%;
    }

    /* Ensure sections don't overlap, but avoid extra gaps between backgrounds */
    section {
        margin-bottom: 0;
        overflow-x: hidden;
    }

    /* Allow wide elements to wrap if too wide */
    img,
    video,
    iframe,
    table {
        max-width: 100%;
        height: auto;
    }

    /* Improve text readability on mobile */
    .service-card p,
    .project-content p {
        line-height: 1.7;
    }

    /* Fix any grid layouts that might be cramped */
    .detailed-services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem;
    }

    /* Ensure all cards and containers use border-box */
    .service-card,
    .project-card,
    .service-card-content,
    .project-content,
    .project-image {
        box-sizing: border-box;
    }
}

/* ==========================================================
   Global Navigation Overrides (kept last to ensure priority)
   ========================================================== */
body {
    padding-top: var(--header-h, var(--nav-offset, 80px)) !important;
}

.navbar {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000 !important;
}

.nav-menu {
    display: flex !important;
    align-items: center;
    gap: 1.2rem !important;
}

body.nav-open nav[aria-label="Breadcrumb"],
body.nav-open .policy-breadcrumb {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Ensure breadcrumb is hidden on safety-policy page when mobile menu is open */
@media (max-width: 768px) {
    body.nav-open #safety-policy .policy-breadcrumb,
    body.nav-open #safety-policy .container > nav[aria-label="Breadcrumb"],
    body.nav-open header.page-hero .policy-breadcrumb {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Make navbar non-sticky on mobile - it should scroll away with the page */
    body {
        padding-top: 0 !important;
    }

    .navbar {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
    }
}

@media (min-width: 769px) {
    .nav-toggle {
        display: none !important;
    }

    .nav-menu {
        flex-direction: row !important;
        justify-content: flex-end;
        position: static !important;
        width: auto !important;
        padding: 0 !important;
        transform: none !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        background: transparent !important;
        box-shadow: none !important;
    }
}

@media (max-width: 768px) {
    .nav-container {
        min-height: 72px !important;
        overflow: visible !important;
    }

    .nav-toggle {
        display: inline-flex !important;
        margin-left: auto !important;
        z-index: 1200 !important;
    }

    .nav-toggle span {
        transition: transform 0.25s ease, opacity 0.25s ease;
    }

    body.nav-open .nav-toggle span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    body.nav-open .nav-toggle span:nth-child(2) {
        opacity: 0;
    }

    body.nav-open .nav-toggle span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        height: 100vh !important;
        margin: 0 !important;
        padding: 5rem 1.5rem 2rem !important;
        background: #0d1b2a !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 1.25rem !important;
        z-index: 1100 !important;
        transform: translateY(-100%) !important;
        transition: transform 0.25s ease !important;
        overflow-y: auto !important;
    }

    body.nav-open .nav-menu {
        transform: translateY(0) !important;
    }

    .nav-menu > li {
        width: 100% !important;
        text-align: center;
    }

    .nav-menu > li > a,
    .nav-menu > li > button {
        width: 100%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 1.1rem;
        padding: 0.75rem 0;
    }

    .dropdown {
        width: 100%;
    }

    .dropdown-menu {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        width: 100% !important;
        background: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin-top: 0 !important;
    }

    .dropdown-menu li + li {
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }

    .dropdown-menu a {
        padding: 0.5rem 0;
    }
}

.metric-text-compact {
    font-size: 2rem;      /* smaller than the normal .metric (e.g. 3rem) */
    line-height: 1.2;
    margin-bottom: 0.75rem;
  }

.metric-cidb {
    opacity: 0;
    transform: translateY(10px);
}

.about-metrics.visible .metric-cidb {
    animation: cidbFadeIn 1s ease-out forwards;
    animation-delay: 0.4s; /* slightly after the numeric counters */
}

@keyframes cidbFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Service Card Image Size Overrides */
.hero-service-card img,
.service-card-icon img,
.service-card img {
    width: 90px !important;
    height: 90px !important;
    object-fit: cover;
    border-radius: 10px;
}

.hero-service-icon,
.service-card-icon {
    width: 100px !important;
    height: 100px !important;
    display: flex;
    justify-content: center;
    align-items: center;
}
/* =========================================
   Mobile View Updates (Project Grid & Compactness)
   ========================================= */
@media (max-width: 768px) {
    /* Projects Grid: 2 columns on mobile */
    .projects-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }

    /* Adjust Project Card for 2-column layout */
    .project-card {
        border-radius: 8px;
        margin: 0 !important;
    }

    .project-content {
        padding: 0.75rem !important;
    }

    .project-content h3 {
        font-size: 0.95rem !important;
        margin-bottom: 0.4rem !important;
        line-height: 1.2;
    }
    
    .project-content p {
         font-size: 0.75rem !important;
         line-height: 1.3 !important;
         margin-bottom: 0.5rem !important;
         /* limit text to 3 lines to save space */
         display: -webkit-box;
         -webkit-line-clamp: 3;
         -webkit-box-orient: vertical;
         overflow: hidden; 
    }

    .project-tags {
        gap: 0.25rem !important;
        flex-wrap: wrap;
        margin-top: auto !important;
    }

    .tag {
        font-size: 0.6rem !important;
        padding: 0.15rem 0.4rem !important;
    }
    
    .project-image {
        height: 110px !important;
    }
    
    /* Ensure other items fit nicely - Compact View */
    .section-header {
        margin-bottom: 1.5rem !important;
    }
    
    .section-header :is(h1, h2) {
        font-size: 1.75rem !important;
    }
    
    .container {
        padding: 0 1rem !important;
    }
    
    /* Compact Services List if needed */
    .detailed-service-card {
        padding: 0.75rem !important;
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 0.6rem !important;
    }
    
    .detailed-service-card h3 {
        font-size: 0.9rem !important;
        margin-bottom: 0.4rem !important;
    }
    
    .detailed-service-card p {
        font-size: 0.7rem !important;
        line-height: 1.3 !important;
    }
    
    /* Compact Hero */
    .hero {
        padding-top: 70px !important;
        padding-bottom: 2rem !important;
    }
}

/* =========================================
   Mobile Card Grid Updates (Corrected as per user request)
   ========================================= */
@media (max-width: 768px) {
    /* --- HERO RIGHT SECTION: Undo 2-col, keep original stack (or whatever it was) --- */
    /* Removing the 2-col grid overrides so it falls back to previous responsive styles */

    /* --- SERVICES SECTION: Hero Title Adjustments --- */
    /* Fix Our Services Title Size & Padding */
    .services-hero :is(h1, h2),
    .services-hero-content :is(h1, h2) {
        font-size: 1.75rem !important; 
        margin-bottom: 0.5rem !important; /* Reverted to small margin */
    }
    
    .services-hero {
        padding-top: 1rem !important;
        padding-bottom: 0.5rem !important;
        margin-bottom: 2rem !important; /* Added external spacing */
    }

    /* Hide +3 more services link */
    .service-more {
        display: none !important;
    }

    /* --- ABOUT SECTION: Single column layout --- */
    .about-card-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 1rem !important; /* Increased gap for better separation */
    }
    
    .about-card {
        display: flex !important;
        flex-direction: row !important; /* Icon left, text right */
        align-items: center !important;
        text-align: left !important;
        padding: 1rem !important;
        gap: 1.25rem !important;
        background: rgba(255, 255, 255, 0.1) !important; /* Glass effect */
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.15);
        color: #e9f1f6 !important;
    }
    
    .about-card-icon {
        font-size: 1.5rem !important;
        margin: 0 !important;
        width: 40px;
        text-align: center;
        flex-shrink: 0;
    }
    
    .about-card-text h3 {
        font-size: 1rem !important;
        margin-bottom: 0.25rem !important;
        color: #e9f1f6 !important;
    }
    
    .about-card-text p {
        font-size: 0.9rem !important;
        margin: 0 !important;
        color: rgba(233, 241, 248, 0.8) !important;
    }
    
    /* Metrics: Single column, but safe layout */
    .about-metrics {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        margin-top: 1.5rem !important;
    }
    
    .metric-item {
        width: 100% !important;
        margin: 0 !important;
        padding: 1.25rem !important;
        display: flex !important;
        flex-direction: column !important; /* Stack vertically for safety */
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        background: rgba(255, 255, 255, 0.1) !important; /* Glass effect */
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 8px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }
    
    .metric {
        font-size: 2rem !important;
        order: 0 !important; /* Reset order */
        margin-bottom: 0.5rem !important;
        color: #00bcd4 !important;
    }
    
    .metric-label {
        font-size: 0.9rem !important;
        order: 0 !important; /* Reset order */
        text-align: center !important;
        color: rgba(233, 241, 248, 0.7) !important;
    }

    /* --- PROJECTS: Keep 2-column grid (ensuring from previous block) --- */
    /* (This was handled in the block before the last one, so no new code needed here unless overriding) */
    
    /* --- CLIENTS: Undo changes --- */
    /* Removing client overrides */

    /* Center hero buttons */
    .hero-actions {
        justify-content: center !important;
    }
}

/* ============================================
   NEW ABOUT SECTION MOBILE LAYOUT (Glassmorphism)
   ============================================ */
.about-mobile-layout {
    display: none;
    width: 100%;
}

.mobile-glass-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 18px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    margin-bottom: 12px;
}

.mobile-icon-box {
    width: 48px;
    height: 48px;
    background: #4abcc1;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(74, 188, 193, 0.3);
}

.mobile-glass-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-glass-label {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.02em;
}

.mobile-glass-value {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.mobile-big-stat {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    margin-top: 24px;
    background: rgba(255, 255, 255, 0.08);
}

.mobile-stat-big-value {
    font-size: 3.5rem;
    font-weight: 800;
    color: #00e0ff;
    line-height: 1;
    margin-bottom: 10px;
    text-shadow: 0 0 25px rgba(0, 224, 255, 0.5);
}

.mobile-stat-big-label {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .about-card-grid,
    .about-metrics {
        display: none !important;
    }

    .about-mobile-layout {
        display: block;
    }
    
    .about-section {
        background-attachment: scroll;
    }
    
    /* Ensure text remains centralized as requested */
    .about-container {
        justify-items: center;
        text-align: center;
    }
    
    .about-heading {
        text-align: center;
    }
}

/* ============================================
   UPDATED MOBILE CARD STYLES (White Cards)
   ============================================ */
.mobile-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    margin-bottom: 16px;
    text-align: left; /* Keep internal card text aligned left naturally */
}

.mobile-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2d3a;
    margin: 0 0 16px 0;
}

.mobile-info-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid #edf2f7;
}

.mobile-info-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.mobile-info-label {
    font-size: 0.95rem;
    color: #64748b;
    font-weight: 500;
}

.mobile-info-value {
    font-size: 0.95rem;
    color: #1e293b;
    font-weight: 700;
}

.mobile-badges {
    margin-top: 16px;
    display: flex;
    gap: 10px;
}

.mobile-badge {
    background: #2dd4bf; /* Teal-ish color */
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 999px;
}

.mobile-badge:last-child {
    background: #22d3ee; /* Cyan-ish color */
}

.mobile-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.mobile-stat {
    background: #ffffff;
    border-radius: 16px; /* Inner cards if needed, but the design shows them as part of the white card usually, or styled within. 
                          The image shows '100+' and '10+' inside white boxes on a larger card background? 
                          Actually the image shows Two White Cards. 'Key Stats' is the header of the second card.
                          Inside Key Stats card, there are two boxes. */
    text-align: center;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border: 1px solid #f1f5f9;
}

.mobile-stat-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: #0ea5e9; /* Light blue */
    margin-bottom: 4px;
}

.mobile-stat-label {
    font-size: 0.8rem;
    color: #475569;
    line-height: 1.3;
}

/* ============================================
   MOBILE GLASS CARD STYLES
   ============================================ */
@media (max-width: 768px) {
    /* Ensure the mobile layout container is visible */
    .about-mobile-layout {
        display: block !important;
        width: 100%;
        margin-top: 24px;
        padding: 0 16px;
    }

    .mobile-card {
        /* Layout properties */
        display: block !important;
        width: 100% !important;
        height: auto !important;
        margin-bottom: 12px !important; /* Reduced margin */
        padding: 16px !important; /* Reduced padding */
        text-align: left !important;
        position: relative !important;
        overflow: hidden !important;
        
        /* Glass Effect */
        background: rgba(255, 255, 255, 0.09) !important;
        backdrop-filter: blur(8px) !important;
        -webkit-backdrop-filter: blur(8px) !important;
        border-radius: 20px !important;
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
        box-shadow: 
            0 8px 32px rgba(0, 0, 0, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.5),
            inset 0 -1px 0 rgba(255, 255, 255, 0.1),
            inset 0 0 6px 3px rgba(255, 255, 255, 0.3) !important;
            
        color: #1f2d3a !important;
    }

    .mobile-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.8),
            transparent
        );
        z-index: 1;
    }

    .mobile-card::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 1px;
        height: 100%;
        background: linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.8),
            transparent,
            rgba(255, 255, 255, 0.3)
        );
        z-index: 1;
    }

    /* Text & Inner Elements Visibility Fixes */
    .mobile-card-title, 
    .mobile-card h3 {
        color: #1f2d3a !important;
        font-size: 1.1rem !important;
        margin-bottom: 12px !important; /* Reduced margin */
        font-weight: 700 !important;
        position: relative;
        z-index: 2;
    }

    .mobile-info-label {
        color: #1f2d3a !important; /* Darker color for better visibility */
        font-weight: 600 !important;
        position: relative;
        z-index: 2;
    }

    .mobile-info-value {
        color: #0f172a !important; /* Darker color for better visibility */
        font-weight: 700 !important;
        position: relative;
        z-index: 2;
    }

    .mobile-info-row {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.3) !important;
        padding-bottom: 8px !important; /* Reduced padding */
        margin-bottom: 8px !important; /* Added margin for spacing control */
        position: relative;
        z-index: 2;
    }
    
    .mobile-info-list {
        display: flex !important;
        flex-direction: column !important;
        gap: 4px !important; /* Reduced gap */
        position: relative;
        z-index: 2;
    }

    .mobile-badges {
        display: flex !important;
        gap: 8px !important;
        flex-wrap: wrap !important;
        position: relative;
        z-index: 2;
        margin-top: 12px !important; /* Ensure spacing from list */
    }

    .mobile-stats-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
        position: relative;
        z-index: 2;
    }
    
    /* Inner Stat Cards - Glass style */
    .mobile-stat {
        background: rgba(255, 255, 255, 0.2) !important;
        border-radius: 16px !important;
        padding: 16px !important;
        text-align: center !important;
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
        backdrop-filter: blur(4px) !important;
        -webkit-backdrop-filter: blur(4px) !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.05) !important;
    }

    .mobile-stat-value {
        color: #0ea5e9 !important;
    }
    
    .mobile-stat-label {
        color: #475569 !important;
    }
}

/* =========================================
   Mobile Hero Card Updates (Smaller Cards)
   ========================================= */
@media (max-width: 768px) {
    .hero-right {
        flex-direction: column !important;
        align-items: center !important;
        gap: 12px !important;
        margin-top: 20px;
    }

    .hero-service-card {
        width: 100% !important;
        max-width: 320px !important;
        padding: 10px !important;
        min-height: auto !important;
        gap: 12px !important;
        border-radius: 12px !important;
    }

    .hero-card-thumb {
        width: 60px !important;
        height: 60px !important;
        min-width: 60px !important;
        border-radius: 8px !important;
    }

    .hero-service-card img,
    .hero-card-thumb img {
         width: 50px !important;
         height: 50px !important;
         border-radius: 6px !important;
    }

    .hero-card-title {
        font-size: 15px !important;
        line-height: 1.2 !important;
        margin-bottom: 2px !important;
    }

    .hero-card-link {
        font-size: 12px !important;
        line-height: 1.3 !important;
        display: block !important;
    }
}

/* =========================================
   Mobile Header for Hero Services
   ========================================= */
.hero-mobile-header {
    display: none;
}

@media (max-width: 768px) {
    .hero-mobile-header {
        display: block;
        font-family: 'Inter', sans-serif;
        font-size: 13px;
        font-weight: 600;
        letter-spacing: 1.5px;
        color: rgba(255, 255, 255, 0.85);
        margin-bottom: 8px;
        text-transform: uppercase;
        text-align: center;
        width: 100%;
    }
}

/* =========================================
   Mobile "One Glance" Optimization
   ========================================= */
@media (max-width: 768px) {
    /* Compress Hero Section Vertical Spacing */
    .hero {
        padding-top: 50px !important; /* Reduced further to pull content up */
        padding-bottom: 20px !important;
        min-height: auto !important;
        height: auto !important;
    }

    .hero-inner {
        padding-top: 5px !important;
        padding-bottom: 10px !important;
        gap: 10px !important; /* Reduced gap */
    }

    /* Compress Text */
    .hero-left {
        text-align: center !important;
        margin-bottom: 5px !important;
    }

    .hero-kicker {
        font-size: 0.75rem !important;
        margin-bottom: 2px !important;
        letter-spacing: 1px !important;
    }

    .hero-left h1 {
        font-size: 1.8rem !important;
        line-height: 1.1 !important;
        margin-bottom: 6px !important;
    }

    .hero-subheading {
        font-size: 0.95rem !important;
        line-height: 1.25 !important;
        margin-bottom: 6px !important;
        padding: 0 10px;
    }

    .hero-description {
        font-size: 0.85rem !important;
        line-height: 1.3 !important;
        margin-bottom: 12px !important;
        padding: 0 10px;
        display: block !important; /* Remove line clamp to show all text */
        -webkit-line-clamp: unset !important;
        -webkit-box-orient: unset !important;
        overflow: visible !important;
    }

    /* Compress Buttons */
    .hero-actions {
        margin-top: 8px !important;
        margin-bottom: 12px !important;
        gap: 10px !important;
        flex-direction: row !important;
        justify-content: center;
    }

    .btn {
        padding: 8px 16px !important;
        font-size: 0.85rem !important;
        height: auto !important;
        min-height: 36px !important;
    }

    /* Make Explore Services button more visible */
    .btn-hero-secondary {
        background: rgba(255, 255, 255, 0.15) !important;
        border: 1px solid rgba(255, 255, 255, 0.8) !important;
        color: #ffffff !important;
        font-weight: 600 !important;
    }

    /* Compress Service Cards Area */
    .hero-right {
        margin-top: 0 !important;
        gap: 8px !important;
        padding: 0 10px;
    }

    /* Hide the redundant "EXPLORE SERVICES" text header */
    .hero-mobile-header {
        display: none !important;
    }

    .hero-service-card {
        padding: 8px 12px !important;
        max-width: 100% !important;
        margin-bottom: 0 !important;
        min-height: auto !important;
        gap: 10px !important;
    }

    .hero-card-thumb {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        border-radius: 6px !important;
    }

    .hero-service-card img, 
    .hero-card-thumb img {
        width: 100% !important;
        height: 100% !important;
    }

    .hero-card-info {
        gap: 2px !important;
    }

    .hero-card-title {
        font-size: 13px !important;
        margin-bottom: 0 !important;
        line-height: 1.2 !important;
    }

    .hero-card-link {
        font-size: 11px !important;
        line-height: 1.2 !important;
        display: block !important;
        opacity: 0.8;
    }
}

/* =========================================
   Service Carousel Indicators
   ========================================= */
.service-indicators {
    display: none;
}

@media (max-width: 768px) {
    .services-carousel-wrapper {
        position: relative;
        width: 100%;
        display: block;
    }

    .service-indicators {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        margin-top: 1.5rem;
        width: 100%;
    }

    .indicator-bar {
        width: 40px;
        height: 4px;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 4px;
        transition: background-color 0.3s ease;
    }

    .indicator-bar.active {
        background-color: #00bcd4; /* Theme Cyan */
        box-shadow: 0 0 8px rgba(0, 188, 212, 0.4);
    }

    .services-cards {
        width: 100%;
        scroll-behavior: smooth;
    }
}

/* Mobile adjustments for Services page headers - Center Icon and Title inline */
@media (max-width: 768px) {
    .service-header-row {
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 16px;
        text-align: center;
        margin-bottom: 2rem;
    }

    /* Flatten the text container to allow H2 to sit next to Icon */
    .service-header-text {
        display: contents;
    }

    .service-detail-icon {
        margin: 0;
        flex-shrink: 0;
        width: 64px;
        height: 64px;
    }
    
    .service-detail-icon i {
        font-size: 2rem;
    }

    .service-header-text h2 {
        margin-bottom: 0;
        width: auto;
        flex: initial;
        text-align: left;
        font-size: 1.6rem;
        line-height: 1.2;
    }

    .service-intro {
        width: 100%;
        margin-top: 1.5rem;
        text-align: center;
        padding-bottom: 1.5rem;
        font-size: 1rem;
    }
}

/* =========================================
   Desktop Internal Page Compact Styles
   ========================================= */
@media (min-width: 1024px) {
    /* Align container with nav-container */
    .container {
        width: 90%;
        max-width: 1400px;
        padding-inline: 24px !important;
    }

    /* Unified Compact Header Height for Internal Pages */
    .services-hero-section {
        min-height: 380px !important; /* Compact height */
        height: auto !important;
        padding-top: 100px !important;
        padding-bottom: 40px !important;
        align-items: center !important; /* Vertical center */
        display: flex !important;
    }

    /* Optimized Services Hero for "Glanceability" */
    .hero.hero-services,
    .hero.hero-capability,
    .hero.hero-digital,
    .hero.hero-safety {
        min-height: auto !important;
        height: auto !important;
        padding-top: 20px !important; /* Very near top nav */
        padding-bottom: 0px !important; /* Minimal bottom spacing */
        align-items: flex-start !important;
        display: flex !important;
    }

    /* Ensure Home Hero stays tall */
    .hero.home-hero:not(.hero-capability):not(.hero-digital):not(.hero-safety):not(.hero-services) {
        min-height: 85vh !important;
    }

    /* Left alignment for internal hero content */
    .hero-capability .hero-inner,
    .hero-digital .hero-inner,
    .hero-safety .hero-inner,
    .hero-services .hero-inner {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start !important; /* Left Align */
        text-align: left !important;        /* Left Align */
        max-width: 1000px;
        margin: 0 auto;
        width: 100%;
        padding-left: 0 !important; /* Remove extra padding if any, relying on container padding */
    }

    .hero-left-capability,
    .hero-left-digital,
    .hero-left-safety,
    .hero-left-services {
        align-items: flex-start !important;
        text-align: left !important;
        max-width: 100%;
    }

    /* Typography Adjustments */
    .hero-title-capability,
    .hero-title-digital,
    .hero-title-safety,
    .hero-title-services,
    .services-hero-content h1,
    .services-detail-header h1 {
        font-size: 2.5rem !important;
        line-height: 1.2;
        margin-bottom: 0.75rem !important;
    }

    .hero-subheading-capability,
    .hero-subheading-digital,
    .hero-subheading-safety,
    .hero-subheading-services,
    .services-hero-subtitle {
        font-size: 1.15rem !important;
        margin-top: 0.25rem !important;
        opacity: 0.9;
    }

    /* Compact Sections */
    .section-capability,
    .section-digital,
    .main-services .section,
    .main-safety .section {
        padding-top: 2rem !important;
        padding-bottom: 3rem !important;
    }

    .services-detail {
        padding-top: 0.5rem !important; /* Reduced from 2rem */
        padding-bottom: 3rem !important;
    }

    /* Grid & Card Compactness */
    .capability-grid,
    .policy-diagram-grid {
        gap: 1.25rem !important;
    }

    .card-body,
    .service-detail-card,
    .policy-card-body {
        padding: 1.5rem !important;
    }

    /* Services Detail Specifics */
    .services-detail-header {
        margin-bottom: 2rem !important;
        padding: 1rem 0 !important;
    }

    /* Breadcrumbs */
    .policy-breadcrumb {
        justify-content: flex-start !important; /* Left align */
        margin-bottom: 1rem;
    }
    
    /* Services Hero Inner Override */
    .hero-services .hero-inner,
    .hero-capability .hero-inner,
    .hero-digital .hero-inner,
    .hero-safety .hero-inner {
        padding-bottom: 10px !important;
    }
}

/* =========================================
   Custom Desktop Hide for Safety Policy Items
   ========================================= */
@media (min-width: 769px) {
    .desktop-only-hide {
        display: none !important;
    }
}

/* Hide specific sections on mobile as requested */
@media (max-width: 768px) {
    .mobile-hide-policy {
        display: none !important;
    }
}

/* Remove border and reduce spacing under service intro on desktop only */
@media (min-width: 769px) {
    .service-intro {
        border-bottom: none !important;
        margin-bottom: 0.5rem !important;
        padding-bottom: 0 !important;
    }
}

/* Ensure footer contact info is on the same row as company on desktop */
@media (min-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 1.5rem;
    }
}

/* Final navbar color override */
.navbar,
.navbar.is-solid,
.navbar.is-stuck {
    background: #ffffff !important;
    background-image: none !important;
    color: #000000 !important;
}

.navbar .company-name,
.navbar .logo-fallback,
.navbar .nav-logo h2,
.navbar .nav-menu > li > a:not(.contact-nav-btn),
.navbar .nav-menu > li > button,
.navbar .nav-toggle {
    color: #000000 !important;
}

.navbar .nav-toggle span {
    background: currentColor !important;
}

.navbar .nav-toggle:hover {
    background: rgba(0, 0, 0, 0.08) !important;
}

@media (max-width: 768px) {
    .navbar .nav-menu,
    .navbar .dropdown-menu {
        background: #ffffff !important;
    }

    .navbar .dropdown-menu a {
        color: #000000 !important;
    }
}

/* Home hero responsive stabilization */
.home-hero {
    min-height: clamp(640px, calc(100vh - var(--header-h, 80px)), 860px);
    padding: clamp(96px, 10vw, 132px) 0 clamp(64px, 8vw, 96px) !important;
    align-items: center;
    background-position: center center;
    background-attachment: scroll;
}

.home-hero .hero-inner {
    width: min(1120px, 100%);
    max-width: 1120px;
    margin-inline: auto;
    padding-inline: clamp(16px, 3vw, 32px) !important;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 440px);
    gap: clamp(28px, 4vw, 64px) !important;
    align-items: center;
}

.home-hero .hero-left {
    max-width: 560px;
    gap: clamp(16px, 2vw, 24px);
}

.home-hero .hero-left h1 {
    font-size: clamp(3rem, 5.4vw, 5.25rem);
}

.home-hero .hero-subheading,
.home-hero .hero-description {
    max-width: 34rem;
}

.home-hero .hero-actions {
    align-items: center;
}

.home-hero .hero-right {
    width: 100%;
    max-width: 440px;
    justify-self: end;
    align-self: center;
    gap: clamp(14px, 1.8vw, 20px) !important;
}

.home-hero .hero-service-card {
    position: relative;
    width: 100%;
    max-width: none !important;
    min-height: 0;
    padding: clamp(14px, 1.8vw, 18px) !important;
    gap: clamp(12px, 1.6vw, 18px) !important;
    margin: 0;
}

.home-hero .hero-card-thumb {
    width: clamp(72px, 7vw, 92px) !important;
    height: clamp(72px, 7vw, 92px) !important;
    min-width: clamp(72px, 7vw, 92px) !important;
}

.home-hero .hero-card-thumb img {
    width: 100% !important;
    height: 100% !important;
}

.home-hero .hero-card-info {
    min-width: 0;
}

.home-hero .hero-card-title {
    font-size: clamp(1rem, 1.3vw, 1.25rem);
    line-height: 1.2;
}

.home-hero .hero-card-link {
    font-size: clamp(0.84rem, 0.95vw, 0.95rem);
    line-height: 1.4;
}

@media (max-width: 1180px) {
    .home-hero {
        min-height: auto;
    }

    .home-hero .hero-inner {
        max-width: 1040px;
        grid-template-columns: minmax(0, 1fr) minmax(300px, 400px);
        gap: 32px !important;
    }
}

@media (max-width: 1024px) {
    .home-hero {
        min-height: auto !important;
        padding: 96px 0 56px !important;
    }

    .home-hero .hero-inner {
        max-width: 920px;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 28px !important;
    }

    .home-hero .hero-left {
        max-width: 100%;
        text-align: center !important;
        align-items: center !important;
    }

    .home-hero .hero-subheading,
    .home-hero .hero-description {
        max-width: 44rem;
    }

    .home-hero .hero-actions {
        justify-content: center;
    }

    .home-hero .hero-right {
        max-width: 760px;
        justify-self: center;
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px !important;
        align-items: stretch;
    }

    .home-hero .hero-service-card:last-child {
        grid-column: 1 / -1;
        max-width: min(360px, 100%) !important;
        justify-self: center;
    }
}

@media (max-width: 640px) {
    .home-hero {
        padding: 88px 0 40px !important;
    }

    .home-hero .hero-inner {
        gap: 20px !important;
        padding-inline: 16px !important;
    }

    .home-hero .hero-left h1 {
        font-size: clamp(2.4rem, 9vw, 3.4rem) !important;
    }

    .home-hero .hero-kicker {
        font-size: 0.82rem !important;
        letter-spacing: 0.18em !important;
    }

    .home-hero .hero-subheading {
        font-size: 1rem !important;
        padding: 0 !important;
    }

    .home-hero .hero-description {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
        padding: 0 !important;
    }

    .home-hero .hero-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 10px !important;
    }

    .home-hero .hero-actions .btn-hero-primary,
    .home-hero .hero-actions .btn-hero-secondary {
        width: 100%;
        justify-content: center;
    }

    .home-hero .hero-right {
        max-width: 100%;
        grid-template-columns: 1fr !important;
        padding: 0 !important;
        gap: 12px !important;
    }

    .home-hero .hero-service-card,
    .home-hero .hero-service-card:last-child {
        max-width: 100% !important;
    }

    .home-hero .hero-card-thumb {
        width: 56px !important;
        height: 56px !important;
        min-width: 56px !important;
        border-radius: 8px !important;
    }

    .home-hero .hero-card-title {
        font-size: 0.98rem !important;
    }

    .home-hero .hero-card-link {
        font-size: 0.83rem !important;
    }
}

/* Services page: shared service block layout */
.service-block {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr);
    gap: 16px;
    align-items: center;
    margin-bottom: 24px;
}

.service-block__media img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-card-strong);
}

.service-block__content h3 {
    margin-top: 0;
}

@media (max-width: 900px) {
    .service-block {
        grid-template-columns: 1fr;
    }

    .service-block__content {
        display: contents;
    }

    .service-block__content h3 {
        order: 1;
    }

    .service-block__media {
        order: 2;
    }

    .service-block__content > *:not(h3) {
        order: 3;
    }
}

@media (hover: none), (pointer: coarse) {
    .project-card:hover {
        transform: none;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    }

    .project-image:hover img,
    .project-card:hover .project-image img {
        transform: none;
    }

    .project-card:hover .image-overlay {
        opacity: 0;
    }

    .project-card:hover .project-image::before {
        opacity: 0;
    }
}
