/*
 Theme Name:   MetricsWorks Child
 Description:  Hello Elementor Child Theme for MetricsWorks
 Author:       Admin
 Template:     hello-elementor
 Version:      1.0.5
 Text Domain:  metricsworks-child
*/

/* 
=============================================================================
   Elementor Overrides for Custom Widgets
   These rules strip Elementor's default paddings and margins for our custom 
   HTML widgets, ensuring the original source CSS dictates the layout.
============================================================================= 
*/

/* Force sections that contain our custom widgets to act as raw wrappers */
.elementor-widget[class*="elementor-widget-metricsworks_"] {
    margin-bottom: 0 !important;
}

/* Remove default column padding if it holds our custom widget */
.elementor-column:has(.elementor-widget[class*="elementor-widget-metricsworks_"])>.elementor-widget-wrap {
    padding: 0 !important;
}

/* Fix for .parent-section having too much padding on mobile */
@media (max-width: 768px) {
    .parent-section {
        padding-bottom: 40px !important;
        /* Reduced from 80px */
    }
}

/* Ensure absolute backgrounds inside Elementor don't cause overflow */
.elementor-page {
    overflow-x: hidden;
}

/* Prevent Elementor Global Typography from breaking our custom headers */
.elementor-widget[class*="elementor-widget-metricsworks_"] h1,
.elementor-widget[class*="elementor-widget-metricsworks_"] h2,
.elementor-widget[class*="elementor-widget-metricsworks_"] h3,
.elementor-widget[class*="elementor-widget-metricsworks_"] h4,
.elementor-widget[class*="elementor-widget-metricsworks_"] h5,
.elementor-widget[class*="elementor-widget-metricsworks_"] h6 {
    font-family: var(--font-main) !important;
}

.elementor-widget[class*="elementor-widget-metricsworks_"] .hero-subtitle,
.elementor-widget[class*="elementor-widget-metricsworks_"] .section-subtitle,
.elementor-widget[class*="elementor-widget-metricsworks_"] .panel-default .vertical-text,
.elementor-widget[class*="elementor-widget-metricsworks_"] .hero-tags {
    font-family: var(--font-mono) !important;
}

.cap-material-name {
    margin-top: 0px;
}

.fac-network-step-title,
p.fac-advantage-card-footer-desc,
p.fac-network-step-desc,
p.fac-parent-card-subtitle,
p.fac-parent-card-desc,
p.fac-advantage-desc,
p.fac-advantage-stat-val {
    margin-bottom: 0px;
}

p.contact-email-title,
h2.contact-cta-title {
    margin-bottom: 0px;
}

.contact-cta-btn-primary:hover {
    color: var(--primary-color);
}


/* blog detail page design : start */

/* Force a solid dark header on single posts so the navigation remains visible */
body.single-post .site-header {
    background-color: #0a0e14 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.blog-detail-light-theme {
    margin: 0 !important;
    width: 100% !important;
    max-width: none !important;
    padding-top: 156px;
    /* 96px header + 60px spacing */
    padding-bottom: 80px;
    min-height: 100vh;
    background-color: #ffffff;
    color: #212529;
    display: block;
}

.blog-detail-container {
    max-width: 900px;
    margin: 0 auto;
}

.blog-detail-light-theme .breadcrumbs {
    font-family: var(--font-mono);
    font-size: 12px;
    color: #212529;
    margin-bottom: 32px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 16px;
}

.blog-detail-light-theme .breadcrumbs a,
.blog-detail-light-theme .breadcrumbs a:visited {
    color: var(--primary-color, #F15A24);
    text-decoration: none;
    transition: color 0.3s;
}

.blog-detail-light-theme .breadcrumbs a:hover {
    color: var(--primary-color-hover, #D94E1B);
}

.blog-detail-light-theme .breadcrumbs .current {
    font-weight: 700;
}

.blog-detail-light-theme .entry-header {
    margin-bottom: 40px;
}

.blog-detail-light-theme .entry-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 24px 0;
    /* Forced to 0 left margin to align perfectly with breadcrumbs */
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: -0.025em;
}

/* Override .hero-tags for light theme */
.blog-detail-light-theme .hero-tags {
    margin-bottom: 40px;
    border-left: 2px solid var(--primary-color);
    padding-left: 16px;
    align-items: center;
    color: #212529;
}

.blog-detail-light-theme .hero-tags .dot {
    color: rgba(0, 0, 0, 0.4);
}

.blog-detail-light-theme .hero-tags a,
.blog-detail-light-theme .hero-tags .cat-links,
.blog-detail-light-theme .hero-tags .tag-links {
    color: var(--primary-color);
}

.blog-detail-light-theme .post-thumbnail {
    margin-bottom: 48px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.blog-detail-light-theme .post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.blog-detail-light-theme .entry-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #212529;
    font-weight: 400;
}

.blog-detail-light-theme .entry-content h1,
.blog-detail-light-theme .entry-content h2,
.blog-detail-light-theme .entry-content h3,
.blog-detail-light-theme .entry-content h4,
.blog-detail-light-theme .entry-content h5,
.blog-detail-light-theme .entry-content h6 {
    color: #1a1a1a;
    margin-top: 2em;
    margin-bottom: 1em;
    font-weight: 700;
}

.blog-detail-light-theme .entry-content h2 {
    font-size: 2rem;
}

.blog-detail-light-theme .entry-content h3 {
    font-size: 1.5rem;
}

.blog-detail-light-theme .entry-content p {
    margin-bottom: 1.5em;
}

.blog-detail-light-theme .entry-content a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: all 0.3s;
}

.blog-detail-light-theme .entry-content a:hover {
    color: var(--primary-color-hover);
}

.blog-detail-light-theme .entry-content ul,
.blog-detail-light-theme .entry-content ol {
    margin-bottom: 1.5em;
    padding-left: 2em;
}

.blog-detail-light-theme .entry-content li {
    margin-bottom: 0.5em;
}

.blog-detail-light-theme .entry-content img {
    max-width: 100%;
    height: auto;
    border: 1px solid var(--text-gray);
    margin: 1.5em 0;
    border-radius: 4px;
}

