/*
 * Site footer link block above Dan's carrier registration line (template-parts/dan-seo-footer.php).
 * Option 2 picked by the owner, 2026-11-26: brand column (Dan's logo, his line, phone and email with his
 * "GIVE US A CALL" / "DROP US A LINE" labels) on the left, link columns on the right. Group headings are the hub
 * links (Services, Locations, Guides). Full-width band with Dan's light panel background (60% white, as his
 * licence line), side gutters follow his header: 3.5% above 1250px, 3% to 850px, 4% below (measured 26 Nov).
 * Media queries, not container queries: on the SEO pages this block sits outside Dan's #ba10 container.
 * Every rule sits under .dan-seo-foot so nothing reaches Dan's CSS. Fonts and colours are Dan's.
 * Spacing on h2 and p uses padding, not margin: on the home page Dan's "#ba10 .r2-site h2, p { margin: 0 }" wins.
 * Links are always visible at every width (no accordion), so search and AI tools read all of them.
 */
.dan-seo-foot {
  --dsf-gut: 3.5%;
  flex: none;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 28px var(--dsf-gut) 20px;
  border-top: 1px solid #ccd7e4;
  background: var(--light-panel-background, rgb(255 255 255 / 60%));
  color: #142746;
  font: 400 14px/1.4 'DM Sans', Arial, sans-serif;
  text-align: left;
  text-shadow: none;
}
.dan-seo-foot *,
.dan-seo-foot *::before,
.dan-seo-foot *::after { box-sizing: border-box; }
.dan-seo-foot .dan-seo-foot__in {
  display: grid;
  /* Four equal columns across the footer (brand | Services | Locations + Company | Guides): even spacing, no clump. */
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 40px;
  align-items: start;
}

/* Brand column: logo top on the same line as the headings, then Dan's line, then the two contact pairs. */
.dan-seo-foot .dan-seo-foot__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.dan-seo-foot .dan-seo-foot__logo { display: block; margin: 2px 0 0; line-height: 0; }
.dan-seo-foot .dan-seo-foot__logo img { display: block; width: 150px; max-width: none; height: auto; }
.dan-seo-foot .dan-seo-foot__line {
  margin: 0;
  padding: 10px 0 0;
  color: #142746;
  font: 500 14px/1.4 'Lexend', Arial, sans-serif;
}
.dan-seo-foot .dan-seo-foot__reach { display: grid; gap: 10px; margin: 18px 0 0; }
.dan-seo-foot .dan-seo-foot__reach > div { display: flex; flex-direction: column; gap: 2px; }
.dan-seo-foot .dan-seo-foot__label {
  color: #b31635;
  font: 600 10px/1.4 'Lexend', Arial, sans-serif;
  letter-spacing: .16em;
}
.dan-seo-foot .dan-seo-foot__reach a {
  color: #142746;
  font: 500 15px/1.4 'Lexend', Arial, sans-serif;
  text-decoration: none;
}
.dan-seo-foot .dan-seo-foot__reach a[href^="tel:"] { letter-spacing: .03em; }

/* Four columns of near-equal length: brand | Services | Locations over Company | Guides (one column of 9).
   The link wrapper is display: contents, so all four share one grid with equal gaps from Dan's left header
   edge to his right one (2026-11-26, owner: no lone Guides column, no empty space under it). */
.dan-seo-foot .dan-seo-foot__links { display: contents; }
.dan-seo-foot .dan-seo-foot__stack { display: flex; flex-direction: column; gap: 16px; }
.dan-seo-foot .dan-seo-foot__title {
  margin: 0;
  padding: 0 0 6px;
  color: #b31635;
  font: 600 11.5px/1.4 'Lexend', Arial, sans-serif;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.dan-seo-foot .dan-seo-foot__title a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: inherit;
  font: inherit;
  text-decoration: none;
}
/* Small chevron: the heading is the link to that hub page. */
.dan-seo-foot .dan-seo-foot__title a::after {
  content: '';
  width: 5px;
  height: 5px;
  margin-top: -1px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
}
.dan-seo-foot .dan-seo-foot__list { margin: 0; padding: 0; list-style: none; }
.dan-seo-foot .dan-seo-foot__list li { margin: 0; padding: 0; }
.dan-seo-foot .dan-seo-foot__list a {
  display: inline-block;
  padding: 2px 0;
  color: #465a73;
  font: inherit;
  text-decoration: none;
}
.dan-seo-foot a:hover { color: #ae1736; text-decoration: underline; text-underline-offset: 3px; }
.dan-seo-foot a:focus-visible { outline: 2px solid #142746; outline-offset: 2px; border-radius: 2px; }

/* Up to 1250px: the brand becomes one row on top (logo, line, contact pairs on the right),
   the three link columns below it. */
@media (max-width: 1250px) {
  .dan-seo-foot { --dsf-gut: 3%; }
  .dan-seo-foot .dan-seo-foot__in { grid-template-columns: repeat(3, max-content); row-gap: 20px; }
  .dan-seo-foot .dan-seo-foot__brand {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 32px;
    padding: 0 0 18px;
    border-bottom: 1px solid #ccd7e4;
  }
  .dan-seo-foot .dan-seo-foot__logo { margin: 0; }
  .dan-seo-foot .dan-seo-foot__logo img { width: 130px; }
  .dan-seo-foot .dan-seo-foot__line { padding: 0; }
  .dan-seo-foot .dan-seo-foot__reach { grid-auto-flow: column; gap: 32px; margin: 0 0 0 auto; }
}
@media (max-width: 850px) { .dan-seo-foot { --dsf-gut: 4%; } }
/* Phone: logo beside the line and contact pairs, Services | Locations + Company, Guides below in two columns. */
@media (max-width: 620px) {
  .dan-seo-foot { padding-top: 22px; padding-bottom: 18px; font-size: 13.5px; }
  .dan-seo-foot .dan-seo-foot__in { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 18px; }
  .dan-seo-foot .dan-seo-foot__group--guides { grid-column: 1 / -1; }
  .dan-seo-foot .dan-seo-foot__brand {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 0 16px;
    padding-bottom: 16px;
  }
  .dan-seo-foot .dan-seo-foot__logo { grid-row: 1 / 3; margin-top: 2px; }
  .dan-seo-foot .dan-seo-foot__logo img { width: 112px; }
  .dan-seo-foot .dan-seo-foot__reach { grid-auto-flow: row; gap: 6px; margin: 8px 0 0; }
  .dan-seo-foot .dan-seo-foot__reach a { font-size: 14px; }
  /* Guides flow in two plain columns here, so a wrapped name does not open a gap in the other column. */
  .dan-seo-foot .dan-seo-foot__group--guides .dan-seo-foot__list { columns: 2; column-gap: 18px; }
  .dan-seo-foot .dan-seo-foot__list li { break-inside: avoid; }
  .dan-seo-foot .dan-seo-foot__list a { padding: 3.5px 0; }
}
