/* ==========================================================================
   Find a TYM Dealer — public stylesheet
   Brand tokens sampled from the official TYM logo (#E02020) and the
   corporate type pairing (Prometo display / Noto Sans body).
   To re-skin, change the variables in :root only.
   ========================================================================== */

:root {
    --tym-red: #e02020;
    --tym-red-dark: #b81616;
    --ink: #111111;
    --ink-soft: #2a2a2a;
    --steel: #6e7276;
    --steel-light: #9a9ea2;
    --paper: #ffffff;
    --bone: #f4f3f0;
    --bone-dark: #e8e6e1;
    --line: #e2e1dd;
    --line-dark: #333333;

    --font-display: 'prometo', 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-body: 'Noto Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;

    --wrap: 1240px;
    --gutter: 24px;
    --radius: 2px;
    --shadow-sm: 0 1px 2px rgba(17, 17, 17, .06), 0 2px 8px rgba(17, 17, 17, .04);
    --shadow-md: 0 8px 24px rgba(17, 17, 17, .10);
    --shadow-lg: 0 24px 60px rgba(17, 17, 17, .16);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 0 0 .5em;
}

p { margin: 0 0 1em; }

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.eyebrow {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--tym-red);
    margin: 0 0 14px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--ink);
    color: #fff;
    padding: 12px 18px;
    z-index: 999;
}
.skip-link:focus { left: 8px; top: 8px; }

:focus-visible {
    outline: 3px solid var(--tym-red);
    outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 26px;
    border: 2px solid transparent;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    line-height: 1;
    cursor: pointer;
    transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn--red { background: var(--tym-red); color: #fff; }
.btn--red:hover { background: var(--tym-red-dark); }

.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; }

.btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }

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

.btn--sm { padding: 11px 18px; font-size: 11px; }
.btn--block { width: 100%; }

/* --------------------------------------------------------------------------
   Utility bar + header
   -------------------------------------------------------------------------- */

.utilbar {
    background: var(--ink);
    color: rgba(255, 255, 255, .72);
    font-size: 11.5px;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.utilbar .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 36px;
    gap: 16px;
}
.utilbar a { color: #fff; }
.utilbar a:hover { color: var(--tym-red); }
.utilbar__links { display: flex; gap: 22px; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    gap: 24px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand__logo { height: 38px; width: auto; }
.brand__divider { width: 1px; height: 34px; background: var(--line); }
.brand__text {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: .01em;
    text-transform: uppercase;
}
.brand__text span { display: block; font-family: var(--font-body); font-size: 10px; font-weight: 500; letter-spacing: .16em; color: var(--steel); }

.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a {
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--tym-red); }
.site-nav a.is-active { border-bottom-color: var(--tym-red); }

.header-cta { display: flex; align-items: center; gap: 14px; }
.header-phone { font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.header-phone span { display: block; font-size: 9.5px; font-weight: 600; letter-spacing: .14em; color: var(--steel); text-transform: uppercase; }

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    background: #fff;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}
.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--ink);
    position: relative;
}
.nav-toggle span::before, .nav-toggle span::after {
    content: '';
    position: absolute;
    left: 0;
    width: 20px;
    height: 2px;
    background: var(--ink);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
    position: relative;
    background: var(--ink);
    color: #fff;
    overflow: hidden;
    padding: 84px 0 0;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(900px 420px at 78% 8%, rgba(224, 32, 32, .30), transparent 62%),
        linear-gradient(180deg, #161616 0%, #0d0d0d 100%);
}
.hero::after {
    /* diagonal red slab — the one loud gesture */
    content: '';
    position: absolute;
    top: -18%;
    right: -8%;
    width: 46%;
    height: 150%;
    background: linear-gradient(200deg, rgba(224, 32, 32, .16), rgba(224, 32, 32, 0));
    transform: skewX(-14deg);
    border-left: 1px solid rgba(255, 255, 255, .06);
}
.hero > .wrap { position: relative; z-index: 2; }

.hero__grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 56px;
    align-items: end;
    padding-bottom: 62px;
}
.hero h1 {
    font-size: clamp(46px, 7.2vw, 96px);
    line-height: .92;
    letter-spacing: -0.035em;
    text-transform: uppercase;
    margin-bottom: 26px;
}
.hero h1 em {
    font-style: normal;
    color: var(--tym-red);
    display: block;
}
.hero__lede {
    font-size: 17px;
    line-height: 1.65;
    color: rgba(255, 255, 255, .74);
    max-width: 46ch;
    margin-bottom: 0;
}
.hero__stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .12);
}
.hero__stat {
    background: #141414;
    padding: 22px 24px;
}
.hero__stat b {
    display: block;
    font-family: var(--font-display);
    font-size: 38px;
    line-height: 1;
    letter-spacing: -0.03em;
}
.hero__stat span {
    display: block;
    margin-top: 8px;
    font-size: 10.5px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--steel-light);
}
.hero__stat--accent b { color: var(--tym-red); }