.blog-detail-light-theme .entry-content img.header-image,
.blog-detail-light-theme .entry-content .e-image-base,
.blog-detail-light-theme .entry-content .elementor-widget-image img {
    width: 100%;
    height: auto;
    display: block;
    margin-top: 0;
    margin-bottom: 40px;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.blog-detail-light-theme .entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2em 0;
    font-size: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.blog-detail-light-theme .entry-content th {
    background-color: #f8fafc;
    color: #0f172a;
    font-weight: 700;
    text-align: left;
    padding: 14px 18px;
    border-bottom: 2px solid #e2e8f0;
}

.blog-detail-light-theme .entry-content td {
    padding: 12px 18px;
    border-bottom: 1px solid #e5e7eb;
    color: #334155;
    vertical-align: top;
}

.blog-detail-light-theme .entry-content tr:last-child td {
    border-bottom: none;
}

.blog-detail-light-theme .entry-content tr:nth-child(even) {
    background-color: #f8fafc;
}

.blog-detail-light-theme .post-tags {
    margin-top: 64px;
    padding-top: 24px;
    border-top: 1px solid var(--text-gray);
    border-left: none;
    /* Override hero-tags left border for tags at bottom */
    padding-left: 0;
}

.blog-detail-light-theme .post-tags span:first-child {
    margin-right: 12px;
}

/* blog detail page design : end */

/* =======================================================
   Light Theme: Why Us Answer Widget (No !important)
   ======================================================= */

.why-answer-section-light {
    background-color: var(--text-white);
}

.why-answer-section-light .why-answer-pattern-light {
    background-image: none;
}

.why-answer-section-light .why-answer-bg-text-light {
    color: rgba(0, 0, 0, 0.03);
}


.why-answer-section-light .why-answer-title-light,
.why-answer-section-light .why-answer-desc-light,
.why-answer-section-light .why-answer-bold-light {
    color: var(--text-dark);
}

.why-answer-section-light .why-answer-stats-grid-light,
.why-answer-section-light .why-answer-stat-light {
    background-color: #F8F9FA;
    border-color: #E5E5E5;
}

.why-answer-section-light .why-answer-stat-val-light,
.why-answer-section-light .why-answer-stat-title-light {
    color: var(--text-dark);
}

.why-answer-section-light .why-answer-stat-desc-light {
    color: #4b5563;
}

.why-answer-section-light .why-answer-tag-light {
    color: var(--text-dark);
    border-color: var(--text-dark);
}

.why-answer-section-light .why-answer-tag-light.why-answer-tag-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* =======================================================
   Light Theme: Why Us Reasons Widget (No !important)
   ======================================================= */

.why-reasons-section-light {
    background-color: var(--text-white);
}

.why-reasons-section-light .why-reasons-pattern-light {
    background-image: none;
}

/* Headings and Main Text */

.why-reasons-section-light .why-reasons-title,
.why-reasons-section-light .why-reasons-content-kicker,
.why-reasons-section-light .why-reasons-content-title,
.why-reasons-section-light .why-reasons-accordion-num,
.why-reasons-section-light .why-reasons-accordion-title,
.why-reasons-section-light .why-reasons-accordion-stat-val {
    color: var(--text-dark);
}

.why-reasons-section-light .why-reasons-content-subkicker,
.why-reasons-section-light .why-reasons-content-desc,
.why-reasons-section-light .why-reasons-content-label,
.why-reasons-section-light .why-reasons-accordion-desc,
.why-reasons-section-light .why-reasons-accordion-stat-label,
.why-reasons-section-light .why-reasons-tab-title,
.why-reasons-section-light .why-reasons-tab-label {
    color: #4b5563;
    /* Readable dark gray for paragraphs */
}

.why-reasons-section-light .why-reasons-tab.active .why-reasons-tab-title {
    color: var(--text-dark);
}

/* Big Background Number */
.why-reasons-section-light .why-reasons-content-bg-text span {
    color: var(--text-dark);
}

/* Desktop Tabs Area */
.why-reasons-section-light .why-reasons-tabs {
    border-color: #E5E5E5;
}

.why-reasons-section-light .why-reasons-tab {
    background-color: transparent;
    border-color: #E5E5E5;
}

.why-reasons-section-light .why-reasons-tab.active {
    background-color: #F8F9FA;
    border-color: #E5E5E5;
}

.why-reasons-section-light .why-reasons-tab-num,
.why-reasons-section-light .why-reasons-tab-val {
    color: var(--text-dark);
}

.why-reasons-section-light .why-reasons-tab-icon {
    color: var(--text-dark);
}

/* Desktop Content Area */
.why-reasons-section-light .why-reasons-content {
    background-color: #F8F9FA;
    border-color: #E5E5E5;
}

.why-reasons-section-light .why-reasons-content-top-bar {
    background-color: #E5E5E5;
}

.why-reasons-section-light .why-reasons-content-icon-box {
    background-color: var(--text-white);
    border-color: #E5E5E5;
    color: var(--primary-color);
}

/* Mobile Accordion */
.why-reasons-section-light .why-reasons-accordion {
    background-color: var(--text-white);
    border-color: #E5E5E5;
}

.why-reasons-section-light .why-reasons-accordion.active {
    background-color: #F8F9FA;
}

.why-reasons-section-light .why-reasons-accordion.active .why-reasons-accordion-title {
    color: var(--primary-color);
}

.why-reasons-section-light .why-reasons-accordion-icon {
    color: var(--text-dark);
}

.why-reasons-section-light .why-reasons-accordion-icon-box {
    background-color: var(--text-white);
    border-color: #E5E5E5;
    color: var(--primary-color);
}

/* Pagination Dots & Dividers */
.why-reasons-section-light .why-reasons-dot {
    background-color: rgba(0, 0, 0, 0.15);
}

.why-reasons-section-light .why-reasons-dot:hover {
    background-color: rgba(0, 0, 0, 0.3);
}

.why-reasons-section-light .why-reasons-dot.active {
    background-color: var(--primary-color);
}

.why-reasons-section-light .why-reasons-tab-divider {
    background-color: rgba(0, 0, 0, 0.1);
}

/* =======================================================
   Light Theme: Capabilities CNC Widget (No !important)
   ======================================================= */

.cap-cnc-section-light {
    background-color: var(--text-white);
}

/* Header & Lines */
.cap-cnc-section-light .cap-cnc-top-line,
.cap-cnc-section-light .cap-cnc-item-line {
    background-color: #E5E5E5;
}

.cap-cnc-section-light .cap-cnc-details-grid {
    border-top-color: #E5E5E5;
}

.cap-cnc-section-light .cap-cnc-details-col.border-right {
    border-right-color: #E5E5E5;
}

/* Headings and Main Text */

.cap-cnc-section-light .cap-cnc-title,
.cap-cnc-section-light .cap-cnc-item-title,
.cap-cnc-section-light .cap-cnc-qstat-val {
    color: var(--text-dark);
}

.cap-cnc-section-light .cap-cnc-item-num {
    color: var(--primary-color);
}

/* Subtitles and Descriptions */

.cap-cnc-section-light .cap-cnc-desc,
.cap-cnc-section-light .cap-cnc-qstat-label,
.cap-cnc-section-light .cap-cnc-item-desc,
.cap-cnc-section-light .cap-cnc-details-subtitle,
.cap-cnc-section-light .cap-cnc-tol-desc {
    color: #4b5563;
    /* Readable dark gray */
}

/* Quick Stats */
.cap-cnc-section-light .cap-cnc-qstat {
    border-color: #E5E5E5;
}

.cap-cnc-section-light .cap-cnc-right .cap-cnc-item,
.cap-cnc-section-light .cap-cnc-details-grid {
    border-color: #e5e7eb;
}

.cap-cnc-section-light .cap-cnc-quick-stats {
    border-top-color: #e5e7eb;
}

/* Lists */
.cap-cnc-section-light .cap-cnc-list li,
.cap-cnc-section-light .cap-cnc-materials-list li,
.cap-cnc-section-light .cap-mat-num,
.cap-cnc-section-light .cap-mat-sym,
.cap-cnc-section-light .cap-mat-name {
    color: var(--text-dark);
}

/* Icons / Badges */
.cap-cnc-section-light .cap-mat-icon {
    background-color: #F8F9FA;
    border-color: #E5E5E5;
}

p.cap-cnc-qstat-val,
p.cap-cnc-qstat-label,
p.cap-cnc-item-title,
p.cap-cnc-item-desc,
p.cap-cnc-tol-val,
p.cap-cnc-tol-desc {
    margin-bottom: 0px;
}

.cap-cnc-section-light .cap-cnc-tol-val {
    color: var(--text-dark);
}

/* =======================================================
   Light Theme: Industries Nearshore Widget (No !important)
   ======================================================= */

.ind-nearshore-section-light {
    background-color: var(--text-white);
    border-bottom-color: #e5e7eb;
}

/* Borders */
.ind-nearshore-section-light .ind-nearshore-features,
.ind-nearshore-section-light .ind-nearshore-feature {
    border-color: #e5e7eb;
}

/* Headings and Main Text */
.ind-nearshore-section-light .ind-nearshore-title,
.ind-nearshore-section-light .ind-nearshore-feature-title,
.ind-nearshore-section-light .ind-ns-stat-title {
    color: var(--text-dark);
}

/* Subtitles and Descriptions */
.ind-nearshore-section-light .ind-nearshore-desc,
.ind-nearshore-section-light .ind-nearshore-feature-desc,
.ind-nearshore-section-light .ind-ns-stat-desc {
    color: #4b5563;
}

.ind-nearshore-feature-desc,
.ind-ns-stat-desc,
.ind-ns-stat-subtitle {
    margin-bottom: 0px;
}

/* Stats Box: Background & Border Colors (Light Mode) */
.ind-nearshore-section-light .ind-nearshore-stats {
    background-color: #f2efe8;
    border: 1px solid #e7e4dc;
    border-top: 4px solid #cf6734;
    padding: 0px 15px;
}

.ind-nearshore-section-light .ind-ns-stat-header,
.ind-nearshore-section-light .ind-ns-stat {
    border-color: #e4e1d7;
}

/* =============================================================================
   Comprehensive Mobile & Tablet Responsive Design System
   Applies across all pages, components, grids, and mobile navigation
   ============================================================================= */

/* Global Viewport & Overflow Safety */
html,
body {
    max-width: 100% !important;
    overflow-x: hidden !important;
    position: relative;
    -webkit-text-size-adjust: 100%;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

img,
svg,
video,
canvas {
    max-width: 100%;
    height: auto;
}

/* Prevent horizontal scroll from animation triggers on mobile */
@media (max-width: 768px) {

    .sr--left,
    .sr--right {
        transform: translateY(20px) !important;
    }

    .sr--visible {
        transform: none !important;
    }
}

/* Responsive Containers */
.container {
    width: 100% !important;
    max-width: 1480px !important;
    padding-left: clamp(16px, 4vw, 24px) !important;
    padding-right: clamp(16px, 4vw, 24px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* -----------------------------------------------------------------------------
   Header & Mobile Navigation (Restored to match design reference)
   ----------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .site-header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        background-color: #0a0e14 !important;
        padding: 14px 0 !important;
        z-index: 1000 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
        margin: 0 !important;
    }

    .site-header .container {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding-left: clamp(16px, 4vw, 24px) !important;
        padding-right: clamp(16px, 4vw, 24px) !important;
    }

    .site-header .logo-link img {
        height: 38px !important;
        width: auto !important;
    }

    .main-nav,
    .header-quote-btn {
        display: none !important;
    }

    /* Hamburger button on mobile header */
    .mobile-menu-btn {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 5px !important;
        width: 44px !important;
        height: 44px !important;
        background: rgba(255, 255, 255, 0.05) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        border-radius: 4px !important;
        padding: 0 !important;
        margin: 0 !important;
        cursor: pointer !important;
        box-shadow: none !important;
        outline: none !important;
        transition: background-color 0.2s, border-color 0.2s !important;
    }

    .mobile-menu-btn:hover,
    .mobile-menu-btn:focus {
        background-color: rgba(255, 255, 255, 0.1) !important;
        border-color: rgba(255, 255, 255, 0.35) !important;
    }

    .mobile-menu-bar {
        display: block !important;
        width: 22px !important;
        height: 2px !important;
        background-color: #ffffff !important;
    }
}

/* Mobile Menu Panel & Overlay */
.mobile-menu-panel {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: min(340px, 86vw) !important;
    max-width: 86vw !important;
    background-color: #0b0e14 !important;
    border-left: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.7) !important;
    z-index: 999999 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
}

.mobile-menu-overlay {
    z-index: 999998 !important;
    background: rgba(0, 0, 0, 0.7) !important;
}

/* Mobile Menu Header inside Drawer */
.mobile-menu-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 16px 20px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    background-color: transparent !important;
}

