/* ==========================================================================
   Footer — Figma 661:776 (desktop) / 3190:9687 (mobile)
   ========================================================================== */

.site-footer {
  background-color: #1C1B1F;
  padding-block: 60px 40px;
}

/* Each row: label far left, content far right; 90px between rows (Figma),
   no dividers */
.footer__row {
  display: flex;
  align-items: flex-start;
  gap: 0;
  position: relative;
}
.footer__row + .footer__row { margin-top: 90px; }

.footer__row-label {
  font-size: 24px;
  line-height: 36px;
  font-weight: 400;
  color: var(--text-light);
  flex-shrink: 0;
  width: 150px;
}

.footer__row-content {
  margin-left: auto;
  display: flex;
  gap: 24px;
}

/* Offices */
.footer__office-city {
  font-size: 18px;
  line-height: 36px;
  color: var(--text-light);
  margin-bottom: 24px;
}
.footer__office-address {
  font-size: 16px;
  line-height: 24px;
  color: var(--text-muted);
}

/* Links — group: heading 18/36, 12px gap, items 14/24 */
.footer__link-col { display: flex; flex-direction: column; gap: 12px; }

.footer__link-heading {
  font-size: 18px;
  font-weight: 400;
  line-height: 36px;
  color: #fff;
}
.footer__link-col ul { list-style: none; display: flex; flex-direction: column; gap: 0; }
.footer__link-col ul a {
  font-size: 14px;
  font-weight: 400;
  line-height: 24px;
  color: #C0C0C0;
  transition: color 0.2s;
}
.footer__link-col ul a:hover { color: #fff; }

/* Primary solo links (About Us, Career, Contact) — same size as headings.
   The wrapper is layout-transparent on desktop; on mobile it turns into a
   stacked group (see the mobile block below). */
.footer__links-primary { display: contents; }
.footer__link-col--primary { gap: 0; }
.footer__link-col--primary a {
  font-size: 18px;
  font-weight: 400;
  line-height: 36px;
  color: #fff;
}
.footer__link-col--primary a:hover { color: #C0C0C0; }

/* Socials */
.footer__socials { display: flex; gap: 24px; }
.footer__socials a {
  font-size: 18px;
  line-height: 36px;
  color: var(--text-light);
  transition: color 0.2s;
}
.footer__socials a:hover { color: var(--text-muted); }

/* Bottom block (Figma 661:742): badge right-aligned, 32px, then legal bar */
.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 60px;
}
.footer__google-partner { align-self: flex-end; }
.footer__google-partner-badge { width: 56px; height: auto; }

.footer__bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--body-xs);      /* Figma: Body/XS 14/22, -1% */
  line-height: 22px;
  letter-spacing: -0.01em;
  color: var(--text-muted);
}
/* Figma: the two legal links sit spread in a 479px space-between box */
.footer__legal {
  display: flex;
  justify-content: space-between;
  width: 479px;
  max-width: 55%;
}
.footer__legal a { color: var(--text-muted); opacity: 0.8; transition: color 0.2s; }
.footer__legal a:hover { color: var(--text-light); }
.footer__copy { color: var(--text-muted); opacity: 0.8; }

/* ── Mobile (Figma 3190:9687) — stacked sections, 2-col groups ────────────── */
@media (max-width: 767px) {
  .site-footer { padding-block: 50px; }

  /* Section = label above content, 40px rhythm */
  .footer__row { flex-direction: column; gap: 40px; }
  .footer__row + .footer__row { margin-top: 40px; }

  .footer__row-label { width: auto; }

  /* Content = 2-col grid: offices side by side, link groups 2-up */
  .footer__row-content {
    margin-left: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 20px;
    width: 100%;
  }

  /* About Us / Career / Contact — one stacked group */
  .footer__links-primary {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  /* Socials stack vertically (display:flex — the generic row-content rule
     above turns containers into 2-col grids, which must not apply here) */
  .footer__row--socials { align-items: flex-start; }
  .footer__socials { display: flex; flex-direction: column; gap: 24px; }

  /* Bottom block: badge stays right; legal becomes a left-aligned stack */
  .footer__bottom { margin-top: 40px; }
  .footer__bottom-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .footer__legal { flex-direction: column; gap: 10px; width: auto; max-width: none; }
}
