﻿/* ProEDM Parts - Independent Sourcing Agent
   Theme: Deep Teal + Amber  (Industrial / Global Logistics)
   No framework. No build. Pure HTML + CSS.
*/

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

:root {
    --primary:        #0a4d4e;   /* deep teal — main brand */
    --primary-dark:   #073738;   /* deeper teal for hover */
    --primary-light:  #0e6a6b;   /* lighter teal for gradient stops */
    --accent:         #f59e0b;   /* amber — CTAs, highlights, motion */
    --accent-dark:    #d97706;   /* darker amber for hover */
    --ink:            #0f172a;   /* slate — text, dark surfaces */
    --ink-soft:       #1e293b;
    --steel:          #64748b;   /* mid gray — secondary text */
    --mist:           #f8fafc;   /* off-white — backgrounds */
    --cloud:          #e2e8f0;   /* light gray — borders, dividers */
    --white:          #ffffff;
    --gradient:       linear-gradient(135deg, var(--ink) 0%, var(--primary) 50%, var(--accent) 100%);
    --gradient-soft:  linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

html, body {
    overflow-x: hidden;
}

body {
    font-family: 'Segoe UI', Tahoma, system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--primary-dark); }

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--ink);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
}

.section-subtitle {
    text-align: center;
    color: var(--steel);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 3rem;
}

/* === HEADER & NAVIGATION === */
.header {
    background: var(--white);
    border-bottom: 1px solid var(--cloud);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    transition: box-shadow 0.2s ease, background 0.2s ease;
}
.header.scrolled {
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.98);
}

body {
    padding-top: 76px; /* offset for the fixed header */
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo a { display: inline-block; line-height: 0; }
.logo-img { height: 48px; width: auto; transition: opacity 0.2s; }
.logo a:hover .logo-img { opacity: 0.85; }

.nav { display: flex; gap: 2.5rem; }
.nav a {
    color: var(--ink);
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}
.nav a:hover, .nav a.active {
    color: var(--primary);
    border-bottom-color: var(--accent);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span {
    width: 26px;
    height: 2.5px;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.3s;
}

/* === HERO with TRAIN ANIMATION === */
.hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    padding: 6rem 1.5rem;
    text-align: center;
    background: linear-gradient(180deg, var(--ink) 0%, var(--primary-dark) 100%);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at top right, rgba(245, 158, 11, 0.18), transparent 50%),
        radial-gradient(ellipse at bottom left, rgba(14, 106, 107, 0.4), transparent 50%);
    pointer-events: none;
}

/* Subtle dot pattern overlay */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(248, 250, 252, 0.04) 1px, transparent 1px);
    background-size: 80px 100%;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.hero-eyebrow {
    display: inline-block;
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent);
    border: 1px solid rgba(245, 158, 11, 0.3);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero-content h1 {
    color: var(--white);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
}

.hero-content h1 .accent { color: var(--accent); }

.hero-content > p {
    font-size: 1.2rem;
    margin: 0 auto 2.5rem;
    max-width: 720px;
    color: rgba(248, 250, 252, 0.85);
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.25s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent);
    color: var(--ink);
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}
.btn-primary:hover {
    background: var(--accent-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.4);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
    color: var(--white);
}

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

/* === VALUE STRIP === */
.value-prop {
    background: var(--mist);
    padding: 3rem 0;
    border-bottom: 1px solid var(--cloud);
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    text-align: center;
}

.value-item .num {
    font-size: 2.5rem;
    color: var(--primary);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1px;
}
.value-item .label {
    color: var(--steel);
    margin-top: 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
}

/* === SECTIONS (generic) === */
.section { padding: 5rem 0; }
.section-alt { background: var(--mist); }

/* === HOW IT WORKS (process steps) === */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.process-step {
    background: var(--white);
    border: 1px solid var(--cloud);
    border-radius: 10px;
    padding: 2rem 1.5rem;
    position: relative;
    transition: all 0.3s ease;
}
.process-step:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(10, 77, 78, 0.1);
    border-color: var(--primary);
}
.process-step .step-num {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(10, 77, 78, 0.25);
}
.process-step h4 {
    color: var(--ink);
    margin-bottom: 0.5rem;
    font-size: 1.15rem;
}
.process-step p {
    color: var(--steel);
    font-size: 0.95rem;
}