.mobile-menu-header .logo-link img {
    height: 38px !important;
    width: auto !important;
    object-fit: contain !important;
}

/* Close Button inside Drawer Header (matching Screenshot 1) */
.mobile-menu-close-btn,
button#mobileMenuCloseBtn.mobile-menu-close-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 4px !important;
    color: #ffffff !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 0 0 auto !important;
    outline: none !important;
    box-shadow: none !important;
    transition: background-color 0.2s, border-color 0.2s !important;
    box-sizing: border-box !important;
}

.mobile-menu-close-btn:hover,
.mobile-menu-close-btn:focus,
button#mobileMenuCloseBtn.mobile-menu-close-btn:hover,
button#mobileMenuCloseBtn.mobile-menu-close-btn:focus {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
    color: #ffffff !important;
}

.mobile-menu-close-btn svg,
button#mobileMenuCloseBtn.mobile-menu-close-btn svg {
    display: block !important;
    width: 22px !important;
    height: 22px !important;
    stroke: #ffffff !important;
    stroke-width: 2.2px !important;
    flex-shrink: 0 !important;
}

/* Mobile Navigation Links */
.mobile-menu-nav {
    display: flex !important;
    flex-direction: column !important;
    padding: 0 !important;
    flex: 1 1 auto !important;
}

.mobile-menu-nav a {
    display: block !important;
    font-size: 1.0625rem !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    padding: 18px 24px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-left: none !important;
    background-color: transparent !important;
    text-decoration: none !important;
    letter-spacing: -0.01em !important;
    transition: background-color 0.2s ease, color 0.2s ease !important;
}

.mobile-menu-nav a:hover,
.mobile-menu-nav a:focus {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.04) !important;
}

/* In Screenshot 1, all nav items are clean white without orange left-border */
.mobile-menu-nav a.active {
    color: #ffffff !important;
    border-left: none !important;
    background-color: transparent !important;
    padding-left: 24px !important;
}

/* Restored Request a Quote footer button on mobile drawer */
.mobile-menu-footer {
    display: block !important;
    padding: 20px 24px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    margin-top: auto !important;
    flex-shrink: 0 !important;
    background-color: #0b0e14 !important;
}

