/**
 * AARAF Builders — Visual-first storytelling layer
 * Requires: ab-tokens.css, ab-cinema.css
 */

/* ==========================================================================
   Service hub — central image + orbiting tiles
   ========================================================================== */

.vx-hub {
  display: grid;
  gap: var(--ab-space-8);
  align-items: center;
}

@media (min-width: 900px) {
  .vx-hub {
    grid-template-columns: 1fr 1.1fr;
    gap: var(--ab-space-12);
  }
}

.vx-hub__visual {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: 72vh;
  overflow: hidden;
  background: var(--ab-stone);
}

.vx-hub__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vx-hub__badge {
  position: absolute;
  bottom: var(--ab-space-5);
  left: var(--ab-space-5);
  padding: 0.35rem 0.65rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(26, 26, 26, 0.75);
  color: var(--ab-white);
}

.vx-hub__tiles {
  display: grid;
  gap: 1px;
  background: var(--ab-border);
  border: 1px solid var(--ab-border);
}

.vx-hub__tile {
  display: grid;
  grid-template-columns: 4rem 1fr auto;
  gap: var(--ab-space-4);
  align-items: center;
  padding: var(--ab-space-5);
  background: var(--ab-white);
  text-decoration: none;
  color: inherit;
  transition: background 0.25s ease;
}

.vx-hub__tile:hover {
  background: var(--ab-stone);
}

.vx-hub__tile-icon {
  width: 4rem;
  height: 4rem;
  overflow: hidden;
  background: var(--ab-stone);
}

.vx-hub__tile-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vx-hub__tile-title {
  font-family: var(--ab-font-display);
  font-size: 1.35rem;
  font-weight: 500;
  margin-bottom: 0.15rem;
}

.vx-hub__tile-text {
  font-size: var(--ab-fs-small);
  color: var(--ab-muted);
}

.vx-hub__tile-arrow {
  font-size: 1.25rem;
  color: var(--ab-red);
  transition: transform 0.25s ease;
}

.vx-hub__tile:hover .vx-hub__tile-arrow {
  transform: translateX(4px);
}

/* ==========================================================================
   QA visual anchor — 425+
   ========================================================================== */

.vx-qa {
  display: grid;
  gap: var(--ab-space-10);
}

@media (min-width: 1024px) {
  .vx-qa {
    grid-template-columns: 0.38fr 0.62fr;
    align-items: center;
    gap: var(--ab-space-16);
  }
}

.vx-qa__anchor {
  text-align: center;
}

@media (min-width: 1024px) {
  .vx-qa__anchor {
    text-align: left;
  }
}

.vx-qa__number {
  font-family: var(--ab-font-display);
  font-size: clamp(5rem, 3rem + 10vw, 9rem);
  line-height: 0.9;
  color: var(--ab-red);
  letter-spacing: -0.03em;
}

.vx-qa__label {
  font-size: clamp(1rem, 0.8rem + 0.8vw, 1.35rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ab-ink);
  margin-top: var(--ab-space-2);
}

.vx-qa__sublabel {
  font-size: var(--ab-fs-small);
  color: var(--ab-muted);
  margin-top: var(--ab-space-3);
  max-width: 24ch;
}

.cx-chapter--charcoal .vx-qa__label,
.cx-chapter--dark .vx-qa__label {
  color: var(--ab-white);
}

.cx-chapter--charcoal .vx-qa__sublabel,
.cx-chapter--dark .vx-qa__sublabel {
  color: rgba(253, 252, 251, 0.55);
}

.vx-qa__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--ab-space-3);
}

@media (min-width: 600px) {
  .vx-qa__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.vx-qa__item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--ab-charcoal);
}

.vx-qa__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  transition: opacity 0.4s ease, transform 0.6s var(--cx-ease-out, ease);
}

.vx-qa__item:hover img {
  opacity: 0.9;
  transform: scale(1.05);
}

.vx-qa__item span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: var(--ab-space-3);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ab-white);
  background: linear-gradient(to top, rgba(26, 26, 26, 0.92), transparent);
}

/* ==========================================================================
   Process visual cards
   ========================================================================== */

.vx-process {
  display: grid;
  gap: var(--ab-space-4);
}

@media (min-width: 768px) {
  .vx-process {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  .vx-process {
    grid-template-columns: repeat(6, 1fr);
  }
}

.vx-process__card {
  position: relative;
  overflow: hidden;
  background: var(--ab-charcoal);
  min-height: 200px;
}

.vx-process__card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  opacity: 0.55;
}

.vx-process__body {
  padding: var(--ab-space-4);
}

.vx-process__num {
  font-family: var(--ab-font-display);
  font-size: 1.5rem;
  color: var(--ab-red);
  line-height: 1;
  margin-bottom: var(--ab-space-2);
}

.vx-process__title {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ab-white);
  margin-bottom: var(--ab-space-1);
}

.vx-process__text {
  font-size: 0.75rem;
  color: rgba(253, 252, 251, 0.55);
  line-height: 1.45;
}

