/* ============================================
   Self-hosted Google Fonts: Roboto + Oswald
   Latin and Latin Extended subsets only
   Each subset is loaded on-demand by the browser
   based on the unicode-range descriptor.
   ============================================ */

/* Oswald 400 — latin-ext */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/oswald-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Oswald 400 — latin */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/oswald-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Oswald 500 — latin-ext */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/oswald-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Oswald 500 — latin */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/oswald-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Oswald 700 — latin-ext */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/oswald-700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Oswald 700 — latin */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/oswald-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Roboto 300 — latin-ext */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(/assets/fonts/roboto-300-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Roboto 300 — latin */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(/assets/fonts/roboto-300-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Roboto 400 — latin-ext */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/roboto-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Roboto 400 — latin */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/roboto-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Roboto 500 — latin-ext */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/roboto-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Roboto 500 — latin */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/roboto-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Roboto 700 — latin-ext */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/roboto-700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Roboto 700 — latin */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/roboto-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Roboto 900 — latin-ext */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(/assets/fonts/roboto-900-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Roboto 900 — latin */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(/assets/fonts/roboto-900-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    /* Brand palette — primary red brighter on UI; darker red for hover/depth */
    --primary: #e31824;
    --primary-dark: #c30813;
    --primary-light: #ff5a63;
    --primary-rgb: 227, 24, 36;
    --accent: #e31824;
    --accent-dark: #c30813;
    --accent-rgb: 227, 24, 36;
    --secondary: #333333;
    --text: #555555;
    --text-light: #666666;
    --light-bg: #f5f5f5;
    --white: #ffffff;
    --border: #e0e0e0;
    --omni-hover-shadow: 4px 12px 16px 0 rgba(var(--primary-rgb), 0.08), 0px 1px 4px 1px rgba(var(--primary-rgb), 0.05);
    --font-main: 'Roboto', sans-serif;
    --font-heading: 'Oswald', sans-serif;
    --container-width: 1200px;
    --transition: all 0.2s ease;
}

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

body {
    font-family: var(--font-main);
    color: var(--text);
    line-height: 1.6;
    background-color: var(--light-bg); /* Omni uses a very light background for the body */
}

/* Readable spacing between paragraphs (global reset zeros margins) */
p {
    margin-bottom: 1.35rem;
}
p:last-child {
    margin-bottom: 0;
}

/* Skip link (keyboard / screen reader) */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100000;
    padding: 12px 20px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    border-radius: 0 0 4px 0;
}
.skip-link:focus {
    left: 0;
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Screen-reader-only labels (honeypot etc.) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.form-group .req {
    color: var(--primary);
    font-weight: 700;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--secondary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-transform: capitalize;
}

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

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

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

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

.text-red {
    color: var(--primary);
}

.text-center {
    text-align: center;
}

/* Form Placeholders */
::placeholder {
    color: #888;
    opacity: 1; /* Firefox */
}

::-ms-input-placeholder { /* Edge 12-18 */
    color: #888;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-family: var(--font-heading);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 8px; /* Slightly more rounded */
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    font-size: 1rem;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.28);
}

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

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

.btn-outline.outline-white {
    border-color: rgba(255,255,255,0.8);
    color: var(--white);
    background-color: rgba(255,255,255,0.05);
}

.btn-outline.outline-white:hover {
    background-color: var(--white);
    color: var(--secondary);
}

.btn-outline.cta-outline {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.75);
    color: var(--white);
}

.btn-outline.cta-outline:hover {
    background: var(--white);
    border-color: var(--white);
    color: var(--secondary);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* Top Bar */
.top-bar {
    background-color: #222; /* Slightly darker than the main header */
    color: #ccc;
    padding: 10px 0;
    font-size: 0.9rem;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-info a {
    color: #ccc;
}

.top-info a:hover {
    color: var(--white);
}

.separator {
    margin: 0 10px;
    color: #555;
}

/* Header */
.main-header {
    background-color: transparent;
    box-shadow: none;
    position: absolute;
    width: 100%;
    left: 0;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.main-header.scrolled {
    position: fixed;
    top: 0;
    background-color: var(--secondary);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    position: relative;
}

.logo a {
    display: block;
    text-decoration: none;
    transition: var(--transition);
}

.logo a:hover {
    opacity: 0.8;
}

.logo-img {
    height: 45px;
    width: auto;
    display: block;
}

.main-nav {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-width: 0;
    position: relative;
}

/* Desktop: drawer wrapper is transparent — <ul> lays out in the header row */
.nav-drawer {
    display: contents;
}

.nav-backdrop {
    display: none;
}

.nav-list {
    display: flex;
    gap: 4px;
    align-items: center;
    height: 100%;
}

.nav-list > li {
    height: 100%;
    display: flex;
    align-items: center;
}

.has-dropdown {
    position: relative;
}

.nav-list > li > a {
    color: var(--white);
    font-weight: 500;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 0.95rem;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    border-radius: 6px;
    transition: var(--transition);
}

.nav-list > li > a:hover,
.nav-list > li > a.active {
    color: var(--white);
    background: var(--primary);
}

.nav-arrow {
    font-size: 0.6rem;
    transition: var(--transition);
}

.has-mega:hover .nav-arrow {
    transform: rotate(180deg);
}

/* Mega Menu */
.mega-menu {
    position: absolute;
    top: 100%; /* Position exactly at the bottom of the 80px header */
    left: 0;
    width: 100%;
    min-width: auto;
    background: var(--white);
    border: 1px solid var(--border);
    border-top: 3px solid var(--primary);
    border-radius: 0 0 12px 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
    padding: 28px 32px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    transform: translateY(8px);
    z-index: 999;
}

/* Simple Dropdown */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: var(--white);
    border: 1px solid var(--border);
    border-top: 3px solid var(--primary);
    border-radius: 0 0 12px 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    transform: translateY(8px);
    z-index: 999;
}

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

.dropdown-menu ul li {
    margin-bottom: 2px;
}

.dropdown-menu ul li a {
    color: var(--text);
    font-size: 0.95rem;
    font-family: var(--font-main);
    text-transform: none;
    font-weight: 500;
    padding: 8px 14px;
    display: block;
    border-radius: 6px;
    transition: var(--transition);
}

    .dropdown-menu ul li a:hover,
    .dropdown-menu ul li a.active {
        color: var(--primary);
        background: rgba(var(--primary-rgb),0.06);
        font-weight: 500;
    }

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.has-mega:hover .nav-arrow,
.has-dropdown:hover .nav-arrow {
    transform: rotate(180deg);
}

.mega-narrow {
    min-width: 400px;
}

.has-mega:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-inner {
    display: flex;
    gap: 32px;
}

.mega-col {
    flex: 1;
    min-width: 0;
}

.mega-col .mega-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary);
    font-family: var(--font-heading);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(var(--primary-rgb),0.1);
    display: block;
}

.mega-col .mega-title a {
    color: inherit;
    text-decoration: none;
}

.mega-col .mega-title a:hover {
    color: var(--primary-dark);
}

.mega-col ul li {
    margin-bottom: 2px;
}

.mega-col ul li a {
    color: var(--text);
    font-size: 0.9rem;
    font-family: var(--font-main);
    text-transform: none;
    font-weight: 400;
    padding: 6px 10px;
    display: block;
    border-radius: 6px;
    transition: var(--transition);
}

    .mega-col ul li a:hover,
    .mega-col ul li a.active {
        color: var(--primary);
        background: rgba(var(--primary-rgb),0.06);
    }

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 44px;
    height: 44px;
    padding: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    flex-shrink: 0;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.mobile-toggle:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background-color: var(--white);
    margin: 3px 0;
    transition: var(--transition);
}

