@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@500;600;700;800&family=IBM+Plex+Mono:wght@400;500;600&family=IBM+Plex+Sans:wght@400;500;600&display=swap');

/* ===========================
   DESIGN TOKENS
   =========================== */
:root {
    --brand: #800000;
    --brand-dark: #5c0000;
    --brand-light: #9e1b1b;
    --blue: #003a6b;
    --blue-soft: #0a4f8a;

    --ink: #1b1715;
    --ink-soft: #514a45;
    --ink-faint: #8a807a;

    --paper: #ffffff;
    --bg: #f6f2ee;
    --bg-warm: #efe8e1;
    --line: #e2d8cf;
    --line-strong: #d2c5b9;

    --font-display: 'Archivo', system-ui, sans-serif;
    --font-body: 'IBM Plex Sans', system-ui, sans-serif;
    --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

    --shadow-sm: 0 1px 2px rgba(27, 23, 21, 0.06);
    --shadow-md: 0 10px 30px -12px rgba(27, 23, 21, 0.22);
    --shadow-lg: 0 24px 50px -20px rgba(92, 0, 0, 0.30);

    --maxw: 1180px;
    --content: calc(var(--maxw) - 80px);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 170px;
}

body {
    font-family: var(--font-body);
    line-height: 1.65;
    color: var(--ink);
    background-color: var(--bg);
    padding-top: 150px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Shared kicker / eyebrow */
.eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 16px;
}

/* ===========================
   HEADER: LOGO + NAV
   =========================== */
.logo-section {
    text-align: center;
    background-color: var(--paper);
    position: fixed;
    width: 100%;
    transition: top 0.3s;
    z-index: 1000;
    top: 0;
    border-bottom: 1px solid var(--line);
}

.logo-section img {
    max-height: 84px;
    width: auto;
    margin: 8px 0;
}

.logo-section h1 {
    font-family: var(--font-display);
    font-size: 2.4rem;
    color: var(--brand);
    font-weight: 800;
    letter-spacing: -0.02em;
}

nav {
    background-color: var(--brand);
    background-image: linear-gradient(180deg, var(--brand) 0%, var(--brand-dark) 100%);
    padding: 16px 0;
    position: fixed;
    width: 100%;
    z-index: 1000;
    top: 100px;
    box-shadow: 0 6px 22px -10px rgba(0, 0, 0, 0.5);
}

.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background-color: white;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

.nav-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
}

.nav-menu li a {
    position: relative;
    color: rgba(255, 255, 255, 0.86);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 8px 18px;
    border-radius: 4px;
    transition: color 0.25s, background-color 0.25s;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 2px;
    height: 2px;
    background-color: #fff;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.28s ease;
}

.nav-menu li a:hover {
    color: #fff;
}

.nav-menu li a:hover::after,
.nav-menu li a.active::after {
    transform: scaleX(1);
}

.nav-menu li a.active {
    color: #fff;
}

/* ===========================
   HOME HERO
   =========================== */
.hero {
    display: flex;
    align-items: center;
    padding: 80px 40px;
    background-color: var(--paper);
    gap: 60px;
    max-width: var(--maxw);
    margin: 0 auto;
}

.hero-image {
    flex: 1;
    background-color: var(--blue);
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    padding: 22px;
    box-shadow: var(--shadow-md);
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 2px;
}

.hero-content { flex: 1; }

.hero-content h2 {
    font-family: var(--font-display);
    font-size: 3rem;
    line-height: 1.05;
    color: var(--brand);
    margin-bottom: 24px;
    letter-spacing: -0.025em;
    font-weight: 800;
    text-align: left;
}

.hero-content p {
    font-size: 1.08rem;
    color: var(--ink-soft);
    line-height: 1.8;
    margin-bottom: 16px;
    max-width: 52ch;
}

/* ===========================
   PAGE HERO (inner pages)
   =========================== */
