/**
 * Spare Parts — Hub + Sub-pages
 * Seaway Ship Services
 * Shared stylesheet for spare-parts.php and all spare-parts-*.php
 */

/* ============================================================
   HUB PAGE — Hero
   ============================================================ */
.sp-hero {
    background: #0a1628;
    color: #fff;
    padding: 80px 24px 60px;
    text-align: center;
}

.sp-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin: 0 0 16px;
    color: #fff;
    letter-spacing: -0.5px;
}

.sp-hero-subline {
    font-size: 1.1rem;
    color: #a8bdd4;
    max-width: 640px;
    margin: 0 auto 36px;
    line-height: 1.6;
}

.sp-stats {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

.sp-stat {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 100px;
    padding: 10px 24px;
    font-size: 0.9rem;
    color: #fff;
}

.sp-stat strong {
    font-weight: 700;
    color: #5BC4FF;
    margin-right: 6px;
}

/* ============================================================
   HUB PAGE — Brand Logos Strip
   ============================================================ */
.sp-brands {
    background: #f5f7fa;
    padding: 40px 24px;
    text-align: center;
}

.sp-brands h2 {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #7a8fa6;
    margin: 0 0 24px;
}

.sp-brands-strip {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.sp-brands-strip::-webkit-scrollbar {
    display: none;
}

.sp-brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    margin: 0 20px;
    vertical-align: middle;
    opacity: 0.6;
    transition: opacity 0.2s;
    flex-shrink: 0;
}

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

.sp-brand-logo img {
    height: 36px;
    max-width: 90px;
    width: auto;
    object-fit: contain;
    filter: grayscale(1);
    transition: filter 0.2s;
}

.sp-brand-logo:hover img {
    filter: none;
}

/* ============================================================
   HUB PAGE — Category Cards
   ============================================================ */
.sp-categories {
    background: #fff;
    padding: 64px 24px;
}

.sp-categories-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.sp-section-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #0a1628;
    text-align: center;
    margin: 0 0 8px;
}

.sp-section-subtitle {
    color: #6b7e96;
    text-align: center;
    font-size: 1rem;
    margin: 0 0 40px;
}

.sp-card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (min-width: 768px) {
    .sp-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .sp-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.sp-card {
    display: flex;
    flex-direction: column;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 28px 24px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.sp-card:hover {
    border-color: #0a6abf;
    box-shadow: 0 4px 20px rgba(10,106,191,0.12);
    transform: translateY(-2px);
    text-decoration: none;
}

.sp-card-icon {
    font-size: 2rem;
    margin-bottom: 14px;
    line-height: 1;
}

.sp-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0a1628;
    margin: 0 0 8px;
}

.sp-card p {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0 0 16px;
    line-height: 1.5;
    flex: 1;
}

.sp-card-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: #0a6abf;
    margin-top: auto;
}

/* ============================================================
   HUB PAGE — CTA Strip
   ============================================================ */
.sp-cta {
    background: #0a1628;
    color: #fff;
    text-align: center;
    padding: 60px 24px;
}

.sp-cta h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 12px;
}

.sp-cta p {
    color: #a8bdd4;
    font-size: 1rem;
    margin: 0 0 28px;
}

.sp-cta-btn {
    display: inline-block;
    background: #0a6abf;
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s;
}

.sp-cta-btn:hover {
    background: #085fa8;
    text-decoration: none;
    color: #fff;
}

/* ============================================================
   MAIN ENGINE PAGE — Jump Index
   ============================================================ */
.me-jump-bar {
    background: #f0f4f8;
    border-bottom: 1px solid #dde4ed;
    padding: 0;
    position: sticky;
    top: 70px;
    z-index: 90;
}

.me-jump-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    display: flex;
    gap: 4px;
    -webkit-overflow-scrolling: touch;
}

.me-jump-inner::-webkit-scrollbar {
    display: none;
}

.me-jump-link {
    display: inline-block;
    padding: 12px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #3d5a7a;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: color 0.15s, border-color 0.15s;
    white-space: nowrap;
}

.me-jump-link:hover {
    color: #0a6abf;
    border-bottom-color: #0a6abf;
    text-decoration: none;
}

/* ============================================================
   MAIN ENGINE PAGE — Brand Blocks
   ============================================================ */
.me-brands-section {
    background: #fff;
    padding: 48px 24px;
}

.me-brands-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.me-brand-block {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 32px 28px;
    scroll-margin-top: 130px;
}

.me-brand-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.me-brand-logo {
    height: auto;
    max-height: 36px;
    max-width: 160px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
    background: white;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.me-brand-name {
    font-size: 1.2rem;
    font-weight: 800;
    color: #0a1628;
    margin: 0;
}

.me-brand-tagline {
    font-size: 0.85rem;
    color: #64748b;
    margin: 4px 0 0;
}

.me-series-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7a8fa6;
    margin: 16px 0 8px;
}

.me-engine-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.me-engine-pill {
    background: #e8f0fb;
    color: #0a4a8c;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 100px;
    white-space: nowrap;
}

.me-pill-historical {
    background: #f1f5f9;
    color: #64748b;
}

.me-brand-req {
    display: inline-block;
    margin-top: 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #0a6abf;
    text-decoration: none;
}

.me-brand-req:hover {
    text-decoration: underline;
}

/* ============================================================
   MAIN ENGINE PAGE — Parts Categories Strip
   ============================================================ */
.me-parts-strip {
    background: #0a1628;
    padding: 40px 24px;
    text-align: center;
}

.me-parts-strip h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 20px;
}

.me-parts-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.me-parts-badge {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 100px;
}

/* ============================================================
   SUB-PAGE — Brands strip (shared badge bar)
   ============================================================ */
.sp-brand-strip {
    background: #f5f7fa;
    padding: 32px 24px;
    text-align: center;
}

.sp-brand-strip h3 {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #7a8fa6;
    margin: 0 0 16px;
}

.sp-brand-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.sp-brand-badge {
    background: #fff;
    border: 1px solid #dde4ed;
    color: #3d5a7a;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 100px;
}

/* ============================================================
   MAIN ENGINE PAGE — Hero / Intro overrides (tighter than cp defaults)
   ============================================================ */
.me-page .cp-hero {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.me-page .cp-hero h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.me-page .cp-subline {
    margin-bottom: 1rem;
}

.me-page .cp-stats {
    margin-top: 1rem;
}

.me-page .cp-section {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
    .sp-hero {
        padding: 60px 16px 44px;
    }

    .sp-card-grid {
        grid-template-columns: 1fr;
    }

    .sp-stats {
        gap: 10px;
    }

    .me-brand-block {
        padding: 20px 16px;
    }
}