.main-nav.nav-open .mobile-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.main-nav.nav-open .mobile-toggle span:nth-child(2) {
    opacity: 0;
}
.main-nav.nav-open .mobile-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

body.nav-menu-open {
    overflow: hidden;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 140px 0 80px; /* Increased top padding to clear absolute header */
    color: var(--white);
    overflow: hidden;
}

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

/* Shared hero/capability imagery — swap to local /assets/images/*.webp when assets are ready */
.bg-home-machining,
.capability-section--machining-bg {
    background-image: url('/assets/images/cnc-maching-china-background.webp');
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Simple neutral scrim (matches legacy hero; capability block keeps its own ::before overlay) */
    background: rgba(0, 0, 0, 0.85);
    z-index: 2;
}

.hero-section .container {
    position: relative;
    z-index: 3;
}

.hero-row {
    display: flex;
    gap: 50px;
    align-items: center;
}

.hero-content {
    flex: 1;
    text-align: left;
    max-width: 70%;
}

.hero-content h1 {
    font-size: 2.8rem;
    color: var(--white);
    margin-bottom: 16px;
    text-transform: none;
    line-height: 1.15;
    text-shadow: 0 2px 28px rgb(0 0 0 / 0.4);
}

.hero-lead {
    font-size: 1.1rem;
    margin-bottom: 28px;
    color: rgba(255,255,255,0.92);
    text-shadow: 0 1px 16px rgb(0 0 0 / 0.35);
}

.hero-btns {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.hero-features {
    list-style: none;
    margin-bottom: 28px;
}

.hero-features li {
    padding: 6px 0;
    font-size: 1rem;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-features li .hero-feature-text {
    flex: 1;
    min-width: 0;
    line-height: 1.5;
}

.hero-features li i {
    color: var(--white);
    font-size: 0.65rem;
    line-height: 1;
    background: var(--accent);
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    align-self: center;
    box-shadow: 0 1px 3px rgb(0 0 0 / 0.25);
}

.hero-features li i::before {
    line-height: 1;
}

/* Hero Quote Form */
.page-header {
    background: var(--secondary);
    color: var(--white);
    padding: 140px 0 60px;
    text-align: center;
}

.page-header h1 {
    margin-bottom: 15px;
    color: var(--white);
}

.page-header p {
    font-size: 1.1rem;
    color: #ccc;
    max-width: 600px;
    margin: 0 auto;
}

.contact-section {
    padding: 80px 0;
    background-color: var(--white);
}

.contact-row {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
}

.contact-info-col {
    flex: 1;
    min-width: 300px;
}

.contact-info-col h2 {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

.contact-info-col > p {
    color: var(--text);
    margin-bottom: 40px;
    font-size: 1.05rem;
}

.info-card {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.info-card:last-child {
    margin-bottom: 0;
}

.info-icon {
    background: rgba(var(--primary-rgb),0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon i {
    color: var(--primary);
    font-size: 1.2rem;
}

.info-card h4 {
    margin: 0 0 5px 0;
    color: var(--secondary);
    font-size: 1.1rem;
}

.info-card p {
    margin: 0;
    color: var(--text);
}

.info-card p a {
    color: var(--primary);
    font-weight: 500;
}

.contact-form-col {
    flex: 1.2;
    min-width: 300px;
    background: var(--light-bg);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.contact-form-col h3 {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

.contact-form-col .btn {
    width: 100%;
}

.map-section {
    width: 100%;
    height: 400px;
    background: #eee;
    position: relative;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    flex-direction: column;
}

.map-placeholder i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #ccc;
}

.map-placeholder p {
    font-size: 1.2rem;
}

/* Forms */
.form-header {
    margin-bottom: 20px;
}

.form-header h3 {
    font-size: 1.4rem;
    margin-bottom: 4px;
    text-transform: none;
    font-family: var(--font-main);
    color: var(--secondary);
}

.form-header p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 14px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--secondary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: var(--font-main);
    font-size: 1rem;
    line-height: 1.5;
    color: var(--secondary);
    background-color: var(--white);
    transition: var(--transition);
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    box-sizing: border-box;
}

.form-group input,
.form-group select {
    height: 46px;
}

.form-group select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23555555' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    padding-right: 40px;
}

.form-group select:invalid {
    color: #888;
}

.form-group select option {
    color: var(--secondary);
    background-color: var(--white);
    padding: 10px;
}

.form-group select:focus option:checked {
    background: var(--primary) linear-gradient(0deg, var(--primary) 0%, var(--primary) 100%);
    color: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb),0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #888;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.country-select {
    position: relative;
}

.native-country-select {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 1px;
    height: 1px;
}

.country-select-trigger {
    width: 100%;
    height: 46px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: var(--font-main);
    font-size: 1rem;
    color: #888;
    background: var(--white);
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.country-select.has-value .country-select-trigger {
    color: var(--secondary);
}

.country-select-trigger i {
    color: #666;
    font-size: 0.9rem;
}

.country-select.open .country-select-trigger,
.country-select-trigger:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb),0.08);
    outline: none;
}

.country-select-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 30;
    max-height: 280px;
    overflow: hidden;
}

.country-select-search-wrap {
    padding: 10px;
    border-bottom: 1px solid var(--border);
}

.country-select-search {
    width: 100%;
    height: 40px;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.95rem;
}

.country-select-search:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb),0.08);
    outline: none;
}

