/* ══════════════════════════════════════════
   category-template.css
   TrussTech — B2B Category Page Template
   Light backgrounds only. No dark sections.
   ══════════════════════════════════════════ */

/* ── Nav override: dark hero ── */

body.cat-page .nav:not(.is-scrolled) .nav__pill {
  background: rgba(0,0,0,0.25);
  border-color: rgba(255,255,255,0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}
body.cat-page .nav:not(.is-scrolled) .nav__logo-white { display: block; }
body.cat-page .nav:not(.is-scrolled) .nav__logo-black { display: none; }
body.cat-page .nav:not(.is-scrolled) .nav__link       { color: rgba(255,255,255,0.92); }
body.cat-page .nav:not(.is-scrolled) .nav__link:hover  { color: rgba(255,255,255,0.95); }
body.cat-page .nav:not(.is-scrolled) .nav__link::after { background: var(--lime); }
body.cat-page .nav:not(.is-scrolled) .nav__hamburger   { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.12); }
body.cat-page .nav:not(.is-scrolled) .nav__hamburger-line { background-color: rgba(255,255,255,0.85); }
/* Arrow circle: visible on lime button over dark hero */
body.cat-page .nav:not(.is-scrolled) .nav__cta-arrow  { border-color: rgba(0,0,0,0.25); }
/* Active link: only force white when NOT scrolled */
body.cat-page .nav:not(.is-scrolled) .nav__link--active { color: rgba(255,255,255,0.95) !important; }
body.cat-page .nav:not(.is-scrolled) .nav__link--active::after { width: 100% !important; }
/* Active link: normal black when scrolled */
body.cat-page .nav.is-scrolled .nav__link--active { color: var(--black) !important; }
body.cat-page .nav.is-scrolled .nav__link--active::after { width: 100% !important; background: var(--black) !important; }

/* ══════════════════════════════════════════
   HERO
   ══════════════════════════════════════════ */

.ct-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--black);
  overflow: hidden;
  padding-top: 100px;
}

.ct-hero__bg { position: absolute; inset: 0; }
.ct-hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.32; }

.ct-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(17,17,17,0.96) 0%, rgba(17,17,17,0.55) 45%, rgba(17,17,17,0.18) 100%);
  z-index: 1;
}

.ct-hero__inner {
  position: relative; z-index: 2;
  padding: 0 var(--gutter) 48px;
  max-width: var(--container-wide);
  margin: 0 auto; width: 100%;
}

.ct-hero__breadcrumb {
  font-size: 11px; letter-spacing: 0.06em;
  color: rgba(255,255,255,0.35);
  margin-bottom: 52px;
  display: flex; align-items: center; flex-wrap: wrap;
}
.ct-hero__breadcrumb a { color: rgba(255,255,255,0.35); transition: color var(--transition); }
.ct-hero__breadcrumb a:hover { color: rgba(255,255,255,0.8); }
.ct-hero__breadcrumb-sep { margin: 0 8px; color: rgba(255,255,255,0.15); }

.ct-hero__eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--lime);
  display: flex; align-items: center; gap: 14px; margin-bottom: 20px;
}
.ct-hero__eyebrow::before { content: ''; width: 32px; height: 1px; background: var(--lime); }

.ct-hero__headline {
  font-size: clamp(52px, 8vw, 120px);
  font-weight: 700; line-height: 0.92;
  letter-spacing: -0.045em; color: var(--white);
  margin: 0 0 28px; max-width: 14ch;
}

.ct-hero__valueprop {
  font-size: 15px; font-weight: 300; line-height: 1.85;
  color: rgba(255,255,255,0.55); max-width: 52ch; margin-bottom: 36px;
}

.ct-hero__actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* Stat bar — sits at the bottom of the hero, full width */
.ct-hero__stat-bar {
  position: relative; z-index: 2;
  background: rgba(255,255,255,0.04);
  border-top: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.ct-hero__stat-bar-inner {
  max-width: var(--container-wide); margin: 0 auto;
  padding: 28px var(--gutter);
}
.ct-hero__stats { display: flex; gap: 56px; flex-wrap: wrap; }
.ct-hero__stat { display: flex; flex-direction: column; }
.ct-hero__stat-num {
  font-family: var(--font-heading); font-size: 36px; font-weight: 700;
  color: var(--white); letter-spacing: -0.02em; line-height: 1;
}
.ct-hero__stat-label {
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.35); margin-top: 6px;
}

