/* ============================================================================
   Saneck — enhancement layer.
   Loads after base.css. Everything here is either (a) UI the original bundle
   drew in JS and therefore has no compiled styles, or (b) a light polish pass:
   motion, focus states, hover feedback. The original palette and type scale
   are reused throughout so the result still reads as the same site.
   ========================================================================== */

:root {
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ring: 0 0 0 3px rgba(0, 184, 190, .35);
  --card-shadow: 0 1px 2px rgba(38, 39, 39, .05), 0 8px 24px -12px rgba(38, 39, 39, .18);
  --card-shadow-lift: 0 2px 4px rgba(38, 39, 39, .06), 0 18px 40px -16px rgba(38, 39, 39, .28);
}

html { scroll-behavior: smooth; color-scheme: light; }

/* The original markup never painted a page background, so the document
   borrowed whatever ground the host/browser supplied (dark in a dark UA).
   Pin it explicitly. */
body {
  background: var(--white-primary);
  color: var(--black-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.no-scroll { overflow: hidden; }

img { max-width: 100%; }

::selection { background: var(--saneck-primary-200); color: var(--black-primary); }

/* Visible, on-brand focus for keyboard users only. */
:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: 6px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------- reveals -- */

[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition: opacity .7s var(--ease-out) var(--d, 0ms),
              transform .7s var(--ease-out) var(--d, 0ms);
  will-change: opacity, transform;
}
[data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

/* ---------------------------------------------------------------- header -- */

.fixed.z-40 { width: 100%; transition: box-shadow .3s var(--ease); }
.fixed.z-40.is-stuck { box-shadow: 0 6px 24px -14px rgba(38, 39, 39, .45); }

.nav-link { position: relative; transition: color .25s var(--ease); }
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--saneck-primary-600); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
a:hover .nav-link { color: var(--black-primary); }
a:hover .nav-link::after { transform: scaleX(1); }

/* Buttons pick up a subtle lift + the chevron slides. */
.mainbtn { transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.mainbtn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -14px rgba(0, 102, 79, .7); }
.mainbtn:active { transform: translateY(0); }
.mainbtn button img { transition: transform .3s var(--ease); }
.mainbtn:hover button img { transform: translateX(5px); }

.arrow img { transition: transform .3s var(--ease); }
.arrow:hover img { transform: translateX(5px); }

.footer-border { position: relative; }
.footer-border img { transition: transform .3s var(--ease); }
.footer-border:hover img { transform: translate(3px, -3px); }

/* Brands flyout ------------------------------------------------------------ */

.brands { position: relative; cursor: pointer; }
.brands > p { transition: opacity .2s var(--ease); }
/* chevron only - an unscoped selector also flipped the brand logos in the menu */
.brands > img { transition: transform .3s var(--ease); }
.brands.is-open > img { transform: rotate(180deg); }

.brands-menu {
  position: absolute; top: calc(100% + 14px); right: 0; z-index: 60;
  min-width: 17rem; padding: .5rem;
  background: #fff; border-radius: .75rem;
  box-shadow: 0 24px 48px -20px rgba(38, 39, 39, .45), 0 0 0 1px rgba(38, 39, 39, .06);
  opacity: 0; visibility: hidden;
  transform: translateY(-8px) scale(.98); transform-origin: top right;
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
}
.brands.is-open .brands-menu { opacity: 1; visibility: visible; transform: none; }
.brands-menu::before {
  content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px;
}
.brands-menu a {
  display: flex; align-items: center; gap: .75rem;
  padding: .625rem .75rem; border-radius: .5rem;
  color: var(--black-primary); font-size: .875rem; line-height: 1.25;
  transition: background .2s var(--ease);
}
.brands-menu a:hover { background: var(--bg-color); }
.brands-menu a span { flex: 1; }
.brands-menu a img { width: 44px; height: 18px; object-fit: contain; object-position: left center; }
.brands-menu a .go { width: 16px; height: 16px; opacity: .55; transition: transform .25s var(--ease); }
.brands-menu a:hover .go { transform: translate(3px, -3px); opacity: 1; }

/* Mobile drawer ------------------------------------------------------------ */

.drop-downmenu.drawer {
  display: block !important;
  max-height: 0; overflow: hidden;
  /* the markup carries pt-6 pb-24; under border-box that 120px of padding sets a
     floor max-height:0 cannot cross, so the closed drawer kept propping the
     header open. Collapse the padding too. */
  padding-top: 0; padding-bottom: 0;
  opacity: 0; visibility: hidden;
  transition: max-height .4s var(--ease), padding .4s var(--ease),
              opacity .3s var(--ease), visibility .4s;
}
.drop-downmenu.drawer.is-open {
  max-height: min(80vh, 40rem); overflow-y: auto;
  padding-top: 1.5rem; padding-bottom: 6rem;
  opacity: 1; visibility: visible;
}
.drop-downmenu.drawer a p { transition: color .2s var(--ease), transform .25s var(--ease); }
.drop-downmenu.drawer a:hover p { color: var(--saneck-primary-800); transform: translateX(4px); }

/* ------------------------------------------------------------------- FAQ -- */

.faq-item {
  border-color: rgba(38, 39, 39, .12);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
}
.faq-item:hover { border-color: var(--saneck-primary-300); }
.faq-item.is-open {
  border-color: var(--saneck-primary-400);
  box-shadow: var(--card-shadow);
}
.faq-q { cursor: pointer; background: none; border: 0; padding: 0; font: inherit; color: inherit; }
.faq-icon { width: 24px; height: 24px; transition: transform .3s var(--ease); }
.faq-item.is-open .faq-icon { transform: rotate(180deg); }
.faq-a { height: 0; overflow: hidden; transition: height .35s var(--ease); }

/* --------------------------------------------------------------- sections -- */

.shadow-md {
  box-shadow: var(--card-shadow) !important;
  transition: box-shadow .35s var(--ease), transform .35s var(--ease);
}
.shadow-md:hover { box-shadow: var(--card-shadow-lift) !important; transform: translateY(-3px); }

/* Slow ken-burns drift on the large editorial images. */
.overflow-hidden > img[class*="object-cover"] {
  transition: transform 1.2s var(--ease-out);
}
.overflow-hidden:hover > img[class*="object-cover"] { transform: scale(1.05); }

/* Scroll cue on the hero gets a gentle bob. */
.hero-section img[alt="scroll-down"] {
  animation: bob 2.4s var(--ease) infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); opacity: .75; }
  50%      { transform: translateY(7px); opacity: 1; }
}

