/* ---------------------------------------------------------------------------
   Sarrao Immigration - additions on top of the treck template.
   Loaded last so these win the cascade without !important.
   Kept in a separate file so a template update never clobbers them.
   --------------------------------------------------------------------------- */

/* 1. Page headings were retagged h2 -> h1 (every page previously had zero h1).
      treck.css styles `.page-header__inner h2` by element name, so the h1 needs
      the identical rule or the banner heading loses its size and colour. */
.page-header__inner h1 {
  font-size: 40px;
  color: var(--treck-white);
  line-height: 50px;
  font-weight: 600;
}

@media only screen and (max-width: 767px) {
  .page-header__inner h1 { font-size: 30px; line-height: 40px; }
}

/* 2. Visible keyboard focus.
      The template sets `outline: none` on interactive elements, which left
      keyboard users with no visible focus indicator at all. :focus-visible
      restores it for keyboard navigation without showing a ring on mouse click. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible,
.mobile-nav__toggler:focus-visible,
.mobile-nav__close:focus-visible {
  outline: 3px solid #ffb400;
  outline-offset: 2px;
  border-radius: 2px;
}

/* Dark banners need a light ring to stay visible against the photo. */
.page-header a:focus-visible,
.main-slider-two a:focus-visible,
.site-footer a:focus-visible {
  outline-color: #ffffff;
}

/* 3. Skip link - lets keyboard and screen-reader users jump the whole nav.
      Off-screen until focused. */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100000;
  padding: 12px 20px;
  background: #0a3161;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  left: 8px;
  top: 8px;
}

/* 4. Form fields: the template relies on placeholder text alone as the label.
      Placeholders vanish on input and are not reliably announced, so real
      <label>s are added in the markup and visually hidden here. */
/* .sr-only is used in footer.php's search popup but is defined nowhere in this
   build - Bootstrap 5 renamed it .visually-hidden - so that label was rendering
   as visible text. Aliased here rather than editing the markup, in case the
   template uses it elsewhere. */
.form-label-sr,
.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;
}

/* 5. Header RCIC / CICC trust strip.
      The licence badge previously appeared only in the footer. */
.header-rcic {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 18px;
  padding: 4px 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.header-rcic:hover,
.header-rcic:focus {
  background-color: rgba(255, 255, 255, 0.14);
  border-color: #fff;
  color: #fff;
}
.header-rcic__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #35c47c;
  flex: 0 0 auto;
}

@media only screen and (max-width: 1199px) {
  .header-rcic { display: none; }
}

/* Hero-level licence line, so the credential is visible without scrolling
   on the pages that matter most. */
.hero-rcic {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding: 7px 16px;
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  text-decoration: none;
}
.hero-rcic:hover,
.hero-rcic:focus { color: #fff; border-color: #fff; }

/* 6. Contrast fix.
      The template's body grey #727272 measures 4.81:1 on white, which passes
      WCAG AA, but only 4.14:1 on the beige --treck-primary (#f2edeb) section
      background, which fails the 4.5:1 minimum for normal text. #666666 is
      the same neutral hue and clears AA on both grounds (5.74:1 / 4.95:1). */
:root {
  --treck-gray: #666666;
  --treck-gray-rgb: 102, 102, 102;
}

/* 7. Reserve space for lazily-loaded images so they do not shift the layout. */
img[loading="lazy"] { background-color: rgba(0, 0, 0, 0.03); }

/* 8. Honour a reduced-motion preference: the template animates aggressively. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* 9. Footer legal row: policy links + the general-information disclaimer.
      CICC expects advertising to be clear that published material is not
      advice about an individual's own case. */
.site-footer__bottom-text a { text-decoration: underline; }
.site-footer__disclaimer {
  margin: 10px auto 0;
  max-width: 860px;
  font-size: 13px;
  line-height: 1.6;
  opacity: 0.75;
  text-align: center;
}

/* 10. Honeypot field: off-screen rather than display:none, because some bots
       skip hidden inputs. Never focusable (tabindex="-1" in the markup). */
.form-hp {
  position: absolute !important;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
