/*
Theme Name: JoinSourceLink Kadence
Theme URI: https://joinsourcelink.com/
Description: JoinSourceLink child theme for the Kadence parent theme. Owns site-specific global style defaults while the joinsourcelink-site plugin owns blocks, seed commands, media imports, and integrations.
Author: SourceLink
Template: kadence
Version: 0.1.0
Text Domain: joinsourcelink-kadence
*/

:root {
  /* SourceLink global tokens live here first, then move into Kadence settings when safe. */
  --sl-bg: #faf8f4;
  --sl-surface: #ffffff;
  --sl-surface-alt: #f1eee7;
  --sl-ink: #1b2431;
  --sl-ink-soft: #465362;
  --sl-muted: #5c636e;
  --sl-blue: #336aa8;
  --sl-accent: #c8430a;
  --sl-accent-hover: #b33a00;
  --sl-border: #e8e2d3;
  --sl-border-soft: #f0ebde;
  --blue: #336aa8;
  --blue-dark: #2e5a91;
  --blue-soft: #5ca1ce;
  --ink: #1b2431;
  --ink-soft: #465362;
  --muted: #5c636e;
  --bg: #faf8f4;
  --bg-white: #ffffff;
  --bg-alt: #f1eee7;
  --surface-blue: #eef7fb;
  --surface-blue-warm: #f2f7fa;
  --accent: #c8430a;
  --accent-dark: #b33a00;
  --accent-soft: #fdf0e8;
  --border: #e8e2d3;
  --field-border: #767063;
  --border-soft: #f0ebde;
  --font-body: "Figtree", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Instrument Serif", Georgia, serif;
  --container: 1240px;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
}

a {
  color: var(--blue);
}

.wp-site-blocks,
.site,
#wrapper {
  background: var(--bg);
}

button,
.button,
.wp-block-button__link,
input[type="button"],
input[type="submit"] {
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 700;
}

.wp-block-button__link {
  padding: 12px 22px;
}

.wp-block-button__link:hover,
.wp-block-button__link:focus {
  background: var(--accent-dark);
  color: #ffffff;
}

/* Kadence global chrome migration. Scoped to converted pages after the
   plugin full header/footer shell is intentionally bypassed. */
body.sl-global #masthead {
  display: block !important;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 244, 0.97);
  border-bottom: 1px solid var(--border-soft);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

body.admin-bar.sl-global #masthead {
  top: 32px;
}

body.sl-global #masthead .site-header-row-container-inner,
body.sl-global #masthead .site-main-header-wrap {
  background: transparent;
}

body.sl-global #masthead .site-container {
  max-width: var(--container);
  padding-left: 0;
  padding-right: 0;
}

body.sl-global #masthead .site-main-header-inner-wrap {
  max-width: var(--container);
  /* 83px row + 1px masthead border = the static mockup's 84px nav height. */
  min-height: 83px;
  margin: 0 auto;
  padding: 0 32px;
}

body.sl-global .site-branding a.brand img {
  width: 193px;
  max-width: 193px;
  height: auto;
}

body.sl-global .main-navigation .primary-menu-container > ul > li > a {
  display: inline-flex;
  align-items: center;
  /* WCAG 2.2 SC 2.5.8 Target Size: keep the clickable area >= 24px (44px here). */
  min-height: 44px;
  padding: 0 18px;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  transition: color 0.15s ease;
}

body.sl-global .main-navigation .primary-menu-container > ul > li > a:hover,
body.sl-global .main-navigation .primary-menu-container > ul > li.current-menu-item > a,
body.sl-global .main-navigation .primary-menu-container > ul > li.current-menu-ancestor > a,
body.sl-global .main-navigation .primary-menu-container > ul > li.current_page_parent > a {
  color: var(--blue);
}

/* Desktop dropdown menus, mirrored from the static .nav-dropdown styles.
   Kadence renders its own chevron in .dropdown-nav-toggle; restyle that one
   rather than adding a second caret. */
body.sl-global .main-navigation .primary-menu-container > ul > li.menu-item-has-children > a .dropdown-nav-toggle {
  padding: 0;
  margin-left: 4px;
  color: var(--ink-soft);
  transition: transform 0.2s ease, color 0.15s ease;
}
body.sl-global .main-navigation .primary-menu-container > ul > li.menu-item-has-children > a .dropdown-nav-toggle svg {
  width: 12px;
  height: 12px;
}
body.sl-global .main-navigation .primary-menu-container > ul > li.menu-item-has-children:hover > a .dropdown-nav-toggle,
body.sl-global .main-navigation .primary-menu-container > ul > li.menu-item-has-children:focus-within > a .dropdown-nav-toggle {
  color: var(--blue);
  transform: rotate(180deg);
}
body.sl-global .main-navigation .primary-menu-container ul.sub-menu {
  min-width: 240px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(27, 36, 49, 0.1);
}
body.sl-global .main-navigation .primary-menu-container ul.sub-menu li {
  border: 0;
}
body.sl-global .main-navigation .primary-menu-container ul.sub-menu li a {
  display: block;
  width: 100%;
  padding: 10px 14px;
  background: transparent;
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
body.sl-global .main-navigation .primary-menu-container ul.sub-menu li a:hover,
body.sl-global .main-navigation .primary-menu-container ul.sub-menu li.current-menu-item > a {
  background: var(--surface-blue);
  color: var(--blue);
}

body.sl-global #masthead .header-button {
  min-height: 44px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.65;
  box-shadow: none;
  transition: background-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

body.sl-global #masthead .header-button:hover,
body.sl-global #masthead .header-button:focus {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-0.5px);
  box-shadow: 0 6px 16px rgba(214, 69, 0, 0.22);
}

