/* Intentional changes from the live WordPress site. Loaded last on every page,
   and kept outside the mirrored files so re-running the mirror preserves them. */

/* Home, "Schedule a Consultation" section: centre the button on mobile too,
   and drop the empty icon slot that pushed its label off-centre. */
@media (max-width: 767px) {
  .elementor-element.elementor-element-605d7f2 {
    text-align: center;
  }
}

.elementor-element-605d7f2 .elementor-button-icon {
  display: none;
}

.elementor-element-605d7f2 .elementor-button-content-wrapper {
  justify-content: center;
}

/* ---- Accessibility ---- */

.screen-reader-text:not(:focus) {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  top: 8px !important;
  left: 8px !important;
  padding: 12px 16px !important;
  color: #fff !important;
  background: #3e5e49 !important;
  border-radius: 4px;
}

/* Visible keyboard focus. The white ring keeps it clear on the dark green sections. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #1b1f29 !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 2px #fff !important;
}

/* The desktop dropdown only opened on hover, so keyboard users could not reach it. */
@media (min-width: 922px) {
  .main-header-menu .menu-item-has-children:focus-within > .sub-menu {
    left: 0 !important;
    right: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
    transition: none !important;
  }

  .main-header-menu .menu-item-has-children:focus-within > .sub-menu * {
    visibility: visible !important;
    transition: none !important;
  }
}

/* Never let the header button break mid-word. */
.ast-custom-button {
  white-space: nowrap !important;
}

/* Elementor hides sections with visibility:hidden until they are scrolled to,
   which removes them from screen readers and keyboard users altogether.
   opacity looks the same on screen but keeps them reachable. */
.elementor-invisible {
  visibility: visible !important;
  opacity: 0;
}

.site-motion-toggle {
  position: absolute;
  right: 0;
  bottom: -14px;
  z-index: 5;
  width: 28px;
  height: 28px;
  padding: 0;
  font-size: 10px;
  line-height: 26px;
  color: #fff;
  background: #3e5e49;
  border: 1px solid #fff;
  border-radius: 50%;
  cursor: pointer;
}

.site-motion-paused .elementor-headline-dynamic-text,
.site-motion-paused .elementor-headline-dynamic-letter {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .elementor-invisible {
    opacity: 1;
  }
}

/* Validation messages must stay readable on the dark green form sections. */
.wpforms-container label.wpforms-error,
.wpforms-container em.wpforms-error {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 8px;
  font-size: 14px;
  color: #990000 !important;
  background: #fff;
  border-radius: 3px;
}

/* ---- Accessibility button and panel ---- */

.site-a11y {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 2147483000;
  font-family: Arial, sans-serif;
  font-size: 16px;
  line-height: 1.3;
}

