/* ==========================================================================
   AnimalsCell — ac-global.css (PRODUCTION, site-wide)
   Loaded on every page. Covers design tokens, the real global header (8349),
   header-scoped navigation, header-scoped native mega menus, and the real
   global footer. No homepage-specific rules live here — those are in
   ac-homepage.css, loaded only on is_front_page().

   Every navigation/mega-menu rule is scoped beneath
   .wp-block-kadence-header8349-cpt-id — there are no bare nav selectors.

   Structure: 1 tokens, 2 header, 3 navigation, 4 mega menus, 5 footer.
   ========================================================================== */

/* 1. Tokens ------------------------------------------------------------ */
:root {
  --ac-navy-deep:#0B1F33;
  --ac-navy:#102A43;
  --ac-teal:#0F766E;
  --ac-teal-dark:#0B5D56;
  --ac-body:#334E68;
  --ac-muted:#627D98;
  --ac-mint:#EEF6F3;
  --ac-bg:#F7FAF9;
  --ac-line:#E3E9E7;
  --ac-content-max:1380px;
}

/* 2. Header (real 8349 markup) ------------------------------------------ */
.wp-block-kadence-header8349-cpt-id {
  border-bottom:1px solid var(--ac-line);
}
.wp-block-kadence-header8349-cpt-id .kadence-header-row-inner {
  max-width:1240px;
  margin:0 auto;
}
.wp-block-kadence-header8349-cpt-id .wp-block-site-title a {
  color:var(--ac-navy)!important;
  text-decoration:none!important;
  letter-spacing:-0.5px;
}
.wp-block-kadence-header8349-cpt-id .wp-block-search__inside-wrapper {
  border-radius:10px;
  border-color:#DCE6E3;
}
.wp-block-kadence-header8349-cpt-id .wp-block-search__button {
  color:var(--ac-navy);
}
.wp-block-kadence-header8349-cpt-id .wp-block-search__button:hover {
  color:var(--ac-teal);
}

/* 3. Navigation (scoped beneath the real header — no bare selectors) ---- */
.wp-block-kadence-header8349-cpt-id .kb-nav-link-content {
  font-size:14.5px;
  font-weight:650;
  letter-spacing:-0.005em;
  color:#1D3549;
  transition:color .18s ease;
}
.wp-block-kadence-header8349-cpt-id .kb-nav-link-content:hover,
.wp-block-kadence-header8349-cpt-id .current-menu-item > .kb-link-wrap .kb-nav-link-content {
  color:var(--ac-teal);
}

/* 4. Mega menus (scoped beneath the real header — no bare selectors) ---- */
.wp-block-kadence-header8349-cpt-id .sub-menu.mega-menu {
  border:1px solid #E4EAE8!important;
  border-radius:12px!important;
  box-shadow:0 20px 48px rgba(16,42,67,.12)!important;
  padding:24px!important;
}
.wp-block-kadence-header8349-cpt-id .sub-menu.mega-menu .kt-row-column-wrap {
  gap:32px!important;
}
.wp-block-kadence-header8349-cpt-id .sub-menu.mega-menu h4 {
  margin:0 0 12px!important;
  font-size:11.5px!important;
  font-weight:800!important;
  letter-spacing:.09em!important;
  text-transform:uppercase!important;
  color:var(--ac-teal)!important;
}
.wp-block-kadence-header8349-cpt-id .sub-menu.mega-menu p {
  font-size:14.5px!important;
  line-height:1.9!important;
}
.wp-block-kadence-header8349-cpt-id .sub-menu.mega-menu p a {
  color:var(--ac-navy)!important;
  text-decoration:none!important;
}
.wp-block-kadence-header8349-cpt-id .sub-menu.mega-menu p a:hover {
  color:var(--ac-teal)!important;
}

/* 5. Global footer (real footer_html_content, ac-footer-* classes) --------- */

/* Neutralize Kadence's own "bottom row" spacing (footer_bottom_top_spacing /
   footer_bottom_bottom_spacing, currently 30px/30px, generated inline as
   .site-bottom-footer-inner-wrap{padding-top:30px;padding-bottom:30px}).
   That row wrapper only ever contains our single footer-html widget, so
   this fully hands vertical spacing control to .ac-footer-inner below,
   with a single source of truth instead of two paddings stacking. */
.site-footer .site-bottom-footer-inner-wrap {
  padding-top:0!important;
  padding-bottom:0!important;
}

.site-footer {
  background:var(--ac-navy-deep)!important;
  border-top:0;
}
.site-footer .footer-html {
  padding:0;
}
.ac-footer-inner {
  max-width:1360px;
  margin:0 auto;
  padding:64px 40px 44px;
}
.ac-footer-grid {
  display:grid;
  grid-template-columns:1.4fr 1fr 1.15fr .8fr;
  gap:0 40px;
  align-items:start;
  text-align:left;
}
.ac-footer-grid > div {
  text-align:left;
}
.ac-footer-wordmark {
  color:#F7FAF9;
  font-size:25px;
  font-weight:700;
  letter-spacing:-0.3px;
  margin:0 0 14px;
  text-align:left;
}
.ac-footer-tagline {
  margin:0;
  max-width:320px;
  color:#A8BAC8;
  font-size:16px;
  line-height:1.65;
  text-align:left;
}
.ac-footer-heading {
  font-size:13.5px;
  font-weight:700;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:#63C7BC;
  margin:0 0 18px;
  text-align:left;
}
.ac-footer-links {
  display:flex;
  flex-direction:column;
  text-align:left;
}
.ac-footer-links a {
  display:block;
  font-size:16.5px;
  font-weight:500;
  line-height:1.4;
  margin-bottom:12px;
  transition:color .18s ease;
}
.ac-footer-links a:last-child {
  margin-bottom:0;
}
/* Underline killer: Kadence's own .inner-link-style-normal a:not(.button)
   rule (2 classes + 1 element) outranks a plain .ac-footer-links a
   selector, so this must be scoped + !important to win deterministically. */
.site-footer .ac-footer-links a,
.site-footer .ac-footer-links a:visited {
  color:#F7FAF9;
  text-decoration:none!important;
  border-bottom:0!important;
  box-shadow:none!important;
}
.site-footer .ac-footer-links a:hover,
.site-footer .ac-footer-links a:focus {
  text-decoration:none!important;
}
.ac-footer-links a:hover {
  color:#63C7BC;
}
.ac-footer-links a:focus-visible {
  outline:2px solid #63C7BC;
  outline-offset:3px;
  border-radius:2px;
}
.ac-footer-bottom {
  margin-top:0;
  max-width:1360px;
  margin-left:auto;
  margin-right:auto;
  padding:26px 40px 40px;
  border-top:1px solid rgba(255,255,255,.10);
  color:#8FA6B8;
  font-size:13.5px;
  line-height:1.6;
  text-align:left;
}

/* Responsive */
@media (max-width:1024px) {
  .ac-footer-grid {
    grid-template-columns:1fr 1fr;
    gap:32px 40px;
  }
}
@media (max-width:600px) {
  .ac-footer-inner {
    padding:48px 24px 32px;
  }
  .ac-footer-grid {
    grid-template-columns:1fr;
    gap:28px;
    text-align:left;
  }
  .ac-footer-bottom {
    padding:20px 24px 32px;
    text-align:left;
  }
}
