/* ==========================================================================
   Site footer (every page except the home page).
   Identity and follow links, three link columns, a legal line with the
   disclaimer, and a large faint wordmark whose dot keeps the brand orange.
   ========================================================================== */

.gf {
  --gf-gutter: 20px;
  --gf-orange: #fc6e20;
  --gf-orange-text: #c2410c;     /* orange as text: 4.8:1 on --page */
  margin-top: auto;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: var(--page);
  color: var(--text);
  font-family: var(--site-font, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
}
html[data-theme="dark"] .gf { --gf-orange-text: #ff9a5c; }
@media (min-width: 720px) { .gf { --gf-gutter: 32px; } }
.gf :where(h2, p, ul) { margin: 0; }
.gf :where(ul) { padding: 0; list-style: none; }

.gf-inner {
  width: min(1180px, 100% - 2 * var(--gf-gutter));
  margin-inline: auto;
  padding-block: 56px 28px;
}
.gf-top { display: grid; gap: 40px; }

/* ---------- Identity ---------- */
.gf-brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text);
  -webkit-tap-highlight-color: transparent;
}
.gf-brand .brand-logo-svg { display: block; width: auto; height: 28px; }
.gf-tagline {
  max-width: 34ch;
  margin-top: 10px !important;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
  text-wrap: pretty;
}
.gf-socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px !important; }
.gf-social {
  --gf-brand: var(--text);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition-property: background-color, border-color, color, scale;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}
.gf-social svg { display: block; width: 18px; height: 18px; }
.gf-social[data-brand="instagram"] { --gf-brand: #e1306c; }
.gf-social[data-brand="whatsapp"] { --gf-brand: #128c7e; }
.gf-social[data-brand="telegram"] { --gf-brand: #229ed9; }
.gf-social[data-brand="youtube"] { --gf-brand: #ff0000; }
html[data-theme="dark"] .gf-social[data-brand="whatsapp"] { --gf-brand: #25d366; }
@media (hover: hover) {
  .gf-social:hover {
    color: var(--gf-brand);
    border-color: color-mix(in srgb, var(--gf-brand) 45%, transparent);
    background: color-mix(in srgb, var(--gf-brand) 8%, var(--surface));
  }
}
@media (prefers-reduced-motion: no-preference) {
  .gf-social:active { scale: 0.96; }
}

/* ---------- Link columns ---------- */
.gf-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 24px;
}
/* On phones the reviews column gets the full width for longer titles. */
.gf-column-latest { grid-column: 1 / -1; }
.gf-heading {
  margin-bottom: 10px !important;
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
}
.gf-column ul { display: grid; gap: 2px; }
.gf-column a,
.gf-bottom-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.35;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  transition-property: color, text-decoration-color;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}
.gf-column a[aria-current],
.gf-bottom-links a[aria-current] {
  color: var(--text);
  text-decoration-color: var(--gf-orange);
}
@media (hover: hover) {
  .gf-column a:hover,
  .gf-bottom-links a:hover {
    color: var(--text);
    text-decoration-color: var(--gf-orange);
  }
}
.gf a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}
.gf-tag {
  display: inline-block;   /* keeps the link underline off the tag */
  margin-inline-start: 8px;
  padding: 1px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--gf-orange) 14%, transparent);
  color: #b13a0a;          /* 4.8:1 on the tinted tag; --gf-orange-text is 4.1:1 here */
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}
html[data-theme="dark"] .gf-tag { color: var(--gf-orange-text); }

/* ---------- Bottom line ---------- */
.gf-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 48px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.gf-legal {
  max-width: 72ch;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.5;
  text-wrap: pretty;
}
.gf-bottom-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.gf-bottom-links a { font-size: 0.8125rem; min-height: 32px; }
/* Sound on/off switch, added by assets/ui-sounds.js */
.gf-sound {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.35;
  cursor: pointer;
  transition: color 150ms ease-out;
}
.gf-sound svg { flex: none; }
.gf-sound[aria-pressed="true"] .gf-sound-mute,
.gf-sound[aria-pressed="false"] .gf-sound-wave { display: none; }
@media (hover: hover) { .gf-sound:hover { color: var(--text); } }
.gf-sound:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.gf-totop svg { flex: none; margin-inline-start: 6px; }

/* ---------- Closing wordmark ---------- */
.gf-mark-wrap {
  width: min(1180px, 100% - 2 * var(--gf-gutter));
  margin: 4px auto 0;
  padding-bottom: 28px;
  line-height: 0;
}
.gf-mark {
  display: block;
  width: 100%;
  height: auto;
  color: color-mix(in srgb, var(--text) 7%, transparent);
}
html[data-theme="dark"] .gf-mark { color: color-mix(in srgb, var(--text) 9%, transparent); }
@media (forced-colors: active) { .gf-mark-wrap { display: none; } }

/* ---------- Wider layouts ---------- */
@media (min-width: 640px) {
  .gf-columns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gf-column-latest { grid-column: auto; }
}
@media (min-width: 960px) {
  .gf-inner { padding-block: 72px 32px; }
  .gf-top {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.6fr);
    align-items: start;
    gap: 64px;
  }
}

@media print {
  .gf-socials, .gf-mark-wrap, .gf-totop { display: none; }
}
