/* Homepage hero and the MetaSlider overrides inside it.
 *
 * Split out of assets/css/main.css. Every rule below is verbatim from
 * that file and appears in its original relative order.
 */
/* ─── Homepage Hero ───────────────────────────────────────────────────────── */
/* Two-div row pattern: .hero-row = full-bleed background,
   .hero (wp:columns) = constrained content grid.
   Override wp:columns flex layout with CSS grid so the slideshow column
   can be position:relative with absolutely-placed slides. */
.hero-row {
  background: var(--cream);
}

.hero__text {
  padding: 40px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

/* .hero__eyebrow is the generic .eyebrow class (see patterns/02-hero-homepage.php, single.php) */

.hero__heading {
  font: 600 62px/1.08 var(--font-serif);
  color: var(--brown-dark);
  margin: 0;
  text-wrap: pretty;
}

.hero__body {
  font: 400 19px/1.55 var(--font-sans);
  color: var(--brown-med);
  max-width: 480px;
}

.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__spanish { font: 400 14px var(--font-sans); color: var(--brown-muted); }
.hero__spanish a { font-weight: 600; color: var(--teal); }

.hero__heading-highlight {
  background: linear-gradient(transparent 62%, var(--pastel-yellow-mid) 62%);
  display: inline;
}

/* Hero slideshow */
.hero__slideshow {
  position: relative;
  overflow: hidden;
  min-height: 560px;
}

.hero__slideshow::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 10px;
  background: linear-gradient(to bottom, var(--spectrum-stops));
  z-index: 2;
}


/* ─── MetaSlider overrides inside hero ───────────────────────────────────── */
/*
 * FlexSlider calculates height from the slider's aspect ratio (700×500),
 * ignoring the column height. Fix: anchor .alignnormal to fill the column
 * absolutely, then let images cover the space with object-fit.
 */
.hero__slideshow .alignnormal {
  position: absolute !important;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero__slideshow .ms-wrap,
.hero__slideshow .metaslider,
.hero__slideshow .metaslider > div,
.hero__slideshow .flexslider {
  height: 100% !important;
  width: 100% !important;
  margin: 0 !important;
}
.hero__slideshow .flexslider .slides,
.hero__slideshow .flexslider .slides > li {
  height: 100% !important;
}
.hero__slideshow .flexslider .slides > li img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  max-width: none !important;
}
/* Suppress native browser controls on MetaSlider video slides */
.hero__slideshow video {
  pointer-events: none;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}
.hero__slideshow video::-webkit-media-controls { display: none !important; }

/* Nav dots — position over the slider, match brand style */
.hero__slideshow .flex-control-nav {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: auto;
  z-index: 2;
  display: flex;
  gap: 8px;
}
.hero__slideshow .flex-control-paging li a {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,.5);
  box-shadow: none;
  text-indent: -9999px;
  display: block;
}
.hero__slideshow .flex-control-paging li a.flex-active {
  background: var(--white);
  cursor: default;
}

/* ─── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 1100px) {
  .hero__heading { font-size: 48px; }
}

@media (max-width: 860px) {
  /* Visual order only — .hero__text stays first in source (heading reads
     before the image for screen readers/SEO) but the photo leads visually. */
  .hero__slideshow { min-height: 320px; order: -1; }

  .hero__text { padding: 40px 24px; }
  .hero__heading { font-size: 38px; }
}

@media (max-width: 540px) {
  .hero__heading { font-size: 30px; }
}
