/* ==========================================================================
   VAV Global - components.css
   Reusable blocks shared by the home page and the three service pages.
   Contents: service cards, "why" list, process steps, FAQ, call-to-action band.
   ========================================================================== */

/* ---------- Service icon tile (used by cards and service page heroes) ---------- */
.icon-tile {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  border-radius: var(--radius-m);
}

.icon-tile svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-tile--logistics { background: var(--logi-bg); color: var(--logi-ink); }
.icon-tile--legal { background: var(--legal-bg); color: var(--legal-ink); }
.icon-tile--finance { background: var(--fin-bg); color: var(--fin-ink); }

/* ---------- Service cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.card {
  display: flex;
  flex-direction: column;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--white);
}

.card__title {
  margin-bottom: 10px;
  font-size: 1.6rem;
}

.card__tagline {
  color: var(--ink-2);
}

.card__list {
  display: grid;
  gap: 10px;
  margin: 24px 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}

.card__list li {
  position: relative;
  padding-left: 20px;
}

.card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 2px;
  background: var(--navy);
}

.card__link {
  margin-top: auto;
  font-weight: 600;
  color: var(--navy);
  text-underline-offset: 5px;
  text-decoration-color: var(--lime);
  text-decoration-thickness: 3px;
}

.card__link:hover {
  text-decoration-color: var(--navy);
}

@media (max-width: 960px) {
  .cards {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- "Why VAV" list ---------- */
.why {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}

.why__item::before {
  content: "";
  display: block;
  width: 36px;
  height: 4px;
  margin-bottom: 18px;
  border-radius: 2px;
  background: var(--lime);
  box-shadow: 0 0 0 1px var(--navy);
}

.why__title {
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.why__text {
  font-size: 0.98rem;
  color: var(--ink-2);
}

@media (max-width: 960px) {
  .why { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .why { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Process steps ---------- */
.steps {
  --cols: 4;
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  gap: 32px;
}

.steps--3 {
  --cols: 3;
}

.steps__item {
  position: relative;
}

.steps__item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 21px;
  left: 58px;
  right: -32px;
  height: 1px;
  background: var(--field);
  opacity: 0.5;
}

.steps__num {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 600;
}

.steps__title {
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.steps__text {
  font-size: 0.98rem;
  color: var(--ink-2);
}

@media (max-width: 960px) {
  .steps,
  .steps--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 32px;
  }

  .steps__item::after {
    display: none;
  }
}

@media (max-width: 560px) {
  .steps,
  .steps--3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- FAQ (native <details>, no JavaScript) ---------- */
.faq {
  max-width: 840px;
}

.faq__item {
  border-top: 1px solid var(--line);
}

.faq__item:last-child {
  border-bottom: 1px solid var(--line);
}

.faq__q {
  position: relative;
  padding: 22px 48px 22px 0;
  font: 500 1.25rem/1.35 var(--font-display);
  list-style: none;
  cursor: pointer;
}

.faq__q::-webkit-details-marker {
  display: none;
}

.faq__q::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 11px;
  height: 11px;
  border-right: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s;
}

.faq__item[open] .faq__q::after {
  transform: translateY(-25%) rotate(-135deg);
}

.faq__a {
  padding: 0 48px 24px 0;
  color: var(--ink-2);
}

/* ---------- Call-to-action band (above the footer) ---------- */
.cta-band {
  padding-block: 72px;
  background: var(--navy);
  color: #fff;
}

.cta-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px 48px;
}

.cta-band__title {
  max-width: 16em;
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
}

.cta-band__text {
  max-width: 34em;
  margin-top: 12px;
  color: #D5D9F0;
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
