/*
 * wildcatgraphickits.com: page styles on the mothership tokens (css/tokens.css).
 * Rule recipes follow the mothership template.css (global, headings, eyebrow, hero, trust strip,
 * feature cards) and colors.css (.btn, .btn-primary). Contrast pairs: research/style-report.md.
 */

*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: 1rem;
}

@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.5;
    color: var(--brand-text-body);
    background: var(--brand-bg);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
picture { display: block; }

a { color: var(--brand-link); text-decoration: underline; text-underline-offset: .15em; transition: color var(--transition-fast); }
a:hover { color: var(--brand-link-hover); }
:focus-visible { outline: 3px solid var(--brand-primary); outline-offset: 2px; }

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.05;
    letter-spacing: var(--tracking-tight);
    color: var(--brand-text);
    margin: 0 0 .75rem;
}
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); font-weight: 700; }
p { margin: 0 0 1rem; }

.lead { font-size: var(--text-md); line-height: 1.65; color: var(--brand-text-body); }

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
}

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1rem; }
.narrow { max-width: 820px; }

.section { padding-block: var(--section-py); }
.section-alt { background: var(--brand-bg-alt); }
.section-head { max-width: 760px; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }

/* Skip link (template.css skip-link recipe) */
.skip-link {
    position: absolute; left: 1rem; top: -4rem; z-index: 2000;
    background: var(--brand-ink); color: var(--brand-text-on-dark);
    padding: .6rem 1rem; font-weight: 700;
}
.skip-link:focus { top: 1rem; color: var(--brand-text-on-dark); outline-color: var(--focus-outline-on-ink); }

/* Eyebrow: skewed red/navy racing tag (template.css .eyebrow) */
.eyebrow {
    display: inline-flex; align-items: center; gap: .6rem;
    font-family: var(--font-heading); font-weight: 700; font-size: var(--text-sm);
    letter-spacing: var(--tracking-widest); text-transform: uppercase;
    color: var(--brand-primary); margin: 0 0 .75rem;
}
.eyebrow::before {
    content: ""; width: 26px; height: 10px; flex: none;
    background: linear-gradient(90deg, var(--brand-primary) 0 55%, transparent 55% 70%, var(--brand-secondary) 70% 100%);
    transform: skewX(var(--skew));
}
.eyebrow--on-dark { color: var(--brand-text-on-dark); }
.eyebrow--on-dark::before { background: linear-gradient(90deg, var(--brand-text-on-dark) 0 55%, transparent 55% 70%, var(--brand-text-on-dark-2) 70% 100%); }

/* Buttons (colors.css .btn / .btn-primary) */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 44px;
    padding: .65rem 1.35rem;
    font-family: var(--font-heading); font-weight: 700; font-size: 1rem; line-height: 1.2;
    text-transform: uppercase; letter-spacing: var(--tracking-wide);
    text-decoration: none; text-align: center;
    border: 2px solid transparent; border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}
.btn-lg { padding: .9rem 2rem; font-size: 1.125rem; }
.btn-primary { background: var(--brand-primary-fill); border-color: var(--brand-primary-fill); color: var(--brand-text-on-primary); }
.btn-primary:hover { background: var(--brand-primary-hover); border-color: var(--brand-primary-hover); color: var(--brand-text-on-primary); }
.btn-primary:active { background: var(--brand-primary-active); border-color: var(--brand-primary-active); }
.btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
/* On ink: #D6203C fill (5.08:1 label) with a white 2px boundary (16.85:1) in every state */
.btn-on-ink { background: var(--brand-primary-fill-on-ink); border-color: var(--brand-text-on-dark); }
.btn-on-ink:hover { background: var(--brand-primary-fill-on-ink-hover); border-color: var(--brand-text-on-dark); }
.btn-on-ink:focus-visible { box-shadow: none; outline: 3px solid var(--focus-outline-on-ink); outline-offset: 3px; }

.link-arrow {
    display: inline-flex; align-items: center; gap: .5rem; min-height: 44px;
    font-family: var(--font-heading); font-weight: 700; text-transform: uppercase;
    letter-spacing: var(--tracking-wide); color: var(--brand-primary); text-decoration: none;
}
.link-arrow:hover { text-decoration: underline; }