.ct-hero__scroll {
  position: absolute; bottom: 120px; right: var(--gutter); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.ct-hero__scroll-text {
  font-size: 9px; font-weight: 500; letter-spacing: 0.2em;
  text-transform: uppercase; color: rgba(255,255,255,0.25);
}
.ct-hero__scroll-line {
  width: 1px; height: 32px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
  animation: ct-pulse 2s ease-in-out infinite;
}
@keyframes ct-pulse { 0%,100% { opacity: 0.3; } 50% { opacity: 0.8; } }

/* ══════════════════════════════════════════
   LISTING — Full-width layout
   ══════════════════════════════════════════ */

.ct-listing {
  background: var(--white);
  padding: 80px 0 100px;
}
.ct-listing__inner {
  max-width: var(--container-wide); margin: 0 auto; padding: 0 var(--gutter);
}

/* ── Unified topbar: title + filters + sort in one row ── */

.ct-listing__topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding-bottom: 0;
  margin-bottom: 40px;
  border-bottom: none;
  overflow: visible;
}
.ct-listing__title {
  font-size: clamp(28px, 3.5vw, 48px); font-weight: 700;
  letter-spacing: -0.035em; color: var(--black); line-height: 1; margin: 0;
  flex-shrink: 0;
}
.ct-listing__title em { font-style: normal; color: var(--lime); }

.ct-listing__controls {
  display: flex; align-items: center; gap: 12px;
  overflow: visible;
  flex-shrink: 0;
}
.ct-listing__count {
  font-size: 12px; color: var(--gray-light); white-space: nowrap;
}
.ct-listing__sort-wrap {
  display: flex; align-items: center; gap: 6px;
  position: relative;
  overflow: visible;
}
.ct-listing__sort-label {
  font-size: 10px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--gray-light); white-space: nowrap;
}
.ct-listing__sort-select {
  font-size: 13px; font-weight: 500; color: var(--black);
  padding: 8px 32px 8px 12px;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--white); cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236B6B6B' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
  transition: border-color var(--transition);
}
.ct-listing__sort-select:hover { border-color: var(--black); }

/* Body: full width */
.ct-listing__body {
  display: block;
}

/* ── Filter — lives inside the topbar controls, inline with sort ── */

.ct-filter {
  position: static;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  overflow: visible;
}

.ct-filter__panel-label { display: none; }

/* Each dropdown wrapper — must allow overflow for the panel */
.ct-filter__group {
  position: relative;
  border: none; padding: 0;
  flex-shrink: 0;
  overflow: visible;
}

/* Trigger button */
.ct-filter__trigger {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-body);
  font-size: 13px; font-weight: 500; color: var(--black);
  padding: 8px 14px;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--white); cursor: pointer;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
  user-select: none;
}
.ct-filter__trigger:hover {
  border-color: var(--black);
}
.ct-filter__trigger.is-open {
  border-color: var(--black);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.ct-filter__trigger.has-filter {
  background: var(--black); color: var(--white);
  border-color: var(--black);
}

.ct-filter__trigger-label {
  font-size: 10px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--gray-light);
}
.ct-filter__trigger.has-filter .ct-filter__trigger-label {
  color: rgba(255,255,255,0.5);
}

.ct-filter__trigger-value {
  font-weight: 600;
}

.ct-filter__trigger-icon {
  width: 10px; height: 10px; flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}
.ct-filter__trigger.is-open .ct-filter__trigger-icon {
  transform: rotate(180deg);
}
.ct-filter__trigger.has-filter .ct-filter__trigger-icon {
  color: rgba(255,255,255,0.5);
}

/* Dropdown panel — rendered in body-level container, positioned by JS */
.ct-filter__dropdown {
  position: fixed;
  width: auto;
  min-width: 140px;
  max-width: 280px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.10), 0 0 0 1px rgba(0,0,0,0.03);
  padding: 4px;
  z-index: 9000;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  max-height: min(360px, 60vh);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.ct-filter__dropdown.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

/* Option buttons inside dropdown */
.ct-filter__option {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
  width: 100%;
  font-family: var(--font-body);
  font-size: 13px; font-weight: 400; color: var(--gray);
  padding: 8px 12px;
  border: none; border-radius: 6px;
  background: transparent; cursor: pointer;
  text-align: left;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}
