/*
 * footer-v2.css — the redesigned footer.
 *
 * Loaded only while config.php has 'footer' => 'v2'.
 *
 * The palette is the footer's own, read off the captured site rather than
 * chosen: #000000 for the body (the vc_custom row it already used), #262626
 * for the divider strip, #DDDDDD for text (the single most-used colour in the
 * whole site, 529 occurrences).
 *
 * Contrast on #000000, computed not assumed, and re-measured from the painted
 * pixels after this pass rather than re-asserted:
 *     #FFFFFF  21.00:1     column headings
 *     #DDDDDD  15.46:1     links and body
 *     #B9B9C2  10.78:1     secondary text
 *     #D8A87F   9.83:1     hover / accent
 *     #8A583C   3.54:1     FAILS as text here — so the brand tan is used only
 *                          as a button ground, where white on it is 5.93:1
 *
 * THE LAYOUT IS TWO ROWS, AND THAT IS THE WHOLE FIX
 *
 *     masthead    brand block | contact block (NAP, WhatsApp, map)
 *     directory   four equal groups of links
 *
 * The first version stood all four side by side in one row. The map is the
 * tallest element in the footer, so it set the height of every column beside
 * it: both link columns finished ~130px short and the footer had a hole
 * through the middle at every width above 1024. Splitting the row puts the
 * two TALL blocks together — where they stretch to a common height instead of
 * one padding out to meet the other — and leaves four SHORT groups below,
 * which are naturally even.
 */

/* Colours and faces come from assets/css/tokens.css, which loads first. */
.hkf {
  --hkf-bg:      var(--black);
  --hkf-strip:   var(--black-strip);
  --hkf-rule:    var(--rule-dark);
  --hkf-fg:      var(--fg-dark);
  --hkf-dim:     var(--dim-dark);
  --hkf-head:    var(--paper);
  --hkf-accent:  var(--accent-light);
  --hkf-btn:     var(--accent);
  --hkf-btn-hi:  var(--accent-deep);
  --hkf-sans:    var(--sans);
  --hkf-display: var(--display);

  background: var(--hkf-bg);
  color: var(--hkf-fg);
  font-family: var(--hkf-sans);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.hkf a { color: var(--hkf-fg); text-decoration: none; }
.hkf a:hover, .hkf a:focus-visible { color: var(--hkf-accent); }
.hkf :focus-visible { outline: 2px solid var(--hkf-accent); outline-offset: 3px; }

.hkf__inner {
  max-width: var(--container); margin-inline: auto;
  /* 1.5rem inline, and site.css's .hkh has to match it — see the note there.
     Get them out of step and the page and the footer sit on two left edges. */
  padding: 4.5rem 1.5rem 3.5rem;
}

/* Column headings: small wide-tracked capitals, the house signature. */
.hkf__head {
  margin: 0 0 1.1rem;
  font-family: var(--hkf-sans);
  font-size: var(--t-micro);  /* 11px — the eyebrow size */
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--hkf-head);
}

/* ---------------------------------------------------------------- masthead */

.hkf__masthead {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3rem 4.5rem;
  padding-bottom: 3.25rem;
  border-bottom: 1px solid var(--hkf-rule);
  /* start, NOT the default stretch. The contact half is ~110px taller than
     the brand half and nothing can honestly fill that: the brand column has
     three things to say and says them. Stretching invites the fix that was
     tried first — margin-top:auto on the badges, so they land level with the
     foot of the map — and that does not close the hole, it MOVES it, from
     under the shorter column to the middle of it, between the paragraph and
     the credentials. A column that simply ends reads as whitespace; a gap
     inside a column reads as a bug. Screenshot, both ways, to see it. */
  align-items: start;
}

.hkf__brand,
.hkf__contact { display: flex; flex-direction: column; align-items: flex-start; }

.hkf__logo { display: block; margin-bottom: 1.75rem; }
/* 168px, not the img's own 180: the wordmark sits above a 46ch paragraph and
   reads as a mark rather than as a banner at this size. */
.hkf__logo img { width: 168px; height: auto; }

.hkf__about {
  margin: 0 0 2.25rem;
  max-width: 46ch;           /* a measure, not the column */
  color: var(--hkf-dim);
  font-size: 0.875rem;
}
.hkf__about em { font-family: var(--hkf-display); font-style: italic; }

/* Credentials. These are other people's marks and are shown as given. */
.hkf__badges {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: 1.75rem; flex-wrap: wrap;
}
/* Sized so each mark is legible rather than uniform: the IIC lockup is wide
   and short, the KAYAK badge is square with type inside it. Matching their
   heights made the KAYAK wordmark unreadable at 46px. */
.hkf__badges img { width: auto; }
.hkf__badges li:first-child img { height: 42px; }   /* IIC — wide lockup */
.hkf__badges li:last-child img  { height: 66px; }   /* KAYAK — square badge */

/* The NAP comes from nap.php. In the footer it is an <address> with one item
   per line — an address printed as a running sentence is harder to scan and
   harder for a parser to read as a postal address. */