.mobile-menu-quote-btn {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    padding: 13px 20px !important;
    background: transparent !important;
    border: 1px solid var(--primary-color, #f37120) !important;
    color: var(--primary-color, #f37120) !important;
    font-size: 0.8125rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    text-decoration: none !important;
    border-radius: 2px !important;
    box-sizing: border-box !important;
    transition: background-color 0.2s ease, color 0.2s ease !important;
}

.mobile-menu-quote-btn:hover {
    background-color: rgba(243, 113, 33, 0.1) !important;
    color: #ffffff !important;
}

/* WordPress Admin Bar Compatibility on Mobile */
@media screen and (max-width: 782px) {
    body.admin-bar:not(.scrolled) .site-header {
        top: 46px !important;
    }

    body.admin-bar.scrolled .site-header {
        top: 0 !important;
    }

    body.admin-bar .mobile-menu-panel {
        top: 0 !important;
        height: 100vh !important;
    }
}

/* -----------------------------------------------------------------------------
   Fluid Headings & Typography (No clipped or overflowing titles)
   ----------------------------------------------------------------------------- */
@media (max-width: 768px) {

    h1,
    h2,
    h3,
    .hero-title,
    .cap-quality-title,
    .about-hero-title,
    .ind-hero-title,
    .why-hero-title,
    .fac-operate-title,
    .faq-hero-title,
    .section-title,
    .story-title {
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: manual;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem) !important;
        line-height: 1.1 !important;
    }

    .cap-quality-title {
        font-size: clamp(2rem, 8vw, 3.25rem) !important;
        line-height: 1.05 !important;
    }

    .about-hero-title {
        font-size: clamp(2rem, 7.5vw, 3.25rem) !important;
        line-height: 1.1 !important;
    }

    .ind-hero-title {
        font-size: clamp(2rem, 7.5vw, 3.25rem) !important;
        line-height: 1.1 !important;
    }

    .why-hero-title {
        font-size: clamp(2rem, 7.5vw, 3.25rem) !important;
        line-height: 1.1 !important;
    }

    .faq-hero-title {
        font-size: clamp(2rem, 7.5vw, 3.25rem) !important;
        line-height: 1.1 !important;
    }

    .fac-operate-title {
        font-size: clamp(1.85rem, 6.5vw, 2.75rem) !important;
        line-height: 1.15 !important;
    }

    /* Hero Buttons - Stack nicely on mobile */
    .hero-buttons,
    .cap-hero-actions,
    .ind-hero-buttons,
    .insights-hero-actions,
    .why-hero-actions {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 12px !important;
    }

    .hero-buttons .btn,
    .cap-hero-actions .btn,
    .cap-hero-btn-secondary,
    .ind-btn-quote,
    .ind-btn-print,
    .insights-hero-btn-primary,
    .insights-hero-btn-secondary,
    .why-hero-btn-primary,
    .why-hero-btn-secondary {
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
    }
}

/* -----------------------------------------------------------------------------
   Page: Capabilities (/capabilities/)
   ----------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .cap-quality-header {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .cap-quality-stats-box {
        min-width: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .cap-quality-features {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.5rem !important;
    }

    .cap-qfeature {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.75rem !important;
        padding: 1.5rem 0 !important;
    }

    .cap-qfeature-num {
        font-size: 2.25rem !important;
    }

    .cap-qfeature-desc {
        width: 100% !important;
        max-width: 100% !important;
    }

    .cap-why-table-row {
        grid-template-columns: 1fr !important;
    }

    .cap-why-td.span-2 {
        grid-column: auto !important;
    }

    .cap-cnc-details-grid {
        grid-template-columns: 1fr !important;
    }

    .cap-cnc-details-col.border-right {
        border-right: none !important;
        border-bottom: 1px solid #e5e5e5;
    }
}

/* -----------------------------------------------------------------------------
   Page: Home (/) - Interactive Accordion
   ----------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .about-accordion {
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
        overflow: visible !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
    }

    .about-accordion .accordion-panel {
        flex: none !important;
        width: 100% !important;
        min-height: 64px !important;
        border-right: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
        position: relative !important;
        overflow: hidden !important;
        cursor: pointer !important;
        transition: min-height 0.4s ease !important;
    }

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

    .about-accordion .accordion-panel .panel-default {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        padding: 18px 20px !important;
        position: relative !important;
        z-index: 10 !important;
        inset: auto !important;
        opacity: 1 !important;
    }

    .about-accordion .accordion-panel .panel-default .vertical-text {
        writing-mode: horizontal-tb !important;
        transform: none !important;
        font-size: 0.9375rem !important;
        font-weight: 700 !important;
        letter-spacing: 0.05em !important;
        color: #ffffff !important;
    }

    .about-accordion .accordion-panel .panel-expanded-top,
    .about-accordion .accordion-panel .panel-expanded-bottom {
        display: none !important;
        opacity: 0 !important;
    }

    /* Active expanded item on mobile */
    .about-accordion .accordion-panel.is-active {
        min-height: 280px !important;
    }

    .about-accordion .accordion-panel.is-active .panel-default {
        display: none !important;
    }

    .about-accordion .accordion-panel.is-active .panel-expanded-top {
        display: flex !important;
        opacity: 1 !important;
        padding: 16px 20px !important;
        position: relative !important;
        z-index: 10 !important;
        inset: auto !important;
    }

    .about-accordion .accordion-panel.is-active .panel-expanded-bottom {
        display: block !important;
        opacity: 1 !important;
        padding: 16px 20px !important;
        position: relative !important;
        z-index: 10 !important;
        inset: auto !important;
    }
}

/* -----------------------------------------------------------------------------
   Page: Industries (/industries/) - Responsive Vertical Accordion
   ----------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .ind-accordion {
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
        width: 100% !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
    }

    .ind-acc-item {
        flex: none !important;
        width: 100% !important;
        min-height: 68px !important;
        border-right: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
        position: relative !important;
        overflow: hidden !important;
        cursor: pointer !important;
        transition: min-height 0.4s ease !important;
    }

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

    .ind-acc-default {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 14px !important;
        padding: 16px 20px !important;
        position: relative !important;
        z-index: 10 !important;
        inset: auto !important;
        opacity: 1 !important;
    }

    .ind-acc-label {
        writing-mode: horizontal-tb !important;
        transform: none !important;
        font-size: 0.9375rem !important;
        font-weight: 700 !important;
        text-align: left !important;
        white-space: normal !important;
        color: #ffffff !important;
    }

    .ind-acc-content {
        display: none !important;
        opacity: 0 !important;
    }

    /* Active expanded item on mobile */
    .ind-acc-item.is-active {
        min-height: 380px !important;
    }

    .ind-acc-item.is-active .ind-acc-default {
        display: none !important;
    }

    .ind-acc-item.is-active .ind-acc-content {
        display: block !important;
        opacity: 1 !important;
        padding: 20px !important;
        position: relative !important;
        z-index: 10 !important;
        inset: auto !important;
    }
}

/* -----------------------------------------------------------------------------
   Page: Our Facilities (/our-facilities/)
   ----------------------------------------------------------------------------- */
@media (max-width: 768px) {

    .fac-operate-grid,
    .fac-detail-grid,
    .fac-finder-grid,
    .fac-advantage-grid,
    .fac-network-grid {
        grid-template-columns: 1fr !important;
    }

    .fac-operate-hubs-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .fac-detail-stats {
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)) !important;
        width: 100% !important;
    }

    .fac-detail-stat-item {
        min-width: 0 !important;
        padding: 0.5rem 0.75rem !important;
    }

    .fac-detail-feature-list {
        grid-template-columns: 1fr !important;
    }

    .fac-finder-facility-info {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 420px) {
    .fac-operate-hubs-grid {
        grid-template-columns: 1fr !important;
    }
}

/* -----------------------------------------------------------------------------
   Page: Why Us (/why-us/)
   ----------------------------------------------------------------------------- */

