/* Affluent Wealth Group: accessibility fixes shared by every page (Nov 2026).
   Loaded after each page's own styles. */

/* "Skip to main content" link: hidden until a keyboard user tabs to it */
.skip-link{position:absolute;left:12px;top:-80px;z-index:10001;background:#2C5450;color:#fff;padding:12px 18px;border-radius:2px;font-family:'Sarabun',sans-serif;font-weight:600;font-size:15px;text-decoration:none;transition:top .15s;}
.skip-link:focus{top:12px;outline:3px solid #fff;outline-offset:2px;box-shadow:0 0 0 6px #2C5450;}
main:focus{outline:none;}

/* Screen-reader-only text */
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}

/* A clear, consistent keyboard focus ring (component styles can still override) */
:where(a,button,summary,select,[tabindex],[role=button],[role=radio],[role=checkbox]):focus-visible{outline:2px solid #2C5450;outline-offset:2px;}
:where(.hero,.cf) :where(a,button,[tabindex]):focus-visible{outline-color:#fff;}

/* Desktop dropdowns: closed menus are taken out of the keyboard tab order */
@media (min-width:801px){
  .nav-dropdown-menu,.nav-client-menu{visibility:hidden;transition:opacity .15s,transform .15s,visibility 0s linear .15s;}
  .nav-dropdown:hover .nav-dropdown-menu,.nav-dropdown.open .nav-dropdown-menu,
  .nav-client:hover .nav-client-menu,.nav-client.open .nav-client-menu{visibility:visible;transition-delay:0s;}
  .nav-client.open .nav-client-menu{opacity:1;pointer-events:all;transform:translateY(0);}
  .nav-client.open .nav-client-trigger svg:not(.lock-icon){transform:rotate(180deg);}
  /* invisible bridge over the 8px gap so the menu stays open while the mouse moves down */
  .nav-client-menu::before{content:"";position:absolute;left:0;right:0;top:-12px;height:12px;}
}

/* Wide tables scroll sideways on phones; the scroll area can take keyboard focus */
.pp-table-wrap:focus-visible{outline:2px solid #2C5450;outline-offset:2px;}

/* Respect "reduce motion" settings */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important;}
}

/* Text over the dark page headers: light labels, and a deeper overlay on
   phones, where the text runs into the lighter right-hand side */
.page-header .eyebrow,.hero-content .eyebrow{color:#9ED6CF;}
@media (max-width:700px){
  .page-header::after{background:rgba(28,52,46,.86);}
  .hero-photo-overlay{background:rgba(28,52,46,.8)!important;}
}

/* Buttons on the dark green call-to-action bands: a light button that stands out */
.cta-band .btn-primary,.cta-strip .cta-btn{background:#fff;color:#2C5450;}
.cta-band .btn-primary:hover,.cta-strip .cta-btn:hover,.cta-band .btn-white:hover{background:#D7ECE9;color:#1C342E;}
:where(.cta-band,.cta-strip) :where(a,button):focus-visible{outline-color:#fff;}

/* Teal buttons darken on hover, so the white text stays readable */
.btn-primary:hover,.cta-btn:hover,.hero-btn:hover{background:#175C56;}

/* Smoother hover transitions on buttons */
.btn-primary,.cta-btn,.hero-btn,.btn-white,.btn-ghost,.btn-score,.nav-cta,.nav-score,.card-link,.score-form button,.scroll-cta,.nav-mobile-score{transition:background-color .3s ease,color .3s ease,border-color .3s ease,box-shadow .3s ease;}

/* Form fields and choice chips: outlines with at least 3:1 contrast so the
   fields are easy to find (WCAG 1.4.11). Focus, hover and selected states kept. */
.score-form input,.gate-field input,.field input[type=text],.field input[type=email],.field input[type=tel],.field textarea,.chip{border-color:#808985;}
.score-form input:focus,.gate-field input:focus,.field input:focus,.field textarea:focus,.chip:hover{border-color:var(--teal);}
.chip.selected,.chip-radio.selected{border-color:var(--pine);}

/* Example text inside contact form fields: readable contrast (4.5:1) */
.field input::placeholder,.field textarea::placeholder{color:#636B67;opacity:1;}
