/*
 * Site footer — Figma 3FBUuVhp3fVFTAlJYgXqxL node 33:2 (desktop 1920) + mobile 390 frame.
 * Component rules: structure + colour only. Type and spacing are utility classes in the markup
 * (generated block at the end of assets/css/site-footer.css; source of truth: this file + the generator).
 * Root class .glg-footer is new on purpose: the legacy .footer / .logo / .col / .row rules never match.
 */
.glg-footer {
  --glg-footer-gutter: 40px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #202e40;
  color: #bebebf;
}
.glg-footer * { box-sizing: border-box; }
.glg-footer ul { list-style: none; margin: 0; padding: 0; }
.glg-footer li { margin: 0; font: inherit; }   /* beats legacy `footer ul li { font-size: 1rem; margin-bottom: .4rem }` so list utilities reach the links */
.glg-footer h2, .glg-footer p, .glg-footer address { letter-spacing: normal; font-style: normal; }
.glg-footer a { color: inherit; text-decoration: none; transition: color .15s ease; }
.glg-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.glg-footer a:focus-visible { outline: 2px solid #52b8bf; outline-offset: 3px; border-radius: 2px; }
.glg-footer img, .glg-footer svg { display: block; max-width: 100%; }

/* top region: content + decorative skyline */
.glg-footer__top { position: relative; }
.glg-footer__main {
  display: flex;
  flex-direction: column;
  width: min(1440px, 100% - 2 * var(--glg-footer-gutter));
  margin-inline: auto;
}
.glg-footer__nav { display: flex; align-items: flex-start; }
.glg-footer__brand { display: flex; flex-direction: column; flex: 0 0 220px; }
.glg-footer__identity { display: flex; flex-direction: column; }
.glg-footer__identity, .glg-footer__area, .glg-footer__offices { position: relative; z-index: 2; }
.glg-footer__logo { display: block; width: 200px; }
.glg-footer .glg-footer__logo img { width: 100%; height: auto; }
.glg-footer__social { display: flex; flex-direction: column; }
.glg-footer__label, .glg-footer__heading, .glg-footer__city { color: #fff; }
.glg-footer__social-list { display: flex; }
.glg-footer .glg-footer__social-list svg { width: 25px; height: 24px; }
.glg-footer__social-list a { display: flex; align-items: center; justify-content: center; width: 38px; height: 25px; color: #bebebf; }
.glg-footer .glg-footer__social-list a:hover { color: #fff; text-decoration: none; }
.glg-footer__areas { display: grid; grid-template-columns: repeat(3, minmax(0, 372px)); flex: 1 1 auto; min-width: 0; }
.glg-footer__area { display: flex; flex-direction: column; min-width: 0; }
.glg-footer__links { display: flex; flex-direction: column; }

.glg-footer__divider { height: 1px; border: 0; background: #4a5763; }
.glg-footer__offices { display: flex; flex-direction: column; }
/* 4 × 336 + 3 × 32 = 1440 at full width; wraps to fewer columns as space shrinks */
.glg-footer__office-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); align-content: start; }
.glg-footer__office { display: flex; flex-direction: column; }
.glg-footer__contact { display: flex; flex-direction: column; }
.glg-footer__contact-row { display: flex; align-items: flex-start; }
.glg-footer__contact-row.is-phone { align-items: center; }
.glg-footer__contact-row > a, .glg-footer__contact-row > span { flex: 1 1 auto; min-width: 0; }
.glg-footer .glg-footer__icon { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 2px; fill: none; stroke: #82b8c0; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.glg-footer__contact-row.is-phone .glg-footer__icon { margin-top: 0; }
.glg-footer__notice { color: #52b8bf; }

/* decorative skyline: over the divider, under every text block (z 1 vs 2), never takes clicks; bottom on the legal bar.
   Figma draws the 867x544 asset 1:1 from the layer's left edge (1053), so its right edge is the frame's (1920). */
.glg-footer .glg-footer__skyline {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  width: clamp(300px, 45.16vw, 867px);   /* min 300: at 768 the bright dome stays below the office text */
  height: auto;
  aspect-ratio: 867 / 544;
  max-width: none;            /* overrides the generic img cap above */
  pointer-events: none;
  user-select: none;
}

/* legal bar */
.glg-footer__legal { position: relative; z-index: 1; background: #0b0d17; }
.glg-footer__legal-inner { display: flex; flex-wrap: wrap; align-items: center; max-width: 1460px; margin-inline: auto; }
.glg-footer__credits { display: flex; align-items: center; }
.glg-footer .glg-footer__credit-logo img { width: 120px; height: 31px; }
.glg-footer .glg-footer__credit, .glg-footer .glg-footer__legal-links a { color: #fefefe; }
.glg-footer .glg-footer__credit:hover, .glg-footer .glg-footer__legal-links a:hover { color: #52b8bf; }
.glg-footer__legal-right { display: flex; flex-wrap: wrap; align-items: center; margin-left: auto; }
.glg-footer__copyright { color: #bebebf; }
.glg-footer__legal-links { display: flex; flex-wrap: wrap; align-items: center; }
.glg-footer__legal-links li + li::before {
  content: "|";
  content: "|" / "";          /* decorative: not read aloud where alt text for content is supported */
  display: inline-block;
  width: 10px;
  margin: 0 19px 0 15px;      /* Figma: 15px before the bar, 19px after */
  color: #fff;
  text-align: center;
}

/* tablet: brand row on top, three practice columns below */
@media (max-width: 1199px) {
  .glg-footer__nav { flex-direction: column; }
  /* 3 tracks like the practice grid below, so Quick links lines up (within ~3px) with the 2nd column */
  .glg-footer__brand { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); flex-basis: auto; width: 100%; }
  .glg-footer__areas { width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .glg-footer__legal-right { margin-left: 0; }
}

/* mobile (Figma "Footer — Mobile / Approved Toronto skyline", 390 wide) */
@media (max-width: 767px) {
  .glg-footer { --glg-footer-gutter: 24px; }
  .glg-footer__nav, .glg-footer__brand, .glg-footer__areas { display: contents; }
  .glg-footer__logo { width: 180px; }
  .glg-footer__area { border-top: 1px solid #4a5763; }
  .glg-footer__quick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .glg-footer .glg-footer__skyline { right: auto; left: -4.36vw; width: 125.05vw; }   /* 306px tall (=487.7 wide) at left -17 on the 390 frame */
  .glg-footer__legal-inner { flex-direction: column-reverse; align-items: flex-start; flex-wrap: nowrap; }
  .glg-footer__credits { flex-direction: column; align-items: flex-start; }
  .glg-footer__legal-right { flex-direction: column; align-items: flex-start; }
  .glg-footer__legal-links li + li::before { content: none; }
}

/* visually hidden "(opens in a new tab)" cues */
.glg-footer .glg-footer__sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
  .glg-footer a { transition: none; }
}

/* ---- utilities (type + spacing). Specificity 0,2,0 so legacy element rules (footer{padding}, h2) never win. ---- */
.glg-footer.ff-inter,.glg-footer .ff-inter{font-family:'Inter',system-ui,-apple-system,'Segoe UI',sans-serif}
.glg-footer.fs-12,.glg-footer .fs-12{font-size:12px}
.glg-footer.fs-15,.glg-footer .fs-15{font-size:15px}
.glg-footer.fs-16,.glg-footer .fs-16{font-size:16px}
.glg-footer.fs-18,.glg-footer .fs-18{font-size:18px}
.glg-footer.fs-20,.glg-footer .fs-20{font-size:20px}
.glg-footer.fw-400,.glg-footer .fw-400{font-weight:400}
.glg-footer.fw-600,.glg-footer .fw-600{font-weight:600}
.glg-footer.fw-700,.glg-footer .fw-700{font-weight:700}
.glg-footer.gap-8,.glg-footer .gap-8{gap:8px}
.glg-footer.gap-10,.glg-footer .gap-10{gap:10px}
.glg-footer.gap-12,.glg-footer .gap-12{gap:12px}
.glg-footer.gap-14,.glg-footer .gap-14{gap:14px}
.glg-footer.gap-16,.glg-footer .gap-16{gap:16px}
.glg-footer.gap-18,.glg-footer .gap-18{gap:18px}
.glg-footer.gap-20,.glg-footer .gap-20{gap:20px}
.glg-footer.gap-28,.glg-footer .gap-28{gap:28px}
.glg-footer.gap-32,.glg-footer .gap-32{gap:32px}
.glg-footer.gap-40,.glg-footer .gap-40{gap:40px}
.glg-footer.lh-18,.glg-footer .lh-18{line-height:18px}
.glg-footer.lh-22,.glg-footer .lh-22{line-height:22px}
.glg-footer.lh-24,.glg-footer .lh-24{line-height:24px}
.glg-footer.lh-26,.glg-footer .lh-26{line-height:26px}
.glg-footer.lh-28,.glg-footer .lh-28{line-height:28px}
.glg-footer.m-0,.glg-footer .m-0{margin:0}
.glg-footer.p-0,.glg-footer .p-0{padding:0}
.glg-footer.pb-20,.glg-footer .pb-20{padding-bottom:20px}
.glg-footer.pb-48,.glg-footer .pb-48{padding-bottom:48px}
.glg-footer.pl-14,.glg-footer .pl-14{padding-left:14px}
.glg-footer.pt-20,.glg-footer .pt-20{padding-top:20px}
.glg-footer.pt-56,.glg-footer .pt-56{padding-top:56px}
.glg-footer.px-15,.glg-footer .px-15{padding-left:15px;padding-right:15px}
.glg-footer.px-20,.glg-footer .px-20{padding-left:20px;padding-right:20px}
.glg-footer.tt-up,.glg-footer .tt-up{text-transform:uppercase}
@media (max-width: 767px) {
  .glg-footer.sm\:fs-12,.glg-footer .sm\:fs-12{font-size:12px}
  .glg-footer.sm\:fs-13,.glg-footer .sm\:fs-13{font-size:13px}
  .glg-footer.sm\:fs-14,.glg-footer .sm\:fs-14{font-size:14px}
  .glg-footer.sm\:fs-16,.glg-footer .sm\:fs-16{font-size:16px}
  .glg-footer.sm\:gap-10,.glg-footer .sm\:gap-10{gap:10px}
  .glg-footer.sm\:gap-12,.glg-footer .sm\:gap-12{gap:12px}
  .glg-footer.sm\:gap-20,.glg-footer .sm\:gap-20{gap:20px}
  .glg-footer.sm\:gap-24,.glg-footer .sm\:gap-24{gap:24px}
  .glg-footer.sm\:gap-32,.glg-footer .sm\:gap-32{gap:32px}
  .glg-footer.sm\:gap-x-20,.glg-footer .sm\:gap-x-20{column-gap:20px}
  .glg-footer.sm\:gap-y-12,.glg-footer .sm\:gap-y-12{row-gap:12px}
  .glg-footer.sm\:lh-18,.glg-footer .sm\:lh-18{line-height:18px}
  .glg-footer.sm\:lh-20,.glg-footer .sm\:lh-20{line-height:20px}
  .glg-footer.sm\:lh-24,.glg-footer .sm\:lh-24{line-height:24px}
  .glg-footer.sm\:p-0,.glg-footer .sm\:p-0{padding:0}
  .glg-footer.sm\:pb-68,.glg-footer .sm\:pb-68{padding-bottom:68px}
  .glg-footer.sm\:pt-32,.glg-footer .sm\:pt-32{padding-top:32px}
  .glg-footer.sm\:pt-36,.glg-footer .sm\:pt-36{padding-top:36px}
  .glg-footer.sm\:px-0,.glg-footer .sm\:px-0{padding-left:0;padding-right:0}
  .glg-footer.sm\:px-24,.glg-footer .sm\:px-24{padding-left:24px;padding-right:24px}
  .glg-footer.sm\:py-28,.glg-footer .sm\:py-28{padding-top:28px;padding-bottom:28px}
}

/* popup-form.php pins a 65px call/consultation bar to the viewport bottom at <=600px (z-index 1000).
   Reserve that space under the legal bar so the dNovo credit link stays visible and clickable. */
@media (max-width: 600px) {
  .glg-footer .glg-footer__legal { padding-bottom: calc(28px + 65px); }
}