body.sl-global #masthead a:focus-visible,
body.sl-global #colophon a:focus-visible,
body.sl-global #masthead button:focus-visible {
  outline: 3px solid rgba(60, 115, 181, 0.38);
  outline-offset: 3px;
}

body.sl-global #mobile-header .site-main-header-inner-wrap {
  /* 68px row + 1px border = the static mockup's 69px mobile nav. This also
     keeps the section subnav resting above the 74px is-pinned trigger
     (nav.js IntersectionObserver), so it compresses at the top of the page
     exactly like the static side. */
  min-height: 68px;
  padding: 0 24px;
}

body.sl-global #mobile-header .site-branding a.brand img {
  width: 172px;
  max-width: 172px;
}

body.sl-global .menu-toggle-open {
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--ink);
}

body.sl-global #mobile-drawer .drawer-inner {
  background: var(--bg);
}

body.sl-global #mobile-drawer .menu-toggle-close,
body.sl-global #mobile-drawer .drawer-toggle {
  color: var(--ink);
}

body.sl-global #mobile-drawer .toggle-close-bar {
  background: currentColor;
}

/* Top-level drawer links. Kadence wraps submenu-parent links in
   .drawer-nav-drop-wrap (link + toggle button), so target both the plain link
   and the wrapped one; otherwise only childless items (e.g. Case Studies) get
   the top-level size and parents collapse to the 14px sub-item size. */
body.sl-global #mobile-drawer .drawer-navigation .drawer-menu-container > ul > li > a,
body.sl-global #mobile-drawer .drawer-navigation .drawer-menu-container > ul > li > .drawer-nav-drop-wrap > a {
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
}

body.sl-global #mobile-drawer .drawer-navigation .drawer-menu-container > ul > li.current-menu-item > a,
body.sl-global #mobile-drawer .drawer-navigation .drawer-menu-container > ul > li.current-menu-item > .drawer-nav-drop-wrap > a,
body.sl-global #mobile-drawer .drawer-navigation .drawer-menu-container > ul > li.current-menu-ancestor > a,
body.sl-global #mobile-drawer .drawer-navigation .drawer-menu-container > ul > li.current-menu-ancestor > .drawer-nav-drop-wrap > a,
body.sl-global #mobile-drawer .drawer-navigation .drawer-menu-container > ul > li > a:hover,
body.sl-global #mobile-drawer .drawer-navigation .drawer-menu-container > ul > li > .drawer-nav-drop-wrap > a:hover {
  color: var(--blue);
}

body.sl-global #mobile-drawer .mobile-header-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 20px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
}

body.sl-global #colophon.site-footer {
  display: block !important;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

body.sl-global #colophon .site-container {
  max-width: var(--container);
  padding-left: 32px;
  padding-right: 32px;
}

body.sl-global #colophon .site-top-footer-wrap {
  border-bottom: 1px solid var(--border-soft);
}

body.sl-global #colophon .site-top-footer-inner-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

body.sl-global #colophon .footer-widget1 .widget,
body.sl-global #colophon .footer-widget2 .widget,
body.sl-global #colophon .footer-widget3 .widget,
body.sl-global #colophon .footer-widget4 .widget,
body.sl-global #colophon .footer-widget5 .widget,
body.sl-global #colophon .footer-widget6 .widget {
  margin: 0;
  padding: 0;
}

body.sl-global #colophon .site-footer-section,
body.sl-global #colophon .footer-widget-area {
  align-items: flex-start;
  justify-content: flex-start;
}

body.sl-global #colophon .footer-widget-area-inner {
  width: 100%;
}

body.sl-global #colophon .sl-footer-newsletter {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 28px 32px;
}

body.sl-global #colophon .footer-newsletter-head {
  margin-bottom: 18px;
}

body.sl-global #colophon .footer-newsletter-head h3,
body.sl-global #colophon .footer-social-head {
  margin: 0 0 6px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.5px;
  line-height: 1.12;
}
body.sl-global #colophon .footer-social-head {
  font-size: 18px;
  font-weight: 600;
}

body.sl-global #colophon .footer-newsletter-head p,
body.sl-global #colophon .footer-social-sub {
  max-width: 440px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.55;
}

body.sl-global #colophon .footer-social-sub {
  max-width: 280px;
  margin-bottom: 16px;
}

body.sl-global #colophon .footer-form {
  display: grid;
  grid-template-columns: 1fr 1fr 1.3fr auto;
  gap: 8px;
  align-items: stretch;
}

