@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@1,300&display=swap');
/* ==========================================================================
   Herb Whisperer — Hero Slideshow
   Crossfade photo hero with Ken Burns zoom effect.

   Location: wp-content/themes/herb-whisperer/css/hero-slideshow.css
   ========================================================================== */

:root {
  --hw-hero-height: 520px;
  --hw-hero-height-mobile: 360px;
  --hw-hero-fade-duration: 2.2s;
  --hw-hero-hold-duration: 5s;
  --hw-hero-text-color: #f4f0e8;
  --hw-hero-accent-color: #a8c78a;
}

/* ---- Container ---- */
.hw-hero {
  position: relative;
  width: 100%;
  height: var(--hw-hero-height);
  overflow: hidden;
  background: #1a2e1d;
}

/* ---- Slide layer ---- */
.hw-hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity var(--hw-hero-fade-duration) ease-in-out;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.hw-hero__slide.is-active {
  opacity: 1;
  will-change: transform;
}

/* ---- Overlay gradient ---- */
.hw-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to left,
    rgba(15, 30, 18, 0.78) 0%,
    rgba(15, 30, 18, 0.45) 40%,
    rgba(15, 30, 18, 0.08) 75%,
    transparent 100%
  );
  z-index: 2;
  pointer-events: none;
}

/* Optional bottom fade for pages that need it */
.hw-hero--bottom-fade .hw-hero__overlay {
  background:
    linear-gradient(
      to right,
      rgba(15, 30, 18, 0.78) 0%,
      rgba(15, 30, 18, 0.45) 40%,
      rgba(15, 30, 18, 0.08) 75%,
      transparent 100%
    ),
    linear-gradient(
      to top,
      rgba(15, 30, 18, 0.6) 0%,
      transparent 40%
    );
}

/* ---- Content ---- */
.hw-hero__content {
  position: absolute;
  top: 0;
  right: 6%;
  bottom: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  text-align: right;
  max-width: 50%;
  padding: 2rem 0;
  color: var(--hw-hero-text-color);
}

.hw-hero__title {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  font-weight: 800;
  font-style: italic;
  line-height: 1.25;
  margin: 0 0 1rem 0;
  max-width: 500px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.3);
  color: var(--hw-hero-text-color);
}

.hw-hero__subtitle {
  font-family: 'Lato', 'Helvetica Neue', sans-serif;
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 300;
  line-height: 1.5;
  margin: 0 0 1.5rem 0;
  max-width: 360px;
  opacity: 0.92;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.hw-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.8rem;
  font-family: 'Lato', 'Helvetica Neue', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: #1a2e1d;
  background: var(--hw-hero-accent-color);
  border: none;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.15s ease;
  align-self: flex-end;
}

.hw-hero__cta:hover {
  background: #b8d49a;
  transform: translateY(-1px);
  color: #1a2e1d;
}

.hw-hero__cta:active {
  transform: translateY(0);
}

/* ---- Progress indicators ---- */
.hw-hero__indicators {
  position: absolute;
  bottom: 1.5rem;
  right: 2.5rem;
  z-index: 4;
  display: flex;
  gap: 6px;
  align-items: center;
}

.hw-hero__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(244, 240, 232, 0.35);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.hw-hero__dot.is-active {
  background: var(--hw-hero-accent-color);
  transform: scale(1.25);
}

.hw-hero__dot:hover {
  background: rgba(244, 240, 232, 0.6);
}

.hw-hero__dot.is-active:hover {
  background: var(--hw-hero-accent-color);
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .hw-hero__slide {
    transition: opacity 0.6s ease;
  }
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .hw-hero {
    height: var(--hw-hero-height-mobile);
  }

.hw-hero__content {
    width: auto;
    max-width: 70%;
    right: 5%;
    padding: 1.5rem 0;
    padding-bottom: 3.5rem;
    justify-content: flex-end;
  }

  .hw-hero__overlay {
    background: linear-gradient(
      to top,
      rgba(15, 30, 18, 0.78) 0%,
      rgba(15, 30, 18, 0.45) 50%,
      rgba(15, 30, 18, 0.15) 100%
    );
  }

  .hw-hero__indicators {
    bottom: 1rem;
    right: 1.5rem;
  }

  .hw-hero__dot {
    width: 6px;
    height: 6px;
  }
}

/* ---- Tall hero variant (home page) ---- */
.hw-hero--tall {
  --hw-hero-height: 640px;
  --hw-hero-height-mobile: 480px;
}

/* ---- Short hero variant (inner pages) ---- */
.hw-hero--short {
  --hw-hero-height: 380px;
  --hw-hero-height-mobile: 280px;
}

/* ── Inner-page hero standard — 15% shorter than original default ── */
body:not(.home):not(.blog) .hw-hero:not(.hw-hero--tall) {
    --hw-hero-height: 300px;
    --hw-hero-height-mobile: 220px;
}


/* ══════════════════════════════════════════════════════════
   HERO TEXT STANDARD
   ──────────────────────────────────────────────────────────
   All text elements share the same max-width (500px) and
   are pushed right via margin-left: auto. This creates one
   unified text block where:
     - Eyebrow left-aligns to the block's left edge
     - Title right-aligns to the block's right edge
     - Subtitle right-aligns to the block's right edge
   Same on every page.
   ══════════════════════════════════════════════════════════ */

/* ── Eyebrow ─── */
.hw-hero__eyebrow {
    display: block;
    font-family: 'Source Sans 3', 'Source Sans Pro', sans-serif;
    font-size: 1.2rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.4rem;
    text-align: left;
    max-width: 500px;
    margin-left: auto;
    margin-right: 0;
}

/* ── Brand eyebrow (homepage only) ─── */
.hw-hero__eyebrow--brand {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.6rem;
    font-weight: 700;
    font-style: normal;
    text-transform: none;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0.25rem;
    text-align: left;
}

/* ── Title: push right, right-align text ─── */
.hw-hero__title {
    font-style: italic;
    text-align: right;
    margin-left: auto;
    margin-right: 0;
}

/* ── Subtitle: same 500px block, right-aligned ─── */
.hw-hero__subtitle {
    text-align: right;
    max-width: 500px;
    margin-left: auto;
    margin-right: 0;
}