/* Redesigned Section: “Every reason we're the right fit.” (6-Card Grid) */
.mw-reasons-grid-section {
    background-color: #ffffff;
    color: var(--text-dark, #0f172a);
    padding: 90px 0 110px;
    width: 100%;
    position: relative;
    box-sizing: border-box;
    font-family: var(--font-main, 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
}

.mw-reasons-grid-container {
    width: 100%;
    /* max-width: 1360px;
    margin: 0 auto;
    padding: 0 32px; */
    box-sizing: border-box;
}

/* Header */
.mw-reasons-grid-header {
    margin-bottom: 50px;
    text-align: left;
}

.mw-reasons-grid-kicker {
    font-family: var(--font-mono, 'Space Mono', 'Consolas', monospace);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--primary-color, #f37120);
    margin: 0 0 14px 0;
    line-height: 1.2;
}

.mw-reasons-grid-title {
    font-family: var(--font-main, 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    /* font-size: clamp(2.2rem, 4vw, 3.5rem); */
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.025em;
    text-transform: uppercase;
    color: var(--text-dark, #0f172a);
    margin: 0;
}

@media (min-width: 768px) {
    .mw-reasons-grid-title {
        font-size: 3rem;
    }
}

.mw-reasons-grid-title-accent {
    color: var(--primary-color, #f37120);
    position: relative;
    display: inline-block;
    border-bottom: 4px solid var(--primary-color, #f37120);
    padding-bottom: 2px;
    line-height: 1.05;
}

/* 6-Card Grid Layout */
.mw-reasons-grid-layout {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 1px solid #e2e8f0;
    background-color: #ffffff;
    box-sizing: border-box;
}

/* Card Styling */
.mw-reasons-grid-card {
    background-color: #ffffff;
    padding: 40px 36px 44px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: background-color 0.25s ease;
}

/* Desktop Grid Dividers */
@media (min-width: 1024px) {
    .mw-reasons-grid-card:not(:nth-child(3n)) {
        border-right: 1px solid #e2e8f0;
    }

    .mw-reasons-grid-card:nth-child(-n+3) {
        border-bottom: 1px solid #e2e8f0;
    }
}

/* Top Meta: Icon + Number */
.mw-reasons-grid-card-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.mw-reasons-grid-card-icon-box {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background-color: rgba(243, 113, 32, 0.08);
    border: 1px solid rgba(243, 113, 32, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color, #f37120);
    flex-shrink: 0;
}

.mw-reasons-grid-card-icon-box svg {
    width: 18px;
    height: 18px;
    stroke: var(--primary-color, #f37120);
}

.mw-reasons-grid-card-num {
    font-family: var(--font-mono, 'Space Mono', 'Consolas', monospace);
    font-size: 0.78125rem;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.15em;
}

/* Card Title */
.mw-reasons-grid-card-title {
    font-family: var(--font-main, 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    font-size: 1.1875rem;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -0.015em;
    text-transform: uppercase;
    color: var(--text-dark, #0f172a);
    margin: 0 0 16px 0;
}

/* Card Stat */
.mw-reasons-grid-card-stat {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.mw-reasons-grid-card-stat-val {
    font-family: var(--font-main, 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    font-size: 2.25rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--primary-color, #f37120);
}

.mw-reasons-grid-card-stat-label {
    font-family: var(--font-mono, 'Space Mono', 'Consolas', monospace);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1.35;
    color: #64748b;
    max-width: 230px;
}

/* Card Description */
.mw-reasons-grid-card-desc {
    font-family: var(--font-main, 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    font-size: 0.9375rem;
    line-height: 1.68;
    color: #475569;
    margin: 0;
    flex-grow: 1;
}

/* Tablet Breakpoint (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .mw-reasons-grid-section {
        padding: 70px 0 90px;
    }

    .mw-reasons-grid-container {
        padding: 0 24px;
    }

    .mw-reasons-grid-layout {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mw-reasons-grid-card {
        padding: 32px 28px 36px;
    }

    .mw-reasons-grid-card:nth-child(odd) {
        border-right: 1px solid #e2e8f0;
    }

    .mw-reasons-grid-card:nth-child(even) {
        border-right: none;
    }

    .mw-reasons-grid-card:nth-child(-n+4) {
        border-bottom: 1px solid #e2e8f0;
    }

    .mw-reasons-grid-card-title {
        min-height: auto;
    }
}

/* Mobile Breakpoint (< 768px) */
@media (max-width: 767px) {
    .mw-reasons-grid-section {
        padding: 50px 0 70px;
    }

    .mw-reasons-grid-container {
        padding: 0 16px;
    }

    .mw-reasons-grid-header {
        margin-bottom: 32px;
    }

    .mw-reasons-grid-kicker {

        margin-bottom: 10px;
    }

    .mw-reasons-grid-title {
        font-size: 1.85rem;
    }

    .mw-reasons-grid-title-accent {
        border-bottom-width: 3px;
    }

    .mw-reasons-grid-layout {
        grid-template-columns: 1fr;
    }

    .mw-reasons-grid-card {
        padding: 28px 20px 32px;
        border-right: none;
    }

    .mw-reasons-grid-card:not(:last-child) {
        border-bottom: 1px solid #e2e8f0;
    }

    .mw-reasons-grid-card-title {
        min-height: auto;
        font-size: 1.0625rem;
        margin-bottom: 14px;
    }

    .mw-reasons-grid-card-stat {
        margin-bottom: 18px;
    }

    .mw-reasons-grid-card-stat-val {
        font-size: 1.875rem;
    }

    .mw-reasons-grid-card-desc {
        font-size: 0.875rem;
        line-height: 1.6;
    }
}

.why-faq {
    overflow-x: hidden;
}

.why-faq-container {
    width: 100%;
    /* max-width: 1400px;
    margin: 0 auto; */
    padding: 4rem 0rem;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .why-faq-container {
        padding: 6rem 2rem;
    }
}

/*
@media (min-width: 768px) {
    .why-faq-container {
        padding: 6rem 1.5rem;
    }
}

@media (min-width: 1024px) {
    .why-faq-container {
        padding: 6rem 2rem;
    }
}
    */

.why-faq-grid {
    display: grid;
    gap: 2.5rem;
}

@media (min-width: 768px) {
    .why-faq-grid {
        gap: 4rem;
    }
}

@media (min-width: 1024px) {
    .why-faq-grid {
        grid-template-columns: 320px 1fr;
    }
}

.why-faq-list {
    padding: 0 1rem;
    border: 1px solid #292d32;
}

@media (min-width: 768px) {
    .why-faq-list {
        padding: 0 1.5rem;
    }
}

.why-faq-item .why-faq-button,
button.why-faq-button {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 0;
    text-align: left;
    background: transparent;
    background-color: transparent;
    border: none;
    box-shadow: none;
    outline: none;
    cursor: pointer;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.45;
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
    box-sizing: border-box;
}

.why-faq-item .why-faq-button:hover,
.why-faq-item .why-faq-button:focus,
.why-faq-item .why-faq-button:active,
button.why-faq-button:hover,
button.why-faq-button:focus,
button.why-faq-button:active {
    background: transparent;
    background-color: transparent;
    border: none;
    box-shadow: none;
    outline: none;
}

.why-faq-button span {
    flex: 1 1 auto;
    min-width: 0;
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
    display: block;
    transition: color 0.3s ease;
}

.why-faq-button:hover span,
.why-faq-button:focus span {
    color: var(--primary-color);
}

.why-faq-button .why-faq-icon,
.why-faq-icon {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.15rem;
    margin-left: 0.75rem;
    color: #6B7280;
    transition: transform 0.3s ease, color 0.3s ease;
}

.why-faq-item.active .why-faq-button .why-faq-icon,
.why-faq-item.active .why-faq-icon {
    transform: rotate(180deg);
    color: var(--primary-color);
}

.why-faq-content {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s ease-out;
}

.why-faq-item.active .why-faq-content {
    max-height: 1000px;
}

.why-faq-content-inner {
    padding-bottom: 1.25rem;
    overflow-wrap: break-word;
    word-break: normal;
}

.why-faq-content-inner p {
    color: #9CA3AF;
    font-size: 0.875rem;
    line-height: 1.625;
    margin: 0;
    overflow-wrap: break-word;
}

/* -----------------------------------------------------------------------------
   Page: About Us (/about-us/) - Sections 1, 2, and 3 Refactored
   ----------------------------------------------------------------------------- */

/* --- SECTION 1: HERO (LIGHT THEME) --- */
.about-hero-section {
    position: relative;
    background-color: #ffffff;
    color: #111827;
    padding-top: 140px;
    padding-bottom: 56px;
    width: 100%;
    overflow: hidden;
}

.about-hero-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

/* Neutralize inherited 12-col grid using scoped specificity */
.about-hero-section .about-hero-container {
    position: relative;
    z-index: 1;
    display: block;
    grid-template-columns: none;
    width: 100%;
    max-width: 1260px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
    box-sizing: border-box;
}

@media (min-width: 1024px) {
    .about-hero-section .about-hero-container {
        display: block;
        grid-template-columns: none;
    }
}

.about-hero-section .about-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.95fr);
    align-items: center;
    gap: 48px 56px;
    width: 100%;
}

.about-hero-section .about-hero-content {
    grid-column: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    width: 100%;
    max-width: 100%;
}

@media (min-width: 1024px) {
    .about-hero-section .about-hero-content {
        grid-column: auto;
    }
}

.about-hero-section .about-hero-subtitle {
    font-family: var(--font-mono, monospace);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #F15A24;
    margin: 0 0 16px 0;
    line-height: 1.3;
}

.about-hero-section .about-hero-title {
    font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
    font-size: clamp(2.5rem, 3.8vw, 3.75rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.035em;
    color: #111827;
    margin: 0 0 24px 0;
    overflow-wrap: break-word;
    word-break: normal;
    max-width: 44rem;
}

.about-hero-section .about-hero-desc {
    font-family: var(--font-sans, sans-serif);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: #4B5563;
    max-width: 38rem;
    margin: 0;
    overflow-wrap: break-word;
}

.about-hero-section .about-hero-image-wrapper {
    grid-column: auto;
    position: relative;
    width: 100%;
    max-width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 16px 36px -6px rgba(0, 0, 0, 0.12), 0 6px 16px -4px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
    background-color: #f9fafb;
}

@media (min-width: 1024px) {
    .about-hero-section .about-hero-image-wrapper {
        grid-column: auto;
    }
}

.about-hero-section .about-hero-image-border {
    display: none;
}

.about-hero-section .about-hero-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10.5;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

/* Bottom Process & CTA Card */
.about-hero-section .about-hero-card {
    grid-column: auto;
    margin-top: 48px;
    background-color: #FFFFFF;
    border: 1px solid #EAEAEA;
    border-radius: 10px;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.03);
    padding: 24px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    width: 100%;
    box-sizing: border-box;
}

.about-hero-section .about-hero-card-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    flex-shrink: 0;
}

.about-hero-section .about-hero-card-label {
    font-family: var(--font-sans, sans-serif);
    font-size: 0.875rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
    margin: 0;
}

.about-hero-section .about-hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #F15A24;
    color: #FFFFFF;
    font-family: var(--font-sans, sans-serif);
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.15s ease;
    cursor: pointer;
    border: none;
    line-height: 1;
}

.about-hero-section .about-hero-btn:hover {
    background-color: #D94E1B;
    color: #FFFFFF;
}

.about-hero-section .about-hero-btn .btn-icon {
    width: 15px;
    height: 15px;
    transition: transform 0.2s ease;
}

.about-hero-section .about-hero-btn:hover .btn-icon {
    transform: translateX(3px);
}

.about-hero-section .about-hero-card-steps {
    display: flex;
    align-items: center;
    flex-grow: 1;
    justify-content: space-between;
    border-left: 1px solid #EAEAEA;
    padding-left: 36px;
    margin: 0;
    list-style: none;
}

.about-hero-section .about-hero-step {
    display: flex;
    flex-direction: column;
    padding: 0 24px;
    border-left: 1px solid #EAEAEA;
    flex: 1;
    text-align: left;
}

.about-hero-section .about-hero-step:first-child {
    border-left: none;
    padding-left: 0;
}

.about-hero-section .about-hero-step:last-child {
    padding-right: 0;
}

.about-hero-section .about-hero-step-num {
    font-family: var(--font-mono, monospace);
    font-size: 0.75rem;
    font-weight: 700;
    color: #F15A24;
    line-height: 1;
    margin-bottom: 6px;
    display: block;
}

.about-hero-section .about-hero-step-title {
    font-family: var(--font-sans, sans-serif);
    font-size: 0.8125rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #111827;
    line-height: 1.2;
    margin: 0;
    display: block;
}

/* 1024px Landscape Tablet / Small Desktop - 2-Column Hero Matching Reference Screenshot 1 */
@media (min-width: 992px) and (max-width: 1100px) {
    .about-hero-section {
        padding-top: 115px;
        padding-bottom: 48px;
    }

    .about-hero-section .about-hero-container {
        max-width: 1024px;
        padding-left: 24px;
        padding-right: 24px;
    }

    .about-hero-section .about-hero-grid {
        display: grid;
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
        align-items: center;
        gap: 36px 44px;
    }

    .about-hero-section .about-hero-title {
        font-size: 2.75rem;
        line-height: 1.08;
        max-width: 330px;
        margin-bottom: 20px;
    }

    .about-hero-section .about-hero-desc {
        font-size: 1rem;
        line-height: 1.6;
        max-width: 460px;
    }

    .about-hero-section .about-hero-image-wrapper {
        width: 100%;
        aspect-ratio: 16 / 10.5;
    }

    .about-hero-section .about-hero-card {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
        padding: 20px 24px;
        margin-top: 40px;
    }

    .about-hero-section .about-hero-card-steps {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        border-left: 1px solid #EAEAEA;
        border-top: none;
        padding-left: 24px;
        padding-top: 0;
        margin: 0;
    }

    .about-hero-section .about-hero-step {
        padding: 0 16px;
        border-left: 1px solid #EAEAEA;
    }
}

/* 768px Tablet - Full-Width Stacked Hero Matching Reference Screenshot 2 */
@media (max-width: 991px) {
    .about-hero-section {
        padding-top: 110px;
        padding-bottom: 40px;
    }

    .about-hero-section .about-hero-container {
        max-width: 100%;
        padding-left: 24px;
        padding-right: 24px;
    }

    .about-hero-section .about-hero-grid {
        display: flex;
        flex-direction: column;
        gap: 28px;
        width: 100%;
    }

    .about-hero-section .about-hero-content {
        width: 100%;
        max-width: 100%;
    }

    .about-hero-section .about-hero-title {
        font-size: 2.75rem;
        line-height: 1.08;
        max-width: 525px;
        margin-bottom: 20px;
    }

    .about-hero-section .about-hero-desc {
        font-size: 1.0625rem;
        line-height: 1.6;
        max-width: 585px;
    }

    .about-hero-section .about-hero-image-wrapper {
        width: 100%;
        max-width: 100%;
        border-radius: 12px;
        aspect-ratio: 16 / 10;
        margin-top: 0;
    }

    .about-hero-section .about-hero-card {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        padding: 20px;
        margin-top: 36px;
    }

    .about-hero-section .about-hero-card-cta {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .about-hero-section .about-hero-card-steps {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        border-left: none;
        border-top: 1px solid #EAEAEA;
        padding-left: 0;
        padding-top: 20px;
        width: 100%;
    }

    .about-hero-section .about-hero-step {
        padding: 0 12px;
        border-left: 1px solid #EAEAEA;
    }

    .about-hero-section .about-hero-step:first-child {
        border-left: none;
        padding-left: 0;
    }
}

@media (max-width: 640px) {
    .about-hero-section {
        padding-top: 100px;
        padding-bottom: 32px;
        width: 100%;
        box-sizing: border-box;
    }

    .about-hero-section .about-hero-container {
        padding-left: 16px;
        padding-right: 16px;
        width: 100%;
        box-sizing: border-box;
    }

    .about-hero-section .about-hero-grid {
        display: flex;
        flex-direction: column;
        gap: 28px;
        width: 100%;
    }

    .about-hero-section .about-hero-title {
        font-size: clamp(1.85rem, 8vw, 2.35rem);
        line-height: 1.15;
    }

    .about-hero-section .about-hero-desc {
        font-size: 0.9375rem;
        line-height: 1.6;
    }

    .about-hero-section .about-hero-card {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 16px;
        margin-top: 28px;
    }

    .about-hero-section .about-hero-card-cta {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        width: 100%;
    }

    .about-hero-section .about-hero-card-steps {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px 14px;
        border-left: none;
        border-top: 1px solid #EAEAEA;
        padding-left: 0;
        padding-top: 16px;
        width: 100%;
    }

    .about-hero-section .about-hero-step {
        border-left: none;
        padding: 0;
        border-bottom: 1px solid #F3F4F6;
        padding-bottom: 6px;
    }
}


/* --- SECTION 2: THE STORY --- */
.story-section {
    background-color: #ffffff;
    color: #0f172a;
    padding-top: 80px;
    padding-bottom: 80px;
    border-top: 1px solid #e5e7eb;
}

@media (min-width: 768px) {
    .story-section {
        padding-top: 96px;
        padding-bottom: 96px;
    }
}

.story-section .story-container {
    display: grid;
    gap: 48px;
    grid-template-columns: 1fr;
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

@media (min-width: 1024px) {
    .story-section .story-container {
        grid-template-columns: repeat(12, 1fr);
        gap: 64px;
        align-items: flex-start;
    }

    .story-section .story-col-left {
        grid-column: span 6;
    }

    .story-section .story-col-right {
        grid-column: span 6;
    }
}

.story-section .story-subtitle {
    font-family: var(--font-mono, monospace);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--primary-color, #F15A24);
    margin-bottom: 16px;
}

.story-section .story-title {
    font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
    font-size: clamp(2.25rem, 3.2vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: #0f172a;
    margin-bottom: 24px;
}

.story-section .story-image-left {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 4px;
    margin-top: 24px;
    display: block;
}

.story-section .story-col-right {
    display: flex;
    flex-direction: column;
    gap: 24px;
    font-size: 1.0625rem;
    line-height: 1.65;
    color: #404040;
}

.story-section .story-col-right a {
    color: var(--primary-color, #F15A24);
    text-decoration: underline;
    text-decoration-color: rgba(243, 113, 33, 0.5);
    text-underline-offset: 4px;
    transition: color 0.2s;
}

.story-section .story-col-right a:hover {
    color: #d9611a;
}

.story-section .story-highlight-para {
    border-left: 4px solid var(--primary-color, #F15A24);
    padding-left: 20px;
    color: #171717;
    font-weight: 500;
    margin: 0;
}

.story-section .story-image-right-wrapper {
    margin-top: 16px;
    margin-bottom: 0;
}

.story-section .story-image-right {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.story-section .story-image-caption {
    font-family: var(--font-mono, monospace);
    font-size: 0.75rem;
    color: #737373;
    margin-top: 8px;
}


/* --- SECTION 3: WHERE WE OPERATE --- */
.locations-section {
    background-color: #ffffff;
    color: #0f172a;
    padding-top: 64px;
    padding-bottom: 64px;
    border-top: 1px solid #e5e7eb;
}

@media (min-width: 768px) {
    .locations-section {
        padding-top: 80px;
        padding-bottom: 80px;
    }
}

.locations-section .container {
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

.locations-section .locations-header {
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr;
    align-items: flex-end;
}

@media (min-width: 1024px) {
    .locations-section .locations-header {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 48px;
    }
}

.locations-section .locations-subtitle {
    font-family: var(--font-mono, monospace);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--primary-color, #F15A24);
    margin-bottom: 12px;
}

.locations-section .locations-title {
    font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: #0f172a;
    margin: 0;
}

.locations-section .locations-desc {
    font-size: 1rem;
    line-height: 1.625;
    color: #404040;
    margin: 0;
}

/* 2x2 Grid of Location Cards */
.locations-section .locations-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr;
    margin-top: 40px;
}

@media (min-width: 768px) {
    .locations-section .locations-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }
}

.locations-section .location-card {
    border: 1px solid #e5e7eb;
    background-color: #ffffff;
    overflow: hidden;
    border-radius: 4px;
}

.locations-section .location-card-image {
    width: 100%;
    height: 170px;
    object-fit: cover;
    display: block;
}

.locations-section .location-card-content {
    padding: 24px;
}

.locations-section .location-card-site {
    font-family: var(--font-mono, monospace);
    font-size: 0.75rem;
    color: var(--primary-color, #F15A24);
    margin-bottom: 8px;
    text-transform: uppercase;
    font-weight: 700;
}

.locations-section .location-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.locations-section .location-card-type {
    font-size: 0.875rem;
    font-weight: 600;
    color: #262626;
    margin-bottom: 8px;
}

.locations-section .location-card-stats {
    font-family: var(--font-mono, monospace);
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.625;
    color: #171717;
    margin-bottom: 12px;
}

.locations-section .location-card-desc {
    font-size: 0.875rem;
    line-height: 1.625;
    color: #404040;
    margin-bottom: 12px;
}

.locations-section .location-card-caption {
    font-family: var(--font-mono, monospace);
    font-size: 0.75rem;
    color: #737373;
    margin: 0;
}

.locations-section .locations-footer {
    margin-top: 40px;
    border-top: 1px solid #e5e7eb;
    padding-top: 24px;
}

.locations-section .locations-footer-text {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
}


/* --- LOWER SECTIONS RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 1024px) {
    .stand-for-container {
        grid-template-columns: 1fr;
    }

    .stand-for-left {
        position: static;
    }

    .stand-for-right {
        padding-top: 20px;
    }

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

/* -----------------------------------------------------------------------------
   Page: Contact (/contact/)
   ----------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .contact-form-grid {
        grid-template-columns: 1fr !important;
    }

    .contact-form-section input,
    .contact-form-section select,
    .contact-form-section textarea {
        width: 100% !important;
        max-width: 100% !important;
        font-size: 16px !important;
        /* Prevents auto-zoom on mobile */
    }

    .contact-hero-container {
        padding: 60px 20px 40px !important;
    }
}

/* -----------------------------------------------------------------------------
   Page: Insight (/insight/) - Light Mode for Target Sections
   ----------------------------------------------------------------------------- */

/* 1. "Latest from the floor" Section */
section.insights-latest,
.insights-latest {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.insights-latest .insights-latest-grid {
    border: 1px solid #e5e7eb;
    background-color: #ffffff;
}

.insights-latest .insights-latest-content {
    background-color: #ffffff;
}

.insights-latest .insights-meta {
    color: #64748b;
}

.insights-latest .insights-meta-dot {
    background-color: #cbd5e1;
}

.insights-latest .insights-meta-tag {
    color: var(--primary-color, #f37120);
}

.insights-latest .insights-latest-title {
    color: var(--text-dark, #0f172a);
}

.insights-latest .insights-latest-desc {
    color: #475569;
}

.insights-latest .insights-latest-link {
    color: var(--primary-color, #f37120);
}

.insights-latest .insights-latest-link:hover {
    color: var(--text-dark, #0f172a);
}

/* 2. "The archive — Shop-floor thinking." Section */
section.insights-archive,
.insights-archive {
    background-color: #ffffff;
}

.insights-archive .insights-archive-header {
    border-bottom: 1px solid #e5e7eb;
}

.insights-archive .insights-archive-title {
    color: var(--text-dark, #0f172a);
}

.insights-archive .insights-archive-title span {
    color: var(--primary-color, #f37120);
}

.insights-archive .insights-filter-btn {
    border: 1px solid #e2e8f0;
    color: #64748b;
    background-color: #ffffff;
}

.insights-archive .insights-filter-btn:hover {
    border-color: #cbd5e1;
    color: var(--text-dark, #0f172a);
    background-color: #f8fafc;
}

.insights-archive .insights-filter-btn-active,
.insights-archive button.insights-filter-btn-active {
    border-color: var(--primary-color, #f37120);
    background-color: rgba(243, 113, 32, 0.08);
    color: var(--primary-color, #f37120);
}

.insights-archive .insights-filter-btn-active:hover,
.insights-archive button.insights-filter-btn-active:hover {
    border-color: var(--primary-color, #f37120);
    background-color: rgba(243, 113, 32, 0.12);
    color: var(--primary-color, #f37120);
}

.insights-archive .insights-archive-grid {
    border: 1px solid #e5e7eb;
    background-color: #e5e7eb;
    gap: 1px;
}

.insights-archive .insights-card {
    background-color: #ffffff;
}

.insights-archive .insights-card-content {
    background-color: #ffffff;
}

.insights-archive .insights-meta {
    color: #64748b;
}

.insights-archive .insights-meta-dot {
    background-color: #cbd5e1;
}

.insights-archive .insights-meta-tag {
    color: var(--primary-color, #f37120);
}

.insights-archive .insights-card-title {
    color: var(--text-dark, #0f172a);
}

.insights-archive .insights-card:hover .insights-card-title {
    color: var(--primary-color, #f37120);
}

.insights-archive .insights-card-desc {
    color: #475569;
}

.insights-archive .insights-card-link {
    color: #64748b;
}

.insights-archive .insights-card-link:hover {
    color: var(--primary-color, #f37120);
}

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

    .insights-filter-btns {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: flex-start;
    }

    .insights-filter-btn {
        font-size: 0.75rem;
        padding: 8px 14px;
    }
}

/* -----------------------------------------------------------------------------
   Footer (Global)
   ----------------------------------------------------------------------------- */
@media (max-width: 768px) {

    .footer-v2-grid,
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
    }

    .footer-bottom {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 1rem !important;
    }

    .footer-legal-links {
        justify-content: center !important;
    }
}

/* -----------------------------------------------------------------------------
   Capabilities FAQ Section Responsiveness
   ----------------------------------------------------------------------------- */
.faq-section {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.faq-grid-container {
    width: 100%;
    max-width: 1480px;
    box-sizing: border-box;
}

.faq-grid {
    width: 100%;
    box-sizing: border-box;
}

.faq-col {
    min-width: 0;
    box-sizing: border-box;
}

.faq-item {
    width: 100%;
    box-sizing: border-box;
}

.faq-btn {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.faq-btn-inner {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    flex: 1 1 auto;
    min-width: 0;
}

.faq-num {
    flex-shrink: 0;
    width: 2rem;
}

.faq-question {
    flex: 1 1 auto;
    min-width: 0;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
}

.faq-chevron {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.125rem;
    margin-left: 8px;
}

.faq-answer {
    width: 100%;
    box-sizing: border-box;
}

.faq-answer-inner {
    width: 100%;
    box-sizing: border-box;
}

.faq-answer-text {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-break: normal;
}

/* Tablet & Mobile Breakpoint (<= 1024px) */
@media (max-width: 1024px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .faq-col--left {
        border-right: none;
        padding-right: 0;
    }

    .faq-col--right {
        padding-left: 0;
    }
}

/* Mobile Breakpoint (<= 768px) */
@media (max-width: 768px) {
    .faq-grid-container {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }

    .faq-btn {
        padding: 1.25rem 0;
        gap: 10px;
    }

    .faq-btn-inner {
        gap: 10px;
    }

    .faq-num {
        font-size: 1.125rem;
        width: 1.75rem;
    }

    .faq-answer-inner {
        padding-left: clamp(1rem, 4vw, 2.25rem);
        padding-right: 0;
        padding-bottom: 1.25rem;
    }
}

/* -----------------------------------------------------------------------------
   Contact Form Validation & Alert Messages
   ----------------------------------------------------------------------------- */
.contact-form-card {
    position: relative;
}

.contact-form-error {
    display: none;
    font-size: 0.75rem;
    font-family: inherit;
    color: #ef4444;
    margin-top: 0.375rem;
    line-height: 1.35;
    font-weight: 500;
}

.contact-form-input.is-invalid,
.contact-form-select.is-invalid,
.contact-form-textarea.is-invalid {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
    box-shadow: 0 0 0 1px #ef4444 !important;
}

.contact-form-alert {
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    border-radius: 2px;
    font-size: 0.875rem;
    line-height: 1.5;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: mwAlertFadeIn 0.3s ease;
}

@keyframes mwAlertFadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

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

.contact-form-alert--success {
    background-color: #ecfdf5;
    border: 1px solid #10b981;
    border-left: 4px solid #10b981;
    color: #065f46;
}

.contact-form-alert--error {
    background-color: #fef2f2;
    border: 1px solid #ef4444;
    border-left: 4px solid #ef4444;
    color: #991b1b;
}

.contact-form-submit {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s, opacity 0.2s;
}

.contact-form-submit:disabled,
.contact-form-submit.is-loading {
    opacity: 0.75;
    cursor: not-allowed;
}

.contact-form-submit .btn-spinner {
    animation: mwSpin 0.9s linear infinite;
}

@keyframes mwSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}
.blog-detail-light-theme .entry-content .elementor-widget-text-editor{
    font-size: 1.125rem;
    line-height: 1.8;
    color: #212529;
    font-weight: 400;
}
