/* =========================================================================
   Inner page styles — shared across:
     /about-us/, /support/, /shop-by-brand/, /shop/, /shop-by-vehicle/,
     /product-finder/, /software/, /adapters-cables/
   Composes the existing tokens from hdt.css. Adds patterns the homepage
   doesn't need (page hero with breadcrumb, stats strip, support pillars,
   brand grid, vehicle classes, product-finder form, etc.).
   ========================================================================= */

/* ---- Page hero (dark band, breadcrumb, eyebrow, h1, sub, CTAs) ----- */
.page-hero {
    position: relative;
    background: #111;
    color: #fff;
    overflow: hidden;
    padding: 56px 0 64px;
    border-bottom: 4px solid #d71920;
}
.page-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    opacity: 0.55;
    z-index: 0;
}
.page-hero__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #111 5%, rgba(17, 17, 17, 0.7) 45%, rgba(17, 17, 17, 0.05) 100%);
}
.page-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 760px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.page-crumb {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #b8b8b8;
    display: flex;
    gap: 8px;
    align-items: center;
}
.page-crumb a { color: #b8b8b8; text-decoration: none; }
.page-crumb a:hover { color: #fff; }
.page-crumb__current { color: #d71920; font-weight: 700; }

.page-hero .eyebrow {
    color: #fff;
    background: #d71920;
    align-self: flex-start;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.page-hero h1 {
    font-family: 'Roboto Condensed', 'Inter', sans-serif;
    font-weight: 900;
    font-size: clamp(36px, 4.6vw, 56px);
    line-height: 1.05;
    margin: 4px 0;
    letter-spacing: -0.01em;
    color: #fff;
}
.page-hero h1 .accent { color: #d71920; }
.page-hero p.lede {
    font-size: 17px;
    line-height: 1.55;
    color: #d4d4d4;
    margin: 0;
    max-width: 620px;
}
.page-hero__actions {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    flex-wrap: wrap;
}
.page-hero__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}
.page-hero__chips span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}
.page-hero__chips svg { width: 16px; height: 16px; fill: #d71920; }

/* ---- Section heading helpers -------------------------------------- */
.page-section { padding: 56px 0; }
.page-section--soft { background: #f6f6f6; }
.page-section--dark {
    background: #111;
    color: #fff;
}
.page-section--dark h2,
.page-section--dark h3 { color: #fff; }
.page-section--dark p { color: #d4d4d4; }
.page-section .eyebrow { color: #d71920; font-size: 12px; }
.page-section h2 {
    font-family: 'Roboto Condensed', 'Inter', sans-serif;
    font-weight: 900;
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.1;
    margin: 8px 0 12px;
}
.page-section .lede {
    font-size: 17px;
    color: #444;
    line-height: 1.6;
    max-width: 720px;
    margin: 0 0 28px;
}
.page-section--dark .lede { color: #d4d4d4; }

/* ---- Stats strip (about page) ------------------------------------- */
.stats-strip {
    background: #2b2b2b;
    color: #fff;
    padding: 36px 0;
    border-top: 4px solid #d71920;
    border-bottom: 4px solid #d71920;
}
.stats-strip__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}
.stats-strip__num {
    font-family: 'Roboto Condensed', 'Inter', sans-serif;
    font-weight: 900;
    font-size: clamp(36px, 4.6vw, 56px);
    color: #d71920;
    line-height: 1;
    display: block;
}
.stats-strip__label {
    color: #d4d4d4;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 6px;
    display: block;
}

/* ---- Two-column story block -------------------------------------- */
.story-block {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 44px;
    align-items: center;
}
.story-block__copy h2 { margin-top: 0; }
.story-block__copy p { color: #444; line-height: 1.7; margin: 0 0 14px; }
.story-block__media {
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background-size: cover;
    background-position: center;
}
.story-block--reverse .story-block__media { order: -1; }

/* ---- Pillar grid (support page, what we do, etc.) ----------------- */
.pillar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.pillar-grid article {
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 14px;
    padding: 26px 24px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: box-shadow 0.15s, transform 0.15s;
}
.pillar-grid article:hover {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}
.pillar-grid__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #fff5f5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.pillar-grid__icon svg { width: 24px; height: 24px; fill: #d71920; }
.pillar-grid h3 {
    font-family: 'Roboto Condensed', 'Inter', sans-serif;
    font-weight: 800;
    font-size: 20px;
    line-height: 1.25;
    margin: 0;
}
.pillar-grid p { margin: 0; color: #555; font-size: 14.5px; line-height: 1.55; }
.pillar-grid a {
    margin-top: auto;
    color: #111;
    font-weight: 800;
    font-size: 13px;
    text-decoration: none;
    letter-spacing: 0.04em;
    padding-top: 8px;
}
.pillar-grid a:hover { color: #d71920; }

/* ---- Brand grid (shop-by-brand) ----------------------------------- */
.brand-card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.brand-card-grid a {
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 14px;
    padding: 28px 22px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-decoration: none;
    color: #111;
    transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
    position: relative;
}
.brand-card-grid a:hover {
    border-color: #d71920;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
}
.brand-card-grid__name {
    font-family: 'Roboto Condensed', 'Inter', sans-serif;
    font-weight: 900;
    font-size: 24px;
    letter-spacing: 0.01em;
}
.brand-card-grid__sub { color: #666; font-size: 13.5px; line-height: 1.45; }
.brand-card-grid__cta {
    color: #d71920;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.06em;
    margin-top: 6px;
    text-transform: uppercase;
}

/* ---- Vehicle / class card grid ------------------------------------ */
.class-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.class-grid article {
    background: #111;
    color: #fff;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.class-grid__media {
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
}
.class-grid__body { padding: 22px 24px 24px; }
.class-grid h3 {
    font-family: 'Roboto Condensed', 'Inter', sans-serif;
    font-weight: 900;
    font-size: 22px;
    margin: 0 0 6px;
    color: #fff;
}
.class-grid p { color: #d4d4d4; font-size: 14.5px; margin: 0 0 14px; line-height: 1.55; }
.class-grid a {
    color: #d71920;
    font-weight: 800;
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 0.04em;
}
.class-grid a:hover { color: #fff; }

/* ---- System grid (DPF, ABS, Trans, etc.) -------------------------- */
.system-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.system-grid a {
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 14px;
    padding: 22px 22px 20px;
    text-decoration: none;
    color: #111;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: border-color 0.15s, transform 0.15s;
}
.system-grid a:hover { border-color: #d71920; transform: translateY(-2px); }
.system-grid svg { width: 30px; height: 30px; fill: #d71920; }
.system-grid strong {
    font-family: 'Roboto Condensed', 'Inter', sans-serif;
    font-weight: 800;
    font-size: 17px;
}
.system-grid span { color: #666; font-size: 13.5px; line-height: 1.45; }

/* ---- Product-finder form ------------------------------------------ */
.finder-form-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    align-items: start;
}
.finder-form {
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 14px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.finder-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #111;
    letter-spacing: 0.02em;
}
.finder-form select,
.finder-form input {
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 15px;
    font-family: inherit;
    background: #fff;
}
.finder-form select:focus,
.finder-form input:focus {
    outline: none;
    border-color: #d71920;
    box-shadow: 0 0 0 3px rgba(215, 25, 32, 0.15);
}
.finder-form button { border: 0; cursor: pointer; }
.finder-aside {
    background: #111;
    color: #fff;
    border-radius: 14px;
    padding: 28px;
}
.finder-aside h3 {
    font-family: 'Roboto Condensed', 'Inter', sans-serif;
    font-weight: 900;
    font-size: 22px;
    margin: 0 0 12px;
    color: #fff;
}
.finder-aside ul { list-style: none; padding: 0; margin: 0 0 20px; }
.finder-aside li {
    padding: 10px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.15);
    color: #d4d4d4;
    font-size: 14.5px;
    line-height: 1.5;
}
.finder-aside li:last-child { border-bottom: 0; }
.finder-aside li strong { color: #fff; font-weight: 800; }
.finder-aside .btn { display: inline-block; }

/* ---- Process / steps strip --------------------------------------- */
.process-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    counter-reset: step;
}
.process-strip article {
    counter-increment: step;
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 14px;
    padding: 24px 22px 22px;
    position: relative;
}
.process-strip article::before {
    content: counter(step);
    position: absolute;
    top: -14px;
    left: 22px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #d71920;
    color: #fff;
    font-weight: 900;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.process-strip h3 {
    font-family: 'Roboto Condensed', 'Inter', sans-serif;
    font-weight: 800;
    font-size: 18px;
    margin: 8px 0 6px;
}
.process-strip p { color: #555; font-size: 14px; margin: 0; line-height: 1.55; }

/* ---- Final CTA band (red diagonal — shared pattern) -------------- */
.page-final-cta {
    background: #2b2b2b;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.page-final-cta::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 38%;
    height: 100%;
    background: #d71920;
    clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
    z-index: 0;
}
.page-final-cta__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
    padding: 36px 24px;
}
.page-final-cta h2 {
    font-family: 'Roboto Condensed', 'Inter', sans-serif;
    font-weight: 900;
    font-size: clamp(22px, 2.4vw, 30px);
    margin: 0 0 4px;
}
.page-final-cta p { margin: 0; color: #d4d4d4; font-size: 15px; }
.page-final-cta__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.page-final-cta .btn-light {
    background: #fff;
    color: #111;
    border: 0;
    padding: 14px 22px;
    border-radius: 4px;
    font-weight: 800;
    letter-spacing: 0.05em;
    font-size: 13px;
    text-decoration: none;
}

/* =========================================================================
   Policy / long-form prose layout (shipping, returns, financing, faq,
   privacy)
   ========================================================================= */
.policy-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 36px;
    align-items: flex-start;
}
.policy-toc {
    position: sticky;
    top: 100px;
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 14px;
    padding: 22px 22px 18px;
}
.policy-toc__label {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #666;
    margin: 0 0 12px;
    font-weight: 700;
}
.policy-toc ol {
    list-style: none;
    counter-reset: pol;
    padding: 0;
    margin: 0;
}
.policy-toc ol li {
    counter-increment: pol;
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px dashed #ececec;
}
.policy-toc ol li::before {
    content: counter(pol) ".";
    color: #d71920;
    font-weight: 800;
    font-size: 13px;
    flex: 0 0 22px;
}
.policy-toc ol li a {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 13.5px;
    line-height: 1.4;
}
.policy-toc ol li a:hover { color: #d71920; }

.policy-prose {
    font-size: 16.5px;
    line-height: 1.72;
    color: #1a1a1a;
    max-width: 820px;
}
.policy-prose h2 {
    font-family: 'Roboto Condensed', 'Inter', sans-serif;
    font-weight: 900;
    font-size: clamp(24px, 2.4vw, 30px);
    line-height: 1.15;
    margin: 38px 0 14px;
    padding-bottom: 6px;
    border-bottom: 3px solid #d71920;
    display: inline-block;
    scroll-margin-top: 90px;
}
.policy-prose h3 {
    font-weight: 800;
    font-size: 19px;
    margin: 24px 0 8px;
    color: #111;
}
.policy-prose p { margin: 0 0 16px; }
.policy-prose ul,
.policy-prose ol { margin: 0 0 18px 0; padding-left: 22px; }
.policy-prose ul li,
.policy-prose ol li { margin-bottom: 6px; }
.policy-prose ul li::marker { color: #d71920; }
.policy-prose strong { color: #111; }
.policy-prose a {
    color: #d71920;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}
.policy-prose .callout {
    background: #f6f6f6;
    border-left: 4px solid #d71920;
    padding: 16px 22px;
    border-radius: 8px;
    margin: 22px 0;
}
.policy-prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0;
    font-size: 14.5px;
}
.policy-prose thead { background: #111; color: #fff; }
.policy-prose th {
    padding: 12px 14px;
    text-align: left;
    font-weight: 700;
}
.policy-prose td {
    padding: 11px 14px;
    border-top: 1px solid #ededed;
    border-right: 1px solid #ededed;
    vertical-align: top;
}
.policy-prose tbody tr:nth-child(odd) td { background: #fafafa; }

/* FAQ accordion (faq page) */
.policy-faq { max-width: 820px; }
.policy-faq details {
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 10px;
}
.policy-faq details[open] {
    border-color: #b6b6b6;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}
.policy-faq summary {
    list-style: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 16px;
    color: #111;
    display: flex;
    align-items: center;
    gap: 12px;
}
.policy-faq summary::-webkit-details-marker { display: none; }
.policy-faq summary::before {
    content: "+";
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #d71920;
    color: #fff;
    font-weight: 900;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.policy-faq details[open] summary::before { content: "−"; }
.policy-faq details p {
    margin: 12px 0 4px 38px;
    color: #444;
    font-size: 15px;
    line-height: 1.65;
}

.faq-cat {
    font-family: 'Roboto Condensed', 'Inter', sans-serif;
    font-weight: 900;
    font-size: 22px;
    margin: 30px 0 12px;
    color: #111;
}

/* =========================================================================
   Blog / Resource index card grids
   ========================================================================= */
.resource-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.resource-card-grid article {
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.15s, transform 0.15s, border-color 0.15s;
}
.resource-card-grid article:hover {
    border-color: #d71920;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}
.resource-card-grid__media {
    aspect-ratio: 16 / 10;
    background-size: cover;
    background-position: center;
    background-color: #1a1a1a;
}
.resource-card-grid__body { padding: 20px 22px 22px; display:flex; flex-direction:column; gap:8px; flex: 1 1 auto; }
.resource-card-grid__eyebrow {
    color: #d71920;
    font-weight: 800;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.resource-card-grid h3 {
    font-weight: 800;
    font-size: 18px;
    line-height: 1.3;
    margin: 0;
}
.resource-card-grid h3 a { color: #111; text-decoration: none; }
.resource-card-grid h3 a:hover { color: #d71920; }
.resource-card-grid p { margin: 0; color: #555; font-size: 14.5px; line-height: 1.55; }
.resource-card-grid__meta {
    color: #888;
    font-size: 12.5px;
    margin-top: auto;
    padding-top: 8px;
}

.empty-state {
    text-align: center;
    padding: 48px 24px;
    background: #f6f6f6;
    border-radius: 14px;
    color: #555;
}
.empty-state strong { display: block; font-size: 18px; color: #111; margin-bottom: 6px; }

/* =========================================================================
   Video grid (video-library page)
   ========================================================================= */
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.video-grid article {
    background: #111;
    color: #fff;
    border-radius: 14px;
    overflow: hidden;
}
.video-grid__embed {
    aspect-ratio: 16 / 9;
    background: #1a1a1a center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.video-grid__embed::after {
    content: "▶";
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #d71920;
    color: #fff;
    font-size: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}
.video-grid__body { padding: 18px 22px 20px; }
.video-grid__body h3 {
    font-family: 'Roboto Condensed', 'Inter', sans-serif;
    font-weight: 800;
    font-size: 18px;
    margin: 0 0 6px;
    color: #fff;
}
.video-grid__body p { color: #d4d4d4; font-size: 14px; margin: 0; line-height: 1.5; }

/* =========================================================================
   Responsive utilities — for inline two/three column blocks in templates
   that need to collapse on tablet / phone.
   ========================================================================= */
.page-stack-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    align-items: center;
}
.page-stack-2--biased { grid-template-columns: 1.1fr 1fr; }

.page-stack-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
}

.page-grid-3-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Long tables in policy/oem-info/compatibility — horizontal scroll on
   narrow screens so they don't blow out the layout. */
.policy-prose table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
}
@media (min-width: 900px) {
    .policy-prose table {
        display: table;
        overflow-x: visible;
        white-space: normal;
    }
}

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1100px) {
    .stats-strip__grid { grid-template-columns: repeat(2, 1fr); }
    .pillar-grid { grid-template-columns: repeat(2, 1fr); }
    .brand-card-grid { grid-template-columns: repeat(3, 1fr); }
    .class-grid { grid-template-columns: 1fr; }
    .system-grid { grid-template-columns: repeat(2, 1fr); }
    .story-block { grid-template-columns: 1fr; }
    .finder-form-wrap { grid-template-columns: 1fr; }
    .process-strip { grid-template-columns: repeat(2, 1fr); }
    .policy-layout { grid-template-columns: 1fr; }
    .policy-toc { position: static; }
    .resource-card-grid { grid-template-columns: repeat(2, 1fr); }
    .video-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
    .brand-card-grid { grid-template-columns: repeat(2, 1fr); }
    .pillar-grid { grid-template-columns: 1fr; }
    .system-grid { grid-template-columns: 1fr; }
    .process-strip { grid-template-columns: 1fr; }
    .resource-card-grid { grid-template-columns: 1fr; }
    .video-grid { grid-template-columns: 1fr; }
    .page-final-cta::after { display: none; }
    .page-final-cta__inner { grid-template-columns: 1fr; }
    .page-stack-2,
    .page-stack-2--biased,
    .page-stack-3,
    .page-grid-3-cards { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 1100px) {
    .page-stack-3 { grid-template-columns: 1fr 1fr; gap: 18px; }
    .page-grid-3-cards { grid-template-columns: 1fr 1fr; }
}