/* ==========================================================================
   Materials filmstrip
   ========================================================================== */

.vx-materials {
  display: flex;
  gap: var(--ab-space-3);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--ab-space-2);
  -webkit-overflow-scrolling: touch;
}

.vx-materials::-webkit-scrollbar {
  height: 3px;
}

.vx-materials::-webkit-scrollbar-thumb {
  background: var(--ab-red);
}

.vx-materials__item {
  flex: 0 0 clamp(140px, 28vw, 200px);
  scroll-snap-align: start;
}

.vx-materials__thumb {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  margin-bottom: var(--ab-space-2);
  background: var(--ab-stone);
}

.vx-materials__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vx-materials__label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ab-ink);
}

.vx-materials__note {
  font-size: 0.625rem;
  color: var(--ab-muted-light);
  margin-top: var(--ab-space-6);
  font-style: italic;
}

/* ==========================================================================
   Trust metrics strip
   ========================================================================== */

.vx-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--ab-border);
  border: 1px solid var(--ab-border);
}

@media (min-width: 768px) {
  .vx-metrics {
    grid-template-columns: repeat(4, 1fr);
  }
}

.vx-metrics__item {
  padding: var(--ab-space-6) var(--ab-space-5);
  background: var(--ab-white);
  text-align: center;
}

.cx-chapter--charcoal .vx-metrics__item,
.cx-chapter--dark .vx-metrics__item {
  background: var(--ab-charcoal);
}

.vx-metrics__value {
  font-family: var(--ab-font-display);
  font-size: clamp(2rem, 1.2rem + 2vw, 3rem);
  line-height: 1;
  color: var(--ab-ink);
}

.cx-chapter--charcoal .vx-metrics__value,
.cx-chapter--dark .vx-metrics__value {
  color: var(--ab-white);
}

.vx-metrics__value em {
  font-style: normal;
  color: var(--ab-red);
}

.vx-metrics__label {
  margin-top: var(--ab-space-2);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ab-muted);
}

.cx-chapter--charcoal .vx-metrics__label,
.cx-chapter--dark .vx-metrics__label {
  color: rgba(253, 252, 251, 0.5);
}

/* ==========================================================================
   Minimal copy blocks
   ========================================================================== */

.vx-kicker {
  font-size: var(--cx-chapter-label, 0.6875rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ab-red);
  margin-bottom: var(--ab-space-4);
}

.vx-headline {
  font-family: var(--ab-font-display);
  font-size: clamp(2rem, 1.2rem + 3vw, 3.5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 var(--ab-space-5);
}

.vx-subline {
  font-size: var(--ab-fs-lead);
  color: var(--ab-muted);
  max-width: 42ch;
  margin: 0;
}

.cx-chapter--dark .vx-subline,
.cx-chapter--charcoal .vx-subline {
  color: rgba(253, 252, 251, 0.65);
}

.vx-hero-minimal .cx-hero__title {
  max-width: 11ch;
  font-size: clamp(2.5rem, 1.5rem + 4.5vw, 4.75rem);
}

.vx-hero-minimal .cx-hero__text {
  max-width: 32ch;
  font-size: 1.0625rem;
}

/* ==========================================================================
   Featured review spotlight
   ========================================================================== */

.vx-review-spotlight {
  display: grid;
  gap: var(--ab-space-10);
}

@media (min-width: 900px) {
  .vx-review-spotlight {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.vx-review-spotlight__quote {
  font-family: var(--ab-font-display);
  font-size: clamp(1.75rem, 1.1rem + 2vw, 2.75rem);
  line-height: 1.25;
  color: var(--ab-ink);
  margin: 0 0 var(--ab-space-6);
}

.vx-review-spotlight__meta {
  font-size: var(--ab-fs-small);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.vx-review-spotlight__stars {
  color: var(--ab-red);
  letter-spacing: 0.12em;
  margin-bottom: var(--ab-space-4);
  font-size: 1.25rem;
}

/* ==========================================================================
   Header v2 — logo | center nav | CTA
   ========================================================================== */

.cx-header--v2 .cx-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.cx-header--v2 .cx-header__logo {
  justify-self: start;
}

.cx-header--v2 .cx-header__nav {
  justify-self: center;
}

.cx-header--v2 .cx-header__actions {
  justify-self: end;
}

.cx-header--v2 .cx-header__logo img {
  height: clamp(52px, 5.5vw, 68px);
}

@media (max-width: 1099.98px) {
  .cx-header--v2 .cx-header__inner {
    grid-template-columns: 1fr auto;
  }

  .cx-header--v2 .cx-header__nav {
    display: none;
  }
}

/* Illustration disclaimer */
.vx-illus-note {
  font-size: 0.625rem;
  color: var(--ab-muted-light);
  font-style: italic;
  margin-top: var(--ab-space-2);
}

.cx-chapter--dark .vx-illus-note,
.cx-service-chapter .vx-illus-note {
  color: rgba(253, 252, 251, 0.4);
}