/* === CATEGORY / CARD GRIDS === */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.category-card {
    background: var(--white);
    border: 1px solid var(--cloud);
    border-left: 4px solid var(--accent);
    border-radius: 8px;
    padding: 1.75rem;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}
.category-card:hover {
    transform: translateX(6px);
    box-shadow: 0 8px 24px rgba(10, 77, 78, 0.12);
    border-left-color: var(--primary);
    color: inherit;
}
.category-card h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.15rem;
}
.category-card p {
    color: var(--steel);
    font-size: 0.95rem;
}

/* === FEATURE GRID (Services page) === */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-card {
    background: var(--mist);
    border-radius: 8px;
    padding: 1.5rem;
    border-top: 3px solid var(--accent);
    transition: all 0.3s;
}
.feature-card:hover {
    background: var(--white);
    box-shadow: 0 6px 20px rgba(10, 77, 78, 0.08);
    transform: translateY(-2px);
}
.feature-card h4 {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}
.feature-card ul { list-style: none; }
.feature-card li {
    padding: 0.3rem 0 0.3rem 1.25rem;
    position: relative;
    color: var(--ink-soft);
    font-size: 0.95rem;
}
.feature-card li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

/* === SERVICE SECTIONS (Services page) === */
.service-section {
    margin-bottom: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--cloud);
}
.service-section:last-child { border-bottom: none; }

.service-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}
.service-header h2 {
    color: var(--primary);
    font-size: 2rem;
    margin: 0;
}
.badge {
    background: var(--accent);
    color: var(--ink);
    padding: 0.3rem 0.9rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.service-intro {
    color: var(--steel);
    font-size: 1.1rem;
    max-width: 800px;
    margin-bottom: 1rem;
}

/* === CTA SECTION === */
.cta {
    position: relative;
    overflow: hidden;
    color: var(--white);
    padding: 4rem 1.5rem;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.2), transparent 60%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.cta h2 {
    color: var(--white);
    font-size: 2.2rem;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}
.cta p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.cta .hero-buttons { justify-content: center; }

/* === FOOTER === */
.footer {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.7);
    padding: 3.5rem 0 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1rem;
    letter-spacing: 0.3px;
}
.footer-col p,
.footer-col li {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}
.footer-col ul { list-style: none; }
.footer-col a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.25rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* === CONTACT FORM === */
.contact-section { padding: 4rem 0; }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 3rem;
    align-items: start;
    margin-top: 2rem;
}

.contact-info {
    background: var(--ink);
    color: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.contact-info::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -30%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.25), transparent 70%);
    pointer-events: none;
}

.contact-info h2 {
    color: var(--white);
    margin-bottom: 0.75rem;
}
.contact-info > p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
}

.contact-detail {
    margin-bottom: 1.5rem;
    position: relative;
}
.contact-detail .label {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 0.25rem;
}
.contact-detail a,
.contact-detail .value {
    color: var(--white);
    text-decoration: none;
    font-size: 1rem;
}
.contact-detail a:hover { color: var(--accent); }

.contact-form {
    background: var(--white);
    padding: 2.5rem;
    border: 1px solid var(--cloud);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}
.contact-form h2 {
    color: var(--ink);
    margin-bottom: 0.5rem;
}
.contact-form > p {
    color: var(--steel);
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}
.form-group { margin-bottom: 1rem; }
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--ink);
    font-size: 0.9rem;
}
.form-group label .req { color: var(--accent); }
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border: 1.5px solid var(--cloud);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.2s;
    background: var(--white);
    color: var(--ink);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(10, 77, 78, 0.12);
}
.form-group textarea { min-height: 140px; resize: vertical; }

.btn-submit {
    background: var(--primary);
    color: var(--white);
    border: 2px solid var(--primary);
    padding: 1rem 2rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    transition: all 0.25s;
    font-family: inherit;
    margin-top: 0.5rem;
}
.btn-submit:hover:not(:disabled) {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(10, 77, 78, 0.25);
}
.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-status {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    text-align: center;
    display: none;
}
.form-status.success {
    display: block;
    background: rgba(10, 77, 78, 0.08);
    color: var(--primary-dark);
    border: 1px solid rgba(10, 77, 78, 0.2);
}
.form-status.error {
    display: block;
    background: rgba(220, 38, 38, 0.08);
    color: #b91c1c;
    border: 1px solid rgba(220, 38, 38, 0.2);
}