.ct-filter__option:hover {
  color: var(--black); background: var(--off-white);
}
.ct-filter__option.is-active {
  color: var(--black); font-weight: 600;
  background: rgba(168,204,54,0.10);
}
.ct-filter__option-check {
  width: 14px; height: 14px; flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.ct-filter__option.is-active .ct-filter__option-check {
  opacity: 1;
}

/* Backdrop to close dropdown on outside click */
.ct-filter__backdrop {
  position: fixed; inset: 0; z-index: 8999;
  display: none;
}
.ct-filter__backdrop.is-open { display: block; }

/* Old classes — no longer rendered */
.ct-filter__group-label { display: none; }
.ct-filter__group-btns { display: none; }
.ct-filter__btn { display: none; }
.ct-filter__select { display: none; }
.ct-filter__label { display: none; }

.ct-filter__reset {
  font-size: 10px; font-weight: 500; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--gray-light);
  padding: 8px 12px; text-align: center;
  background: transparent; border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer; transition: all 0.25s var(--ease);
  flex-shrink: 0; width: auto;
}
.ct-filter__reset:hover { color: var(--black); border-color: var(--border); }

/* ── Grid — 3 columns, full width ── */

.ct-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 28px;
  align-content: start;
}

/* ── Card ── */

.ct-card {
  background: transparent;
  border: none; border-radius: 0;
  overflow: visible;
  display: flex; flex-direction: column;
  cursor: pointer;
  position: relative;
}

/* Image — fills the card, no inner padding, product is the hero */
.ct-card__visual {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center;
  padding: 0;
  background: var(--off-white);
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow 0.5s var(--ease);
}
.ct-card:hover .ct-card__visual {
  box-shadow: 0 20px 56px rgba(0,0,0,0.09);
}
.ct-card__visual img {
  width: 100%; height: 100%; object-fit: contain;
  padding: 12%;
  transition: transform 0.65s var(--ease);
  position: relative; z-index: 1;
}
.ct-card:hover .ct-card__visual img { transform: scale(1.06); }

/* Hover overlay */
.ct-card__overlay {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: flex-end; justify-content: center;
  padding: 20px;
  background: linear-gradient(to top, rgba(17,17,17,0.6) 0%, rgba(17,17,17,0) 50%);
  border-radius: 16px;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.ct-card:hover .ct-card__overlay { opacity: 1; pointer-events: auto; }

.ct-card__overlay-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--black);
  background: var(--lime); padding: 11px 24px;
  border-radius: var(--radius-pill); border: none;
  transform: translateY(12px);
  transition: transform 0.4s var(--ease), background 0.25s var(--ease);
  cursor: pointer;
}
.ct-card:hover .ct-card__overlay-btn { transform: translateY(0); }
.ct-card__overlay-btn:hover { background: var(--lime-dark); }
.ct-card__overlay-btn svg { width: 14px; height: 14px; }

/* Touch devices have no hover: reveal the overlay/CTA so it's reachable */
@media (hover: none) {
  .ct-card__overlay {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
  }
  .ct-card__overlay-btn {
    transform: translateY(0);
  }
}

/* Touch targets: bump filter/sort triggers to a 44px minimum height */
@media (hover: none) {
  .ct-filter__trigger,
  .ct-listing__sort-wrap .ct-sort-custom .ct-filter__trigger,
  .ct-filter__reset {
    min-height: 44px;
  }
}

/* Type badge — top-left */
.ct-card__type-badge {
  position: absolute; top: 12px; left: 12px; z-index: 3;
  font-size: 9px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--gray);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  padding: 5px 12px; border-radius: var(--radius-pill);
  transition: opacity 0.3s var(--ease);
}
.ct-card:hover .ct-card__type-badge { opacity: 0; }

/* Body */
.ct-card__body {
  padding: 16px 4px 0;
  display: flex; flex-direction: column; flex: 1;
}

.ct-card__meta {
  display: none;
}
.ct-card__num { display: none; }

.ct-card__name {
  font-size: clamp(16px, 1.4vw, 20px); font-weight: 700;
  letter-spacing: -0.015em; color: var(--black);
  line-height: 1.25; margin: 0 0 6px;
  transition: color 0.3s var(--ease);
}
.ct-card:hover .ct-card__name { color: var(--lime-dark); }

