/* iWhisk shared footer
 *
 * One footer across all 38 pages: the four marketing pages and the 33 guide
 * pages. Before this there were four different designs. The homepage had three
 * columns, contact/privacy/terms had a bare legal row, the guide had its own
 * three columns, and the direction study had a fourth arrangement.
 *
 * Self-contained on purpose. The marketing pages carry the sage palette
 * (--forest, --sage, --cream) and the guide carries the ink palette (--ink,
 * --canvas, --lime); neither has the other's tokens. So this file defines
 * everything it needs under its own prefix and inherits nothing.
 *
 * Every link is absolute, which is what lets one identical markup block sit at
 * three different depths: the site root, /guide/, and /guide/<section>/.
 */

.sf {
  --sf-ink:      #18352A;
  --sf-canvas:   #F7F2E9;
  --sf-lime:     #DCEA94;
  --sf-line:     rgba(247, 242, 233, .10);
  --sf-body:     rgba(247, 242, 233, .78);
  --sf-quiet:    rgba(247, 242, 233, .64);
  --sf-display:  'Literata', Georgia, serif;
  --sf-text:     'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  background: var(--sf-ink);
  color: var(--sf-body);
  font-family: var(--sf-text);
  line-height: 1.6;
  padding: clamp(48px, 7vh, 76px) clamp(24px, 5vw, 64px) 32px;
}

.sf-in {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  gap: clamp(26px, 3.4vw, 48px);
  grid-template-columns: minmax(220px, 1.5fr) repeat(4, minmax(120px, 1fr));
}

.sf-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sf-display);
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -.01em;
  color: var(--sf-canvas);
  text-decoration: none;
  margin-bottom: 13px;
}
.sf-mark { display: block; width: 28px; height: 28px; flex-shrink: 0 }
.sf-tag { font-size: 14px; color: var(--sf-quiet); max-width: 32ch; margin: 0 }

/* Official Apple and Google artwork (/assets/badges/), used as-is per each
   platform's brand guidelines: no recolouring, no redrawing. Both App Store
   and Google Play are live and linked now. */
.sf-badges { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-start; margin-top: 16px }
.sf-badge { display: flex; flex-direction: column; align-items: center; gap: 5px; cursor: default }
a.sf-badge { cursor: pointer; opacity: 1; transition: opacity .18s }
a.sf-badge:hover, a.sf-badge:focus-visible { opacity: .8 }
.sf-badge-img { height: 30px; width: auto; display: block }

.sf-ttl {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sf-lime);
  margin-bottom: 15px;
}
/* An inline anchor is only as tall as its font box, so a 14px link measured
   17px: under the 24px minimum in WCAG 2.5.8. inline-block plus padding makes
   the box tappable, and the list gap drops by the padding it adds so the
   spacing on the page is unchanged. */
.sf-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px }
.sf-list a {
  display: inline-block; padding: 4px 0;
  font-size: 14px; color: var(--sf-body); text-decoration: none; transition: color .2s;
}
.sf-list a:hover, .sf-list a:focus-visible { color: var(--sf-canvas); text-decoration: underline }

.sf-base {
  max-width: 1240px;
  margin: clamp(34px, 4.5vh, 52px) auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--sf-line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  align-items: baseline;
  justify-content: space-between;
}
.sf-base p { margin: 0; font-size: 13px; color: var(--sf-quiet) }
/* Same 2.5.8 reason as .sf-list a. The support address is the only standalone
   link down here; it sits in its own <p>, so it is not covered by the inline
   exception for links inside a block of text. */
.sf-base a { display: inline-block; padding: 4px 0; color: var(--sf-quiet); text-decoration: none }
.sf-base a:hover, .sf-base a:focus-visible { color: var(--sf-canvas); text-decoration: underline }

@media (max-width: 1080px) {
  .sf-in { grid-template-columns: minmax(220px, 1fr) repeat(2, minmax(120px, 1fr)) }
}
@media (max-width: 680px) {
  .sf-in { grid-template-columns: 1fr }
  .sf-base { justify-content: flex-start }
}
@media (prefers-reduced-motion: reduce) {
  .sf-list a, .sf-base a, a.sf-badge { transition: none }
}

/* The studio credit. An inline SVG heart rather than the emoji: emoji render
   differently on every platform and this line sits on all 38 pages. The word
   "love" is carried in visually hidden text so a screen reader hears "Made with
   love by EGO Studio AI, Inc." rather than skipping the heart and hearing
   "Made with by". */
.sf-made { display: inline-flex; align-items: center; gap: 5px }
.sf-heart { width: 13px; height: 12px; fill: #D2694B; flex-shrink: 0 }
.sf-vh {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