/* === PAGE HERO (sub-pages) === */
.page-hero {
    background: linear-gradient(180deg, var(--ink) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 4rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top right, rgba(245, 158, 11, 0.15), transparent 50%);
    pointer-events: none;
}
.page-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}
.page-hero h1 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}
.page-hero p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto;
}

/* === STATS GRID (About) === */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}
.stat-card {
    text-align: center;
    padding: 1.5rem;
    background: var(--mist);
    border-radius: 10px;
    border-bottom: 3px solid var(--accent);
}
.stat-card .num {
    font-size: 2.5rem;
    color: var(--primary);
    font-weight: 800;
    line-height: 1;
}
.stat-card .label {
    color: var(--steel);
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .container { padding: 0 1.25rem; }
}

@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1rem 1.5rem;
        box-shadow: 0 8px 20px rgba(0,0,0,0.1);
        z-index: 100;
        gap: 0;
    }
    .nav.active { display: flex; }
    .nav a {
        padding: 0.85rem 0;
        border-bottom: 1px solid var(--cloud);
    }
    .nav a:last-child { border-bottom: none; }
    .nav-toggle { display: flex; }

    .hero { padding: 4rem 1.25rem; }
    .hero-content h1 { font-size: 2.2rem; }
    .section { padding: 4rem 0; }
    .section-title { font-size: 2rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
    .form-row { grid-template-columns: 1fr; }
    .cta h2 { font-size: 1.75rem; }
    .page-hero h1 { font-size: 2rem; }
    .process-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .header-content { padding: 0.75rem 0; }
    .logo-img { height: 38px; }
    .hero { padding: 3rem 1rem; }
    .hero-content h1 { font-size: 1.85rem; }
    .section-title { font-size: 1.6rem; }
    .hero-buttons { flex-direction: column; width: 100%; }
    .btn { width: 100%; justify-content: center; }
    .process-grid { grid-template-columns: 1fr; }
    .value-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
    .value-item .num { font-size: 2rem; }
    .service-header h2 { font-size: 1.5rem; }
    .footer-col { text-align: left; }
}

/* ============================================================
   PART NUMBER SEARCH PAGE — added 2026-07-15
   ============================================================ */

.part-search-form {
    display: flex;
    gap: 0.6rem;
    max-width: 720px;
    margin: 1.75rem auto 0.75rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(245,158,11,0.35);
    border-radius: 10px;
    padding: 0.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}
.part-search-input {
    flex: 1;
    padding: 0.9rem 1rem;
    font-size: 1rem;
    background: #ffffff;
    color: #0f172a;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.part-search-input:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245,158,11,0.25);
}
.part-search-input::placeholder {
    color: #64748b;
}
.part-search-btn {
    white-space: nowrap;
    padding: 0.9rem 1.4rem;
}
.part-search-meta {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    margin-top: 0.5rem;
}
.part-search-meta a {
    color: #f59e0b;
    text-decoration: underline;
}