/* --------------------------------------------------------------- team rail -- */

.team-slider { position: relative; }
.team-rail {
  display: flex; gap: 1.25rem;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: .5rem .25rem 1.5rem;
  scrollbar-width: none;
}
.team-rail::-webkit-scrollbar { display: none; }
.team-card {
  flex: 0 0 auto; scroll-snap-align: center;
  min-width: 14rem; padding: 1.75rem 1.25rem;
  background: #fff; border-radius: .875rem;
  box-shadow: var(--card-shadow);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--card-shadow-lift); }
.team-dots { display: flex; gap: .5rem; justify-content: center; padding-bottom: 2rem; }
.team-dots button {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px;
  background: rgba(38, 39, 39, .2); cursor: pointer;
  transition: width .3s var(--ease), background .3s var(--ease);
}
.team-dots button.is-on { width: 22px; background: var(--saneck-primary-600); }

/* --------------------------------------------------------------- products -- */

/* stand-in for the icon the original site 404s on */
.filter-ico {
  display: inline-block; width: 1.25rem; height: 1.25rem;
  background:
    linear-gradient(currentColor, currentColor) 0 15% / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) 0 50% / 72% 2px no-repeat,
    linear-gradient(currentColor, currentColor) 0 85% / 44% 2px no-repeat;
  color: var(--black-primary);
}

.cat { border-bottom: 1px solid rgba(38, 39, 39, .08); }
.cat-head {
  display: flex; align-items: center; gap: .75rem; width: 100%;
  padding: .875rem .25rem; background: none; border: 0; cursor: pointer;
  font: inherit; color: var(--black-primary); text-align: left;
  transition: color .2s var(--ease);
}
.cat-head:hover { color: var(--saneck-primary-800); }
.cat-ico { width: 34px; height: 34px; object-fit: contain; flex: 0 0 auto; }
.cat-name { flex: 1; font-size: .95rem; }
.cat-sign {
  position: relative; width: 14px; height: 14px; flex: 0 0 auto;
}
.cat-sign::before, .cat-sign::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  background: currentColor; transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.cat-sign::before { width: 100%; height: 2px; }
.cat-sign::after  { width: 2px; height: 100%; }
.cat.is-open .cat-sign::after { transform: rotate(90deg); opacity: 0; }