.country-select-options {
    margin: 0;
    padding: 6px 0;
    list-style: none;
    max-height: 220px;
    overflow-y: auto;
}

.country-select-option {
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    padding: 9px 14px;
    color: var(--secondary);
    font-size: 0.95rem;
    cursor: pointer;
}

.country-select-option:hover,
.country-select-option.is-active {
    background: rgba(var(--primary-rgb),0.08);
    color: var(--primary);
}

.country-select-empty {
    padding: 10px 14px;
    color: #888;
    font-size: 0.9rem;
}

.quote-form-section {
    padding: 60px 0;
    background-color: var(--light-bg);
}

.quote-container {
    max-width: 800px;
}

.quote-form-wrap {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.file-upload-wrapper {
    border: 2px dashed #ccc;
    padding: 40px 20px;
    text-align: center;
    border-radius: 6px;
    background: #fafafa;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload-wrapper:hover {
    border-color: var(--primary);
    background: rgba(var(--primary-rgb),0.02);
}

.file-upload-wrapper.drag-over {
    border-color: var(--primary);
    background: rgba(var(--primary-rgb),0.06);
}

.file-upload-wrapper i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.upload-title {
    margin: 0 0 10px 0;
    color: var(--secondary);
    font-weight: 500;
    font-size: 1.1rem;
}

.upload-desc {
    margin: 0;
    font-size: 0.85rem;
    color: #777;
}

.file-upload-wrapper input[type="file"] {
    display: none;
}

#fileList {
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--secondary);
}

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

.file-list li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--light-bg);
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid var(--border);
}

.file-list .file-icon {
    color: var(--primary);
}

.file-list .file-name {
    flex: 1;
}

.file-list .file-size {
    color: #888;
    font-size: 0.8rem;
}

.quote-submit-btn {
    width: 100%;
    font-size: 1.05rem;
    padding: 14px 16px;
}

.quote-submit-btn i {
    margin-left: 10px;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
}

.btn-form {
    width: 100%;
    padding: 14px 24px;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
}

/* Global Sections */
.section-global {
    padding: 80px 0;
}