.part-table-wrap {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(15,23,42,0.06);
}
.part-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}
.part-table th {
    text-align: left;
    padding: 0.85rem 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.part-table td {
    padding: 0.85rem 1rem;
    border-top: 1px solid #e2e8f0;
    color: #0f172a;
    vertical-align: top;
}
.part-table tbody tr:nth-child(even) td {
    background: #f8fafc;
}
.part-table tbody tr:hover td {
    background: #fef3c7;
}
.btn-mini {
    display: inline-block;
    background: #f59e0b;
    color: #0a4d4e;
    padding: 0.45rem 0.9rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s, transform 0.1s;
    white-space: nowrap;
}
.btn-mini:hover {
    background: #fbbf24;
    transform: translateY(-1px);
}
.part-table-footnote {
    margin-top: 1rem;
    color: #64748b;
    font-size: 0.9rem;
    text-align: center;
}
.part-table-footnote a {
    color: #0a4d4e;
    font-weight: 600;
    text-decoration: underline;
}

/* ============================================================
   FAQ — visible accordion (matches JSON-LD FAQPage schema)
   ============================================================ */

.faq-list {
    max-width: 880px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.faq-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #f59e0b;
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
    transition: box-shadow 0.15s, border-color 0.15s;
}
.faq-item[open] {
    box-shadow: 0 6px 20px rgba(15,23,42,0.08);
    border-left-color: #0a4d4e;
}
.faq-item summary {
    padding: 1.1rem 1.4rem;
    cursor: pointer;
    font-size: 1.05rem;
    color: #0f172a;
    list-style: none;
    position: relative;
    user-select: none;
    transition: background 0.15s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 1.4rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    font-weight: 300;
    color: #f59e0b;
    transition: transform 0.2s;
}
.faq-item[open] summary::after {
    content: "−";
    color: #0a4d4e;
}
.faq-item summary:hover {
    background: #f8fafc;
}
.faq-item p {
    padding: 0 1.4rem 1.2rem;
    color: #475569;
    line-height: 1.65;
    margin: 0;
}
.faq-item p a {
    color: #0a4d4e;
    text-decoration: underline;
    font-weight: 500;
}

/* ============================================================
   CTA BLOCK (used on part-number-search and home page)
   ============================================================ */

.cta-block {
    background: linear-gradient(135deg, #0a4d4e 0%, #0f3a3b 100%);
    color: #ffffff;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(10,77,78,0.18);
}
.cta-block h2 {
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.6rem;
}
.cta-block p {
    color: rgba(255,255,255,0.85);
    margin-bottom: 1.5rem;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}
.cta-block .btn {
    display: inline-block;
    width: auto;
}
.cta-block a.btn-primary {
    background: #f59e0b;
    color: #0a4d4e;
}
.cta-block a.btn-primary:hover {
    background: #fbbf24;
}

.cta-section {
    padding: 0;
}

/* ============================================================
   RESPONSIVE — Part Number Search and FAQ
   ============================================================ */

@media (max-width: 720px) {
    .part-search-form {
        flex-direction: column;
    }
    .part-search-btn {
        width: 100%;
    }
    .part-table {
        font-size: 0.85rem;
    }
    .part-table th,
    .part-table td {
        padding: 0.6rem 0.5rem;
    }
    .faq-item summary {
        font-size: 0.98rem;
        padding-right: 2.5rem;
    }
    .cta-block {
        padding: 1.8rem 1.2rem;
    }
    .cta-block h2 {
        font-size: 1.3rem;
    }
}
/* ============================================================
   PART GRID + PART CARDS — for the 213 part database
   ============================================================ */

.part-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.5rem 0 1rem;
    padding: 0.75rem;
    background: #f1f5f9;
    border-radius: 8px;
}
.part-filter-btn {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #0f172a;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.15s;
    font-weight: 500;
}
.part-filter-btn:hover {
    border-color: #f59e0b;
    color: #0a4d4e;
}
.part-filter-btn.active {
    background: #0a4d4e;
    color: #ffffff;
    border-color: #0a4d4e;
}
.browse-meta {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0.5rem 0 1.5rem;
}

.part-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}
.part-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #f59e0b;
    border-radius: 8px;
    padding: 1rem 1.1rem;
    transition: box-shadow 0.15s, transform 0.1s;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.part-card:hover {
    box-shadow: 0 6px 20px rgba(15,23,42,0.10);
    transform: translateY(-2px);
    border-left-color: #0a4d4e;
}
.part-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}
.part-card-pn {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0a4d4e;
    background: #fef3c7;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}
.part-card-oem {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    font-weight: 600;
    background: #f1f5f9;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}
.part-card-desc {
    margin: 0;
    font-size: 0.95rem;
    color: #0f172a;
    line-height: 1.4;
    font-weight: 500;
}
.part-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    font-size: 0.78rem;
    color: #475569;
}
.part-card-cat,
.part-card-engines {
    background: #f1f5f9;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
}
.part-card-detail {
    margin-top: 0.25rem;
}
.part-card-availability {
    margin: 0;
    font-size: 0.82rem;
    color: #0a4d4e;
    line-height: 1.4;
}
.part-card-rfq {
    align-self: flex-start;
    margin-top: 0.4rem;
    background: #f59e0b;
    color: #0a4d4e;
    padding: 0.45rem 0.9rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s, transform 0.1s;
}
.part-card-rfq:hover {
    background: #fbbf24;
    transform: translateY(-1px);
}
.part-grid-footnote {
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* ============================================================
   SEARCH RESULT PANEL (hero live-search)
   ============================================================ */

.search-result-section {
    background: #f8fafc;
    padding: 2.5rem 1rem;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}
.search-result-section .section-title {
    margin-top: 0;
}
.search-result-summary {
    margin-bottom: 1.5rem;
    color: #475569;
    line-height: 1.6;
}
.result-summary-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #0a4d4e;
    border-radius: 8px;
    padding: 1.5rem 1.75rem;
    box-shadow: 0 4px 14px rgba(15,23,42,0.06);
    max-width: 720px;
}
.result-summary-card h3 {
    margin: 0 0 0.5rem;
    color: #0a4d4e;
    font-size: 1.15rem;
}
.result-summary-card p {
    margin: 0.35rem 0;
    color: #475569;
}
.result-badge {
    display: inline-block;
    background: #10b981;
    color: #ffffff;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-right: 0.4rem;
    vertical-align: middle;
}
.result-availability {
    color: #0f172a !important;
    line-height: 1.6;
}
.result-sourcename {
    font-size: 0.85rem;
    color: #94a3b8 !important;
    font-style: italic;
}
.search-result-notfound {
    background: #fef3c7;
    border: 1px solid #fbbf24;
    border-radius: 8px;
    padding: 1.5rem 1.75rem;
    max-width: 720px;
    margin-top: 1rem;
}
.search-result-notfound p {
    margin: 0 0 1rem;
    color: #78350f;
    line-height: 1.6;
}
.search-result-notfound .btn {
    display: inline-block;
    width: auto;
}

/* Compact cards inside the result grid (clone of .part-card) */
.search-result-section .part-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* ============================================================
   RESPONSIVE — Part grid + filters
   ============================================================ */

@media (max-width: 720px) {
    .part-filters {
        padding: 0.5rem;
    }
    .part-filter-btn {
        font-size: 0.78rem;
        padding: 0.4rem 0.7rem;
    }
    .part-grid {
        grid-template-columns: 1fr;
    }
    .result-summary-card {
        padding: 1.1rem 1.2rem;
    }
}
/* ============================================================
   FAQ TAB (collapsed by default) - on /part-number-search
   ============================================================ */

.faq-tab-section {
    padding: 1.5rem 1rem;
}
.faq-tab-wrapper {
    max-width: 880px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(15,23,42,0.04);
    overflow: hidden;
}
.faq-tab-toggle {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    background: transparent;
    border: 0;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s;
    font-family: inherit;
    color: inherit;
}
.faq-tab-toggle:hover {
    background: #f8fafc;
}
.faq-tab-icon {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a4d4e;
    color: #f59e0b;
    border-radius: 50%;
    font-size: 1.4rem;
    font-weight: 700;
    font-family: 'Segoe UI', sans-serif;
    line-height: 1;
}
.faq-tab-label {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.faq-tab-label strong {
    font-size: 1.1rem;
    color: #0f172a;
}
.faq-tab-label small {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 400;
}
.faq-tab-chevron {
    flex: 0 0 auto;
    font-size: 1.4rem;
    color: #f59e0b;
    transition: transform 0.2s ease;
}
.faq-tab-toggle.open .faq-tab-chevron {
    transform: rotate(180deg);
}
.faq-tab-panel {
    border-top: 1px solid #e2e8f0;
    padding: 1.5rem;
    background: #f8fafc;
    animation: faqSlideIn 0.25s ease-out;
}
@keyframes faqSlideIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
    .faq-tab-toggle { padding: 1rem; gap: 0.75rem; }
    .faq-tab-icon { flex-basis: 36px; width: 36px; height: 36px; font-size: 1.1rem; }
    .faq-tab-label strong { font-size: 0.98rem; }
    .faq-tab-label small { font-size: 0.78rem; }
}
/* ============================================================
   SECONDARY ACTION LINK (after search result)
   ============================================================ */

.result-secondary-actions {
    margin-top: 2rem;
    text-align: center;
}
.link-button {
    background: transparent;
    border: 1px dashed #cbd5e1;
    color: #0a4d4e;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    transition: all 0.15s;
}
.link-button:hover {
    border-style: solid;
    border-color: #0a4d4e;
    background: #f1f5f9;
}