.page-hero {
    position: relative;
    background-color: var(--brand-dark);
    background-image:
        radial-gradient(120% 140% at 85% -10%, rgba(255, 255, 255, 0.14) 0%, transparent 45%),
        linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    color: #fff;
    text-align: center;
    padding: 90px 40px 78px;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 64px);
    pointer-events: none;
}

.page-hero::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 64px;
    height: 4px;
    background-color: #fff;
    opacity: 0.85;
}

.page-hero .eyebrow {
    color: rgba(255, 255, 255, 0.78);
    position: relative;
}

.page-hero h1 {
    position: relative;
    font-family: var(--font-display);
    font-size: 3.4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.02;
    margin-bottom: 18px;
}

.page-hero p {
    position: relative;
    font-size: 1.15rem;
    max-width: 760px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
}

/* ===========================
   CONTENT SECTIONS
   =========================== */
.content-section {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 78px 40px;
}

.content-section.alt {
    background-color: var(--bg-warm);
    max-width: 100%;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.content-section.alt .inner {
    max-width: var(--content);
    margin: 0 auto;
}

.content-section h2 {
    font-family: var(--font-display);
    font-size: 2.1rem;
    font-weight: 700;
    color: var(--brand);
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 12px;
    padding-bottom: 18px;
    position: relative;
}

.content-section.centered { text-align: center; }
.content-section.centered h2::after { left: 50%; transform: translateX(-50%); }
.content-section.centered p { margin-left: auto; margin-right: auto; }

.content-section h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 56px;
    height: 3px;
    background-color: var(--brand);
}

.content-section h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--blue);
    letter-spacing: -0.01em;
    margin: 28px 0 14px;
}

.content-section p {
    font-size: 1.05rem;
    color: var(--ink-soft);
    margin-bottom: 16px;
    line-height: 1.8;
    max-width: 70ch;
}

.content-section ul {
    margin: 16px 0 16px 22px;
    color: var(--ink-soft);
}

.content-section ul li {
    margin-bottom: 8px;
    line-height: 1.7;
}

/* ===========================
   TIMELINE (compact, left rail)
   =========================== */
.timeline {
    position: relative;
    max-width: 820px;
    margin: 36px 0 8px;
    padding-left: 28px;
    border-left: 2px solid var(--line-strong);
}

.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 20px;
    align-items: baseline;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.timeline-item:last-child { border-bottom: none; }

.timeline-item::before {
    content: '';
    position: absolute;
    left: -36px;
    top: 19px;
    width: 10px;
    height: 10px;
    background-color: var(--paper);
    border: 2px solid var(--brand);
    border-radius: 50%;
}

.timeline-year {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--brand);
}

.timeline-content p {
    margin: 0;
    font-size: 0.98rem;
    color: var(--ink-soft);
    line-height: 1.6;
}

/* Award highlights */
.timeline-item.highlight {
    background-color: var(--paper);
    border: 1px solid var(--line);
    border-left: 3px solid var(--brand);
    border-radius: 3px;
    padding: 12px 16px;
    margin: 6px 0 6px -19px;
}

.timeline-item.highlight::before {
    left: -17px;
    background-color: var(--brand);
}

.timeline-item.highlight .timeline-content p { color: var(--ink); font-weight: 500; }

.award-tag {
    display: inline-block;
    margin-left: 8px;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    background-color: var(--brand);
    padding: 2px 7px;
    border-radius: 2px;
    vertical-align: middle;
}

/* ===========================
   CARDS
   =========================== */
.industry-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 22px;
    margin: 34px 0 4px;
}

