/* Accessibility fixes layered over the Webflow export.
   Kept in its own file so it is obvious what is ours and what came out of
   Webflow. Loaded last, after components.css and brienobriensalon.css, so
   these rules win without editing the generated files. */

/* ---------------------------------------------------------------------
   Skip link (WCAG 2.4.1)
   Off-screen until focused, then pinned to the top-left over everything.
   --------------------------------------------------------------------- */
/* fixed, not absolute: an absolutely positioned skip link lands above the
   viewport when the page is already scrolled, so it appears to do nothing. */
.skip-link {
  position: fixed;
  top: -100%;
  left: 0;
  z-index: 10000;
  padding: 0.75rem 1.25rem;
  background-color: #1b1c1e;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: underline;
}

.skip-link:focus {
  top: 0;
}

/* main is given tabindex="-1" so focus actually lands there when the skip
   link is used; suppress the resulting outline on the region itself, which
   would otherwise draw a box round the whole page. */
#main-content:focus {
  outline: none;
}

/* ---------------------------------------------------------------------
   Visible focus (WCAG 2.4.7)
   components.css strips the outline from the nav button and several
   Webflow widgets. Put a visible indicator back everywhere.
   --------------------------------------------------------------------- */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.w-nav-button:focus-visible,
.w-nav-button:focus {
  outline: 3px solid #ba0001;
  outline-offset: 2px;
}

/* On the dark header and footer the red ring is too close to the
   background, so use white there instead. */
.background-color-black a:focus-visible,
.loading-section a:focus-visible,
.navbar a:focus-visible,
.navbar .w-nav-button:focus-visible,
.navbar .w-nav-button:focus {
  outline-color: #fff;
}

/* ---------------------------------------------------------------------
   Heading label
   The newsletter label inside the mobile menu was an <h6> sitting before
   the page <h1>, which broke the heading order. It is a label, not a
   section heading, so it is now a <p> carrying the old h6 styling.
   --------------------------------------------------------------------- */
.heading-label {
  letter-spacing: .08rem;
  margin-top: 0;
  margin-bottom: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
}

/* ---------------------------------------------------------------------
   Visually hidden text, exposed to assistive technology only.
   Used for the "(opens in a new tab)" suffix on external links.
   --------------------------------------------------------------------- */
.u-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------------------------------------------------------------------
   Target size (WCAG 2.5.8)
   The footer links were 17px tall. Padding brings the hit area to 24px
   without changing the visual type size.
   --------------------------------------------------------------------- */
.footer_list-item .footer-link {
  display: inline-block;
  padding-block: 0.22rem;
  min-height: 24px;
}

/* ---------------------------------------------------------------------
   Reduced motion (WCAG 2.3.3, and required by our own working rules)

   Two things have to happen together here. Switching off the transitions
   is the easy half; the hard half is that Webflow's interactions set
   inline `opacity:0` and a transform on elements and then animate them in
   with JavaScript. If we only disabled the animation, those elements would
   stay invisible forever, so we force them back to their resting state.
   --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  /* Reveal anything Webflow parked at opacity:0 or mid-transform. */
  [style*="opacity:0"],
  [style*="opacity: 0"] {
    opacity: 1 !important;
  }

  [style*="translate3d"],
  [style*="scale3d"] {
    transform: none !important;
  }

  /* Skip the full-screen intro animation entirely. */
  .loading-section {
    display: none !important;
  }

  /* Stylist portraits stay on their still frame; see js/a11y.js, which
     only swaps the animated GIF in when motion is wanted. */
}

/* The stylist portraits are wrapped in <picture> so the browser fetches
   either the animation or the still, never both. display:contents keeps
   the wrapper out of the layout so the Webflow grid is unaffected. */
.stylist_img-container picture {
  display: contents;
}

/* ---------------------------------------------------------------------
   Pause control for the stylist portraits (WCAG 2.2.2)
   Inserted by js/a11y.js above the grid.
   --------------------------------------------------------------------- */
/* Explicit white, not `inherit`: the stylist grid sits on a dark panel
   whose background comes from an ancestor that never sets a text colour,
   so inheriting picked up the #222 body colour and rendered the control
   at about 1.05:1 against its own background. */
.motion-toggle {
  display: inline-block;
  margin: 0 0 1.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid #fff;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: .05rem;
  cursor: pointer;
}

.motion-toggle:hover {
  background-color: #ba0001;
  border-color: #ba0001;
  color: #fff;
}
