/* ================================
   HERO BASE / HEIGHT VARIANTS
================================== */
.hc-hero-image {
  position: relative;
  display: flex;
  justify-content: center;
  height: var(--hero-height, 90vh); /* fallback default */
  /*overflow: hidden; ensure focus rings aren't clipped by bg image edges */ 
}

/* Height variants */
.hero-height--70 { --hero-height: 70vh; }
.hero-height--90 { --hero-height: 90vh; }

/* Background image + overlay layers */
.hc-hero-image__background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hc-hero-image__overlay {
  background: rgba(0,0,0,0.5);
  position: absolute;
  inset: 0;
  height: 100%;
  z-index: 1;
  pointer-events: none; /* WCAG: don't trap clicks/focus, avoid obscuring */
}

/* Inner content centering (above overlay) */
.hc-hero-image__content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  padding: 2rem;
  z-index: 2;
}

.hc-hero-image__content .hc-hero-inner-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 0;
  max-width: 1200px;
  margin-inline: auto;
}

.hc-hero-image__intro-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hc-hero-image__intro-content h1 {
  font-size: 3.7rem;
  line-height: 3rem;
}

.hc-hero-image__intro-content p { /* was span in old DOM */
  font-size: 2.1rem !important;
  text-transform: uppercase;
  font-weight: 300;
  margin: 0; /* reset */
}
@media (max-width: 768px) {
  .hc-hero-image__intro-content p {
    font-size: 1.3rem !important;
  }
}

/* Breadcrumbs now live inside a <nav> with .hc-breadcrumbs */
.hc-breadcrumbs {
  display: block;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 200;
  position: absolute;
  bottom: 0;
  z-index: 11;
  width: 100%;
}
.hc-breadcrumbs #breadcrumbs .breadcrumb-separator, .hc-breadcrumbs #breadcrumbs .breadcrumb_last {
  color: #c4c4c4;
}
.hc-breadcrumbs #breadcrumbs {
  max-width: 1200px;
  margin: auto;
}
.hc-breadcrumbs #breadcrumbs a {
  color: #fff;
}
/* Primary button in hero */
.hc-hero-image__content .button--primary {
  padding: 16px 32px;
  font-size: 1.6rem;
}

/* Keep hero CTA width tidy */
.hc-hero-image__content .hc-hero-inner-content .button {
  max-width: max-content;
  margin: auto;
}

/* ================================
   SIDE IMAGES
================================== */
.hc-hero-image__side {
  position: absolute;
  bottom: 2rem;
  width: 150px;
  transition: transform 0.6s ease-out, opacity 0.6s ease-out;
  opacity: 0;
  z-index: 2; /* above background / overlay */
}

.hc-hero-image__side--left  { left: 2rem;  transform: translateX(0); }
.hc-hero-image__side--right { right: 2rem; transform: translateX(0); }

/* Visible state */
.hc-hero-image.is-scrolled .hc-hero-image__side--left  { transform: translateX(-100px); opacity: 1; }
.hc-hero-image.is-scrolled .hc-hero-image__side--right { transform: translateX( 100px); opacity: 1; }

/* ================================
   HERO QUICK LINKS (buttons row)
   Updated to ul.hero-block-buttons__list + li items
================================== */
.hero-block-buttons {
  width: 80%;
  margin: 2rem auto 0 auto;
  position: absolute;
  bottom: -70px;
  z-index: 3;
  left: 50%;
  transform: translateX(-50%);
}

/* New list wrapper (semantics) */
.hero-block-buttons__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
}

/* Optional: keep li neutral */
.hero-block-buttons__item {
  margin: 0;
  padding: 0;
    min-width: calc(20% - 6.44px);
  max-width: calc(20% - 6.44px);
  background: #b4abaa8f;
  content: "";
  background-image: url('https://www.highchaparral.se/wp-content/uploads/2025/01/paper-texture-web.jpg');
  background-size: cover; /* Ensures the image covers the entire background */
  background-position: center; /* Centers the image */
  background-repeat: no-repeat; /* Prevents the image from repeating */
  background-blend-mode: darken;
}

/* Individual quick-link buttons */
.hero-block-button {
  width: 100%;
  height: 100%;
  padding: 1.5rem 2rem;
  text-transform: uppercase;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  color: #332522;
  transition: background 0.2s;
  box-shadow: 0 0 10px rgba(0,0,0,.05);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 1.1rem;
}
@media (max-width: 768px) {
  .hero-block-button {
    gap: 0.6rem;  
  }
}
.hero-block-button .hero-block-button-lottie {
  width: 100% !important;
}
@media (max-width: 768px) {
  .hero-block-button .hero-block-button-lottie {
    height: 40px !important;
  }
}

.hero-block-button-image {
  width: 85px;
  height: 85px;
  margin: auto;
  display: block;
}

/* ================================
   WCAG 2.2 ADDITIONS
================================== */

/* Visually hidden utility (screen-reader only) */
.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;
}

/* Focus visibility (2.4.11) */
.button:focus-visible,
.hero-block-button:focus-visible,
.hc-breadcrumbs a:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}

/* Target size (2.5.8) – ensure comfortable minimums */
.button,
.hero-block-button,
.hc-breadcrumbs a {
  min-height: 44px; /* exceed 24x24 for touch; adjust if needed */
  min-width: 44px;
}

/* Avoid focus being hidden under sticky UI */
.button:focus-visible,
.hero-block-button:focus-visible,
.hc-breadcrumbs a:focus-visible {
  scroll-margin: 1rem;
}

/* Reduced motion (2.3.3) */
@media (prefers-reduced-motion: reduce) {
  .js-hc-hero,
  .js-hc-hero-side,
  .hc-hero-image__overlay,
  .hc-hero-image__side {
    animation: none !important;
    transition: none !important;
  }
}

/* ================================
   RESPONSIVE
================================== */
@media (max-width: 768px) {
  .hc-hero-image__intro-content h1 {
    font-size: 2.4rem;
    line-height: 2.1rem;
  }
  .hc-hero-image__intro-content p {
    font-size: 1.5rem;
    font-weight: 300;
  }
  .hero-block-buttons {
    width: 100%;
  }
  .hero-block-button {
    padding: 1rem;
    font-size: 0.6rem;
  }
  .hero-block-buttons__item {
    min-width: calc(33.33% - 5.33px);
    max-width: calc(33.33% - 5.33px);
  }
  .hero-block-buttons__item:nth-last-child(-n+2) {
    min-width: calc(50% - 4px);
    max-width: calc(50% - 4px);
  }  
/* Primary button in hero */
  .hc-hero-image__content .button--primary {
    padding: 16px 32px;
    font-size: 1.1rem;
  }  
  .hero-block-buttons .hero-block-buttons__list {
    background-color: #4e3d36;
  }
}
@media (max-width: 1200px) {
  .hc-breadcrumbs {
    padding: 0 25px;
  }
}
/* Both videos share base positioning via .hc-hero-image__background */
.hc-hero-image__background--desktop,
.hc-hero-image__background--mobile {
  display: block;
}

/* Desktop vs mobile video visibility */
@media (min-width: 768px) {
  .hc-hero-image__background--desktop { display: block; }
  .hc-hero-image__background--mobile  { display: none; }
}

@media (max-width: 767px) {
  .hc-hero-image__background--desktop { display: none; }
  .hc-hero-image__background--mobile  { display: block; }
}