.ct-card__desc {
  font-size: 13px; font-weight: 300; line-height: 1.6;
  color: var(--gray); margin-bottom: 12px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Spec chips */
.ct-card__specs {
  display: flex; gap: 5px; flex-wrap: wrap;
  margin-top: auto;
}
.ct-card__spec {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 10px; font-weight: 500; letter-spacing: 0.02em;
  color: var(--gray);
  padding: 4px 10px;
  background: var(--off-white);
  border-radius: var(--radius-pill);
  transition: background 0.25s var(--ease);
}
.ct-card:hover .ct-card__spec { background: rgba(168,204,54,0.10); }
.ct-card__spec-val { font-weight: 700; color: var(--black); }
.ct-card__spec-label { color: var(--gray-light); }

/* Legacy elements hidden */
.ct-card__tags { display: none; }
.ct-card__cta { display: none; }

/* Empty state */
.ct-empty {
  display: flex; align-items: center; justify-content: center;
  min-height: 320px;
}
.ct-empty__inner {
  display: flex; flex-direction: column; align-items: center;
  gap: 16px; text-align: center;
}
.ct-empty__icon { font-size: 40px; color: var(--border); }
.ct-empty__msg { font-size: 15px; color: var(--gray); }

/* ══════════════════════════════════════════
   FEATURED SPOTLIGHT
   ══════════════════════════════════════════ */

.ct-spotlight {
  background: var(--off-white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0;
}
.ct-spotlight__inner {
  max-width: var(--container-wide); margin: 0 auto;
  padding: 88px var(--gutter);
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 72px; align-items: center;
}

.ct-spotlight__img-wrap {
  display: flex; align-items: center; justify-content: center;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 12px; padding: 48px 40px;
  aspect-ratio: 1 / 1;
}
.ct-spotlight__img {
  max-width: 80%; max-height: 80%; object-fit: contain;
}

.ct-spotlight__content { display: flex; flex-direction: column; gap: 20px; }

.ct-spotlight__badge {
  font-size: 10px; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--white);
  background: var(--black); padding: 5px 14px;
  border-radius: var(--radius-pill); width: fit-content;
}

.ct-spotlight__name {
  font-size: clamp(32px, 3.5vw, 56px); font-weight: 700;
  line-height: 1.0; letter-spacing: -0.035em; color: var(--black); margin: 0;
}

.ct-spotlight__desc {
  font-size: 14px; font-weight: 300; line-height: 1.85;
  color: var(--gray); max-width: 44ch;
}

.ct-spotlight__usecase {
  font-size: 13px; font-weight: 400; line-height: 1.7;
  color: var(--gray); padding: 16px 20px;
  background: rgba(168,204,54,0.08);
  border-left: 3px solid var(--lime);
  border-radius: 0 4px 4px 0;
}

.ct-spotlight__specs {
  display: flex; gap: 36px; flex-wrap: wrap;
  padding: 24px 0; border-top: 1px solid var(--border);
}
.ct-spotlight__spec { display: flex; flex-direction: column; }
.ct-spotlight__spec-val {
  font-family: var(--font-heading); font-size: 28px; font-weight: 700;
  color: var(--black); letter-spacing: -0.02em; line-height: 1;
}
.ct-spotlight__spec-label {
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gray-light); margin-top: 6px;
}

.ct-spotlight__certs {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.ct-spotlight__cert {
  font-size: 10px; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--gray);
  padding: 5px 12px; border: 1px solid var(--border);
  border-radius: var(--radius-pill);
}

.ct-spotlight__cta { width: fit-content; gap: 10px; }
.ct-spotlight__cta::after { content: ' →'; }

/* ══════════════════════════════════════════
   SOCIAL PROOF
   ══════════════════════════════════════════ */

.ct-social-proof {
  background: var(--white);
  padding: 88px 0;
}
.ct-proof__inner {
  max-width: var(--container-wide); margin: 0 auto; padding: 0 var(--gutter);
}
.ct-proof__header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 40px; padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.ct-proof__headline {
  font-family: var(--font-heading);
  font-size: clamp(22px, 2.6vw, 38px); font-weight: 700;
  line-height: 1.15; letter-spacing: -0.03em; color: var(--black); margin: 0;
}
.ct-proof__headline em { font-style: normal; color: var(--lime); }
.ct-proof__subline {
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gray-light); white-space: nowrap; flex-shrink: 0;
}