.section-header {
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2.2rem;
    text-transform: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.section-header h2 i {
    color: var(--primary);
    font-size: 1.5rem;
}

.section-intro {
    max-width: 760px;
    margin: 14px auto 0;
    font-size: 1.05rem;
    color: var(--text);
}

/* Narrow prose block (e.g. cost-driver list on /affordable-services/) */
.economics-list-block {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

/* Legal / policy pages (e.g. /privacy-policy/) */
main.page-legal .hero-section--compact {
    padding-bottom: 56px;
}

main.page-legal .hero-section--compact .hero-lead {
    margin-bottom: 0;
}

main.page-legal .content-section--legal {
    padding-top: 72px;
    padding-bottom: 96px;
}

/* Full width inside .container — same max-width as other pages (var(--container-width)) */
.legal-prose {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.legal-prose > p {
    margin: 0 0 1.125rem;
    color: var(--text);
    line-height: 1.7;
}

.legal-prose > p:last-child {
    margin-bottom: 0;
}

.legal-prose h2 {
    margin: 2.25rem 0 0.875rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--secondary);
    line-height: 1.3;
}

.legal-prose h3 {
    margin: 1.5rem 0 0.625rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary);
    line-height: 1.35;
}

.legal-prose h2 + h3 {
    margin-top: 1rem;
}

.legal-prose p + h2 {
    margin-top: 2.5rem;
}

.legal-prose ul + h2 {
    margin-top: 2.5rem;
}

.legal-prose ul {
    margin: 0.5rem 0 1.25rem;
    padding-left: 1.4rem;
}

.legal-prose ul li {
    margin: 0 0 0.65rem;
    color: var(--text);
    line-height: 1.65;
}

.legal-prose ul li:last-child {
    margin-bottom: 0;
}

.legal-prose .legal-effective {
    margin-bottom: 0.5rem;
}

.legal-prose .legal-contact-close {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    margin-top: 2.75rem;
    margin-bottom: 0;
    padding-top: 0.5rem;
}

@media (max-width: 576px) {
    main.page-legal .content-section--legal {
        padding-top: 48px;
        padding-bottom: 72px;
    }

    main.page-legal .hero-section--compact {
        padding-bottom: 44px;
    }

    /* Keep hero/capability background crop aligned on small screens */
    .bg-home-machining,
    .capability-section--machining-bg,
    .capability-section {
        background-position: right top;
    }

    /* Also keep CTA background consistent on mobile */
    .cta-section {
        background-position: right top;
    }

}

/* Thank-you + 404 — centered card inside standard hero */
.hero-section.hero-message-card {
    padding-top: 140px;
    padding-bottom: 88px;
    min-height: min(70vh, 720px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-section.hero-message-card .container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.thank-you-card {
    max-width: 48rem;
    margin: 0 auto;
    width: 100%;
    text-align: center;
    padding: 2.75rem 2.1rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(26, 77, 109, 0.12);
}

.thank-you-icon {
    font-size: 3.25rem;
    color: var(--accent, #0d9488);
    margin-bottom: 1.25rem;
    line-height: 1;
}

.not-found-page .thank-you-icon.not-found-icon {
    color: var(--primary);
}

.not-found-page .not-found-lead {
    margin-bottom: 2rem;
}

.thank-you-card h1 {
    font-size: 1.85rem;
    color: var(--secondary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.thank-you-lead {
    font-size: 1.08rem;
    color: var(--text);
    line-height: 1.65;
    margin-bottom: 1rem;
}

.thank-you-note {
    font-size: 0.98rem;
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.thank-you-note a {
    color: var(--primary);
    font-weight: 600;
}

.thank-you-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    justify-content: center;
    align-items: center;
}

@media (max-width: 576px) {
    .hero-section.hero-message-card {
        padding-top: 120px;
        padding-bottom: 64px;
        min-height: auto;
    }

    .thank-you-card {
        padding: 1.75rem 1.25rem;
    }
}

.table-section-note {
    max-width: 760px;
    margin: 1.25rem auto 0;
    font-size: 1.05rem;
    color: var(--text);
    text-align: center;
}

.section-soft {
    background: var(--light-bg);
}

.sub-heading {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(320px, 1fr);
    gap: 28px;
    align-items: start;
}

.home-intro-copy h2 {
    margin-bottom: 18px;
}

.home-proof-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 12px 32px rgba(17, 24, 39, 0.04);
}

.home-proof-card h3 {
    margin-bottom: 10px;
    text-transform: none;
    font-size: 1.5rem;
}

.compact-list {
    margin-bottom: 24px;
}

.compact-list li {
    font-size: 0.98rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 36px;
}

.stat-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px 20px;
    text-align: center;
}

.stat-card strong {
    display: block;
    color: var(--primary);
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 10px;
    font-family: var(--font-heading);
}

.stat-card span {
    display: block;
    color: var(--text);
    font-size: 0.96rem;
}

/* Omni Calculator Box Design (Services & Categories) */
.omni-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

/* Omni Style Cards (Services/Popular) */
.omni-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    text-decoration: none;
    position: relative;
    height: 100%;
}

.omni-card:hover {
    box-shadow: var(--omni-hover-shadow);
    border-color: rgba(var(--primary-rgb), 0.22);
}

.omni-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.omni-card h3 {
    font-size: 1.25rem;
    color: var(--secondary);
    margin: 0;
    text-transform: none;
    font-family: var(--font-main);
    font-weight: 700;
    padding-right: 20px;
}

.omni-card .arrow-icon {
    color: var(--text-light);
    font-size: 1rem;
    transition: var(--transition);
}

.omni-card:hover .arrow-icon {
    color: var(--primary);
    transform: translateX(4px);
}

.omni-card p {
    font-size: 0.95rem;
    color: var(--text);
    margin-bottom: 20px;
    flex-grow: 1;
}

.omni-card-footer {
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.omni-card:hover h3 {
    color: var(--primary);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.process-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 26px 24px;
    position: relative;
    overflow: hidden;
}

.process-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), rgba(var(--primary-rgb),0.25));
}

.process-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(var(--primary-rgb),0.08);
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 16px;
}

.process-card h3 {
    font-size: 1.2rem;
    text-transform: none;
    margin-bottom: 12px;
}

.snapshot-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.snapshot-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 26px 24px;
    height: 100%;
}

.snapshot-card h3 {
    font-size: 1.15rem;
    text-transform: none;
    margin-bottom: 12px;
}

.split-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.feature-panel {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
}

.feature-panel h3 {
    font-size: 1.45rem;
    margin-bottom: 18px;
    text-transform: none;
}

.feature-list {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
}

.feature-list li {
    padding: 0 0 14px 20px;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    position: relative;
}

.feature-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

.feature-list li::before {
    content: '';
    position: absolute;
    top: 9px;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
}

.text-link:hover {
    color: var(--primary-dark);
}

.quality-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.quality-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px;
    height: 100%;
}

.quality-card h3 {
    font-size: 1.15rem;
    text-transform: none;
    margin-bottom: 12px;
}

.section-gap-top {
    margin-top: 52px;
}

.application-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.application-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 16px 18px;
    text-align: center;
    font-weight: 600;
    color: var(--secondary);
}

/* About Section adjustments */
.row {
    display: flex;
    gap: 60px;
    align-items: center;
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border);
}

.col-text {
    flex: 1;
}

.col-image {
    flex: 1;
}

.col-image img {
    border-radius: 12px;
    width: 100%;
    object-fit: cover;
}

.check-list {
    margin: 20px 0 30px;
}

.check-list li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 12px;
    font-size: 1.05rem;
}

.check-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary);
    background: rgba(var(--primary-rgb),0.1);
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.7rem;
    top: 3px;
}

.link-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.link-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--secondary);
    font-weight: 600;
    transition: var(--transition);
}