.hk-nap { font-style: normal; margin: 0 0 1.5rem; font-size: 0.875rem; }
.hk-nap span, .hk-nap a { display: block; }
.hk-nap__name { color: var(--hkf-head); }
.hk-nap__street, .hk-nap__city { color: var(--hkf-dim); }
.hk-nap__tel { margin-top: .6rem; }
.hkf__nap p { margin: 0 0 1rem; color: var(--hkf-dim); font-size: 0.875rem; }

.hkf__wa {
  display: inline-block; margin-bottom: 2rem;
  padding: 0.8rem 1.5rem;
  background: var(--hkf-btn); color: var(--paper) !important;   /* 5.93:1 */
  font-size: var(--t-sm); letter-spacing: 1px; text-transform: uppercase;
  border-radius: var(--radius);
  transition: background .15s ease;
}
.hkf__wa:hover, .hkf__wa:focus-visible { background: var(--hkf-btn-hi); color: var(--paper) !important; }

/* 165px, down from 190: the map is the tallest thing in the footer and it
   alone decides how far the contact column outruns the brand column. There is
   nothing in it worth 190px — it is a locator, not a map to navigate by. */
.hkf__map { width: 100%; line-height: 0; }
.hkf__map iframe {
  display: block; width: 100%; height: 165px; border: 0;
  filter: grayscale(1); transition: filter .25s ease;
}
.hkf__map:hover iframe { filter: none; }

/* --------------------------------------------------------------- directory */

/* Four groups, and no destination appears in more than one of them —
   hk_footer_dir() drops a repeat rather than trusting the table above it. */
.hkf__dir {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem 2rem;
  padding-top: 3.25rem;
}
.hkf__list { list-style: none; margin: 0; padding: 0; }
.hkf__list li { margin: 0 0 .6rem; }
.hkf__list a { font-size: 0.875rem; }

/* ----------------------------------------------------------- legal and base */

/* Separated by hairlines, never by another colour block. */
.hkf__legal, .hkf__base { border-top: 1px solid var(--hkf-rule); }
.hkf__legal p, .hkf__base p {
  max-width: var(--container); margin: 0 auto; padding: 1.25rem 1.5rem;
  color: var(--hkf-dim); font-size: 0.8125rem; line-height: 1.65;
}
.hkf__base { background: var(--hkf-strip); }
.hkf__base p { padding-block: .9rem; }
.hkf__base .hkf__order { padding-top: 0; }

@media (min-width: 900px) {
  .hkf__base {
    display: flex; justify-content: space-between; align-items: baseline;
  }
  .hkf__base p { padding-inline: 0; }
  .hkf__base > p:first-child { padding-left: 1.5rem; }
  .hkf__base .hkf__order { padding-right: 1.5rem; padding-top: .9rem; }
}

/* ------------------------------------------------------------- narrow ----- */

/* 1024 keeps all four groups: the container is 976 there, so a group still
   gets 220px and only "Bulk & White Label" wraps. */
@media (max-width: 860px) {
  .hkf__masthead {
    grid-template-columns: 1fr;
    gap: 2.75rem;
    padding-bottom: 2.75rem;
  }
  /* Stacked, there is no opposite column to line up with, and auto margins
     would push the badges and the map to the foot of a one-item row — which
     does nothing visible but reads as a mistake in the inspector. */
  .hkf__inner { padding-top: 3.25rem; }
  .hkf__dir { padding-top: 2.75rem; }
}

/* The directory holds FOUR columns down to 600, which is lower than it looks:
   at 768 a group still gets 180px and the longest label in it, "Bulk & White
   Label", sets on one line. Dropping to two at 860 with the masthead cost the
   768 footer 240px of height for nothing — measured, not guessed. */
@media (max-width: 600px) {
  .hkf__badges { gap: 1.25rem; }
  /* Two, never one: eighteen full-width rows put the directory alone past
     900px, and 71% of clicks are phones. */
  .hkf__dir { grid-template-columns: repeat(2, 1fr); gap: 2rem 1.25rem; }
}


/* ── map facade ───────────────────────────────────────────────────────────
   Replaces the Google Maps iframe. It must LOOK like a map slot at the same
   height the iframe used (190px), or the footer reflows on click. */
.hkf__map-facade {
  display: flex; flex-direction: column; justify-content: center;
  min-height: 190px; padding: 1rem 1.25rem;
  border: 1px solid var(--hairline, #E5E2DD);
  background: var(--paper, #F4F2EF);
  text-decoration: none; color: inherit;
}
.hkf__map-facade:hover { border-color: var(--accent, #8A583C); }
.hkf__map-pin { font-size: 1.25rem; color: var(--accent, #8A583C); line-height: 1; }
.hkf__map-label {
  font-family: var(--sans); font-size: .9375rem; margin-top: .4rem;
  text-decoration: underline;
}
.hkf__map-note {
  font-family: var(--sans); font-size: .75rem; line-height: 1.5;
  color: var(--fg-muted, #5A5A62); margin-top: .35rem;
}
.hkf__map iframe { width: 100%; height: 190px; border: 0; display: block; }