.industry-cards.three-up {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

@media (min-width: 1000px) {
    .industry-cards.three-up { grid-template-columns: repeat(3, 1fr); }
}

.industry-cards.three-up .card-thumb {
    width: 140px;
    border: 1px solid var(--line);
    margin-left: auto;
    margin-right: auto;
}

.industry-cards.three-up h3 { text-align: center; }

.industry-card {
    background-color: var(--paper);
    border: 1px solid var(--line);
    border-top: 3px solid var(--brand);
    border-radius: 4px;
    padding: 30px 26px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.industry-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.industry-card h3 {
    font-family: var(--font-display);
    color: var(--ink);
    font-size: 1.25rem;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.industry-card p {
    font-size: 0.97rem;
    color: var(--ink-soft);
    line-height: 1.65;
    margin: 0;
}

/* Icon placeholder (where a real icon/graphic will go) */
.card-icon-ph {
    width: 54px;
    height: 54px;
    border: 1.5px dashed var(--line-strong);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-bottom: 18px;
    background-color: var(--bg);
}

/* Numbered cards (e.g., quality principles) */
.num-card {
    background-color: var(--paper);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 30px 26px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.num-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.num-card .num {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 600;
    color: var(--brand);
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 14px;
}

.num-card .num::before {
    content: '';
    display: inline-block;
    width: 28px;
    height: 2px;
    background-color: var(--brand);
    vertical-align: middle;
    margin-right: 10px;
}

.num-card h3 {
    font-family: var(--font-display);
    color: var(--ink);
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.num-card p {
    font-size: 0.97rem;
    color: var(--ink-soft);
    margin: 0;
    line-height: 1.65;
}

/* ===========================
   TAG GRID (materials)
   =========================== */
.tag-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 12px;
    margin: 30px 0 4px;
}

.tag-grid .tag {
    background-color: var(--paper);
    border: 1px solid var(--line);
    border-left: 3px solid var(--brand);
    color: var(--ink);
    padding: 14px 18px;
    border-radius: 3px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.tag-grid .tag:hover {
    border-left-color: var(--blue);
    box-shadow: var(--shadow-sm);
}

/* ===========================
   SERVICE BLOCKS
   =========================== */
.service-block {
    display: flex;
    gap: 48px;
    align-items: flex-start;
    padding: 52px 0;
    border-bottom: 1px solid var(--line);
}

.service-block:last-child { border-bottom: none; }
.service-block.reverse { flex-direction: row-reverse; }

.service-text { flex: 1.5; }

.service-text ul {
    margin: 16px 0 16px 22px;
    color: var(--ink-soft);
}

.service-text ul li {
    margin-bottom: 8px;
    line-height: 1.7;
}

/* Image placeholder block */
.service-image {
    flex: 1;
    min-height: 280px;
    background-color: var(--bg);
    border: 1.5px dashed var(--line-strong);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 28px;
    gap: 10px;
}

.service-image .ph-tag {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-faint);
    border: 1px solid var(--line-strong);
    border-radius: 3px;
    padding: 4px 10px;
}

.service-image .ph-desc {
    font-size: 0.95rem;
    color: var(--ink-soft);
    max-width: 26ch;
}

/* ===========================
   CERTIFICATION BOX
   =========================== */
.cert-box {
    background-color: var(--paper);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 32px;
    margin: 26px 0;
    box-shadow: var(--shadow-sm);
}

.cert-box h3 {
    font-family: var(--font-display);
    color: var(--brand);
    margin-top: 0;
    font-size: 1.3rem;
}

.cert-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cert-head .cert-logo { margin: 0; flex-shrink: 0; }

.cert-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 22px 0;
}

.cert-details div {
    padding: 12px 14px;
    background-color: var(--bg);
    border-left: 3px solid var(--blue);
    border-radius: 2px;
    font-family: var(--font-mono);
    font-size: 0.88rem;
    color: var(--ink-soft);
}

.cert-details strong {
    color: var(--brand);
    font-weight: 600;
}

/* ===========================
   BUTTONS
   =========================== */
.cert-download,
.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 18px;
    padding: 14px 28px;
    background-color: var(--brand);
    color: #fff;
    text-decoration: none;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.25s, transform 0.2s, box-shadow 0.25s;
}

.cert-download:hover,
.btn-submit:hover {
    background-color: var(--brand-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===========================
   QUALITY / APQP TOOLS LIST
   =========================== */
.tools-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin: 28px 0 24px;
}

.tool-item {
    background-color: var(--paper);
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-left: 3px solid var(--brand);
    border-radius: 3px;
    font-size: 0.96rem;
    color: var(--ink-soft);
    line-height: 1.6;
    transition: box-shadow 0.25s, transform 0.25s;
}

.tools-list > .tool-item:last-child:nth-child(odd) { grid-column: 1 / -1; }

.tool-item:hover {
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.tool-item strong { color: var(--brand); }

/* ===========================
   CONTACT / FORM
   =========================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 44px;
    margin-top: 34px;
}

.contact-info-box {
    background-color: var(--bg-warm);
    padding: 34px;
    border-radius: 4px;
    border-left: 4px solid var(--brand);
}

.contact-info-box h3 {
    font-family: var(--font-display);
    color: var(--brand);
    margin-bottom: 18px;
    font-size: 1.35rem;
}

.contact-info-box p { margin-bottom: 14px; color: var(--ink-soft); }
.contact-info-box strong { color: var(--ink); }

.rfp-form {
    background-color: var(--paper);
    padding: 34px;
    border-radius: 4px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

.rfp-form h3 {
    font-family: var(--font-display);
    color: var(--brand);
    margin-bottom: 6px;
    font-size: 1.35rem;
}

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

.form-group label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: 7px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid var(--line-strong);
    border-radius: 3px;
    font-size: 1rem;
    font-family: var(--font-body);
    color: var(--ink);
    background-color: var(--bg);
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand);
    background-color: var(--paper);
    box-shadow: 0 0 0 3px rgba(128, 0, 0, 0.10);
}

.full-map {
    width: 100%;
    height: 420px;
    border-radius: 4px;
    margin-top: 28px;
    border: 1px solid var(--line);
}

/* ===========================
   FEATURES (Home)
   =========================== */
.features {
    background-color: var(--blue);
    background-image: linear-gradient(160deg, var(--blue) 0%, #002a4d 100%);
    padding: 78px 40px;
    color: #fff;
}

.features-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 44px;
    max-width: var(--content);
    margin: 0 auto;
}

.feature-box { text-align: left; }

.feature-box h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.28);
    letter-spacing: -0.01em;
}

.feature-box p {
    font-size: 0.98rem;
    line-height: 1.7;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.86);
}

.feature-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 12px 22px;
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    border-radius: 3px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
    transition: background-color 0.25s, border-color 0.25s, transform 0.2s;
    width: auto;
    height: auto;
}