/* Header: text wordmark only (owner default: no store logo) */
.site-header { background: var(--brand-ink); border-bottom: 4px solid var(--brand-primary); }
.site-header .container { display: flex; align-items: center; min-height: 64px; }
.wordmark {
    font-family: var(--font-display); font-weight: 800; font-size: clamp(1.2rem, 3vw, 1.6rem);
    text-transform: uppercase; letter-spacing: var(--tracking-tight); line-height: 1;
    color: var(--brand-text-on-dark); text-decoration: none; padding-block: .75rem;
}
.wordmark:hover { color: var(--brand-text-on-dark); }
.wordmark__accent { color: var(--brand-text-on-dark-2); }
.site-header .wordmark:focus-visible, .hero :focus-visible, .final-cta :focus-visible,
.trust-strip :focus-visible, .site-footer :focus-visible, .sticky-cta :focus-visible { outline-color: var(--focus-outline-on-ink); }

/* Hero (template.css hero recipe) */
.hero {
    position: relative; isolation: isolate; overflow: hidden;
    min-height: clamp(540px, 82vh, 780px);
    display: flex; align-items: center;
    background: var(--brand-ink); color: var(--brand-text-on-dark);
    padding-block: clamp(3rem, 8vw, 5rem);
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 60%; }
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(100deg, rgba(var(--brand-ink-rgb), .95) 0%, rgba(var(--brand-ink-rgb), .9) 42%, rgba(var(--brand-ink-rgb), .55) 68%, rgba(var(--brand-ink-rgb), .12) 100%);
}
.hero__title {
    font-family: var(--font-display); font-weight: 800; font-size: var(--text-4xl);
    line-height: .98; color: var(--brand-text-on-dark); max-width: 19ch; margin-bottom: 1.25rem;
    text-shadow: 0 2px 20px rgba(var(--brand-ink-rgb), .35);
}
.hero__sub { font-size: var(--text-md); line-height: 1.65; color: var(--brand-text-on-dark-soft); max-width: 52ch; margin-bottom: 2rem; }
.hero__points { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 2rem 0 0; padding: 0; list-style: none; font-size: var(--text-sm); color: var(--brand-text-on-dark-soft); }
.hero__points li::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: .5rem; background: var(--brand-text-on-dark); transform: skewX(var(--skew)); }

/* Small screens: the machine shows in full above the headline */
@media (max-width: 767.98px) {
    .hero { display: block; min-height: 0; padding-block: 0 2.5rem; }
    .hero::before { content: none; }
    .hero__bg { position: relative; inset: auto; z-index: 0; }
    .hero__bg img { height: auto; aspect-ratio: 16 / 10; object-position: 60% 60%; }
    .hero__content { padding-top: 1.5rem; }
}