.ct-proof__logos {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
}
.ct-proof__logo {
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  padding: 28px 24px; aspect-ratio: 16 / 9;
  transition: background 0.3s var(--ease);
}
.ct-proof__logo:hover { background: var(--off-white); }
.ct-proof__logo img {
  max-width: 100%; max-height: 38px; object-fit: contain;
  filter: grayscale(100%); opacity: 0.5;
  transition: filter 0.3s var(--ease), opacity 0.3s var(--ease);
}
.ct-proof__logo:hover img { filter: grayscale(0%); opacity: 1; }

/* ══════════════════════════════════════════
   CONSULTATION CTA
   ══════════════════════════════════════════ */

.ct-consultation {
  background: var(--off-white);
  border-top: 1px solid var(--border);
  padding: 100px 0 120px;
}
.ct-consult__inner {
  max-width: var(--container-wide); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: 80px; align-items: start;
}

.ct-consult__copy {
  position: sticky;
  top: 120px;
}

.ct-consult__headline {
  font-size: clamp(40px, 5.5vw, 80px); font-weight: 700;
  line-height: 0.95; letter-spacing: -0.04em; color: var(--black);
  margin: 16px 0 24px;
}

.ct-consult__subline {
  font-size: 15px; font-weight: 300; line-height: 1.85;
  color: var(--gray); max-width: 38ch;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

/* Trust signals below the copy */
.ct-consult__trust {
  display: flex; flex-direction: column; gap: 12px;
  margin-top: 32px;
}
.ct-consult__trust-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 400; color: var(--gray);
}
.ct-consult__trust-item::before {
  content: '';
  width: 18px; height: 18px; flex-shrink: 0;
  background: var(--lime);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' viewBox='0 0 10 8'%3E%3Cpath d='M1 4l3 3 5-6' stroke='%23111' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* Form */
.ct-consult__form {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 12px; padding: 40px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.05);
}
.ct-consult__form-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--lime); margin-bottom: 28px;
  display: block;
}
.ct-consult__fields { display: flex; flex-direction: column; gap: 16px; margin-bottom: 28px; }
.ct-consult__field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ct-consult__field { display: flex; flex-direction: column; gap: 6px; }
.ct-consult__label {
  font-size: 11px; font-weight: 500; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--gray);
}
.ct-consult__optional { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--gray-light); }
.ct-consult__input {
  font-family: var(--font-body); font-size: 14px; color: var(--black);
  padding: 12px 16px; border: 1px solid var(--border);
  border-radius: 6px; background: var(--white);
  transition: border-color var(--transition);
  width: 100%;
}
.ct-consult__input:focus { border-color: var(--lime); outline: none; }
.ct-consult__input::placeholder { color: var(--gray-light); }
.ct-consult__textarea { resize: vertical; min-height: 88px; }
.ct-consult__btn { width: 100%; justify-content: center; }

/* ══════════════════════════════════════════
   RESPONSIVE — Tablet (≤1023px)
   ══════════════════════════════════════════ */

@media (max-width: 1023px) {
  .ct-hero__headline { font-size: clamp(44px, 8vw, 80px); }
  .ct-hero__stats { gap: 36px; }
  .ct-hero__scroll { display: none; }

  .ct-listing { padding: 64px 0 80px; }
  .ct-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; }

  .ct-spotlight__inner { grid-template-columns: 1fr; gap: 48px; padding: 64px var(--gutter); }
  .ct-spotlight__img-wrap { max-width: 420px; margin: 0 auto; }

  .ct-proof__logos { grid-template-columns: repeat(4, 1fr); }
  .ct-proof__header { flex-direction: column; align-items: flex-start; gap: 8px; }

  .ct-consult__inner { grid-template-columns: 1fr; gap: 48px; }
  .ct-consult__copy { position: static; }
  .ct-consult__subline { max-width: 100%; }
}

/* ══════════════════════════════════════════
   RESPONSIVE — Mobile (≤767px)
   ══════════════════════════════════════════ */