.feature-more::after { content: '\2192'; }

.feature-more:hover {
    background-color: #fff;
    color: var(--blue);
    border-color: #fff;
    transform: translateX(3px);
}

/* ===========================
   HOME CONTACT + MAP
   =========================== */
.home-contact {
    display: flex;
    padding: 56px 40px;
    background-color: var(--paper);
    gap: 48px;
    max-width: var(--maxw);
    margin: 0 auto;
    border-top: 1px solid var(--line);
}

.footer-contact { flex: 1; }

.footer-contact h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--brand);
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.footer-contact p {
    margin-bottom: 12px;
    font-size: 0.98rem;
    color: var(--ink-soft);
}

.footer-contact strong { color: var(--ink); }

.footer-contact a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 13px 26px;
    background-color: var(--brand);
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: background-color 0.25s, transform 0.2s;
}

.footer-contact a:hover {
    background-color: var(--brand-light);
    transform: translateY(-2px);
}

.footer-map {
    flex: 1;
    background-color: var(--bg);
    min-height: 250px;
    border-radius: 4px;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--line);
}

.footer-map iframe {
    width: 100%;
    height: 100%;
    min-height: 250px;
    border: 0;
}

/* ===========================
   FOOTER / SITE MAP
   =========================== */
footer.sitemap {
    background-color: var(--brand-dark);
    background-image: linear-gradient(180deg, var(--brand) 0%, var(--brand-dark) 100%);
    color: rgba(255, 255, 255, 0.8);
    padding: 56px 40px 28px;
}