/* Exacerbate */
.split { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
@media (min-width: 992px) { .split { grid-template-columns: 1fr 1fr; } }
.split__media { margin: 0; }
.split__media img { border-radius: var(--radius-sm); box-shadow: var(--shadow-md); width: 100%; }
.pain-list { display: grid; gap: 1.25rem; }
.pain { padding-left: 1rem; border-left: 4px solid var(--brand-primary); font-size: var(--text-md); }
.pain h3 { font-size: var(--text-xl); margin-bottom: .4rem; }
.pain p { margin: 0; }
.turn {
    font-family: var(--font-heading); font-weight: 800; text-transform: uppercase;
    font-size: var(--text-2xl); line-height: 1.1; color: var(--brand-primary); margin: 1.5rem 0 1rem;
}

/* Solution: before/after + chips */
.compare { margin: 0 0 2rem; }
.compare__pair { display: grid; gap: 1rem; }
@media (min-width: 768px) { .compare__pair { grid-template-columns: 1fr 1fr; } }
.compare__item { position: relative; }
.compare__item img { width: 100%; border-radius: var(--radius-sm); }
.compare__label {
    position: absolute; left: .75rem; top: .75rem;
    padding: .3rem .8rem;
    background: var(--brand-ink); color: var(--brand-text-on-dark);
    font-family: var(--font-heading); font-weight: 700; text-transform: uppercase; letter-spacing: var(--tracking-widest); font-size: var(--text-sm);
}
.compare__label--after { background: var(--brand-primary-fill); }
.compare figcaption { margin-top: .75rem; font-family: var(--font-heading); font-weight: 700; text-transform: uppercase; font-size: var(--text-lg); color: var(--brand-text); }

.chips { display: flex; flex-wrap: wrap; gap: .75rem 2rem; margin: 0 0 2.5rem; padding: 0; list-style: none; }
.chips li {
    display: inline-flex; align-items: center; gap: .5rem;
    font-family: var(--font-heading); font-weight: 700; text-transform: uppercase; letter-spacing: var(--tracking-wide);
    color: var(--brand-text); font-size: var(--text-md);
}
.chips li::before { content: ""; width: 14px; height: 14px; flex: none; background: var(--brand-primary); transform: skewX(var(--skew)); }

/* Featured kit: one wide tile (image left, text right on desktop) */
.feature-kit { margin: 0 0 2rem; border: 1px solid var(--brand-border-strong); border-top: 4px solid var(--brand-primary); border-radius: var(--radius-sm); background: var(--brand-bg); }
.feature-kit__link { display: grid; gap: 1.25rem; padding: 1.25rem; text-decoration: none; color: var(--brand-text-body); align-items: center; }
@media (min-width: 768px) { .feature-kit__link { grid-template-columns: 1.2fr 1fr; padding: 1.5rem; } }
.feature-kit__tag { font-family: var(--font-heading); font-weight: 700; text-transform: uppercase; letter-spacing: var(--tracking-widest); font-size: var(--text-sm); color: var(--brand-primary); }
.feature-kit__name { display: block; font-family: var(--font-heading); font-weight: 800; font-size: var(--text-3xl); text-transform: uppercase; line-height: 1; color: var(--brand-text); margin: .35rem 0 .5rem; }
.feature-kit__years { display: block; font-weight: 700; color: var(--brand-text); margin-bottom: .5rem; }
.feature-kit__line { display: block; margin-bottom: 1rem; }
.feature-kit__link:hover .btn-primary { background: var(--brand-primary-hover); border-color: var(--brand-primary-hover); }
.feature-kit__link:hover .feature-kit__name { color: var(--brand-primary); }
.feature-kit__link:focus-visible { outline-offset: -3px; }

/* Design grid (more looks) */
.design-grid__label { font-family: var(--font-heading); font-weight: 700; text-transform: uppercase; letter-spacing: var(--tracking-wide); font-size: var(--text-lg); color: var(--brand-text); margin-bottom: .75rem; }
.design-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin: 0 0 1.5rem; padding: 0; list-style: none; }
@media (min-width: 768px) { .design-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .design-grid { grid-template-columns: repeat(5, 1fr); } }
.design-tile {
    display: flex; flex-direction: column; gap: .3rem; height: 100%;
    padding: .75rem; border: 1px solid var(--brand-border-strong); border-radius: var(--radius-sm);
    background: var(--brand-bg); text-decoration: none; color: var(--brand-text-body);
}
.design-tile img { margin-bottom: .35rem; }
.design-tile__name { font-family: var(--font-heading); font-weight: 800; text-transform: uppercase; font-size: var(--text-lg); line-height: 1.05; color: var(--brand-text); }
.design-tile__line { font-size: var(--text-sm); color: var(--brand-text-secondary); }
.design-tile__btn { margin-top: auto; font-family: var(--font-heading); font-weight: 700; text-transform: uppercase; letter-spacing: var(--tracking-wide); font-size: var(--text-sm); color: var(--brand-primary); min-height: 24px; padding-top: .35rem; }
.design-tile:hover { border-color: var(--brand-primary); }
.design-tile:hover .design-tile__btn { text-decoration: underline; }
.design-tile:focus-visible { outline-offset: -3px; }
.after-grid { font-size: var(--text-md); margin: 0; }

/* What covers what (template.css .feature-card) */
.feature-grid { display: grid; gap: 1.25rem; }
@media (min-width: 768px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .feature-grid { grid-template-columns: repeat(4, 1fr); } }
.feature-card { padding: 1.75rem; background: var(--brand-bg); border: 1px solid var(--brand-border); border-radius: var(--radius-sm); border-top: 4px solid var(--brand-primary); }
.feature-num { display: block; font-family: var(--font-display); font-weight: 800; font-size: 3rem; line-height: 1; color: var(--brand-primary); margin-bottom: .5rem; }
.feature-card h3 { font-size: var(--text-xl); }
.feature-card p { margin: 0; }