.link-pill:hover {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: var(--omni-hover-shadow);
}

/* Capability Section */
.capability-section {
    position: relative;
    background-color: #000;
    background-position: right center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--white);
    padding: 120px 0;
    overflow: hidden;
}

.capability-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgb(0 0 0 / 85%);
    z-index: 0;
}

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

.capability-section h2, .capability-text h2 {
    color: var(--white);
}

.capability-section p, .capability-text p {
    color: rgba(255, 255, 255, 0.8);
}

.capability-cta {
    margin-top: 30px;
}

/* CTA Section */
.cta-section {
    background-color: var(--secondary);
    color: var(--white);
    padding: 80px 0;
    background-image: linear-gradient(rgba(51,51,51,0.9), rgba(51,51,51,0.9)), url('/assets/images/cnc-maching-china-background.webp');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    text-align: center;
    margin-top: 40px;
}

.cta-content h2 {
    color: var(--white);
    font-size: 2.5rem;
    text-transform: none;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 35px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Map Section */
.map-section {
    width: 100%;
    height: 400px;
    background: #eee;
    position: relative;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    flex-direction: column;
}

.map-placeholder i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #ccc;
}

.map-placeholder p {
    font-size: 1.2rem;
}

/* Footer */
.main-footer {
    background-color: #222;
    color: #aaa;
    padding: 70px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr 2fr;
    gap: 40px;
    padding: 60px 0 40px;
    margin-bottom: 0;
}

.footer-col h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
    text-transform: none;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
}

.footer-col p {
    color: #aaa;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #aaa;
    transition: var(--transition);
    display: inline-block;
}

.footer-col ul li a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px 24px;
    border-top: 1px solid #333;
    padding: 24px 0;
    font-size: 0.9rem;
}

.main-footer .footer-bottom {
    border-top-color: rgba(255, 255, 255, 0.1);
    color: #888;
}

.footer-copyright {
    margin: 0;
    color: inherit;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
}

.footer-legal a {
    color: inherit;
    text-decoration: none;
}

.footer-legal a:hover {
    color: var(--primary);
}

.contact-list {
    list-style: none;
}

.contact-list li {
    display: flex;
    gap: 12px;
    color: #aaa;
    margin-bottom: 15px;
    align-items: flex-start;
}

.contact-list li i {
    color: var(--primary);
    margin-top: 4px;
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a,
.social-links__stub {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.social-links__stub {
    cursor: default;
    opacity: 0.75;
}

/* Mobile Sticky CTA */
.mobile-sticky-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.sticky-btn {
    flex: 1;
    text-align: center;
    padding: 15px;
    color: var(--white);
    font-weight: 700;
    text-transform: uppercase;
    font-family: var(--font-heading);
}

.phone-btn {
    background-color: var(--secondary);
}

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

/* === Toplax Inspired Layout Styles === */

/* Sub-headings */
.sub-heading {
    display: inline-block;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
    position: relative;
    padding-left: 24px;
}
.sub-heading::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 2px;
    background-color: var(--primary);
}
.text-center .sub-heading {
    padding-left: 0;
}
.text-center .sub-heading::before {
    display: none;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Alternate image column (service pages) */
.about-grid--reverse .about-content {
    order: 2;
}
.about-grid--reverse .about-image-wrap {
    order: 1;
    padding-left: 0;
    padding-right: 40px;
}

/* Same two-column layout as .about-grid, but flush image column (e.g. /cnc-machining/) */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.content-grid--reverse .content-text {
    order: 2;
}
.content-grid--reverse .content-image-wrap {
    order: 1;
}
.content-grid .content-image-wrap {
    padding: 0;
    position: relative;
}

/* Hero breadcrumb (service / inner landing pages) */
.hero-breadcrumb {
    position: relative;
    z-index: 4;
    margin-bottom: 1.25rem;
}
.hero-breadcrumb .breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.65rem;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.875rem;
    font-weight: 500;
}
.hero-breadcrumb .breadcrumb-list li {
    display: inline-flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.9);
}
.hero-breadcrumb .breadcrumb-list a {
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}
.hero-breadcrumb .breadcrumb-list a:hover {
    color: var(--white);
    border-bottom-color: var(--white);
}
.hero-breadcrumb .breadcrumb-list li[aria-current="page"] {
    color: rgba(255, 255, 255, 0.75);
    font-weight: 400;
}
.hero-breadcrumb .breadcrumb-list li:not(:last-child)::after {
    content: '/';
    margin-left: 0.65rem;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 400;
}
.about-features,
.content-features {
    list-style: none;
    margin: 24px 0;
}
.about-features li,
.content-features li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--secondary);
    font-weight: 500;
}
.about-features li i,
.content-features li i {
    color: var(--primary);
    font-size: 1.1rem;
}

/* Plain bullet list (e.g. /milling/ materials) */
.materials-list {
    list-style: disc;
    margin: 1rem 0 1.25rem;
    padding-left: 1.25rem;
    color: var(--text);
    font-weight: 400;
}
.materials-list li {
    margin: 0.4rem 0;
    padding: 0;
    display: list-item;
}
.materials-list li strong {
    color: var(--secondary);
}
.about-rating {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 20px 24px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 20px;
    margin-top: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}
.rating-stars {
    color: #fbbc05;
    font-size: 1.1rem;
}
.rating-text strong {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--secondary);
}