.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 32px 22px;
    max-width: var(--content);
    margin: 0 auto;
}

.sitemap-head {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
    padding-bottom: 10px;
    margin-bottom: 12px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.35);
}

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

.sitemap-col li { margin-bottom: 8px; line-height: 1.4; }

.sitemap-col li a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    transition: color 0.2s;
}

.sitemap-head:hover,
.sitemap-col li a:hover {
    color: #fff;
    text-decoration: underline;
}

.sitemap-copy {
    max-width: var(--content);
    margin: 44px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
}

/* ===========================
   LOGO PLACEHOLDER (pending artwork)
   =========================== */
.logo-ph {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    height: 48px;
    padding: 0 16px;
    margin-bottom: 16px;
    border: 1.5px dashed rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

.logo-ph.dark {
    border-color: var(--line-strong);
    color: var(--ink-faint);
    background-color: var(--bg);
    margin-top: 8px;
}

.cert-logo {
    display: block;
    width: 110px;
    height: auto;
    padding: 10px;
    margin: 4px 0 18px;
    background-color: #fff;
    border-radius: 3px;
    border: 1px solid var(--line);
}

/* ===========================
   ASSOCIATIONS (Home)
   =========================== */
.assoc-logos {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

.assoc-logos a {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border-radius: 3px;
    padding: 10px 14px;
    transition: transform 0.2s;
}

.assoc-logos a:hover { transform: translateX(3px); }

.assoc-logos img {
    max-height: 36px;
    max-width: 100%;
    width: auto;
}

/* ===========================
   INDUSTRY LETTER ICONS
   =========================== */
.card-icon {
    width: 54px;
    height: 54px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
    background-color: var(--brand);
    background-image: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    margin-bottom: 18px;
}

.card-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 3px;
    margin-bottom: 18px;
}

/* ===========================
   CUSTOMERS (About)
   =========================== */
.customer-logos {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    margin: 30px 0 8px;
}

.customer-logo {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--paper);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 30px 14px 18px;
    text-align: center;
    text-decoration: none;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.customer-logo:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand);
}

/* Fixed-height box so every logo carries the same visual weight */
.customer-logo .logo-box {
    height: 64px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.customer-logo img {
    max-height: 48px;
    max-width: 82%;
    width: auto;
    object-fit: contain;
}

.customer-name {
    font-size: 0.86rem;
    font-weight: 500;
    color: var(--ink-soft);
    line-height: 1.35;
}

.customer-ribbon {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    background-color: var(--brand);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 3px;
}

.award-note {
    font-size: 0.95rem;
    color: var(--brand);
    font-weight: 500;
    margin-top: 14px;
}

.content-section h3.also-trusted {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin: 40px 0 14px;
}

.content-section ul.customer-list {
    list-style: none;
    margin: 0;
    columns: 3;
    column-gap: 40px;
    border-top: 1px solid var(--line);
    padding-top: 16px;
}

.content-section ul.customer-list li {
    break-inside: avoid;
    padding: 6px 0 6px 16px;
    margin: 0;
    position: relative;
    color: var(--ink-soft);
}

.customer-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 6px;
    height: 6px;
    background-color: var(--brand);
    transform: translateY(-50%);
}

/* ===========================
   MEDIA SPLIT (text + image)
   =========================== */
.media-split {
    display: flex;
    align-items: center;
    gap: 40px;
    margin: 8px 0;
}

.media-text { flex: 1.5; }

.media-split > .photo-pair,
.media-split > .job-logo {
    flex: 1;
    min-width: 0;
}

/* Keep single photos at natural size so low-res images don't upscale */
.media-split > .photo {
    flex: 0 1 auto;
    max-width: 40%;
}

.media-split > .photo.photo-sm { max-width: 30%; }

.photo {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
}