/* --------------------------------------------------------------------------
   Locator rail — signature element
   -------------------------------------------------------------------------- */

.locator {
    position: relative;
    z-index: 5;
    margin-top: -34px;
}
.locator__bar {
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    padding: 12px;
    display: flex;
    gap: 10px;
    align-items: stretch;
}
.locator__field {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 18px;
    border: 1px solid var(--line);
    background: #fbfbfa;
    min-width: 0;
}
.locator__field svg { flex: none; width: 18px; height: 18px; color: var(--steel); }
.locator__field input {
    flex: 1 1 auto;
    border: 0;
    background: transparent;
    padding: 17px 0;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--ink);
    min-width: 0;
}
.locator__field input:focus { outline: none; }
.locator__field:focus-within { border-color: var(--ink); background: #fff; }
.locator__bar .btn { padding-inline: 34px; }

.state-rail {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 18px 0 4px;
    scrollbar-width: thin;
}
.state-chip {
    flex: none;
    padding: 7px 14px;
    border: 1px solid var(--line);
    background: #fff;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-soft);
    cursor: pointer;
    transition: all .15s ease;
}
.state-chip:hover { border-color: var(--ink); }
.state-chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section { padding: 84px 0; }
.section--tight { padding: 60px 0; }
.section--bone { background: var(--bone); }
.section--ink { background: var(--ink); color: #fff; }

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}
.section-head h2 {
    font-size: clamp(30px, 4vw, 48px);
    text-transform: uppercase;
    letter-spacing: -0.03em;
    margin: 0;
}
.section-head p { color: var(--steel); max-width: 52ch; margin: 10px 0 0; }
.section--ink .section-head p { color: rgba(255, 255, 255, .66); }
.section-head__rule { flex: 1 1 120px; height: 1px; background: var(--line); margin-bottom: 14px; }
.section--ink .section-head__rule { background: var(--line-dark); }

/* --------------------------------------------------------------------------
   Dealer cards
   -------------------------------------------------------------------------- */

.dealer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 22px;
}
.dealer-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    padding: 26px 26px 22px;
    transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.dealer-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: #cfcec9; }
.dealer-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.dealer-card__logo {
    height: 58px;
    width: auto;
    max-width: 165px;
    object-fit: contain;
    filter: grayscale(1);
    opacity: .8;
}
.dealer-card__tier {
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 5px 8px;
    background: var(--bone);
    color: var(--ink-soft);
    white-space: nowrap;
}
.dealer-card__tier[data-tier="Platinum"] { background: #111; color: #fff; }
.dealer-card__tier[data-tier="Gold"] { background: #f6e7bd; color: #6b5316; }
.dealer-card h3 {
    font-size: 21px;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 0 0 8px;
}
.dealer-card__loc {
    font-size: 13.5px;
    color: var(--steel);
    margin: 0 0 16px;
}
.dealer-card__loc strong { color: var(--ink); font-weight: 700; }
.dealer-card__meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    color: var(--ink-soft);
    border-top: 1px solid var(--line);
    padding-top: 14px;
    margin-top: auto;
}
.dealer-card__meta a { color: var(--ink); font-weight: 600; }
.dealer-card__meta a:hover { color: var(--tym-red); }
.dealer-card__actions { display: flex; gap: 10px; margin-top: 18px; }
.dealer-card__actions .btn { flex: 1 1 0; padding: 12px 10px; font-size: 11px; }

.empty-state {
    border: 1px dashed #c9c8c3;
    padding: 54px 24px;
    text-align: center;
    color: var(--steel);
    background: #fbfbfa;
}
.empty-state h3 { font-size: 22px; text-transform: uppercase; color: var(--ink); }

/* --------------------------------------------------------------------------
   Specials
   -------------------------------------------------------------------------- */

.specials {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
}
@media (max-width: 680px) {
    .specials { grid-template-columns: 1fr; gap: 22px; }
}
.special {
    background: #fff;
    border: 1px solid var(--line);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.special__media { aspect-ratio: 1 / 1; background: var(--bone); overflow: hidden; }
.special__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.special:hover .special__media img { transform: scale(1.03); }
.special__body { padding: 22px 26px 26px; }
.special__body h3 { font-size: 21px; margin-bottom: 8px; text-transform: uppercase; letter-spacing: -0.01em; }
.special__body p { font-size: 14.5px; line-height: 1.55; color: var(--steel); margin: 0; }

/* --------------------------------------------------------------------------
   Dealer landing page
   -------------------------------------------------------------------------- */

.dealer-hero {
    position: relative;
    background: var(--ink);
    color: #fff;
    padding: 66px 0 54px;
    overflow: hidden;
}
.dealer-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(720px 340px at 88% 0%, rgba(224, 32, 32, .28), transparent 60%);
}
.dealer-hero > .wrap { position: relative; z-index: 2; }
.dealer-hero__loc {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .6);
    margin-bottom: 18px;
}
.dealer-hero h1 {
    font-size: clamp(34px, 5.4vw, 66px);
    text-transform: uppercase;
    letter-spacing: -0.035em;
    margin: 0 0 18px;
}
.dealer-hero h1 em { font-style: normal; color: var(--tym-red); }
.dealer-hero__copy { font-size: 17px; color: rgba(255, 255, 255, .74); max-width: 56ch; margin: 0; }
.dealer-hero__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.dealer-hero__badges span {
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, .25);
    color: rgba(255, 255, 255, .85);
}

