/* SearchMate site footer, 17 Nov 2026 redesign.
   Brand row, five link columns, one bottom bar. Every link is a plain <a> in a <ul>, always visible (no accordions),
   so search engines and people see the same thing on every screen size.
   Selectors start with footer.smf so they win over the older phone footer rules in sm-mobile-v1.css. */

footer.smf { font-family: 'Schibsted Grotesk', system-ui, sans-serif; color: #A8A29B; }
footer.smf .smf-in { max-width: 1200px; margin: 0 auto; padding: 72px 24px 0; }
footer.smf *, footer.smf *::before, footer.smf *::after { box-sizing: border-box; }
footer.smf ul { list-style: none; margin: 0; padding: 0; }
footer.smf p { margin: 0; }
footer.smf a { color: inherit; text-decoration: none; transition: color .15s ease; }
footer.smf a:hover { color: #FFFFFF; }
footer.smf a:focus-visible { outline: 2px solid #FF5A1F; outline-offset: 3px; border-radius: 3px; color: #FFFFFF; }

/* brand row */
footer.smf .smf-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-bottom: 48px; margin-bottom: 48px; border-bottom: 1px solid #2A2623; }
footer.smf .smf-logo { display: inline-flex; align-items: center; gap: 10px; color: #FFFFFF; }
footer.smf .smf-logo span { font-weight: 800; font-size: 21px; letter-spacing: -0.035em; }
footer.smf .smf-line { margin-top: 18px; color: #FFFFFF; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }
footer.smf .smf-sub { margin-top: 6px; font-size: 15px; line-height: 1.5; }
footer.smf .smf-cta { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 10px; background: #FF5A1F; color: #161412; font-weight: 700; font-size: 15px; }
footer.smf .smf-cta:hover { background: #FF7440; color: #161412; }

/* link columns */
footer.smf nav.smf-grid { display: grid !important; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 40px 32px !important; width: auto; }
footer.smf nav.smf-grid > .smf-col { min-width: 0 !important; gap: 0 !important; }
footer.smf .smf-h { margin: 0 0 14px !important; color: #FFFFFF; font-size: 14px; font-weight: 700; letter-spacing: 0; }
footer.smf .smf-col ul + .smf-h { margin-top: 32px !important; }
footer.smf .smf-col li + li { margin-top: 2px; }
footer.smf .smf-col a { display: inline-block; padding: 5px 0; font-size: 14.5px; line-height: 1.4; }

/* bottom bar */
footer.smf .smf-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 64px; padding: 24px 0 32px; border-top: 1px solid #2A2623; font-size: 13px; color: #8C857D; }
footer.smf .smf-bar ul { display: flex; gap: 24px; }
footer.smf .smf-bar a { display: inline-block; padding: 4px 0; }

/* tablet: three columns */
@media (max-width: 1023px) {
  footer.smf nav.smf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 28px !important; }
  /* balance the rows: Product, Solutions, Resources on top; Free tools and Company below */
  footer.smf nav.smf-grid > .smf-col:nth-child(3) { order: 4; }
  footer.smf nav.smf-grid > .smf-col:nth-child(4) { order: 3; }
  footer.smf nav.smf-grid > .smf-col:nth-child(5) { order: 5; }
}
@media (max-width: 640px) {
  footer.smf nav.smf-grid > .smf-col { order: 0 !important; }
}

/* phone: stacked brand row, two columns, bigger tap areas */
@media (max-width: 640px) {
  footer.smf .smf-in { padding: 56px 20px 0; }
  footer.smf .smf-top { flex-direction: column; align-items: flex-start; gap: 22px; padding-bottom: 36px; margin-bottom: 36px; }
  footer.smf .smf-line { font-size: 20px; }
  footer.smf .smf-cta { width: 100%; justify-content: center; min-height: 48px; }
  footer.smf nav.smf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 20px !important; }
  footer.smf .smf-h { margin-bottom: 8px !important; }
  footer.smf .smf-col ul + .smf-h { margin-top: 26px !important; }
  footer.smf .smf-col li + li { margin-top: 0; }
  footer.smf .smf-col a { display: block; padding: 7px 0; font-size: 15px; line-height: 1.3; }
  /* Company is short: run it full width as one wrapped row instead of a lonely column */
  footer.smf nav.smf-grid > .smf-col:last-child { grid-column: 1 / -1; }
  footer.smf nav.smf-grid > .smf-col:last-child ul { display: flex; flex-wrap: wrap; gap: 0 22px; }
  footer.smf .smf-bar { margin-top: 48px; flex-direction: column-reverse; align-items: flex-start; padding-bottom: 28px; }
}