.photo-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.photo-pair .photo {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.photo-pair.lab {
    margin-top: 28px;
    text-align: left;
}

.service-image.has-photo {
    margin-top: 28px;
    padding: 0;
    border: none;
    overflow: hidden;
    min-height: 0;
    box-shadow: var(--shadow-md);
}

.service-image.has-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-image.wide-ph {
    min-height: 220px;
    margin-top: 28px;
}

.service-image.wide-ph .ph-desc { max-width: none; }

/* ===========================
   CAREERS
   =========================== */
.job-card {
    background-color: var(--paper);
    border: 1px solid var(--line);
    border-left: 4px solid var(--brand);
    border-radius: 4px;
    padding: 32px;
    margin-top: 26px;
    box-shadow: var(--shadow-sm);
}

.job-card h3 { margin-top: 0; }
.job-card ul + .cert-download { margin-top: 8px; }

.job-date {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-bottom: 14px;
}

.job-logo {
    display: flex;
    justify-content: center;
}

.job-logo img { max-width: 165px; height: auto; }

.content-section p a:not(.cert-download):not(.back-link) {
    color: var(--brand);
}

.back-link {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand);
    text-decoration: none;
}

.back-link:hover { text-decoration: underline; }

/* ===========================
   BUTTONS (generic)
   =========================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 14px 26px;
    border-radius: 3px;
    border: 1.5px solid var(--brand);
    background-color: var(--brand);
    color: #fff;
    text-decoration: none;
    transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.2s;
}

.btn:hover { background-color: var(--brand-light); border-color: var(--brand-light); transform: translateY(-2px); }

.btn-outline { background-color: transparent; color: var(--brand); }
.btn-outline:hover { background-color: var(--brand); color: #fff; }

.btn-light { background-color: #fff; border-color: #fff; color: var(--brand); }
.btn-light:hover { background-color: var(--bg); border-color: var(--bg); }

.btn-outline-light { background-color: transparent; border-color: rgba(255, 255, 255, 0.7); color: #fff; }
.btn-outline-light:hover { background-color: #fff; border-color: #fff; color: var(--brand); }

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

/* ===========================
   HOME: STATS STRIP
   =========================== */
.stats-strip {
    background-color: var(--paper);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 40px;
}

.stats-inner {
    max-width: var(--content);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
}

.stat {
    padding: 4px 22px;
    border-left: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stat:first-child { border-left: none; padding-left: 0; }

.stat-num {
    font-family: var(--font-display);
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--brand);
}

.stat-num small {
    font-size: 0.9rem;
    font-weight: 700;
    margin-left: 3px;
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-soft);
    line-height: 1.5;
}

/* ===========================
   HOME: INDUSTRIES STRIP
   =========================== */
.ind-strip {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    margin-top: 28px;
}

.ind-tile {
    display: flex;
    flex-direction: column;
    background-color: var(--paper);
    border: 1px solid var(--line);
    border-radius: 4px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.25s, box-shadow 0.25s;
}

.ind-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.ind-tile img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.ind-tile span {
    padding: 12px 10px;
    text-align: center;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--ink);
}

/* ===========================
   HOME: CUSTOMER LOGO ROW
   =========================== */
.logo-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 28px 36px;
    align-items: center;
    margin: 34px 0 6px;
}

.logo-row a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 56px;
}

.logo-row img {
    max-height: 44px;
    max-width: 100%;
    width: auto;
    filter: grayscale(1);
    opacity: 0.65;
    mix-blend-mode: multiply;
    transition: filter 0.3s, opacity 0.3s;
}

.logo-row a:hover img { filter: none; opacity: 1; }

/* ===========================
   HOME: HIRING TEASER
   =========================== */
.hiring {
    background-color: var(--brand-dark);
    background-image:
        radial-gradient(120% 140% at 85% -10%, rgba(255, 255, 255, 0.14) 0%, transparent 45%),
        linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    color: #fff;
    padding: 64px 40px;
}