/* Custom band */
.custom-band { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 992px) { .custom-band { grid-template-columns: 1.4fr 1fr; } }
.custom-band p { margin-bottom: 0; }
.custom-band__cta { text-align: left; }
@media (min-width: 992px) { .custom-band__cta { text-align: right; } }

/* Install */
.steps { counter-reset: step; list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: .75rem; }
.steps li { counter-increment: step; position: relative; padding: .75rem 1rem .75rem 3.5rem; background: var(--brand-bg-alt); border-radius: var(--radius-sm); font-weight: 500; color: var(--brand-text); }
.steps li::before {
    content: counter(step); position: absolute; left: .75rem; top: 50%; transform: translateY(-50%) skewX(var(--skew));
    width: 2rem; height: 2rem; display: grid; place-items: center;
    background: var(--brand-primary-fill); color: var(--brand-text-on-primary); font-family: var(--font-heading); font-weight: 800;
}

/* Trust strip (template.css .trust-strip, ink-2 band) */
.trust-strip { background: var(--brand-ink-2); color: var(--brand-text-on-dark); padding-block: var(--section-py-sm); }
.trust-strip__title { color: var(--brand-text-on-dark); font-size: var(--text-2xl); }
.trust-list { display: grid; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 768px) { .trust-list { grid-template-columns: repeat(3, 1fr); } }
.trust-item strong { display: block; font-family: var(--font-heading); text-transform: uppercase; font-size: 1.15rem; color: var(--brand-text-on-dark); margin-bottom: .25rem; }
.trust-item span { color: var(--brand-text-on-dark-soft); }
.trust-strip a, .site-footer a { color: var(--brand-text-on-dark); display: inline-block; min-height: 24px; padding-block: .15rem; }
.trust-strip a:hover, .site-footer a:hover { color: var(--brand-text-on-dark-soft); }

/* FAQ: native <details> */
.faq { display: grid; gap: .75rem; }
.faq__item { border: 1px solid var(--brand-border-strong); border-radius: var(--radius-sm); background: var(--brand-bg); }
.faq__item summary {
    cursor: pointer; padding: 1rem 1.25rem; min-height: 44px;
    font-family: var(--font-heading); font-weight: 700; font-size: var(--text-lg); text-transform: uppercase; color: var(--brand-text);
}
.faq__item summary:focus-visible { outline-offset: -3px; }
.faq__item p { padding: 0 1.25rem 1rem; margin: 0; }

/* Final CTA band */
.final-cta { position: relative; isolation: isolate; overflow: hidden; background: var(--brand-ink); color: var(--brand-text-on-dark); padding-block: clamp(4rem, 10vw, 7rem); }
.final-cta__bg { position: absolute; inset: 0; z-index: -2; }
.final-cta__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 75% 50%; }
.final-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(var(--brand-ink-rgb), .94) 0%, rgba(var(--brand-ink-rgb), .82) 50%, rgba(var(--brand-ink-rgb), .45) 100%); }
.final-cta h2 { color: var(--brand-text-on-dark); font-size: var(--text-4xl); max-width: 16ch; }
.final-cta p { color: var(--brand-text-on-dark-soft); font-size: var(--text-md); max-width: 46ch; margin-bottom: 1.75rem; }

/* Footer */
.site-footer { background: var(--brand-ink); color: var(--brand-text-on-dark-2); padding-block: 2.5rem; font-size: var(--text-sm); border-top: 4px solid var(--brand-primary); }
.site-footer__name { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: var(--text-xl); color: var(--brand-text-on-dark); }
.footer-link { font-family: var(--font-heading); font-weight: 700; text-transform: uppercase; letter-spacing: var(--tracking-wide); font-size: var(--text-md); }
.disclaimer { max-width: 70ch; }
.copyright { margin: 0; }