.site-a11y-open {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  padding: 0;
  color: #fff;
  background: #3e5e49;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

/* Clicks must land on the button itself, not on the icon inside it. */
.site-a11y-open svg {
  pointer-events: none;
}

.site-a11y-panel {
  position: absolute;
  bottom: 68px;
  left: 0;
  width: 270px;
  max-width: calc(100vw - 40px);
  max-height: calc(100vh - 110px);
  padding: 16px;
  overflow-y: auto;
  color: #1b1f29;
  background: #fff;
  border: 1px solid #3e5e49;
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

.site-a11y-title {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 700;
  color: #1b1f29;
}

.site-a11y-size {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 14px;
  color: #1b1f29;
}

.site-a11y-control,
.site-a11y-toggle,
.site-a11y-reset {
  min-height: 44px;
  font-family: inherit;
  font-size: 15px;
  letter-spacing: normal;
  text-transform: none;
  color: #1b1f29;
  background: #fff;
  border: 1px solid #3e5e49;
  border-radius: 6px;
  cursor: pointer;
}

.site-a11y-control {
  width: 48px;
  padding: 0;
  font-weight: 700;
}

.site-a11y-toggle,
.site-a11y-reset {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 8px 12px;
  text-align: left;
}

.site-a11y-toggle[aria-pressed='true'] {
  color: #fff;
  background: #3e5e49;
}

.site-a11y-toggle[aria-pressed='true']::after {
  float: right;
  content: 'On';
  font-weight: 700;
}

.site-a11y-reset {
  text-align: center;
  background: #f4eee7;
}

.a11y-contrast body,
.a11y-contrast body *:not(img):not(svg):not(svg *):not(iframe):not(.site-a11y):not(.site-a11y *) {
  color: #fff !important;
  background-color: #000 !important;
  background-image: none !important;
  border-color: #fff !important;
}

.a11y-contrast a:not(.site-a11y *),
.a11y-contrast a *:not(.site-a11y *) {
  color: #ff0 !important;
}

.a11y-contrast .custom-logo {
  padding: 4px;
  background: #fff;
  border-radius: 4px;
}

.a11y-links a:not(.site-a11y *) {
  text-decoration: underline !important;
  text-decoration-thickness: 2px !important;
  text-underline-offset: 3px;
}

.a11y-font body *:not(svg):not(svg *):not(.site-a11y *) {
  font-family: Arial, Helvetica, sans-serif !important;
}

.a11y-spacing body *:not(.site-a11y *) {
  line-height: 1.8 !important;
  letter-spacing: 0.06em !important;
  word-spacing: 0.12em !important;
}

/* ---- Blog images ---- */

/* Astra's card layout puts a dark overlay and white text over the image.
   These are plain cards: image, title, short excerpt, link. */
.ast-blog-layout-6-grid .ast-article-post .ast-article-inner {
  padding: 0;
  background: none;
  box-shadow: none;
}

.ast-blog-layout-6-grid .blog-layout-6 .post-content {
  padding: 0 !important;
}

.ast-blog-layout-6-grid .blog-layout-6 .ast-blog-featured-section {
  position: static !important;
  width: auto !important;
  height: auto !important;
  margin: 0 0 18px !important;
}

.ast-blog-layout-6-grid .blog-layout-6 .ast-blog-featured-section::before,
.ast-blog-layout-6-grid .blog-layout-6 .ast-blog-featured-section::after {
  display: none !important;
}

.ast-blog-layout-6-grid .blog-layout-6 .entry-title {
  margin: 0 0 10px;
  font-size: 22px !important;
  line-height: 1.3 !important;
}

.ast-blog-layout-6-grid .blog-layout-6 .entry-title a {
  color: #1b1f29 !important;
}

.ast-blog-layout-6-grid .blog-layout-6 .entry-title a:hover {
  color: #3e5e49 !important;
}

.site-post-excerpt {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.6;
  color: #434856;
}

.ast-blog-layout-6-grid .blog-layout-6 .read-more,
.ast-blog-layout-6-grid .blog-layout-6 .read-more a {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #3e5e49 !important;
}

.ast-blog-layout-6-grid .blog-layout-6 .read-more a:hover {
  text-decoration: underline;
}

.site-post-card-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 8px;
}

.site-post-hero {
  display: block;
  width: 100%;
  height: auto;
  margin: 24px 0 32px;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 8px;
}


/* ---- Healthcare & HIPAA Compliance Notices ---- */

.site-hipaa-notice {
  margin: 18px 0 14px;
  padding: 14px 16px;
  background-color: #faf8f5;
  border: 1px solid #dcd3c4;
  border-left: 4px solid #3e5e49;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.55;
  color: #434856;
}

.site-hipaa-notice p {
  margin: 0 0 8px !important;
}

.site-hipaa-notice p:last-child {
  margin-bottom: 0 !important;
}

.site-hipaa-notice a {
  color: #3e5e49 !important;
  font-weight: 700 !important;
  text-decoration: underline !important;
}

.site-crisis-tag {
  display: inline-block;
  padding: 2px 7px;
  margin-right: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  background-color: #b91c1c;
  border-radius: 3px;
}

.site-phi-tag {
  display: inline-block;
  padding: 2px 7px;
  margin-right: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  background-color: #3e5e49;
  border-radius: 3px;
}

.site-assessment-disclaimer {
  max-width: 860px;
  margin: 20px auto 30px;
  padding: 18px 22px;
  background-color: #faf8f5;
  border: 1px solid #dcd3c4;
  border-left: 5px solid #3e5e49;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: #434856;
  text-align: left;
}

.site-assessment-disclaimer a {
  color: #3e5e49;
  font-weight: 700;
  text-decoration: underline;
}

.site-footer-crisis {
  width: 100%;
  max-width: 1200px;
  margin: 16px auto 0;
  padding: 12px 16px;
  background-color: rgba(62, 94, 73, 0.06);
  border: 1px solid rgba(62, 94, 73, 0.18);
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.5;
  color: #2b303c;
  text-align: center;
}

.site-footer-crisis a {
  color: #3e5e49;
  font-weight: 700;
  text-decoration: underline;
}