.hiring-inner {
    max-width: var(--content);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hiring .eyebrow { color: rgba(255, 255, 255, 0.78); }

.hiring h2 {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.hiring p {
    max-width: 62ch;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.7;
}

.hiring-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-shrink: 0;
}

/* ===========================
   LOAD ANIMATIONS
   =========================== */
@keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

.page-hero .eyebrow { animation: rise 0.6s ease both; }
.page-hero h1 { animation: rise 0.6s ease 0.08s both; }
.page-hero p  { animation: rise 0.6s ease 0.16s both; }

.hero-content .eyebrow { animation: rise 0.6s ease both; }
.hero-content h2 { animation: rise 0.6s ease 0.08s both; }
.hero-content p  { animation: rise 0.6s ease 0.16s both; }

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 1100px) {
    .stats-inner { grid-template-columns: repeat(3, 1fr); row-gap: 24px; }
    .stat:nth-child(4) { border-left: none; padding-left: 0; }
    .ind-strip { grid-template-columns: repeat(3, 1fr); }
    .customer-logos { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    body { padding-top: 132px; }

    .logo-section img { max-height: 64px; }

    .hamburger { display: flex; }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 100%;
        flex-direction: column;
        background-color: var(--brand-dark);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        gap: 0;
        padding: 16px 0;
        box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
    }

    .nav-menu.active { left: 0; }
    .nav-menu li { padding: 6px 0; }
    .nav-menu li a { display: block; padding: 14px 20px; }
    .nav-menu li a::after { display: none; }

    .hero {
        flex-direction: column;
        padding: 48px 22px;
        gap: 32px;
    }

    .hero-content h2 { font-size: 2.2rem; text-align: left; }

    .page-hero { padding: 60px 22px 52px; }
    .page-hero h1 { font-size: 2.2rem; }
    .page-hero p { font-size: 1.02rem; }

    .features { padding: 52px 22px; }
    .features-container { grid-template-columns: 1fr; gap: 36px; }

    .home-contact { flex-direction: column; padding: 40px 22px; }
    footer.sitemap { padding: 44px 22px 24px; }
    .sitemap-grid { grid-template-columns: repeat(2, 1fr); }

    .content-section { padding: 52px 22px; }
    .content-section h2 { font-size: 1.7rem; }

    .timeline { padding-left: 20px; }
    .timeline-item { grid-template-columns: 1fr; gap: 2px; }
    .timeline-item::before { left: -28px; }
    .timeline-item.highlight::before { left: -9px; }

    .service-block,
    .service-block.reverse { flex-direction: column; gap: 26px; }

    .media-split { flex-direction: column; align-items: stretch; gap: 24px; }
    .tools-list { grid-template-columns: 1fr; }
    .tag-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .tag-grid .tag { padding: 12px 14px; font-size: 0.88rem; }
    .service-image.has-photo { margin-top: 0; }
    .cert-head { flex-direction: column; align-items: flex-start; }
    .media-split > .photo,
    .media-split > .photo.photo-sm { max-width: 100%; align-self: center; }
    .customer-logos { grid-template-columns: repeat(2, 1fr); }
    .content-section ul.customer-list { columns: 2; column-gap: 20px; }
    .job-card { padding: 24px 20px; }

    .stats-strip { padding: 28px 22px; }
    .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 22px 0; }
    .stat, .stat:first-child { border-left: none; padding: 0 12px 0 0; }
    .stat-num { font-size: 1.5rem; }
    .ind-strip { grid-template-columns: repeat(2, 1fr); }
    .logo-row { grid-template-columns: repeat(2, 1fr); gap: 22px; }
    .hiring { padding: 48px 22px; }
    .hiring-inner { flex-direction: column; align-items: flex-start; }
    .hiring-actions { width: 100%; }

    .contact-grid { grid-template-columns: 1fr; gap: 28px; }
    .cert-details { grid-template-columns: 1fr; }
}