.cat-types { display: flex; flex-direction: column; padding: 0 0 .75rem 3.1rem; }
.type {
  padding: .45rem .625rem; margin-bottom: .2rem;
  background: none; border: 0; border-radius: .4rem; cursor: pointer;
  font: inherit; font-size: .875rem; color: #5a5f5f; text-align: left;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.type:hover { background: var(--bg-color); color: var(--saneck-primary-900); }
.type.is-on {
  background: var(--saneck-primary-600); color: #fff;
}

.psearch { position: relative; margin: 0 0 1.5rem; }
.psearch input {
  width: 100%; padding: .8rem 2.5rem .8rem 1rem;
  border: 1px solid rgba(38, 39, 39, .15); border-radius: .625rem;
  font: inherit; font-size: .9rem; background: #fff;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.psearch input:focus {
  outline: none; border-color: var(--saneck-primary-500); box-shadow: var(--ring);
}
.psearch-clear {
  position: absolute; right: .5rem; top: 50%; transform: translateY(-50%);
  width: 1.75rem; height: 1.75rem; border: 0; border-radius: 50%;
  background: rgba(38, 39, 39, .07); cursor: pointer; font-size: 1.1rem; line-height: 1;
  color: var(--black-primary);
}

.pcard {
  display: flex; flex-direction: column; gap: .35rem;
  padding: .75rem; background: #fff; border: 1px solid rgba(38, 39, 39, .08);
  border-radius: .875rem; cursor: pointer; text-align: left; font: inherit;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.pcard:hover {
  transform: translateY(-4px);
  border-color: var(--saneck-primary-300);
  box-shadow: var(--card-shadow-lift);
}
.pcard-media {
  display: block; aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: .625rem; background: var(--bg-color); margin-bottom: .5rem;
}
.pcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.pcard:hover .pcard-media img { transform: scale(1.06); }
.pcard-noimg { display: block; width: 100%; height: 100%; background: var(--bg-color); }
.pcard-meta { font-size: .7rem; letter-spacing: .04em; text-transform: uppercase; color: #7a8080; }
.pcard-meta i { font-style: normal; color: var(--saneck-primary-600); }
.pcard-code { font-family: Lexend-Medium, sans-serif; font-size: .8rem; color: var(--black-primary); }
.pcard-name {
  font-size: .82rem; color: #5a5f5f; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pcard-view {
  margin-top: .35rem; font-size: .8rem; color: #00664F;
  display: inline-flex; align-items: center; gap: .3rem;
}
.pcard-view::after { content: "→"; transition: transform .25s var(--ease); }
.pcard:hover .pcard-view::after { transform: translateX(4px); }

.pager { display: flex; align-items: center; justify-content: center; gap: .4rem; padding: 2.5rem 0 1rem; }
.pager .pg {
  min-width: 2.25rem; height: 2.25rem; padding: 0 .5rem;
  border: 1px solid transparent; border-radius: .5rem; background: none;
  font: inherit; font-size: .875rem; color: #5a5f5f; cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.pager .pg:hover { background: var(--bg-color); color: var(--saneck-primary-900); }
.pager .pg.is-on { background: var(--saneck-primary-600); color: #fff; }
.pager .pg-arrow {
  width: 2.25rem; height: 2.25rem; border: 0; background: none; cursor: pointer;
  opacity: .8; transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.pager .pg-arrow:hover:not(:disabled) { opacity: 1; transform: scale(1.08); }
.pager .pg-arrow:disabled { opacity: .25; cursor: default; }

/* Product modal ------------------------------------------------------------ */

.pmodal { position: fixed; inset: 0; z-index: 90; visibility: hidden; }
.pmodal.is-open { visibility: visible; }
.pmodal-scrim {
  position: absolute; inset: 0; background: rgba(20, 26, 26, .55);
  backdrop-filter: blur(3px); opacity: 0; transition: opacity .3s var(--ease);
}
.pmodal.is-open .pmodal-scrim { opacity: 1; }
.pmodal-box {
  position: absolute; left: 50%; top: 50%;
  width: min(64rem, calc(100vw - 2rem)); max-height: min(88vh, 52rem);
  overflow-y: auto; background: #fff; border-radius: 1rem; padding: 1.5rem;
  transform: translate(-50%, -46%) scale(.97); opacity: 0;
  transition: transform .35s var(--ease-out), opacity .3s var(--ease);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .6);
}
.pmodal.is-open .pmodal-box { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.pmodal-x {
  position: sticky; float: right; top: 0; z-index: 2;
  width: 2.25rem; height: 2.25rem; border: 0; border-radius: 50%;
  background: rgba(38, 39, 39, .07); cursor: pointer;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.pmodal-x:hover { background: rgba(38, 39, 39, .14); transform: rotate(90deg); }
.pmodal-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
/* grid items default to min-width:auto, which lets the spec table push the
   text column past the dialog edge — let them shrink instead. */
.pmodal-grid > * { min-width: 0; }
@media (min-width: 62rem) { .pmodal-grid { grid-template-columns: 5fr 6fr; } }
.pmodal-media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: .75rem; background: var(--bg-color);
}
.pmodal-thumbs { display: flex; gap: .5rem; margin-top: .625rem; flex-wrap: wrap; }
.pthumb {
  width: 4rem; height: 4rem; padding: 0; overflow: hidden; cursor: pointer;
  border: 2px solid transparent; border-radius: .5rem; background: var(--bg-color);
  transition: border-color .2s var(--ease);
}
.pthumb img { width: 100%; height: 100%; object-fit: cover; }
.pthumb.is-on { border-color: var(--saneck-primary-600); }
.pmodal-crumb { font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; color: #7a8080; }
.pmodal-crumb i { font-style: normal; color: var(--saneck-primary-600); }
.pmodal-title { font-family: Lexend-Medium, sans-serif; font-size: 1.5rem; line-height: 1.3; margin: .4rem 0; }
.pmodal-code { font-family: Lexend-Medium, sans-serif; color: var(--saneck-primary-800); margin-bottom: 1rem; }
.pmodal-desc { color: #5a5f5f; line-height: 1.75; font-size: .9rem; overflow-wrap: anywhere; }
.pmodal-sizes { margin-top: 1.5rem; overflow-x: auto; }
.pmodal-sizes table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.pmodal-sizes th, .pmodal-sizes td { padding: .55rem .75rem; text-align: left; white-space: nowrap; }
.pmodal-sizes thead th { background: var(--bg-color); color: var(--saneck-primary-900); }
.pmodal-sizes tbody tr { border-bottom: 1px solid rgba(38, 39, 39, .07); }
.pmodal-docs { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.pmodal-docs a {
  padding: .45rem .8rem; border: 1px solid rgba(38, 39, 39, .15); border-radius: .5rem;
  font-size: .8rem; color: var(--saneck-primary-900);
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.pmodal-docs a:hover { background: var(--bg-color); border-color: var(--saneck-primary-300); }
.pmodal-cta {
  display: inline-block; margin-top: 1.75rem; padding: .8rem 1.5rem;
  background: var(--saneck-primary-800); color: #fff; border-radius: .55rem; font-size: .9rem;
  transition: transform .25s var(--ease), background .25s var(--ease);
}
.pmodal-cta:hover { background: var(--saneck-primary-900); transform: translateY(-2px); }

/* Mobile filter drawer ----------------------------------------------------- */

@media (max-width: 1023px) {
  body.filters-open .lg\:w-1\/4.hidden.lg\:block {
    display: block !important;
    position: fixed; inset: 0 22% 0 0; z-index: 80;
    background: #fff; overflow-y: auto; padding: 5.5rem 1rem 2rem;
    box-shadow: 0 0 60px rgba(0, 0, 0, .3);
    animation: slideIn .3s var(--ease-out);
  }
  @keyframes slideIn { from { transform: translateX(-100%); } to { transform: none; } }
}

/* ------------------------------------------------------------------ forms -- */

input.has-err, textarea.has-err, select.has-err {
  border-color: #e0564a !important;
  box-shadow: 0 0 0 3px rgba(224, 86, 74, .15);
}
.field-err {
  display: block; margin-top: .3rem; font-size: .75rem; color: #c8402f;
  animation: fadeUp .25s var(--ease-out);
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }

input, textarea, select {
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}

button.is-busy { position: relative; color: transparent !important; pointer-events: none; }
button.is-busy::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 1.1rem; height: 1.1rem; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Credit-application step strip */
.wizard-tabs > * {
  cursor: pointer; position: relative;
  transition: color .25s var(--ease), opacity .25s var(--ease);
}
.wizard-tabs > *::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--saneck-primary-600); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.wizard-tabs > *.is-active { color: var(--saneck-primary-900); }
.wizard-tabs > *.is-active::after { transform: scaleX(1); }
.wizard-tabs > *.is-done { color: var(--saneck-primary-700); }

/* Toast -------------------------------------------------------------------- */

.toast {
  position: fixed; left: 50%; bottom: 1.75rem; z-index: 100;
  display: flex; align-items: center; gap: .625rem;
  max-width: min(26rem, calc(100vw - 2rem));
  padding: .875rem 1.125rem; border-radius: .625rem;
  background: var(--black-primary); color: #fff; font-size: .875rem; line-height: 1.4;
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .6);
  transform: translate(-50%, 130%); opacity: 0;
  transition: transform .4s var(--ease-out), opacity .3s var(--ease);
}
.toast.is-in { transform: translate(-50%, 0); opacity: 1; }
.toast.is-ok  { background: var(--saneck-primary-900); }
.toast.is-err { background: #7d2b21; }
.toast img { flex: 0 0 auto; }

/* ----------------------------------------------------------------- footer -- */

.footer a { transition: opacity .2s var(--ease); }
.footer a:hover { opacity: .82; }