.about-image-wrap {
    position: relative;
    padding-left: 40px;
    padding-bottom: 40px;
}
.about-img-main img,
.content-img-main img {
    border-radius: 12px;
    box-shadow: var(--omni-hover-shadow);
    width: 100%;
}
.experience-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    background: var(--primary);
    color: var(--white);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(var(--primary-rgb),0.2);
}
.experience-badge strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 3rem;
    line-height: 1;
}
.experience-badge span {
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

/* Services Grid */
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}
.service-card {
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: flex;
    flex-direction: column;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary);
    transition: var(--transition);
    z-index: 2;
}
.service-card:hover {
    box-shadow: var(--omni-hover-shadow);
    transform: translateY(-5px);
}
.service-card:hover::before {
    width: 100%;
}
.service-img-wrap {
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
}
.service-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.service-card:hover .service-img-wrap img {
    transform: scale(1.05);
}
.service-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}
.service-card h3 a {
    color: var(--secondary);
}
.service-card h3 a:hover {
    color: var(--primary);
}
.service-card p {
    color: var(--text-light);
    margin-bottom: 24px;
}
.service-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--light-bg);
    color: var(--secondary);
    transition: var(--transition);
}
.service-card:hover .service-link {
    background: var(--primary);
    color: var(--white);
}

/* Capability Section */
.capability-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.capability-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.stat-box {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--border);
    text-align: center;
    transition: var(--transition);
}
.stat-box:hover {
    box-shadow: var(--omni-hover-shadow);
    transform: translateY(-3px);
}
.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 10px;
}
.stat-label {
    font-weight: 500;
    color: var(--secondary);
    font-size: 0.95rem;
}

/* Quality/What We Do */
.bg-light {
    background-color: var(--light-bg);
}

.quality-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    max-width: 920px;
    margin: 26px auto 0;
}

.quality-highlight {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.03);
}

.qh-icon {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--primary-rgb),0.08);
    color: var(--primary);
    flex-shrink: 0;
}

.qh-text strong {
    display: block;
    color: var(--secondary);
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.95rem;
    line-height: 1.1;
}

.qh-text span {
    display: block;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 4px;
}

/* Trusted by Brands */
.trusted-brands-section .brand-logo-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 10px;
    padding: 8px 0 2px;
}

.brand-logo {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    text-align: center;
}

.brand-logo img {
    max-height: 100px;
    max-width: 160px;
    width: auto;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
    display: block;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.brand-logo img:hover {
    opacity: 1;
}


/* Why Choose Us */
.why-choose-section {
    padding-top: 90px;
    padding-bottom: 90px;
    background:
        radial-gradient(ellipse 65% 55% at 15% 20%, rgba(var(--primary-rgb), 0.07) 0%, transparent 70%),
        radial-gradient(ellipse 60% 50% at 85% 25%, rgba(var(--accent-rgb), 0.05) 0%, transparent 70%),
        radial-gradient(ellipse 55% 50% at 20% 80%, rgba(var(--primary-rgb), 0.05) 0%, transparent 70%),
        radial-gradient(ellipse 55% 50% at 80% 85%, rgba(var(--accent-rgb), 0.05) 0%, transparent 70%),
        #ffffff;
}

.why-choose-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 56px;
}

.why-choose-feature {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.why-choose-feature-head {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.why-choose-feature-head .why-ic {
    flex-shrink: 0;
}

.why-ic {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--accent-rgb), 0.12);
    color: var(--accent-dark);
    flex-shrink: 0;
    font-size: 1.05rem;
}

.why-choose-feature-head h3 {
    margin: 0;
    font-size: 1.15rem;
    color: var(--secondary);
    text-transform: none;
}

.why-choose-feature p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.5;
}

.why-choose-cta {
    margin-top: 32px;
    text-align: center;
}
.quality-body-split {
    display: flex;
    gap: 50px;
    align-items: center;
    margin-top: 40px;
}
.quality-image {
    flex: 1;
}
.quality-image img {
    width: 100%;
    border-radius: 24px;
    aspect-ratio: 4/3;
    object-fit: cover;
    box-shadow: var(--omni-hover-shadow);
}
.inspection-feature-rows {
    max-width: 920px;
    margin: 18px auto 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}
.inspection-row {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: var(--transition);
}
.inspection-row:hover {
    box-shadow: 0 14px 34px rgba(17, 24, 39, 0.12);
    border-color: rgba(var(--primary-rgb), 0.35);
}
.inspection-icon {
    width: 70px;
    height: 70px;
    background: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary);
    flex-shrink: 0;
}
.inspection-text h3 {
    margin-bottom: 8px;
    font-size: 1.25rem;
}
.inspection-text p {
    color: var(--text-light);
    margin: 0;
}

/* Process Layout */
.process-section {
    padding-top: 80px;
    padding-bottom: 80px;
}
.process-section-footer {
    margin-top: 26px;
}
.process-body-split {
    display: flex;
    gap: 50px;
    align-items: center;
    margin-top: 50px;
}
.process-image {
    flex: 1;
}
.process-image img {
    width: 100%;
    border-radius: 24px;
    aspect-ratio: 4/3;
    object-fit: cover;
    box-shadow: var(--omni-hover-shadow);
}
.process-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.process-item {
    display: flex;
    gap: 20px;
    padding: 24px;
    border-radius: 16px;
    transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    align-items: flex-start;
    cursor: default;
    background: var(--white);
    border: 1px solid var(--border);
}
.process-item.active {
    background-color: var(--primary);
    color: var(--white);
    border-color: rgba(255,255,255,0.25);
    box-shadow: var(--omni-hover-shadow);
    transform: translateX(10px);
}

.process-item.active .p-num {
    color: var(--white);
}

.process-item.active .p-text h3 {
    color: var(--white);
}

.process-item.active .p-text p {
    color: rgba(255,255,255,0.92);
}
.p-num {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--primary);
    transition: var(--transition);
}
.p-text h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--secondary);
    transition: var(--transition);
}
.p-text p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.5;
    transition: var(--transition);
}
.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}
.testimonial-card {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--border);
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}
.quote-icon {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 20px;
    opacity: 0.2;
}
.testimonial-card p {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 24px;
    color: var(--secondary);
}
.client-info strong {
    display: block;
    color: var(--secondary);
    font-family: var(--font-heading);
    font-size: 1.1rem;
}
.client-info span {
    font-size: 0.9rem;
    color: var(--text-light);
}