/* Sticky mobile CTA (design-rules.md sticky spec) */
.sticky-cta { display: none; }
@media (max-width: 767.98px) {
    .sticky-cta[data-visible="true"] {
        display: flex; align-items: center; justify-content: space-between; gap: .75rem;
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
        min-height: var(--sticky-bar-h); padding: .5rem 1rem;
        background: var(--brand-ink); border-top: 3px solid var(--brand-primary);
        box-shadow: 0 -6px 18px rgba(20, 20, 22, .25);
    }
    html.has-sticky { scroll-padding-bottom: calc(var(--sticky-bar-h) + 1rem); }
    html.has-sticky body { padding-bottom: var(--sticky-bar-h); }
}
@media (max-width: 767.98px) and (prefers-reduced-motion: no-preference) {
    .sticky-cta[data-visible="true"] { animation: sticky-in var(--transition-base); }
}
@keyframes sticky-in { from { transform: translateY(100%); } to { transform: translateY(0); } }
.sticky-cta__text { margin: 0; color: var(--brand-text-on-dark); font-family: var(--font-heading); font-weight: 700; text-transform: uppercase; font-size: var(--text-sm); line-height: 1.2; }
.sticky-cta .btn { flex: none; }

/* Hero intro line (message match) */
.hero__intro { color: var(--brand-text-on-dark-soft); max-width: 52ch; margin-bottom: 2rem; }
.hero__sub { margin-bottom: 1rem; }

/* Build steps */
.build-steps { counter-reset: bstep; list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; gap: 1rem; }
.build-steps li { counter-increment: bstep; position: relative; padding-left: 3.5rem; min-height: 2.5rem; font-size: var(--text-md); }
.build-steps li::before {
    content: counter(bstep); position: absolute; left: .25rem; top: 0; transform: skewX(var(--skew));
    width: 2.5rem; height: 2.5rem; display: grid; place-items: center;
    background: var(--brand-primary-fill); color: var(--brand-text-on-primary); font-family: var(--font-heading); font-weight: 800; font-size: 1.25rem;
}
.build-steps strong { display: block; font-family: var(--font-heading); font-weight: 800; text-transform: uppercase; color: var(--brand-text); font-size: var(--text-lg); }
.note { color: var(--brand-text-secondary); font-size: var(--text-sm); }
.swatch-demo { background: var(--brand-bg); border: 1px solid var(--brand-border); border-radius: var(--radius-sm); padding: 1rem; }
.swatch-demo img { box-shadow: none; }
.swatch-demo figcaption { margin-top: .5rem; font-family: var(--font-heading); font-weight: 700; text-transform: uppercase; color: var(--brand-text); }
.split + .split { margin-top: clamp(2rem, 5vw, 3.5rem); }
.split--media-first { margin-bottom: 2.5rem; }
@media (min-width: 992px) { .split .compare__pair { grid-template-columns: 1fr; } }

/* Tile grids */
.design-grid--3, .design-grid--4 { grid-template-columns: 1fr; }
@media (min-width: 576px) { .design-grid--3, .design-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .design-grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .design-grid--4 { grid-template-columns: repeat(4, 1fr); } }
.design-tile__tag { font-family: var(--font-heading); font-weight: 700; text-transform: uppercase; letter-spacing: var(--tracking-widest); font-size: var(--text-xs); color: var(--brand-primary); }
.design-tile--door img { background: var(--brand-bg); }

/* 2-door kit: CSS crop to the two plain door panels (source x 545-910, y 320-635 of 1000x660),
   so the OEM lettering elsewhere in the render stays out of view (owner ruling 2026-09-29). */
.door-crop { position: relative; display: block; overflow: hidden; aspect-ratio: 365 / 315; max-width: 440px; width: 100%; margin-inline: auto; background: var(--brand-bg); }
.door-crop picture { position: absolute; max-width: none; width: 273.97%; left: -149.32%; top: -101.59%; }
.door-crop img { width: 100%; height: auto; }

/* Design families */
.family { margin-bottom: 2rem; }
.family__title { font-size: var(--text-xl); margin-bottom: .75rem; }
.swatch-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 768px) { .swatch-grid { grid-template-columns: repeat(4, 1fr); } }
.swatch { margin: 0; padding: .5rem; background: var(--brand-bg); border: 1px solid var(--brand-border); border-radius: var(--radius-sm); }
.swatch figcaption { margin-top: .35rem; font-family: var(--font-heading); font-weight: 700; text-transform: uppercase; color: var(--brand-text); }
#designs .custom-band__cta { text-align: left; margin-top: 1rem; }

/* 404 and privacy pages */
.simple-page { padding-block: var(--section-py); min-height: 50vh; }