.dealer-body { padding: 56px 0 72px; }
.dealer-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 40px;
    align-items: start;
}

.panel {
    background: #fff;
    border: 1px solid var(--line);
    padding: 32px;
}
.panel + .panel { margin-top: 24px; }
.panel h2 { font-size: 26px; text-transform: uppercase; letter-spacing: -0.02em; margin-bottom: 10px; }
.panel h3 { font-size: 19px; text-transform: uppercase; }
.panel p:last-child { margin-bottom: 0; }

.nap {
    position: sticky;
    top: 100px;
    padding: 0;
    overflow: hidden;
}
.nap__head { padding: 26px 28px 22px; border-bottom: 1px solid var(--line); }
.nap__logo { height: 88px; width: auto; max-width: 260px; object-fit: contain; margin-bottom: 18px; }
.nap h2 { font-size: 22px; text-transform: none; letter-spacing: -0.01em; margin-bottom: 6px; }
.nap__addr { font-size: 14px; color: var(--steel); margin: 0; }
.nap__rows { padding: 8px 28px 22px; }
.nap__row {
    display: flex;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
}
.nap__row:last-child { border-bottom: 0; }
.nap__row svg { flex: none; width: 17px; height: 17px; color: var(--tym-red); margin-top: 2px; }
.nap__row b { display: block; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--steel); margin-bottom: 3px; font-weight: 700; }
.nap__row a { font-weight: 600; }
.nap__row a:hover { color: var(--tym-red); }
.nap__actions { padding: 0 28px 28px; display: grid; gap: 10px; }

.hours-list { list-style: none; padding: 0; margin: 0; font-size: 14px; }
.hours-list li { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.hours-list li:last-child { border-bottom: 0; }
.hours-list span:first-child { color: var(--steel); }

/* Lead form */
.lead-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--steel);
}
.field input, .field select, .field textarea {
    font-family: var(--font-body);
    font-size: 15px;
    padding: 13px 14px;
    border: 1px solid #d3d2cd;
    border-radius: var(--radius);
    background: #fff;
    color: var(--ink);
    width: 100%;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(17, 17, 17, .06); }
.field .req { color: var(--tym-red); }
.form-note { font-size: 12px; color: var(--steel); }
.hp { position: absolute; left: -9999px; opacity: 0; }

