/*
 Theme Name: WMA Child Theme
 Theme URI: https://www.elegantthemes.com/gallery/divi/
 Description: Divi Child Theme created by Walker Media Agency
 Author: Walker Media Agency
 Author URI: https://www.elegantthemes.com
 Template: Divi
 Version: 2.0.0
*/
 
/* =Theme customization starts here
------------------------------------------------------- */

/* Local body font */
@font-face {
    font-family: 'Merriweather Sans Local';
    src: url('./fonts/MerriweatherSans-VariableFont_wght.woff2') format('woff2');
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

@font-face {
    font-family: 'Merriweather Sans Local';
    src: url('./fonts/MerriweatherSans-Italic-VariableFont_wght.woff2') format('woff2');
    font-style: italic;
    font-weight: 100 900;
    font-display: swap;
}

/* ==========================================================================
   1. Root Variables (Duplicate global palette )
   ========================================================================== */
:root {
    /* Main Brand Palette */
    --primary-color: #0B2853;
    --secondary-color: #EAC82E;
    --heading-text-color: #0B2853;
    --body-text-color: #1A2332;

    /* Named Palette Tokens */
    --navy: #0B2853;
    --gold: #EAC82E;
    --cool-charcoal: #1A2332;
    --future-blue: #2FACEA;
    --future-blue-rgb: 47, 172, 234;
    --light-grey-1: #F4F7F6;
    --dark-grey-1: #E5E5E5;
    --dark-grey-1-rgb: 229, 229, 229;
    --slate: #4A5568;
    --muted: #718096;
    --white: #FFFFFF;

    --et_global_body_font: 'Merriweather Sans Local';

    /* Component Config */
    --hdr-line-thickness: 3px;
}



/* Typography reset for headers - easier here than divi presets */
body {
    letter-spacing: -0.1px;
    font-family: var(--et_global_body_font), sans-serif !important;
    font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
    padding-bottom: 0 !important;
    text-wrap: balance;
}

.subheader-h3 {
 font-family:  var(--et_global_body_font, 'WorkSans-VariableFont_wght'), "Work Sans", sans-serif!important;
font-style: normal;
letter-spacing: 2px;
line-height: normal;
text-wrap: balance;
font-weight: 700;
text-transform: uppercase;
}

/* Display headings */
:where(
    [class*="et_pb_heading_"] h1,
    [class*="et_pb_heading_"] h2,
    #et-boc .et_pb_module h1,
    #et-boc .et_pb_module h2
) {
    font-family: var(--et_global_heading_font, 'Source Serif 4 Local'), serif;
    font-variation-settings: "opsz" 60;
    font-optical-sizing: auto;
    letter-spacing: -0.8px;
    text-rendering: optimizeLegibility;
}

.hover-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-card .card-title,
.hover-card .card-link > a,
.hover-card .et_pb_divider,
.hover-card .card-link .et_pb_icon {
    transition: all 0.3s ease!important;
}

.hover-card .card-link > a {
  pointer-events: none;
}

@media (hover: hover) {
  .hover-card:hover {
  }
  .hover-card:hover .et_pb_module_header.card-title {
    color: var(--future-blue)!important;
  }

  .hover-card:hover .card-link > a {
    color: var(--future-blue)!important;
  }

  .hover-card:hover .card-link .et_pb_icon {
    transform: translateY(4px);
  }

  .hover-card:hover .et_pb_divider {
    width: 22%!important; 
  }
}

/* Services timeline styles */

.timeline-row {
    position: relative;
    display: flex;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0 20px;
  }

  .tl-col {
    position: relative;
    z-index: 1;
    flex: 1 1 25%;
    max-width: 25%;
    padding: 0 1rem;
    text-align: center;
  }

  .tl-item {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* --- Step circle --- */

  .tl-step {
    --step-size: 48px;
    position: relative;
    z-index: 2;
    width: var(--step-size);
    height: var(--step-size);
    border-radius: 50%;
    background: var(--navy, #0B2853);
    border: 5px solid var(--navy, #0B2853);
    color: var(--future-blue, #2FACEA) !important;
    box-shadow: inset 0 0 0 1px var(--future-blue, #2FACEA);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--et_global_body_font);
    font-weight: 500;
    font-size: 16px;
    flex-shrink: 0;
    margin-bottom: 28px;
    transform: scale(1);
    transform-origin: center;
    transition:
      color 0.28s ease;
    will-change: transform;
  }

  .tl-step,
  .tl-step span {
    color: var(--future-blue, #2FACEA) !important;
  }

  .tl-step span {
    transition: color 0.24s ease;
  }

  .tl-step::after {
    content: '';
    position: absolute;
    inset: -5px;
    border: 1px solid var(--gold, #EAC82E);
    border-radius: inherit;
    opacity: 0;
    pointer-events: none;
    transform: scale(1);
    transform-origin: center;
  }

  .tl-step.is-active::after {
    animation: tl-step-ripple 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  .tl-step.is-active,
  .tl-step.is-active span {
    color: var(--gold, #EAC82E) !important;
  }

  .tl-step.is-active {
    animation: tl-step-hub-pulse 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  @keyframes tl-step-hub-pulse {
    0% {
      transform: scale(1);
    }

    44% {
      transform: scale(1.045);
    }

    100% {
      transform: scale(1);
    }
  }

  @keyframes tl-step-ripple {
    0% {
      opacity: 0.8;
      transform: scale(1);
    }

    100% {
      opacity: 0;
      transform: scale(1.55);
    }
  }

  /* --- Connecting line --- */

  .tl-line-track,
  .tl-line-fill {
    position: absolute;
    top: 24px; /* half of --step-size, aligns to circle center */
    left: calc(100% / 8);
    width: calc(100% * 3 / 4);
    height: 2px;
    z-index: 0;
  }

  .tl-line-track {
    background: rgba(var(--dark-grey-1-rgb), 0.5);
  }

  .tl-line-fill {
    background: var(--gold, #EAC82E);
    clip-path: inset(0 100% 0 0);
  }

  /* --- Text --- */

  .tl-headline {
    --tl-text-reveal: 145%;
    font-family: var(--et_global_heading_font);
    color: var(--heading-text-color, #0B2853);
    font-size: 24px;
    line-height: 1.16;
    margin: 0 0 12px;
    opacity: 0;
    -webkit-mask-image: linear-gradient(-45deg, transparent calc(var(--tl-text-reveal) - 56%), rgba(0, 0, 0, 0.16) calc(var(--tl-text-reveal) - 38%), rgba(0, 0, 0, 0.68) calc(var(--tl-text-reveal) - 16%), #000 var(--tl-text-reveal));
    mask-image: linear-gradient(-45deg, transparent calc(var(--tl-text-reveal) - 56%), rgba(0, 0, 0, 0.16) calc(var(--tl-text-reveal) - 38%), rgba(0, 0, 0, 0.68) calc(var(--tl-text-reveal) - 16%), #000 var(--tl-text-reveal));
    transform-origin: center;
    transition: color 0.24s ease, text-shadow 0.24s ease;
  }

  .dark-bg .tl-headline {
    color: var(--white, #FFFFFF) !important;
  }

  .tl-headline.is-active {
    color: var(--gold, #EAC82E) !important;
    text-shadow: 0 0 18px rgba(234, 200, 46, 0.34);
  }

  .dark-bg p.tl-copy,
  .tl-copy {
    --tl-text-reveal: 145%;
    font-family: var(--et_global_body_font);
    color: var(--dark-grey-1, #E5E5E5)!important;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
    font-weight: 400;
    opacity: 0;
    text-wrap: pretty;
    -webkit-mask-image: linear-gradient(-45deg, transparent calc(var(--tl-text-reveal) - 56%), rgba(0, 0, 0, 0.16) calc(var(--tl-text-reveal) - 38%), rgba(0, 0, 0, 0.68) calc(var(--tl-text-reveal) - 16%), #000 var(--tl-text-reveal));
    mask-image: linear-gradient(-45deg, transparent calc(var(--tl-text-reveal) - 56%), rgba(0, 0, 0, 0.16) calc(var(--tl-text-reveal) - 38%), rgba(0, 0, 0, 0.68) calc(var(--tl-text-reveal) - 16%), #000 var(--tl-text-reveal));
  }

  @media (max-width: 767px) {
    .timeline-row {
      flex-wrap: wrap;
      padding-top: 40px;
    }
    .tl-col {
      flex: 1 1 50%;
      max-width: 50%;
      margin-bottom: 40px;
    }
    .tl-line-track,
    .tl-line-fill {
      display: none;
    }
  }


/* Section and eyebrow headings 
:where(
    [class*="et_pb_heading_"] h3,
    [class*="et_pb_heading_"] h4,
    [class*="et_pb_heading_"] h5,
    #et-boc .et_pb_module h3,
    #et-boc .et_pb_module h4,
    #et-boc .et_pb_module h5
) {
    font-family: var(--et_global_body_font, 'WorkSans-VariableFont_wght'), "Work Sans", sans-serif;
    font-style: normal;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: normal;
    text-rendering: optimizeLegibility;
    text-transform: uppercase;
}
*/
/* Text clr management for dark sections */
/* Targets all text elements inside a container with the .dark-bg class */
.dark-bg, 
.dark-bg p, 
.dark-bg h1, 
.dark-bg h2, 
.dark-bg h3, 
.dark-bg h4, 
.dark-bg h5, 
.dark-bg h6, 
.dark-bg span,
.dark-bg li,
.dark-bg a {
    color: #ffffff !important;
}
.home-masthead {

}
.angle-edge-col {
  position: relative;
  /* Ensure content inside doesn't get clipped or hidden */
  z-index: 1; 
}

/* 1. The Blue Fill (Slightly smaller to let the yellow peek out) */
.angle-edge-col::after {
  content: '';
  position: absolute;
  top: -1rem; /* Slightly offset to peek out from behind the yellow */
  left: calc(100% - 2px);
  width: 15vw;
  height: calc(100% + 1rem); /* Slightly taller to peek out from behind the yellow */
  right: 0;
  bottom: 0;
  background-color: var(--navy, #0B2853);
  clip-path: polygon(0 0%, 0% 100%, 100% 100%);
  z-index: -1;
  
  /* We scale the blue wedge slightly inward from the bottom-left corner */
  transform: scale(0.985); 
  transform-origin: bottom left;
}

/* 2. The Yellow Border (Sits directly behind the blue fill) */
.angle-edge-col::before {
  content: '';
  position: absolute;
  top: -1rem; /* Slightly offset to peek out from behind the yellow */
  left: 100%;
  width: 15vw;
  height: calc(100% + 1rem); /* Slightly taller to peek out from behind the blue */
  right: 0;
  bottom: 0;
  background-color: var(--gold, #EAC82E); /* Accent yellow */
  clip-path: polygon(0 0%, 0% 100%, 100% 100%);
  z-index: -2;
}

/* ==========================================================================
   Special Header Styles
   ========================================================================== */
.eyebrow-header {
    font-family: "WorkSans-VariableFont_wght", "Work Sans", sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: normal;
    text-wrap: balance;
    margin: 0;
    padding: 0;
    
}

.dark-bg {
  .eyebrow-header p {
    color: var(--number-card-gold)!important;
  }
}



/* Force the main container to layout modules horizontally */
.elegant-hdr-container {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 20px !important; 
}

/* The Front Line Module (Forces Divi to shrink it to exactly 20%) */
.elegant-hdr-container .before-line {
    display: block !important;
    height: var(--hdr-line-thickness, 2px) !important;
    width: 50px !important; 
    flex: 0 0 50px !important; /* Forces 20% basis and prevents stretching or shrinking */
    background-color: var(--future-blue, #2FACEA);
    margin: 0 !important;
}

/* The Heading Module (Tells it to fit snugly around its text) */
.elegant-hdr-container .elegant-hdr {
    flex: 0 1 auto !important; /* Shrinks to text width, allows line to fill the rest */
    margin: 0 !important;
}

/* Ensure the inner H1 doesn't wrap or add weird spacing */
.elegant-hdr .et_pb_module_header {
    color: var(--navy, #0B2853); 
    white-space: nowrap !important;
    margin: 0 !important;
}

/* The Back Line Module (Forces it to stretch and fill all remaining space) */
.elegant-hdr-container .after-line {
    display: block !important;
    height: var(--hdr-line-thickness, 2px) !important;
    flex: 1 1 auto !important; /* Grows to fill 100% of the remaining room */
    background-color: var(--future-blue, #2FACEA);
    margin: 0 !important;
}

/* ==========================================================================
   Dark Background Overrides (.dark-bg)
   ========================================================================== */

.dark-bg .elegant-hdr-container {
    --hdr-line-thickness: 2px;
}

.dark-bg .elegant-hdr .et_pb_module_header {
    color: var(--white, #FFFFFF) !important;
}

.dark-bg .before-line,
.dark-bg .after-line {
    background-color: var(--white, #FFFFFF) !important;
}


@media (min-width: 768px) {
  /* responsive header size based on row width */
  .card-trio-row {
    container-type: inline-size;
    container-name: trioRow;
    width: 100%;
  }

  .card-trio-header {
    font-size: clamp(1.75rem, 3.5cqw, 40px);    
    line-height: clamp(1.1em, 2.2cqw, 48px);
    padding-bottom: 0!important;
  }
}

.et_pb_button,
.pointer-btn {
  font-weight: 500;
  min-height: 50px;
  height: auto !important;
  line-height: 1.15 !important;
  padding-top: 0.6em !important;
  padding-bottom: 0.6em !important;
  white-space: normal;
  text-align: center;
  align-content: center;
}

.pointer-btn {
  box-shadow: none !important;
}

/* Keep the default pointer button stable on hover */
.pointer-btn:hover {
  transform: translate(0, 0) !important;
  box-shadow: none !important;
}

body #page-container .et_pb_section .et_pb_button.pointer-btn {
    position: relative;
}

body #page-container .et_pb_section .et_pb_button.pointer-btn::after {
    position: absolute;
    top: 50%;
    right: .5em;
    margin-left: 0 !important;
    line-height: 1 !important;
    transform: translateY(-50%);
}

.pointer-btn.blue-btn {
    box-shadow: none !important;
}

.pointer-btn.blue-btn:hover {
    transform: translate(0, 0) !important; /* No movement for blue buttons */
    box-shadow: none !important; /* No shadow for blue buttons */
}

.et_pb_button_0_footer_wrapper {
  container-type: inline-size;
}

.pointer-btn.footer-signup-btn {
  height: 40px;
  min-height: 40px !important;
  font-size: clamp(0.6875rem, 7.5cqi, 0.875rem) !important;
  white-space: nowrap;
}

  .pointer-btn.footer-signup-btn:hover {
     transform: translate(0, 0) !important; /* No movement for blue buttons */
    box-shadow: none !important; /* No shadow for blue buttons */

  }

  .pointer-btn.nav-btn {
    min-height: 40px !important;
      height: auto !important;
      line-height: 1.15 !important;
      padding-top: 0.45em !important;
      padding-bottom: 0.45em !important;
      align-content: center;
      box-shadow: none !important;    
  }

  .pointer-btn.nav-btn:hover {
     transform: translate(0, 0) !important; /* No movement for blue buttons */
    box-shadow: none !important; /* No shadow for blue buttons */
  }

/* ==========================================================================
   Global Nav Mobile Menu
   ========================================================================== */

#top-menu-nav > ul > li > a,
#top-menu > li > a,
.et_pb_menu__menu > nav > ul > li > a,
#mobile_menu1.et_mobile_menu > li > a {
    font-weight: 400 !important;
}

#top-menu-nav > ul > li > a.pointer-btn,
#top-menu > li > a.pointer-btn,
.et_pb_menu__menu > nav > ul > li > a.pointer-btn,
#mobile_menu1.et_mobile_menu > li > a.et_pb_button {
    font-weight: 500 !important;
}

.et_pb_menu_0_tb_header.et_pb_menu ul li a:not(.et_pb_button):not(.pointer-btn) {
    font-weight: 400 !important;
}

#mobile_menu1.et_mobile_menu {
    box-sizing: border-box;
    position: fixed !important;
    top: calc(var(--wp-admin--admin-bar--height, 0px) + 72px) !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 999999 !important;
    width: 100dvw !important;
    max-width: 100dvw;
    max-height: calc(100dvh - var(--wp-admin--admin-bar--height, 0px) - 72px);
    margin-left: 0 !important;
    margin-right: 0 !important;
    overflow-y: auto;
    overflow-x: hidden;
    overflow-x: clip;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}
#mobile_menu1.et_mobile_menu > li > a {
    padding-left: 1rem;
}
#mobile_menu1.et_mobile_menu > li,
#mobile_menu1.et_mobile_menu > li > a {
    max-width: 100%;
    overflow-wrap: anywhere;
}

html:has(#mobile_menu1.et_mobile_menu[style*="display: block"]),
body:has(#mobile_menu1.et_mobile_menu[style*="display: block"]),
html:has(.mobile_nav.opened #mobile_menu1.et_mobile_menu),
body:has(.mobile_nav.opened #mobile_menu1.et_mobile_menu) {
    overflow: hidden;
    overscroll-behavior: none;
}

.et_mobile_menu li.pointer-nav-btn-mobile {
   padding-left: 0!important;
    display: flex!important;
    align-items: flex-start!important;
    background-color: var(--gold, #EAC82E) !important;
      a {
        padding-left: 1rem!important;
        background-color: var(--gold, #EAC82E) !important;
      }
      
}

@media (min-width: 981px) {
    .pointer-nav-btn-mobile {
        display: none !important;
    }
}

/* ==========================================================================
   Pointer Brand - "Pointing Forward" Hover System (Desktop Only)
   ========================================================================== */
@media (hover: hover) and (pointer: fine) {

  /* ---------------------------------------------------------
     1. "See All Pointers" CTA Link (Simple Navy to Teal / Gold Underline)
     --------------------------------------------------------- */
.resource-see-all-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    font-weight: 500;
    text-align: left !important;
    text-decoration: none;
    width: max-content;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    cursor: pointer;
    color: #0B2853; /* Navy brand color */
    transition: color 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  }

  /* Icon transition setup */
  .resource-see-all-link .et_pb_link .et-pb-icon {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1),
                color 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    color: #0B2853;
  }

  /* Hover States for CTA */
  .resource-see-all-link:hover {
    color: #2FACEA; /* Text transitions gracefully to Teal on hover */
    text-decoration: none;
  }

  .resource-see-all-link:hover .et_pb_link .et-pb-icon {
    transform: translateX(5px); /* Arrow nudges right */
    color: #2FACEA; /* Arrow turns Teal to match text */
  }

  .resource-see-all-link:hover::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1.5px;
    background-color: #EAC82E;
  }


  /* ---------------------------------------------------------
     2. Thumbnail title Text (Elegant Fade White to Gold)
     --------------------------------------------------------- */


  .article-text {
    position: relative;
    display: inline-block !important;
    text-align: left !important;
    text-decoration: none;
    width: max-content;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    cursor: pointer;
    color: #FFFFFF; /* Base color on dark overlays */
    transition: color 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 2;
  }

  .resource-card-text,
  .resource-card-text * {
    text-wrap: pretty;
  }

  /* ==========================================================================
   Bridge: Trigger Child Text Color on Parent Hover (Desktop Only)
   ========================================================================== */
@media (hover: hover) and (pointer: fine) {

  /* 
     Targets the nested Divi text inner container and any paragraph tags 
     to cleanly override Divi's default style when the card wrapper is hovered.
  */
  .article-thumb-img-wrap:hover .article-text,
  .article-thumb-img-wrap:hover .article-text .et_pb_text_inner,
  .article-thumb-img-wrap:hover .article-text .et_pb_text_inner p {
    color: #EAC82E !important; /* Forces transition to your Divi Hover Gold */
  }

  /* ---------------------------------------------------------
     3. Thumbnail Image Blend & Filter (Divi-Safe)
     --------------------------------------------------------- */
  .article-thumb-img-wrap {
    cursor: pointer;
  }

  .article-thumb-img-wrap .et_pb_image_wrap img {
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  }

  .article-thumb-img-wrap:hover .et_pb_image_wrap img {
    transform: scale(1.06);
  }
}

/* Article images use a consistent 16:9 frame without clipping other card content. */
.article-thumb-img-wrap .et_pb_image_wrap {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.article-thumb-img-wrap .et_pb_image_wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Article title ribbon sits directly below the thumbnail for contrast. */
.article-thumb-img-wrap {
  position: relative;
}

.article-thumb-img-wrap .feat-article-title {
  position: relative;
  z-index: 3;
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0 !important;
  padding: 1rem 1.25rem !important;
  background-color: var(--navy, #0B2853) !important;
  color: var(--future-blue, #2FACEA) !important;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.article-thumb-img-wrap .feat-article-title,
.article-thumb-img-wrap .feat-article-title * {
  color: var(--future-blue, #2FACEA) !important;
}

.article-thumb-img-wrap:hover .feat-article-title {
  background-color: var(--gold, #EAC82E) !important;
}

.article-thumb-img-wrap:hover .feat-article-title,
.article-thumb-img-wrap:hover .feat-article-title * {
  color: var(--navy, #0B2853) !important;
}

.gp-popup__dialog {
  border-radius: 1px !important;
}

.footer-links .horiz-link-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.animated-list .et-pb-icon {
  color: var(--navy, #0B2853) !important;
  transition: color 0.38s ease;
}

.animated-list .et-pb-icon.is-active {
  color: var(--gold, #EAC82E) !important;
}
