/* shaheer.ceo footer.
 *
 * Tokens are the SITE's, not a generic palette: ground sits one shade under
 * the page (#0c0c0e vs #111111) so the footer reads as its own base without a
 * hard rule across the screen; ink #f8f8f8; accent #82ff1f; Crimson Text for
 * the one display line, Roboto for everything else.
 *
 * The layout answers the two failures of the old footer: a single centred
 * column of six links that ran the height of the screen on a phone, and 21px
 * tap targets sitting flush against each other. Links here live in COLUMNS -
 * two of them on a phone - so every target can be 44px without the footer
 * becoming a tower.
 */

.hs-footer {
  background: #0c0c0e;
  border-top: 1px solid rgba(248, 248, 248, .10);
  color: #f8f8f8;
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

.hs-footer-inner {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding: clamp(44px, 6vw, 72px) 20px clamp(20px, 3vw, 28px);
}

/* ---------- grid -------------------------------------------------------- */
.hs-f-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(30px, 4vw, 48px);
}

/* ---------- brand ------------------------------------------------------- */
.hs-f-logo { display: inline-flex; align-items: center; min-height: 44px; }
.hs-f-logo img { width: 150px; height: auto; display: block; }

.hs-f-tagline {
  margin: 14px 0 20px;
  max-width: 34ch;                       /* keeps the line readable, not a slab */
  font-size: 14px;
  line-height: 1.7;
  color: rgba(248, 248, 248, .62);
}
.hs-f-tagline a {
  color: #f8f8f8;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(248, 248, 248, .35);
}
.hs-f-tagline a:hover { text-decoration-color: #82ff1f; color: #82ff1f; }

/* ---------- socials ----------------------------------------------------- */
/* Capped so eight 44px circles break 4 + 4 rather than 7 + 1 with one
   orphan. Eight in a row needs 408px and the brand column is ~390px at 1440,
   so it WILL wrap - the job is to make it wrap evenly. */
.hs-f-socials {
  display: flex; flex-wrap: wrap; gap: 8px;
  max-width: 200px;
  margin: 0; padding: 0; list-style: none;
}
.hs-f-socials a {
  display: grid; place-items: center;
  width: 44px; height: 44px;             /* the touch floor, met exactly */
  border-radius: 50%;
  color: rgba(248, 248, 248, .72);
  background: rgba(248, 248, 248, .04);
  border: 1px solid rgba(248, 248, 248, .10);
  transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}
.hs-f-socials svg { width: 17px; height: 17px; fill: currentColor; }
.hs-f-socials a:hover {
  color: #0c0c0e;
  background: #82ff1f;
  border-color: #82ff1f;
}

/* ---------- columns ----------------------------------------------------- */
.hs-f-head {
  margin: 0 0 6px;
  font-family: 'Roboto', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(248, 248, 248, .48);
}

.hs-f-list { margin: 0; padding: 0; list-style: none; }

/* The link is the whole row: 44px tall, padded, so it can be hit without
   aiming. Negative inline margin keeps the text optically flush with the
   column heading despite that padding. */
.hs-f-link {
  display: flex; align-items: center;
  min-height: 44px;
  padding: 0 10px;
  margin-inline: -10px;
  border-radius: 8px;
  font-size: 15px;
  color: rgba(248, 248, 248, .72);
  text-decoration: none;
  transition: color .2s ease, background-color .2s ease;
}
.hs-f-link:hover { color: #82ff1f; background: rgba(248, 248, 248, .05); }
.hs-f-link[aria-current="page"] { color: #f8f8f8; }

/* ---------- contact ----------------------------------------------------- */
/* Stack the address above the button. Left inline they sat shoulder to
   shoulder and collided on a phone - "contact@shaheer.ceo" ran straight into
   "Schedule a call". */
.hs-f-contact { display: flex; flex-direction: column; align-items: flex-start; }
.hs-f-contact .hs-f-head { width: 100%; }
.hs-f-mail {
  display: inline-flex; align-items: center;
  min-height: 44px;
  font-family: 'Crimson Text', Georgia, serif;
  font-size: clamp(19px, 2vw, 22px);
  color: #f8f8f8;
  text-decoration: none;
  border-bottom: 1px solid rgba(248, 248, 248, .25);
  transition: color .2s ease, border-color .2s ease;
}
.hs-f-mail:hover { color: #82ff1f; border-color: #82ff1f; }

.hs-f-cta {
  display: inline-grid; place-items: center;
  min-height: 46px;
  margin-top: 16px;
  padding: 0 22px;
  border-radius: 999px;
  background: #82ff1f;
  color: #0c0c0e;
  font-size: 14px; font-weight: 700;
  text-decoration: none;
  width: fit-content;
  transition: background-color .2s ease, transform .2s ease;
}
.hs-f-cta:hover { background: #93ff45; }

/* ---------- base bar ---------------------------------------------------- */
.hs-f-base {
  display: flex; flex-wrap: wrap; gap: 6px 20px;
  align-items: center; justify-content: space-between;
  margin-top: clamp(34px, 4vw, 52px);
  padding-top: 20px;
  border-top: 1px solid rgba(248, 248, 248, .10);
  font-size: 13px;
  color: rgba(248, 248, 248, .48);
}
.hs-f-base p { margin: 0; }
.hs-f-legal { display: flex; align-items: center; gap: 10px; }
.hs-f-legal a {
  display: inline-flex; align-items: center; min-height: 44px; padding-inline: 4px;
  color: rgba(248, 248, 248, .62); text-decoration: none;
}
.hs-f-legal a:hover { color: #82ff1f; }

/* The back-to-top button is position:fixed bottom-right and lands on this bar
   at the end of the page. Reserve its height so it never covers the text. */
@media (max-width: 921px) {
  .hs-f-base { padding-bottom: 84px; }
}

/* ---------- responsive -------------------------------------------------- */
/* Phone: the two link columns sit SIDE BY SIDE. This is the whole point - it
   halves the footer's height versus one long list while letting every row stay
   44px tall. */
/* Two columns from 340px, NOT 420. At 414 a single column made the footer
   1120px tall - the same tower this redesign exists to kill. Two columns of
   44px rows is shorter than one column of 44px rows, and still hittable. */
@media (min-width: 340px) {
  .hs-f-grid { grid-template-columns: 1fr 1fr; column-gap: 18px; }
  .hs-f-brand { grid-column: 1 / -1; }
  .hs-f-contact { grid-column: 1 / -1; }
}
@media (min-width: 700px) {
  .hs-f-grid { grid-template-columns: repeat(3, 1fr); }
  .hs-f-brand { grid-column: 1 / -1; }
}
@media (min-width: 1000px) {
  .hs-f-grid {
    grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
    gap: 40px;
  }
  /* Both of these were spanned full-width by the mobile rule above; without
     resetting them the contact block dropped under the brand and left the
     fourth column empty. */
  .hs-f-brand   { grid-column: auto; }
  .hs-f-contact { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .hs-f-socials a, .hs-f-link, .hs-f-mail, .hs-f-cta { transition: none; }
}