@media (max-width: 767px) {
  .ct-hero { min-height: 90vh; min-height: 90svh; }
  .ct-hero__inner { padding-bottom: 40px; }
  .ct-hero__headline { font-size: clamp(36px, 11vw, 60px); margin-bottom: 20px; }
  .ct-hero__valueprop { font-size: 14px; }
  .ct-hero__actions { flex-direction: column; align-items: flex-start; }
  .ct-hero__stat-bar-inner { padding: 20px var(--gutter); }
  .ct-hero__stats { gap: 24px; }
  .ct-hero__stat-num { font-size: 28px; }

  .ct-listing { padding: 48px 0 64px; }
  .ct-listing__topbar { flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
  .ct-listing__title { width: 100%; font-size: clamp(26px, 8vw, 36px); margin-bottom: 2px; }

  .ct-listing__controls { width: 100%; gap: 6px; display: flex; align-items: center; overflow: hidden; }
  .ct-listing__count { display: none; }
  .ct-listing__sort-wrap { display: flex; flex-shrink: 0; }
  .ct-listing__sort-label { display: none; }
  .ct-listing__sort-wrap .ct-sort-custom .ct-filter__trigger { font-size: 12px; padding: 8px 10px; gap: 4px; border-radius: 8px; }
  .ct-listing__sort-wrap .ct-sort-custom .ct-filter__trigger-label { display: none; }
  .ct-listing__sort-wrap .ct-sort-custom .ct-filter__trigger-value { font-weight: 600; }

  /* iOS auto-zoom guard: native sort select must stay >=16px on mobile */
  .ct-listing__sort-select { font-size: 16px; }

  /* Filter bar: triggers shrink to fit */
  .ct-filter { gap: 6px; flex: 1; min-width: 0; }
  .ct-filter__trigger { font-size: 12px; padding: 8px 10px; gap: 4px; border-radius: 8px; min-width: 0; }
  .ct-filter__trigger-label { display: inline; font-size: 9px; font-weight: 600; letter-spacing: 0.05em; overflow: hidden; text-overflow: ellipsis; }
  .ct-filter__trigger-value { font-weight: 600; flex-shrink: 0; }
  .ct-filter__trigger-icon { width: 9px; height: 9px; flex-shrink: 0; }
  .ct-filter__reset { display: none; }

  .ct-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 12px; }

  .ct-card__visual { border-radius: 12px; }
  .ct-card__body { padding: 12px 2px 0; }
  .ct-card__name { font-size: 14px; }
  .ct-card__desc { font-size: 12px; }
  .ct-card__specs { gap: 3px; }
  .ct-card__spec { font-size: 9px; padding: 3px 7px; }
  .ct-card__overlay-btn { font-size: 10px; padding: 9px 18px; }

  .ct-spotlight__inner { padding: 48px var(--gutter); gap: 36px; }
  .ct-spotlight__name { font-size: clamp(26px, 7vw, 36px); }
  .ct-spotlight__specs { gap: 20px; }
  .ct-spotlight__spec-val { font-size: 22px; }

  .ct-social-proof { padding: 56px 0; }
  .ct-proof__logos { grid-template-columns: repeat(3, 1fr); }
  .ct-proof__logo { padding: 20px 16px; }
  .ct-proof__logo img { max-height: 30px; }

  .ct-consultation { padding: 64px 0 80px; }
  .ct-consult__form { padding: 28px 24px; }
  .ct-consult__field-row { grid-template-columns: 1fr; }

  /* iOS auto-zoom guard: keep focusable controls >=16px on mobile */
  .ct-consult__input,
  .ct-consult__textarea { font-size: 16px; }

  /* ── Mobile perf: remove backdrop-filter on stat bar ── */
  .ct-hero__stat-bar {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(17, 17, 17, 0.92);
  }

  /* ── Mobile perf: remove backdrop-filter on type badge ── */
  .ct-card__type-badge {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(255, 255, 255, 0.95);
  }

  /* ── Mobile perf: simplify box-shadow hover on cards ── */
  .ct-card:hover .ct-card__visual {
    box-shadow: none;
  }
}

/* ══════════════════════════════════════════
   RESPONSIVE — Small phones (≤400px)
   ══════════════════════════════════════════ */

@media (max-width: 400px) {
  .ct-hero__headline { font-size: 34px; }
  .ct-hero__stat-num { font-size: 24px; }

  .ct-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 10px; }

  .ct-proof__logos { grid-template-columns: repeat(2, 1fr); }

  .ct-consult__form { padding: 24px 18px; }
}

/* ── Cat-page nav: strip backdrop-filter on mobile to prevent blurry logo/hamburger ── */
@media (max-width: 960px) {
  body.cat-page .nav:not(.is-scrolled) .nav__pill {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
