/* ===========================================================================
   Promo carousel.
   ---------------------------------------------------------------------------
   The source artwork is square (1254²) and portrait (1024×1536) — social-media
   shapes, not web banners. Stretching those to a full-width strip would either
   crop the headline off the top or leave a very tall band that pushes the rest
   of the page below the fold.

   So they are shown as posters: each slide is height-capped and centred on a
   tinted backdrop, with the image *contained* rather than cropped. Nothing in
   the artwork is ever cut off, and the section stays a sane height on a laptop.
   =========================================================================== */

.promos {
  padding: 44px 0 52px;
  background: var(--surface2, var(--surface));
  border-block: 1px solid var(--line);
  overflow: hidden;
}

.promos-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.promos-head h2 { margin: 0; font-size: 1.6rem; }
.promos-head p  { margin: 4px 0 0; color: var(--ink-soft); font-size: 14.5px; }

/* --- the track ---------------------------------------------------------- */

.promo-viewport {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}

.promo-track {
  display: flex;
  gap: 18px;
  transition: transform 620ms cubic-bezier(.22, .61, .36, 1);
  will-change: transform;
}

/* One slide per view on phones, two on wide screens — a single 1000px-wide
   poster on a desktop looks lost, and three would make the text unreadable. */
.promo-slide {
  flex: 0 0 100%;
  max-width: 100%;
}
@media (min-width: 900px) {
  .promo-slide { flex-basis: calc(50% - 9px); }
}

.promo-card {
  position: relative;
  display: grid;
  place-items: center;
  height: 420px;
  background: linear-gradient(160deg,
      color-mix(in srgb, var(--indigo) 8%, transparent),
      color-mix(in srgb, var(--marigold) 8%, transparent));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (min-width: 900px) { .promo-card { height: 470px; } }

.promo-card img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* --- controls ----------------------------------------------------------- */

.promo-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-hard, var(--line));
  border-radius: 50%;
  cursor: pointer;
  font-size: 17px; line-height: 1;
  box-shadow: 0 2px 10px rgb(0 0 0 / 0.10);
  transition: background .15s ease, transform .15s ease;
  z-index: 2;
}
.promo-nav:hover  { background: var(--surface2, var(--surface)); transform: translateY(-50%) scale(1.06); }
.promo-nav:focus-visible { outline: 2px solid var(--indigo); outline-offset: 2px; }
.promo-prev { left: 10px; }
.promo-next { right: 10px; }

.promo-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.promo-dot {
  width: 8px; height: 8px;
  border: 0; padding: 0;
  border-radius: 50%;
  background: var(--line-hard, var(--line));
  cursor: pointer;
  transition: background .2s ease, width .2s ease;
}
.promo-dot[aria-current="true"] {
  background: var(--indigo);
  width: 22px;
  border-radius: 4px;
}

/* Someone who has asked the OS to reduce motion should not get a carousel
   that slides on its own; they get a plain scrollable strip instead. */
@media (prefers-reduced-motion: reduce) {
  .promo-track { transition: none; }
}

@media (max-width: 640px) {
  .promos { padding: 32px 0 38px; }
  .promo-card { height: 380px; }
  .promo-nav { width: 32px; height: 32px; font-size: 15px; }
}

/* ===========================================================================
   Services grid + why-us cards (homepage content sections).
   =========================================================================== */

.services-band { background: var(--surface2, var(--surface)); }

.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 900px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .svc-grid { grid-template-columns: 1fr; } }

.svc-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  text-decoration: none;
  color: inherit;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.svc-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--indigo) 40%, var(--line));
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.08);
}
.svc-ico {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  font-size: 24px;
  border-radius: 13px;
  background: color-mix(in srgb, var(--c, var(--indigo)) 14%, transparent);
  margin-bottom: 14px;
}
.svc-card h3 { margin: 0 0 6px; font-size: 1.15rem; }
.svc-card .muted { font-size: 14px; line-height: 1.6; }
.svc-go {
  display: inline-block;
  margin-top: 12px;
  font-size: 13.5px;
  font-weight: 650;
  color: var(--indigo);
}

.why-ico {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  font-size: 23px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--indigo) 10%, transparent);
  margin-bottom: 12px;
}

/* --- SVG icons inside the service / why chips ---------------------------
   Emoji rendered inconsistently across platforms — the India flag showed as a
   boxed "IN" on Windows Chrome, which looked broken. Clean line icons render
   identically everywhere and match the rest of the site's chrome. */
.svc-ico svg { width: 24px; height: 24px; stroke: var(--c, var(--indigo)); }
.why-ico svg { width: 23px; height: 23px; stroke: var(--indigo); }