.faq-list details {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 6px;
    margin-bottom: 14px;
    overflow: hidden;
}
.faq-list summary {
    padding: 18px 24px;
    font-weight: 600;
    color: var(--secondary);
    cursor: pointer;
    position: relative;
    list-style: none;
    background: var(--white);
}

.faq-list summary h3 {
    margin: 0;
    font-size: inherit;
    line-height: inherit;
    font-family: inherit;
    font-weight: inherit;
    color: inherit;
    text-transform: none;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}
.faq-list summary::after {
    content: '+';
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 400;
}
.faq-list details[open] summary {
    border-bottom: 1px solid var(--border);
}
.faq-list details[open] summary::after {
    content: '−';
}

/* Smooth accordion animation (JS-driven height) */
.faq-list details > div {
    overflow: hidden;
    height: 0;
    transition: height 260ms ease;
    will-change: height;
}

.faq-list details[open] > div {
    height: auto; /* JS will manage exact px height during animation */
}

@media (prefers-reduced-motion: reduce) {
    .faq-list details > div {
        transition: none;
    }
}

.faq-list details p {
    padding: 20px 24px;
    margin: 0;
    color: var(--text-light);
    background: var(--white);
}

/* =======================================================
   Final CTA — Split layout (pitch + trust signals)
   Used on homepage and all service/material/industry pages
   ======================================================= */
.cta-split {
    position: relative;
    padding: 80px 0;
    background: var(--secondary);
    color: var(--white);
    overflow: hidden;
}
.cta-split::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 100%;
    background:
        radial-gradient(circle at 85% 20%, rgba(var(--primary-rgb), 0.18), transparent 55%),
        linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.02) 100%);
    pointer-events: none;
}
.cta-split::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 6px;
    background: var(--primary);
}
.cta-split .container {
    position: relative;
    z-index: 1;
}
.cta-split-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 56px;
    align-items: center;
}

/* Left: pitch */
.cta-eyebrow {
    display: inline-block;
    font-family: 'Oswald', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--primary-light);
    padding: 5px 13px;
    border: 1px solid rgba(var(--primary-rgb), 0.5);
    border-radius: 999px;
    margin-bottom: 18px;
}
.cta-split h2 {
    color: var(--white);
    font-size: 2.4rem;
    line-height: 1.15;
    margin: 0 0 16px;
    letter-spacing: -0.01em;
}
.cta-split .cta-lede {
    font-size: 1.05rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.78);
    max-width: 540px;
    margin: 0 0 28px;
}

.cta-split-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px 26px;
}
.cta-split-actions .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.cta-split-actions .btn-primary i {
    transition: transform 0.2s ease;
}
.cta-split-actions .btn-primary:hover i {
    transform: translateX(4px);
}
.cta-phone-link {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: var(--white);
    text-decoration: none;
    transition: color 0.2s ease;
}
.cta-phone-link i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--primary-light);
    font-size: 0.95rem;
    flex-shrink: 0;
}
.cta-phone-link span {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}
.cta-phone-link small {
    font-size: 0.74rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.cta-phone-link strong {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--white);
}
.cta-phone-link:hover strong {
    color: var(--primary-light);
}

/* Right: trust card */
.cta-split-trust {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 32px 30px;
    position: relative;
}
.cta-split-trust::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 30px;
    width: 48px;
    height: 3px;
    background: var(--primary);
    border-radius: 0 0 3px 3px;
}
.cta-trust-heading {
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin: 0 0 22px;
    font-family: 'Oswald', sans-serif;
}
.cta-trust-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.cta-trust-list li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.cta-trust-list > li > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(var(--primary-rgb), 0.15);
    border: 1px solid rgba(var(--primary-rgb), 0.4);
    color: var(--primary-light);
    font-size: 0.95rem;
    flex-shrink: 0;
}
.cta-trust-list li > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-top: 4px;
}
.cta-trust-list strong {
    color: var(--white);
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.3;
}
.cta-trust-list span {
    font-size: 0.88rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.68);
}

/* Responsive — tablet */
@media (max-width: 992px) {
    .cta-split {
        padding: 64px 0;
    }
    .cta-split-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .cta-split h2 {
        font-size: 2rem;
    }
    .cta-split h2 br {
        display: none;
    }
}