.alert {
    border-left: 4px solid var(--tym-red);
    background: #fdf3f3;
    padding: 16px 18px;
    font-size: 14px;
    margin-bottom: 22px;
}
.alert--ok { border-left-color: #1f7a3f; background: #f1f9f3; }

/* Trust strip on dealer page */
.trust-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    margin-top: 24px;
}
.trust-strip div { background: #fff; padding: 20px; }
.trust-strip b { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.trust-strip span { font-size: 12.5px; color: var(--steel); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer { background: var(--ink); color: rgba(255, 255, 255, .62); padding: 64px 0 28px; font-size: 13.5px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; }
.site-footer h4 {
    font-family: var(--font-body);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 16px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a:hover { color: #fff; }
.site-footer .brand__logo { height: 34px; margin-bottom: 18px; filter: brightness(0) invert(1); }
.footer-legal {
    border-top: 1px solid rgba(255, 255, 255, .12);
    padding-top: 22px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 11.5px;
    color: rgba(255, 255, 255, .42);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1000px) {
    .hero__grid { grid-template-columns: 1fr; gap: 36px; align-items: start; }
    .dealer-layout { grid-template-columns: 1fr; }
    .nap { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .trust-strip { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
    .nav-toggle { display: flex; }
    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid var(--line);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 24px 18px;
        display: none;
        box-shadow: var(--shadow-md);
    }
    .site-nav.is-open { display: flex; }
    .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
    .site-nav a:last-child { border-bottom: 0; }
    .header-cta .header-phone { display: none; }
    .utilbar__links { display: none; }
    .hero { padding-top: 56px; }
    .locator__bar { flex-direction: column; }
    .locator__bar .btn { padding: 16px; }
    .lead-form { grid-template-columns: 1fr; }
    .section { padding: 60px 0; }
}

@media (max-width: 560px) {
    .hero__stats { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .panel { padding: 24px 20px; }
    .brand__text { display: none; }
}

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

/* Dealer monogram when no logo has been uploaded yet */
.dealer-card__mono {
    width: 42px; height: 42px; flex: none;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--ink); color: #fff;
    font-family: var(--font-display); font-size: 19px; font-weight: 700;
    letter-spacing: -0.02em;
}

/* Distance radius filter */
.radius-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 20px; font-size: 12px; color: var(--steel); }
.radius-bar > span { font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: 10.5px; }
.radius-chip { padding: 6px 12px; border: 1px solid var(--line); background: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.radius-chip:hover { border-color: var(--ink); }
.radius-chip.is-active { background: var(--red); border-color: var(--red); color: #fff; }

/* Specials — click to enlarge */
.special__btn { display:block; position:relative; width:100%; padding:0; border:0; background:none; cursor:zoom-in; }
.special__btn img { width:100%; aspect-ratio:1/1; object-fit:cover; display:block; }
.special__zoom {
    position:absolute; left:0; right:0; bottom:0; padding:11px 14px;
    background:rgba(17,17,17,.82); color:#fff;
    font-size:10.5px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; text-align:left;
    opacity:0; transition:opacity .18s ease;
}
.special__btn:hover .special__zoom, .special__btn:focus-visible .special__zoom { opacity:1; }
.special figcaption { padding:18px 4px 0; }
.special figcaption h3 { font-size:18px; text-transform:none; letter-spacing:-0.01em; margin:0 0 6px; }
.special figcaption a { font-size:13.5px; font-weight:700; color:var(--tym-red); }

.lightbox { position:fixed; inset:0; z-index:300; background:rgba(8,8,8,.95); display:flex; align-items:center; justify-content:center; padding:26px; }
.lightbox[hidden] { display:none; }
.lightbox__figure { margin:0; max-width:min(96vw,1100px); text-align:center; }
.lightbox__figure img { max-height:84vh; width:auto; max-width:100%; margin:0 auto; box-shadow:0 30px 90px rgba(0,0,0,.65); }
.lightbox__figure figcaption { color:rgba(255,255,255,.72); font-size:12.5px; margin-top:14px; }
.lightbox__close { position:absolute; top:16px; right:18px; width:48px; height:48px; border:1px solid rgba(255,255,255,.32); background:transparent; color:#fff; font-size:26px; line-height:1; cursor:pointer; }
.lightbox__close:hover { background:rgba(255,255,255,.12); }
body.lightbox-open { overflow:hidden; }

/* Dealer logo in the page hero */
.dealer-hero__logo {
    display: inline-block;
    height: 64px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    background: #fff;
    padding: 10px 16px;
    margin-bottom: 20px;
}


/* ---------- Dealer hero v2: photo, logo lockup, click-to-call ---------- */
.dhero{position:relative;isolation:isolate;overflow:hidden;background:#0a0a0b;color:#fff}
.dhero__bg{position:absolute;inset:0;z-index:-2;width:100%;height:100%;object-fit:cover;object-position:center 45%}
.dhero__scrim{position:absolute;inset:0;z-index:-1;background:
  linear-gradient(95deg,rgba(6,6,7,.93) 0%,rgba(6,6,7,.80) 34%,rgba(6,6,7,.42) 56%,rgba(6,6,7,.06) 80%,rgba(6,6,7,0) 100%),
  linear-gradient(180deg,rgba(6,6,7,.30) 0%,rgba(6,6,7,0) 20%,rgba(6,6,7,.10) 100%)}
.dhero__inner{padding:30px 0 58px}
.dhero__top{display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap;padding-bottom:44px}
.dhero__lockup{display:flex;align-items:center;gap:28px;min-width:0}
.dhero__badge{display:flex;align-items:center;justify-content:center;background:#fff;border-radius:6px;padding:16px 26px;min-width:182px;min-height:112px;box-shadow:0 18px 40px rgba(0,0,0,.42)}
.dhero__badge img{display:block;width:auto;max-width:262px;max-height:82px;object-fit:contain}
.dhero__badge strong{color:#111;font-family:var(--font-display);font-weight:800;font-size:17px;line-height:1.15;letter-spacing:.04em;text-transform:uppercase;text-align:center;max-width:230px}
.dhero__rule{width:1px;height:88px;background:rgba(255,255,255,.34);flex:none}
.dhero__tym{height:102px;width:auto;filter:drop-shadow(0 8px 20px rgba(0,0,0,.55))}
.dhero__call{display:inline-flex;flex-direction:column;align-items:flex-end;gap:3px;color:#fff;text-decoration:none}
.dhero__call span{font-size:10px;font-weight:700;letter-spacing:.24em;text-transform:uppercase;color:rgba(255,255,255,.72)}
.dhero__call strong{font-family:var(--font-display);font-weight:800;font-size:clamp(21px,2.5vw,31px);letter-spacing:-.01em;line-height:1.1;transition:color .15s}
.dhero__call:hover strong{color:var(--tym-red)}
.dhero__body{max-width:730px;padding-top:14px}
.dhero__eyebrow{display:inline-flex;align-items:center;gap:7px;margin:0 0 16px;font-size:11px;font-weight:700;letter-spacing:.19em;text-transform:uppercase;color:rgba(255,255,255,.8)}
.dhero__eyebrow svg{color:var(--tym-red)}
.dhero h1{margin:0 0 18px;max-width:18ch;color:#fff;font-family:var(--font-display);font-weight:800;font-size:clamp(37px,5.1vw,66px);line-height:.97;letter-spacing:-.025em}
.dhero h1 em{font-style:normal;color:var(--tym-red)}
.dhero__copy{margin:0;max-width:56ch;color:rgba(255,255,255,.84);font-size:clamp(15px,1.25vw,17px);line-height:1.6}
.dhero__actions{display:flex;flex-wrap:wrap;gap:12px;margin:28px 0 0}
.dhero__actions .btn{border-radius:4px;padding:15px 26px;font-size:14px}
.dhero__actions .btn--ghost,.dhero .btn--ghost{background:transparent;border:1px solid rgba(255,255,255,.55);color:#fff}
.dhero__actions .btn--ghost:hover,.dhero .btn--ghost:hover{background:rgba(255,255,255,.12);border-color:#fff;color:#fff}
.dhero__badges{display:flex;flex-wrap:wrap;gap:8px;margin:26px 0 0}
.dhero__badges span{display:inline-flex;align-items:center;padding:7px 14px;border:1px solid rgba(255,255,255,.30);border-radius:100px;background:rgba(255,255,255,.05);color:rgba(255,255,255,.88);font-size:11px;font-weight:600;letter-spacing:.09em;text-transform:uppercase}
@media (max-width:860px){
  .dhero__inner{padding:22px 0 44px}
  .dhero__top{gap:16px;padding-bottom:30px}
  .dhero__lockup{gap:14px}
  .dhero__badge{min-width:134px;min-height:84px;padding:11px 16px}
  .dhero__badge img{max-height:58px;max-width:196px}
  .dhero__tym{height:64px}
  .dhero__rule{height:64px}
  .dhero__call{align-items:flex-start}
  .dhero__body{padding-top:6px}
  .dhero h1{max-width:none;font-size:clamp(29px,8.4vw,40px)}
  .dhero__scrim{background:
    linear-gradient(180deg,rgba(6,6,7,.86) 0%,rgba(6,6,7,.62) 42%,rgba(6,6,7,.88) 100%)}
  .dhero__actions .btn{flex:1 1 auto;justify-content:center}
}


/* ---------- Tractor catalog (lineup) ---------- */
.cat-hero{position:relative;isolation:isolate;overflow:hidden;background:#0a0a0b;color:#fff}
.cat-hero__bg{position:absolute;inset:0;z-index:-2;width:100%;height:100%;object-fit:cover;object-position:center 50%}
.cat-hero__scrim{position:absolute;inset:0;z-index:-1;background:linear-gradient(95deg,rgba(6,6,7,.95) 0%,rgba(6,6,7,.82) 38%,rgba(6,6,7,.40) 68%,rgba(6,6,7,.12) 100%)}
.cat-hero__inner{padding:56px 0 48px}
.cat-hero__eyebrow{margin:0 0 14px;font-size:11px;font-weight:700;letter-spacing:.2em;text-transform:uppercase;color:rgba(255,255,255,.78)}
.cat-hero h1{margin:0 0 16px;max-width:20ch;color:#fff;font-family:var(--font-display);font-weight:800;font-size:clamp(34px,4.6vw,58px);line-height:1;letter-spacing:-.025em}
.cat-hero h1 em{font-style:normal;color:var(--tym-red)}
.cat-hero__copy{margin:0;max-width:58ch;color:rgba(255,255,255,.84);font-size:16px;line-height:1.6}
.cat-jump{display:flex;flex-wrap:wrap;gap:8px;margin:26px 0 0}
.cat-jump a{display:inline-flex;align-items:center;gap:7px;padding:8px 14px;border:1px solid rgba(255,255,255,.3);border-radius:100px;color:#fff;font-size:12px;font-weight:600;letter-spacing:.05em;text-decoration:none;background:rgba(255,255,255,.06)}
.cat-jump a span{font-size:10px;opacity:.65}
.cat-jump a:hover{background:#fff;color:#111;border-color:#fff}
.cat-series{padding:52px 0 8px}
.cat-series:target{scroll-margin-top:90px}
.cat-series__head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;flex-wrap:wrap;padding-bottom:20px;border-bottom:1px solid var(--line);margin-bottom:26px}
.cat-series__head h2{margin:0;font-size:clamp(26px,3vw,34px);letter-spacing:-.02em}
.cat-series__note{margin:0;font-size:12.5px;color:var(--steel)}
.cat-series__note a{color:var(--ink);font-weight:600}
.cat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
@media (max-width:1024px){.cat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:640px){.cat-grid{grid-template-columns:1fr}}
.mcard{display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:6px;overflow:hidden;transition:box-shadow .2s,transform .2s,border-color .2s}
.mcard:hover{box-shadow:var(--shadow-md);transform:translateY(-2px);border-color:#cfcec9}
.mcard__media{position:relative;background:#f4f4f2;padding:18px 18px 6px;display:flex;align-items:center;justify-content:center;min-height:180px}
.mcard__media img{display:block;width:100%;height:auto;max-height:190px;object-fit:contain}
.mcard__hp{position:absolute;top:12px;left:12px;padding:5px 10px;border-radius:3px;background:#111;color:#fff;font-size:11px;font-weight:700;letter-spacing:.04em}
.mcard__body{padding:18px 20px 20px;display:flex;flex-direction:column;flex:1}
.mcard__class{margin:0 0 4px;font-size:10.5px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--tym-red)}
.mcard h3{margin:0 0 14px;font-size:24px;letter-spacing:-.01em;font-family:var(--font-display);font-weight:800}
.mcard__specs{margin:0 0 18px;display:grid;gap:7px}
.mcard__specs div{display:flex;justify-content:space-between;gap:12px;font-size:12.5px;border-bottom:1px dotted var(--line);padding-bottom:5px}
.mcard__specs dt{color:var(--steel);margin:0}
.mcard__specs dd{margin:0;text-align:right;font-weight:600;color:var(--ink)}
.mcard__actions{display:flex;gap:8px;margin-top:auto;flex-wrap:wrap}
.mcard__actions .btn{flex:1 1 auto;justify-content:center}
.cat-cta{background:#0d0d0e;color:#fff;border-radius:0;margin-top:44px}
.cat-cta__inner{display:flex;align-items:center;justify-content:space-between;gap:26px;flex-wrap:wrap;padding:44px 0}
.cat-cta h2{margin:0 0 6px;color:#fff;font-size:clamp(22px,2.6vw,30px);letter-spacing:-.02em}
.cat-cta p{margin:0;color:rgba(255,255,255,.72);font-size:14.5px}


/* ---------- Embedded TYM catalog widget ---------- */
.cat-embed{padding:36px 0 20px;background:var(--bone,#f6f6f4)}
.cat-embed #tym-widget-root{width:100%}
@media (max-width:700px){.cat-embed{padding:18px 0 10px}}


/* ---------- Why TYM ---------- */
.why-hero{position:relative;isolation:isolate;overflow:hidden;background:#0a0a0b;color:#fff}
.why-hero__bg{position:absolute;inset:0;z-index:-2;width:100%;height:100%;object-fit:cover;object-position:center 55%;opacity:.9}
.why-hero__scrim{position:absolute;inset:0;z-index:-1;background:linear-gradient(95deg,rgba(6,6,7,.95) 0%,rgba(6,6,7,.86) 38%,rgba(6,6,7,.48) 66%,rgba(6,6,7,.18) 100%)}
.why-hero__inner{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:30px;align-items:center;padding:64px 0 56px}
.why-hero__eyebrow{margin:0 0 14px;font-size:11px;font-weight:700;letter-spacing:.22em;text-transform:uppercase;color:rgba(255,255,255,.76)}
.why-hero h1{margin:0 0 18px;font-family:var(--font-display);font-weight:800;font-size:clamp(34px,4.6vw,60px);line-height:.98;letter-spacing:-.025em;color:#fff}
.why-hero h1 em{font-style:normal;display:block;color:var(--tym-red)}
.why-hero__copy>p:not(.why-hero__eyebrow){margin:0;max-width:52ch;color:rgba(255,255,255,.84);font-size:16px;line-height:1.65}
.why-hero__actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}
.why-hero__actions .btn{border-radius:4px;padding:15px 26px}
.why-hero__actions .btn--ghost{background:transparent;border:1px solid rgba(255,255,255,.55);color:#fff}
.why-hero__actions .btn--ghost:hover{background:#fff;color:#111}
.why-hero__cut{width:100%;height:auto;filter:drop-shadow(0 30px 50px rgba(0,0,0,.55));transform:scale(1.06)}
@media(max-width:900px){.why-hero__inner{grid-template-columns:1fr;padding:44px 0 40px}.why-hero__cut{max-width:520px;margin:6px auto 0}}
.why-stats{background:#0d0d0e;color:#fff;border-top:1px solid rgba(255,255,255,.08)}
.why-stats__inner{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;padding:26px 0}
.why-stats__inner div{display:flex;flex-direction:column;gap:3px;border-left:2px solid var(--tym-red);padding-left:14px}
.why-stats__inner strong{font-family:var(--font-display);font-size:26px;font-weight:800;letter-spacing:-.02em}
.why-stats__inner span{font-size:11.5px;letter-spacing:.1em;text-transform:uppercase;color:rgba(255,255,255,.62)}
@media(max-width:760px){.why-stats__inner{grid-template-columns:repeat(2,1fr);gap:18px}}
.why-head{max-width:760px;margin-bottom:34px}
.why-head h2{margin:6px 0 0;font-size:clamp(26px,3.2vw,38px);letter-spacing:-.025em}
.why-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
@media(max-width:960px){.why-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.why-grid{grid-template-columns:1fr}}
.why-card{position:relative;background:#fff;border:1px solid var(--line);border-radius:6px;padding:26px 26px 24px;overflow:hidden}
.why-card__num{display:block;font-family:var(--font-display);font-size:12px;font-weight:800;letter-spacing:.14em;color:var(--tym-red);margin-bottom:14px}
.why-card h3{margin:0 0 10px;font-size:19px;letter-spacing:-.015em}
.why-card p{margin:0;font-size:14px;line-height:1.6;color:var(--steel)}
.why-card a{color:var(--ink);font-weight:600;text-decoration:underline;text-decoration-color:var(--tym-red);text-underline-offset:3px}
.why-band{background:#f4f4f2;border-top:1px solid var(--line);border-bottom:1px solid var(--line);overflow:hidden}
.why-band__inner{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:34px;align-items:center;padding:56px 0}
.why-band__copy h2{margin:6px 0 12px;font-size:clamp(26px,3vw,36px);letter-spacing:-.025em}
.why-band__copy p{margin:0 0 22px;max-width:46ch;color:var(--steel);font-size:15px;line-height:1.6}
.why-band__art{display:flex;align-items:center;justify-content:center;gap:0}
.why-band__art img{width:56%;height:auto;filter:drop-shadow(0 18px 26px rgba(0,0,0,.18))}
.why-band__art img+img{width:46%;margin-left:-10%}
@media(max-width:860px){.why-band__inner{grid-template-columns:1fr;padding:40px 0}.why-band__art{order:-1}}
.why-series__grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}
@media(max-width:960px){.why-series__grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:560px){.why-series__grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.why-series__card{display:flex;flex-direction:column;gap:4px;padding:18px 18px 16px;border:1px solid var(--line);border-radius:5px;background:#fff;text-decoration:none;color:var(--ink);transition:border-color .2s,box-shadow .2s,transform .2s}
.why-series__card:hover{border-color:var(--tym-red);box-shadow:var(--shadow-md);transform:translateY(-2px)}
.why-series__count{font-size:10.5px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--tym-red)}
.why-series__card strong{font-family:var(--font-display);font-size:19px;font-weight:800;letter-spacing:-.01em}
.why-series__class{font-size:12px;color:var(--steel)}
.why-cta{background:#0d0d0e;color:#fff}
.why-cta__inner{display:flex;align-items:center;justify-content:space-between;gap:26px;flex-wrap:wrap;padding:48px 0}
.why-cta h2{margin:0 0 6px;color:#fff;font-size:clamp(22px,2.7vw,32px);letter-spacing:-.02em}
.why-cta p{margin:0;color:rgba(255,255,255,.7);font-size:14.5px}


/* ---------- Home: "Dealers near you" with TYM mark ---------- */
.near-head{display:flex;align-items:center;gap:18px;margin-bottom:6px}
.near-head__mark{height:56px;width:auto;flex:none}
.near-head__text .eyebrow{margin-bottom:4px}
.near-head__text h2{margin:0}
@media (max-width:600px){.near-head{gap:12px;align-items:flex-start}.near-head__mark{height:42px}}

.dhero__dist{border-color:rgba(224,32,32,.75)!important;background:rgba(224,32,32,.14)!important;color:#fff!important;font-weight:700}
.dealer-card__tier--dist{background:#111;color:#fff;border-color:#111}


/* ---------- No-local-dealer call to action ---------- */
.fallback-cta{display:flex;align-items:center;justify-content:space-between;gap:26px;flex-wrap:wrap;margin-top:28px;padding:28px 30px;background:#0d0d0e;border-radius:6px;color:#fff}
.fallback-cta__text{max-width:56ch}
.fallback-cta__text h3{margin:0 0 6px;color:#fff;font-size:21px;letter-spacing:-.015em}
.fallback-cta__text p{margin:0;color:rgba(255,255,255,.72);font-size:14px;line-height:1.55}
.fallback-cta__actions{display:flex;gap:10px;flex-wrap:wrap}
.fallback-cta__actions .btn{justify-content:center}
.fallback-cta__actions .btn--ghost{background:transparent;border:1px solid rgba(255,255,255,.45);color:#fff}
.fallback-cta__actions .btn--ghost:hover{background:#fff;color:#111;border-color:#fff}
@media (max-width:700px){.fallback-cta{padding:22px}.fallback-cta__actions{width:100%}.fallback-cta__actions .btn{flex:1 1 auto}}

/* ---- submission confirmation ---- */
.sent-card{padding:8px 0 4px;max-width:640px}
.sent-card__icon{width:58px;height:58px;border-radius:50%;background:#e8f6ec;color:#1a7f37;
  display:flex;align-items:center;justify-content:center;font-size:30px;font-weight:700;margin-bottom:18px}
.sent-card h2{margin:0 0 10px;font-size:29px;line-height:1.15;letter-spacing:-.01em}
.sent-card__lead{font-size:16.5px;line-height:1.6;color:var(--ink);margin:0 0 18px}
.sent-card__next{margin:0 0 24px;padding:0;list-style:none}
.sent-card__next li{position:relative;padding-left:26px;margin-bottom:9px;font-size:15px;line-height:1.55;color:var(--steel)}
.sent-card__next li:before{content:"";position:absolute;left:0;top:7px;width:9px;height:9px;
  border-radius:50%;background:var(--tym-red)}
.sent-card__next a{color:var(--ink);font-weight:700}
.sent-card ~ *{display:none}
@media (max-width:640px){.sent-card h2{font-size:23px}.sent-card__icon{width:50px;height:50px;font-size:26px}}

/* honeypot field: never visible, never autofilled */
.lead-form .hp{position:absolute!important;left:-9999px!important;top:auto;width:1px;height:1px;overflow:hidden}


/* ---- sticky mobile call bar ---- */
.callbar{display:none}
@media (max-width:820px){
  .callbar{
    position:fixed;left:0;right:0;bottom:0;z-index:60;display:flex;gap:8px;
    padding:9px 10px calc(9px + env(safe-area-inset-bottom));
    background:rgba(17,17,17,.96);backdrop-filter:saturate(140%) blur(8px);
    box-shadow:0 -6px 20px rgba(0,0,0,.18);
  }
  .callbar__btn{
    flex:1 1 0;display:flex;align-items:center;justify-content:center;gap:8px;
    min-height:48px;border-radius:8px;font-weight:700;font-size:15px;letter-spacing:.01em;
    text-decoration:none;line-height:1;
  }
  .callbar__btn--call{background:var(--tym-red,#e02020);color:#fff}
  .callbar__btn--dir{background:#fff;color:#111}
  body{padding-bottom:78px}
}
