/* Shared social icons and the WordPress header/footer integration. */
.er-integrated,
.builder-canvas {
  --er-paper: #f2eee6;
  --er-ink: #171716;
  --er-red: #ed1b2e;
}

.site-header.er-site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  grid-template-columns: 1fr auto auto auto;
  gap: clamp(14px, 1.7vw, 26px);
  min-height: 80px;
  background: var(--er-ink);
  color: var(--er-paper);
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.er-home .site-header.er-site-header { position: fixed; }
.er-integrated .skip-link:focus { z-index: 10001; }
body.admin-bar .site-header.er-site-header { top: var(--ert-admin-offset, 32px); }
.er-integrated .site-header .er-wordmark { width: clamp(8rem, 12vw, 10.5rem); }
.er-integrated .er-primary a { color: var(--er-paper); }
.er-integrated .er-primary a[aria-current="page"],
.er-integrated .er-primary .current-menu-item > a { color: #ff7a86; border-bottom-color: var(--er-red); }
.er-integrated .er-menu-toggle { display: none; }
.er-integrated .er-contact { color: var(--er-paper); }
.er-integrated.ert-inner-page .site-content { padding-top: clamp(4rem, 8vw, 7rem); }
.er-integrated.ert-inner-page .builder-page-content,
.er-integrated.ert-inner-page .education-page { padding-top: 0; }
.er-integrated.ert-builder-front-page .builder-page-content { padding-top: 80px; }

.er-social { display: flex; align-items: center; gap: 16px; }
.er-social-links { display: flex; align-items: center; gap: 2px; }
.er-social-label { font-size: .625rem; font-weight: 700; letter-spacing: 1.4px; line-height: 1.5; text-transform: uppercase; color: #b8b4ac; white-space: nowrap; }
.er-integrated .er-social-link,
.builder-canvas .er-social-link { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px; width: 44px; height: 44px; border: 1px solid transparent; border-radius: 50%; color: var(--er-paper); transition: color .18s, background-color .18s, border-color .18s; }
.er-social-link svg { display: block; width: 18px; height: 18px; flex: none; }
.er-integrated .er-social-link:hover,
.builder-canvas .er-social-link:hover { color: #ff7a86; background: #ffffff08; border-color: #ffffff24; }
.er-integrated .er-social-link:focus-visible,
.builder-canvas .er-social-link:focus-visible { outline: 2px solid #ff7a86; outline-offset: 2px; background: #ffffff0d; }
.er-social--header { border-right: 1px solid #ffffff26; padding-right: 18px; }
.er-social--header .er-social-label { display: none; }

.er-site-footer { grid-template-columns: 1fr auto 1fr; row-gap: 26px; }
.er-site-footer > p:first-of-type { display: block; }
.er-site-footer .footer-nav { display: block; }
.er-site-footer .footer-nav-list { flex-wrap: wrap; justify-content: center; }
.er-social--footer { justify-self: end; }
.er-integrated .er-social--footer .er-social-link,
.builder-canvas .er-social--footer .er-social-link { border-color: #ffffff26; }
.er-social--footer .er-social-links { gap: 8px; }
.er-site-footer > .er-copyright:last-child { grid-column: 1 / -1; justify-self: stretch; max-width: none; border-top: 1px solid #ffffff26; padding-top: 20px; text-align: left; font-weight: 400; font-size: .6875rem; letter-spacing: .5px; }

/* Blank Canvas keeps its builder content, with only a social strip at each end. */
.er-canvas-social-strip { padding: 12px 5vw; background: var(--er-ink); color: var(--er-paper); }
.er-canvas-social-strip .er-social { justify-content: space-between; border: 0; padding: 0; }
.er-canvas-social-strip .er-social-label { display: block; }
.builder-canvas .builder-page-content { padding-top: 0; }

@media (max-width: 1280px) {
  .site-header.er-site-header { grid-template-columns: 1fr auto auto auto; gap: 20px; }
  .er-integrated .er-menu-toggle { display: flex; }
  .er-integrated .desktop-nav.er-primary { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--er-ink); border-top: 1px solid #56534e; padding: 13px 5vw 20px; }
  .er-integrated .site-header.is-menu-open .er-primary { display: block; }
  .er-primary ul { display: block; }
  .er-integrated .er-primary a { padding: 13px 0; border-bottom: 0; }
  .er-integrated .er-primary a[aria-current="page"],
  .er-integrated .er-primary .current-menu-item > a { padding-left: 14px; border-left: 3px solid var(--er-red); }
  .er-social--footer { gap: 10px; }
  .er-social--footer .er-social-label { display: none; }
}

@media (max-width: 782px) {
  body.admin-bar .site-header.er-site-header { top: var(--ert-admin-offset, 46px); }
}

@media (max-width: 700px) {
  html { scroll-padding-top: 134px; }
  .site-header.er-site-header { grid-template-columns: 1fr auto auto; grid-template-rows: 72px 53px; gap: 0 12px; min-height: 126px; }
  .er-integrated .site-header .er-wordmark { grid-column: 1; grid-row: 1; width: 138px; }
  .er-menu-toggle { grid-column: 2; grid-row: 1; }
  .er-contact { grid-column: 3; grid-row: 1; }
  .er-social--header { grid-column: 1 / -1; grid-row: 2; align-self: stretch; justify-content: space-between; border-right: 0; border-top: 1px solid #ffffff26; padding: 0; }
  .er-social--header .er-social-label { display: block; }
  .er-site-footer { grid-template-columns: 1fr auto; gap: 20px; }
  .er-site-footer .footer-nav { max-width: 100%; }
  .er-site-footer .footer-nav-list { justify-content: flex-end; }
  .er-social--footer { grid-column: 1 / -1; justify-self: stretch; justify-content: space-between; }
  .er-social--footer .er-social-label { display: block; }
  .er-social--footer .er-social-links { gap: 4px; }
  .er-home .hero-banner { inset: 126px 0 auto; }
  .er-home .hero-copy { padding-top: 11rem; }
  .er-integrated.ert-builder-front-page .builder-page-content { padding-top: 126px; }
}

@media (max-width: 370px) {
  .site-header.er-site-header { column-gap: 9px; }
  .er-integrated .site-header .er-wordmark { width: 114px; }
  .er-social-label { font-size: .5625rem; letter-spacing: 1px; }
}

@media (prefers-reduced-motion: reduce) {
  .er-integrated .er-social-link,
  .builder-canvas .er-social-link { transition: none; }
}

/* Five profiles keep full touch targets on narrow phones. */
@media(max-width:400px){
  .er-social--header .er-social-label,.er-social--footer .er-social-label{display:none}
  .er-social--header,.er-social--footer{justify-content:center}
}