/* Responsive — mobile */
@media (max-width: 576px) {
    .cta-split {
        padding: 50px 0;
    }
    .cta-split h2 {
        font-size: 1.65rem;
    }
    .cta-split .cta-lede {
        font-size: 0.98rem;
    }
    .cta-split-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    .cta-split-actions .btn-primary {
        justify-content: center;
        width: 100%;
    }
    .cta-phone-link {
        justify-content: flex-start;
    }
    .cta-split-trust {
        padding: 26px 22px;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .capability-section {
        background-attachment: scroll;
    }

    .hero-row {
        flex-direction: column;
    }

    /* Hero: left-aligned copy & CTAs; trust badges stay centered */
    .hero-content {
        text-align: left;
        max-width: 100%;
    }

    .hero-features li {
        justify-content: flex-start;
    }

    .hero-btns {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: 100%;
    }

    .hero-btns .btn {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }

    /* Tablet/mobile: slide-in nav from left — page content does not shift */
    .main-nav {
        justify-content: flex-end;
    }

    .mobile-toggle {
        display: flex;
    }

    .nav-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1001;
        background: rgb(0 0 0 / 0.45);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.25s ease, visibility 0.25s ease;
    }

    .nav-backdrop.is-visible {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-drawer {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: min(88vw, 340px);
        height: 100%;
        height: 100dvh;
        max-height: 100%;
        margin: 0;
        /* Below top bar + header when both visible (tablet) */
        padding: calc(110px + env(safe-area-inset-top, 0px)) 0 env(safe-area-inset-bottom, 0);
        background: var(--white);
        border-right: 1px solid var(--border);
        box-shadow: 4px 0 28px rgb(0 0 0 / 0.18);
        z-index: 1002;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        pointer-events: none;
    }

    .nav-drawer::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, var(--primary), var(--accent));
        z-index: 3;
    }

    .main-nav.nav-open .nav-drawer {
        transform: translateX(0);
        pointer-events: auto;
    }

    .nav-list {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        height: auto;
        width: 100%;
        gap: 0;
        padding: 0;
        margin: 0;
        list-style: none;
        position: static;
        max-height: none;
        overflow: visible;
        box-shadow: none;
        border: none;
        background: transparent;
    }

    .nav-list > li {
        height: auto;
        width: 100%;
        display: block;
    }

    .nav-list > li > a {
        padding: 14px 20px;
        font-size: 1rem;
        border-radius: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
        color: var(--secondary);
        font-weight: 500;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .nav-list > li > a:hover,
    .nav-list > li > a.active {
        color: var(--white);
        background: var(--primary);
    }

    .mega-menu,
    .dropdown-menu {
        position: static;
        transform: none;
        min-width: 100%;
        border: none;
        border-radius: 0;
        box-shadow: none;
        padding: 0 0 10px 20px;
        opacity: 1;
        visibility: visible;
        display: none;
        background: var(--white);
        border-bottom: 1px solid var(--border);
    }

    .mega-narrow {
        min-width: 100%;
    }

    .has-mega:hover .mega-menu,
    .has-mega.open .mega-menu,
    .has-dropdown:hover .dropdown-menu,
    .has-dropdown.open .dropdown-menu {
        display: block;
        transform: none;
    }

    .mega-inner {
        flex-direction: column;
        gap: 16px;
        padding: 16px 0;
    }

    .mega-col .mega-title {
        font-size: 0.7rem;
        margin-bottom: 8px;
    }

    .mega-col ul li a {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .mega-col ul li a:hover,
    .mega-col ul li a.active {
        color: var(--primary);
        background: rgba(var(--primary-rgb), 0.06);
        font-weight: 500;
    }

    .header-cta {
        display: none;
    }

    .main-header {
        z-index: 1003;
    }
    
    .hero-form-wrap {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .quote-form-wrap,
    .contact-form-col {
        padding: 25px;
    }

    .contact-row {
        flex-direction: column;
        gap: 40px;
    }

    .row {
        flex-direction: column;
    }

    .about-grid,
    .content-grid,
    .capability-grid,
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-grid--reverse .about-image-wrap {
        padding-right: 0;
    }

    /* Mobile/tablet: in light sections, keep text above image */
    .bg-light .content-grid .content-text {
        order: 1;
    }

    .bg-light .content-grid .content-image-wrap {
        order: 2;
    }
    
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .quality-highlights {
        grid-template-columns: 1fr;
    }
    
    .inspection-feature-rows {
        grid-template-columns: 1fr;
    }

    .trusted-brands-section .brand-logo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .why-choose-features {
        grid-template-columns: 1fr;
    }
    
    .process-body-split,
    .quality-body-split {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .process-desc {
        max-width: 100%;
    }
    .process-image, .process-list {
        width: 100%;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-intro-grid,
    .split-feature-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid,
    .snapshot-grid,
    .process-grid,
    .quality-grid,
    .application-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }

    /* Header only — drawer clears the fixed header bar */
    .nav-drawer {
        padding-top: calc(80px + env(safe-area-inset-top, 0px));
    }

    .hero-section {
        padding: 100px 0 40px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-btns {
        flex-direction: column;
        gap: 10px;
    }

    .cta-actions {
        flex-direction: column;
        gap: 12px;
    }

    .hero-btns .btn-large {
        width: 100%;
        text-align: center;
        padding: 14px 20px;
    }

    .quote-form-wrap {
        padding: 25px;
    }

    .form-row {
        flex-direction: column;
        gap: 14px;
    }

    .process-timeline,
    .quality-grid,
    .application-grid {
        grid-template-columns: 1fr;
    }

    .why-choose-features {
        grid-template-columns: 1fr;
    }

    .trusted-brands-section .brand-logo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .service-grid {
        grid-template-columns: 1fr;
    }
    
    .process-step {
        width: 100%;
        margin-bottom: 30px;
    }

    .capability-stats {
        grid-template-columns: 1fr;
    }

    .home-proof-card,
    .feature-panel,
    .process-card,
    .stat-card,
    .snapshot-card,
    .quality-card {
        padding: 22px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .experience-badge {
        left: 20px;
        bottom: -20px;
        padding: 20px;
    }
    
    .mobile-sticky-cta {
        display: flex;
    }
    
}

/* Service pages: capability comparison table (e.g. /5-axis/) */
.content-table-wrap {
    overflow-x: auto;
    margin: 1.25rem 0 1.5rem;
    -webkit-overflow-scrolling: touch;
}

table.content-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

table.content-table th,
table.content-table td {
    border: 1px solid var(--border);
    padding: 0.65rem 0.85rem;
    vertical-align: top;
}

table.content-table thead th {
    background: var(--primary);
    color: var(--white);
    font-weight: 700;
    text-align: left;
    border-color: rgba(255, 255, 255, 0.28);
}

table.content-table tbody tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.02);
}

@media (max-width: 640px) {
    table.content-table {
        font-size: 0.875rem;
    }
}