/* Site footer (site-footer.ts). Every rule is scoped under #kinore-footer so
   the theme's global styles stay out, as with header.css. */
#kinore-footer, #kinore-footer .kf-inner *, #kinore-footer .kf-inner { box-sizing: border-box; }
#kinore-footer { display: block; background: #141218; color: #fff; font-family: 'Montserrat', Arial, sans-serif; font-size: 15px; line-height: 1.4; -webkit-font-smoothing: antialiased; }
#kinore-footer .kf-inner a { text-decoration: none !important; transition: color 0.15s, background 0.15s, border-color 0.15s; }
#kinore-footer .kf-inner p { margin: 0; padding: 0; font-family: inherit; }

/* Sits above the sticky "Get Started" bar (45) and below the closing purple
   card (47) that overlaps the top of the footer on most pages. */
#kinore-footer .kf-inner { position: relative; z-index: 46; background: #141218; max-width: 1280px; margin: 0 auto; padding: clamp(40px, 5vw, 64px) 20px 0; }
/* Room for the closing card where a page has one. */
body:has(.businesssupportsection, .elementor-widget-loop-grid[data-settings*='template_id":"842"'], .elementor-element-6a3588d) #kinore-footer .kf-inner { padding-top: calc(95px + clamp(48px, 6vw, 80px)); }

/* Columns */
#kinore-footer .kf-grid { display: grid; grid-template-columns: minmax(240px, 320px) repeat(4, minmax(0, max-content)); justify-content: space-between; gap: 40px 32px; }
#kinore-footer .kf-brand { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
#kinore-footer .kf-logo { display: block; width: 112px; height: 52px; overflow: hidden; }
#kinore-footer .kf-logo img { display: block; height: 52px; width: auto; max-width: none; clip-path: polygon(0 0, 84.5% 0, 84.5% 83%, 24% 83%, 24% 100%, 0 100%); }
#kinore-footer .kf-tagline { font-size: 15px; line-height: 1.55; color: #D4D0DB; max-width: 30ch; text-wrap: pretty; }
#kinore-footer .kf-contact { display: flex; flex-direction: column; gap: 8px; font-size: 16px; font-weight: 700; }
#kinore-footer .kf-contact a { color: #fff !important; }
#kinore-footer .kf-contact a:hover { color: #FBBF1A !important; }
#kinore-footer .kf-social { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
#kinore-footer .kf-social-btn { width: 44px; height: 44px; border-radius: 999px; border: 1px solid #3A3640; display: grid; place-items: center; color: #fff !important; }
#kinore-footer .kf-portal { height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid #3A3640; display: flex; align-items: center; gap: 6px; color: #fff !important; font-size: 14px; font-weight: 700; white-space: nowrap; }
#kinore-footer .kf-social-btn:hover, #kinore-footer .kf-portal:hover { background: #FBBF1A; border-color: #FBBF1A; color: #141218 !important; }

#kinore-footer .kf-col { display: flex; flex-direction: column; min-width: 0; }
#kinore-footer .kf-colbtn { all: unset; box-sizing: border-box; cursor: pointer; font-family: inherit; display: none; }
#kinore-footer .kf-colhead { display: block; font-size: 13px; font-weight: 800; letter-spacing: 0.08em; color: #FBBF1A; padding-bottom: 14px; }
#kinore-footer .kf-links { display: flex; flex-direction: column; }
#kinore-footer .kf-links a, #kinore-footer .kf-links .is-unlinked { display: block; padding: 7px 0; font-size: 15px; font-weight: 600; color: #D4D0DB !important; line-height: 1.35; }
#kinore-footer .kf-links a:hover { color: #FBBF1A !important; }

/* Offices */
#kinore-footer .kf-offices { margin-top: clamp(32px, 4vw, 48px); padding: 28px 0; border-top: 1px solid #2C2932; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 20px 28px; }
#kinore-footer .kf-office { display: flex; flex-direction: column; gap: 4px; color: #fff !important; }
#kinore-footer .kf-office b { font-size: 15px; font-weight: 800; }
#kinore-footer .kf-office span { font-size: 14px; line-height: 1.5; font-weight: 500; color: #B4AFBC; text-wrap: pretty; transition: color 0.15s; }
#kinore-footer .kf-office:hover b, #kinore-footer .kf-office:hover span { color: #FBBF1A; }

/* Accreditations and awards */
#kinore-footer .kf-trust { padding: 28px 0; border-top: 1px solid #2C2932; display: flex; flex-direction: column; gap: 18px; }
#kinore-footer .kf-label { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; color: #B4AFBC; }
#kinore-footer .kf-trust-row { display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: clamp(14px, 2.4vw, 36px); overflow-x: auto; scrollbar-width: none; padding: 2px 0; }
#kinore-footer .kf-trust-row::-webkit-scrollbar { display: none; }
#kinore-footer .kf-badge { display: block; flex: 0 1 var(--w); min-width: calc(var(--w) * 0.7); height: clamp(34px, 3.6vw, 44px); opacity: 0.6; filter: grayscale(1); transition: opacity 0.2s, filter 0.2s, transform 0.2s; }
#kinore-footer .kf-badge img { display: block; width: 100%; height: 100%; object-fit: contain; }
#kinore-footer .kf-badge-ink { filter: brightness(0) invert(1); }
#kinore-footer .kf-badge-small { opacity: 0.8; }
#kinore-footer .kf-badge:hover { opacity: 1; filter: none; transform: translateY(-2px); }
#kinore-footer .kf-badge-ink:hover { filter: brightness(0) invert(1); }

/* Legal */
#kinore-footer .kf-legal { padding: 20px 0 28px; border-top: 1px solid #2C2932; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; font-size: 13px; font-weight: 600; color: #B4AFBC; }
#kinore-footer .kf-legal div { display: flex; flex-wrap: wrap; gap: 8px 20px; }
#kinore-footer .kf-legal a { color: #B4AFBC !important; }
#kinore-footer .kf-legal a:hover { color: #FBBF1A !important; }

@media (max-width: 1079px) {
  #kinore-footer .kf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #kinore-footer .kf-brand { grid-row: span 2; padding-bottom: 8px; }
}
@media (max-width: 719px) {
  #kinore-footer .kf-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  #kinore-footer .kf-brand { grid-row: auto; padding-bottom: 28px; }
  #kinore-footer .kf-col { border-top: 1px solid #2C2932; }
  #kinore-footer .kf-colhead { display: none; }
  #kinore-footer .kf-colbtn { min-height: 56px; display: flex; align-items: center; justify-content: space-between; color: #fff; font-size: 17px; font-weight: 800; text-align: left; }
  #kinore-footer .kf-colbtn svg { transition: transform 160ms; }
  #kinore-footer .kf-col[data-open="true"] .kf-colbtn svg { transform: rotate(180deg); }
  #kinore-footer .kf-links { display: none; padding-bottom: 16px; }
  #kinore-footer .kf-col[data-open="true"] .kf-links { display: flex; }
  #kinore-footer .kf-offices { margin-top: 0; border-top: 1px solid #2C2932; }
}