body.sl-global #colophon .footer-form-input {
  min-width: 0;
  width: 100%;
  line-height: normal;
  padding: 11px 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body.sl-global #colophon .footer-form-input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(60, 115, 181, 0.14);
}

body.sl-global #colophon .footer-form-submit {
  line-height: normal;
  padding: 11px 22px;
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

body.sl-global #colophon .footer-form-submit:hover,
body.sl-global #colophon .footer-form-submit:focus {
  background: var(--accent-dark);
  transform: translateY(-0.5px);
  box-shadow: 0 6px 16px rgba(214, 69, 0, 0.22);
}

body.sl-global #colophon .footer-form-foot {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

body.sl-global #colophon .footer-form-foot a,
body.sl-global #colophon .widget_nav_menu a {
  color: var(--blue);
}

body.sl-global #colophon .footer-social-links {
  display: flex;
  gap: 10px;
}

body.sl-global #colophon .footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--ink-soft);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 50%;
  transition: all 0.18s ease;
}

body.sl-global #colophon .footer-social-link:hover {
  border-color: var(--ink-soft);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(27, 36, 49, 0.08);
}

body.sl-global #colophon .footer-social-link svg {
  width: 20px;
  height: 20px;
}

body.sl-global #colophon .footer-social-link img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  filter: grayscale(1) contrast(1.05);
  transition: filter 0.18s ease;
}

body.sl-global #colophon .footer-social-link:hover img {
  filter: grayscale(0) contrast(1.05);
}

body.sl-global #colophon .site-middle-footer-wrap {
  padding: 0;
}

body.sl-global #colophon .site-middle-footer-inner-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
  align-items: start;
}

body.sl-global #colophon .sl-footer-logo {
  display: block;
  width: 170px;
  margin-bottom: 16px;
}

body.sl-global #colophon .sl-footer-logo img {
  width: 170px;
  height: auto;
}

body.sl-global #colophon .footer-tag {
  max-width: 260px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

body.sl-global #colophon .widget-title {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
  line-height: 1.2;
  text-transform: uppercase;
}

body.sl-global #colophon .widget_nav_menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

body.sl-global #colophon .widget_nav_menu li {
  margin: 0 0 12px;
}

body.sl-global #colophon .widget_nav_menu a {
  color: var(--ink-soft);
  font-size: 15px;
  text-decoration: none;
  transition: color 0.15s ease;
}

body.sl-global #colophon .widget_nav_menu a:hover {
  color: var(--blue);
}

body.sl-global #colophon .site-bottom-footer-wrap,
body.sl-global #colophon .site-bottom-footer-wrap .site-footer-row-container-inner {
  background: var(--ink);
}

body.sl-global #colophon .site-bottom-footer-inner-wrap {
  display: block;
}

body.sl-global #colophon .footer-html,
body.sl-global #colophon .footer-html-inner {
  width: 100%;
  margin: 0;
}

body.sl-global #colophon .sl-footer-partners {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding-bottom: 28px;
  text-align: center;
}

body.sl-global #colophon .footer-partners-label {
  color: var(--brand-pale, #afe0f2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

body.sl-global #colophon .footer-partners-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 56px;
}

body.sl-global #colophon .footer-partner-logo {
  width: auto;
  height: 50px;
  opacity: 0.85;
}

body.sl-global #colophon .footer-partner-logo.kauffman {
  filter: brightness(0) invert(1);
}

body.sl-global #colophon .sl-footer-bottom-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.5);
  font-size: 12.5px;
  line-height: 1.55;
}

body.sl-global #colophon .sl-footer-bottom-row a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

body.sl-global #colophon .sl-footer-bottom-row a:hover {
  color: #fff;
}

@media (max-width: 1024px) {
  body.sl-global #masthead {
    top: 0;
  }

  body.admin-bar.sl-global #masthead {
    top: 32px;
  }
}

@media (max-width: 960px) {
  body.sl-global #colophon .site-top-footer-inner-wrap {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  body.sl-global #colophon .site-middle-footer-inner-wrap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }

  body.sl-global #colophon .footer-form {
    grid-template-columns: 1fr 1fr;
  }

  body.sl-global #colophon .footer-partners-logos {
    gap: 32px;
  }
}

@media (max-width: 767px) {
  body.admin-bar.sl-global #masthead {
    top: 46px;
  }

  body.sl-global #masthead .site-main-header-inner-wrap,
  body.sl-global #mobile-header .site-main-header-inner-wrap,
  body.sl-global #colophon .site-container {
    padding-left: 24px;
    padding-right: 24px;
  }

  /* The static footer-grid stays two-up on mobile (Claude/shared.css switches
     .footer-grid to 1fr 1fr below 960px). */
  body.sl-global #colophon .site-middle-footer-inner-wrap {
    grid-template-columns: 1fr 1fr;
  }

  body.sl-global #colophon .footer-form {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  /* Matches the static .footer-form single-column breakpoint. */
  body.sl-global #colophon .footer-form {
    grid-template-columns: 1fr;
  }
}
