/* Home page: dealer category cards, the latest-dealers slider, notices and events, and leadership cards.
   Loaded after home.css. Motion is transform/opacity only and is switched off for visitors who prefer reduced motion. */

/* ---------------------------------------------------------------- categories */
.catpro { display: flex; flex-direction: column; height: 100%; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-1); transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s ease, border-color .3s ease; }
.catpro:hover, .catpro:focus-within { transform: translateY(-5px); box-shadow: var(--shadow-3); border-color: var(--navy-300); }
.catpro-head { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: .5rem; padding: 1.1rem 1.1rem .9rem; min-height: 8.5rem; overflow: hidden; background: linear-gradient(135deg, var(--navy-900), var(--navy-700) 65%, var(--navy-600)); }
.catpro-head::after { content: ""; position: absolute; inset: auto 0 0 0; height: 3px; background: linear-gradient(90deg, var(--gold-500), var(--gold-300)); }
.catpro-art { position: absolute; right: -1rem; top: -.4rem; width: 62%; height: auto; opacity: .35; mix-blend-mode: luminosity; transition: transform .6s cubic-bezier(.2, .8, .2, 1), opacity .4s ease; pointer-events: none; }
.catpro:hover .catpro-art { transform: scale(1.06) translateX(-4px); opacity: .5; }
.catpro-code { position: relative; z-index: 1; padding: .3rem .75rem; border-radius: var(--r-pill); background: var(--gold-300); color: var(--navy-950); font-weight: 800; font-size: var(--fs-sm); letter-spacing: .08em; }
.catpro-count { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .65rem; border-radius: var(--r-pill); background: rgba(255, 255, 255, .14); color: #fff; font-size: var(--fs-xs); backdrop-filter: blur(2px); }
.catpro-count i { color: var(--gold-300); }
.catpro-body { padding: 1.15rem 1.15rem .75rem; display: flex; flex-direction: column; gap: .8rem; flex: 1 1 auto; }
.catpro-body h3 { margin: 0; font-size: var(--fs-lg); color: var(--navy-900); }
.catpro-desc { margin: 0; color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.55; }
.catpro-facts { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin: 0; }
.catpro-facts > div { padding: .65rem .75rem; border-radius: var(--r-md); background: var(--navy-50); }
.catpro-facts dt { display: flex; align-items: center; gap: .35rem; font-size: var(--fs-2xs, .7rem); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.catpro-facts dt i { color: var(--navy-600); }
.catpro-facts dd { margin: .2rem 0 0; font-weight: 700; color: var(--navy-900); }
.catpro-docs { border: 1px solid var(--line); border-radius: var(--r-md); }
.catpro-docs summary { display: flex; align-items: center; gap: .5rem; padding: .6rem .8rem; cursor: pointer; font-size: var(--fs-sm); font-weight: 600; color: var(--navy-800); list-style: none; }
.catpro-docs summary::-webkit-details-marker { display: none; }
.catpro-docs-n { display: inline-grid; place-items: center; min-width: 1.4rem; height: 1.4rem; padding: 0 .35rem; border-radius: var(--r-pill); background: var(--gold-100); color: var(--gold-700); font-size: .75rem; }
.catpro-chev { margin-left: auto; transition: transform .25s ease; }
.catpro-docs[open] .catpro-chev { transform: rotate(180deg); }
.catpro-docs ul { list-style: none; margin: 0; padding: 0 .8rem .75rem; display: grid; gap: .35rem; animation: sec-fade .3s ease; }
.catpro-docs li { display: flex; gap: .5rem; align-items: flex-start; font-size: var(--fs-sm); color: var(--ink-2); }
.catpro-docs li i { color: var(--success); margin-top: .15rem; }
.catpro-actions { display: flex; flex-wrap: wrap; gap: .5rem; padding: .25rem 1.15rem 1.15rem; }
.catpro-actions .btn { flex: 1 1 8rem; }
.catpro-wide { flex-direction: row; }
.catpro-wide .catpro-head { min-height: 100%; width: 38%; }
@media (max-width: 767.98px) { .catpro-wide { flex-direction: column; } .catpro-wide .catpro-head { width: auto; min-height: 8.5rem; } }

/* ---------------------------------------------------------------- latest dealers slider */
.reg-search { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 14rem) auto; gap: .75rem; margin: 0 0 1.5rem; padding: .85rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
.reg-search-field { position: relative; }
.reg-search-field > i { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.reg-search-field .form-control { padding-left: 2.5rem; }
@media (max-width: 767.98px) { .reg-search { grid-template-columns: 1fr; } }

.reg-slider { position: relative; }
.reg-slider-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; }
.reg-slider-note { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; color: var(--navy-800); font-size: var(--fs-sm); }
.reg-slider-note i { color: var(--gold-500); }
.reg-slider-controls { display: flex; gap: .45rem; }
.reg-btn { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--white); color: var(--navy-700); transition: background-color .2s ease, color .2s ease, transform .2s ease, border-color .2s ease; }
.reg-btn:hover { background: var(--navy-700); border-color: var(--navy-700); color: #fff; transform: scale(1.06); }
.reg-btn:focus-visible { outline: 3px solid var(--focus-color, var(--navy-500)); outline-offset: 2px; }
.reg-btn[hidden] { display: none; }

.reg-track { --reg-gap: 1.25rem; --reg-per: 1; display: flex; gap: var(--reg-gap); list-style: none; margin: 0; padding: .35rem .15rem 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain; }
.reg-track::-webkit-scrollbar { display: none; }
.reg-track:focus-visible { outline: 3px solid var(--focus-color, var(--navy-500)); outline-offset: 2px; border-radius: var(--r-md); }
.reg-slide { flex: 0 0 calc((100% - (var(--reg-per) - 1) * var(--reg-gap)) / var(--reg-per)); scroll-snap-align: start; display: flex; }
@media (min-width: 640px) { .reg-track { --reg-per: 2; } }
@media (min-width: 992px) { .reg-track { --reg-per: 3; } }

.regcard { position: relative; display: flex; flex-direction: column; gap: 1rem; width: 100%; padding: 1.35rem 1.25rem 1.1rem; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-1); transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s ease, border-color .3s ease; }
.regcard::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--gold-500), var(--gold-300)); transform: scaleX(.2); transform-origin: left; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.regcard:hover, .regcard:focus-within { transform: translateY(-4px); box-shadow: var(--shadow-3); border-color: var(--navy-300); }
.regcard:hover::before, .regcard:focus-within::before { transform: scaleX(1); }
.regcard-new { position: absolute; top: .9rem; right: .9rem; padding: .2rem .6rem; border-radius: var(--r-pill); background: var(--success-bg, #e3f3ea); color: var(--success-ink); font-size: var(--fs-2xs, .7rem); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.regcard-head { display: flex; gap: .85rem; align-items: center; padding-right: 4.5rem; }
.regcard-avatar { flex: none; display: grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 50%; color: #fff; font-weight: 700; background: linear-gradient(140deg, var(--navy-700), var(--navy-500)); box-shadow: 0 0 0 3px var(--gold-100); transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.regcard:hover .regcard-avatar { transform: scale(1.08) rotate(-4deg); }
.regcard h3 { margin: 0 0 .25rem; font-size: var(--fs-md); line-height: var(--lh-snug); overflow-wrap: anywhere; }
.regcard h3 a { color: var(--navy-900); text-decoration: none; }
.regcard h3 a:hover { text-decoration: underline; }
.regcard-cat { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: 0; font-size: var(--fs-xs); color: var(--muted); }
.regcard-facts { margin: 0; display: grid; gap: .5rem; }
.regcard-facts > div { display: flex; gap: .6rem; align-items: flex-start; }
.regcard-facts dt { flex: none; display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--navy-50); color: var(--navy-700); transition: background-color .25s ease, color .25s ease; }
.regcard:hover .regcard-facts dt { background: var(--gold-100); color: var(--gold-700); }
.regcard-facts dd { margin: 0; padding-top: .2rem; font-size: var(--fs-sm); color: var(--ink-2); overflow-wrap: anywhere; }
.regcard-facts dd a { font-weight: 600; text-decoration: none; }
.regcard-foot { margin-top: auto; padding-top: .8rem; border-top: 1px dashed var(--line-strong); }

.reg-dots { display: flex; justify-content: center; gap: .5rem; margin-top: .25rem; }
.reg-dot { width: .6rem; height: .6rem; padding: 0; border: 0; border-radius: var(--r-pill); background: var(--line-strong); transition: width .3s ease, background-color .3s ease; }
.reg-dot.is-active { width: 1.8rem; background: var(--gold-500); }
.reg-foot { margin-top: 1rem; }

/* ---------------------------------------------------------------- notices and events */
.nx-panel { height: 100%; padding: 1.25rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
.nx-title { display: flex; align-items: center; gap: .65rem; margin: 0 0 1rem; font-size: var(--fs-md); color: var(--navy-900); }
.nx-title-ic { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: var(--r-md); background: linear-gradient(140deg, var(--navy-700), var(--navy-500)); color: #fff; }
.nx-panel-events .nx-title-ic { background: linear-gradient(140deg, var(--gold-700), var(--gold-500)); }
.nx-count { margin-left: auto; padding: .1rem .6rem; border-radius: var(--r-pill); background: var(--navy-50); color: var(--navy-700); font-size: var(--fs-xs); }
.nx-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.nx-item { display: flex; gap: .85rem; padding: .85rem .6rem; border-radius: var(--r-md); border-bottom: 1px solid var(--line); transition: background-color .25s ease, transform .25s ease; }
.nx-item:last-child { border-bottom: 0; }
.nx-item:hover { background: var(--navy-50); transform: translateX(3px); }
.nx-mark { flex: none; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--navy-50); color: var(--navy-700); }
.nx-item h4 { margin: 0 0 .25rem; font-size: var(--fs-base); line-height: var(--lh-snug); color: var(--navy-900); }
.nx-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; margin: 0 0 .25rem; font-size: var(--fs-xs); color: var(--muted); }
.nx-tag { padding: .1rem .55rem; border-radius: var(--r-pill); background: var(--gold-100); color: var(--gold-700); font-weight: 600; }
.nx-sample { padding: .1rem .55rem; border-radius: var(--r-pill); border: 1px dashed var(--line-strong); color: var(--muted); font-size: var(--fs-2xs, .7rem); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.nx-body { margin: 0; font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.5; }
.nx-event .datebadge { flex: none; }

/* ---------------------------------------------------------------- leadership */
.lead-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.lead-grid-single { grid-template-columns: minmax(0, 24rem); justify-content: center; }
.leadpro { position: relative; display: flex; flex-direction: column; align-items: center; gap: .45rem; height: 100%; padding: 1.75rem 1.25rem 1.4rem; text-align: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-1); overflow: hidden; transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s ease, border-color .3s ease; }
.leadpro::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 64px; background: linear-gradient(135deg, var(--navy-900), var(--navy-600)); }
.leadpro:hover { transform: translateY(-5px); box-shadow: var(--shadow-3); border-color: var(--navy-300); }
.leadpro-avatar { position: relative; display: grid; place-items: center; width: 4.6rem; height: 4.6rem; margin-top: .6rem; border-radius: 50%; background: linear-gradient(140deg, var(--gold-500), var(--gold-300)); color: var(--navy-950); font-size: 1.45rem; font-weight: 800; border: 4px solid var(--white); box-shadow: var(--shadow-2); transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.leadpro:hover .leadpro-avatar { transform: scale(1.08); }
.leadpro.is-sample .leadpro-avatar { background: var(--navy-100); color: var(--navy-600); }
.leadpro h3 { margin: .25rem 0 0; font-size: var(--fs-md); color: var(--navy-900); }
.leadpro-role { margin: 0; padding: .2rem .8rem; border-radius: var(--r-pill); background: var(--navy-50); color: var(--navy-700); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.leadpro-bio { margin: .25rem 0 0; font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

@keyframes sec-fade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .catpro, .catpro-art, .regcard, .regcard::before, .regcard-avatar, .leadpro, .leadpro-avatar, .nx-item, .reg-btn, .reg-dot { transition: none; }
  .catpro:hover, .regcard:hover, .leadpro:hover, .nx-item:hover { transform: none; }
  .reg-track { scroll-behavior: auto; }
  .catpro-docs ul { animation: none; }
}
