/* ============================================================================
   V3 Home — Hero-only overrides
   Base styles (nav, footer, typography, buttons) live in v3.css.
   This file only adds hero section layout and home-specific tweaks.
   ============================================================================ */

/* ── Hero ── */

.v3-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 0 2rem;
}

.v3-hero__copy {
  width: 100%;
  max-width: 72rem;
  margin-left: clamp(4.85rem, 7.8vw, 9.1rem);
}

.v3-hero__title {
  margin: 0;
  max-width: 11.2ch;
  font-family: var(--font-serif);
  font-size: clamp(4.45rem, 3.4rem + 3.9vw, 6.6rem);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: -0.04em;
  text-wrap: pretty;
}

.v3-hero__dynamic {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4ch;
  width: fit-content;
  margin: 1.5rem 0 0;
  color: var(--v3-ink);
  font-family: var(--font-serif);
  font-size: clamp(1.48rem, 1.28rem + 0.9vw, 2.15rem);
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.v3-hero__dynamic-prefix {
  flex: 0 0 auto;
}

.v3-rotator-slot {
  display: inline-flex;
  flex: 0 0 auto;
  min-width: var(--v3-rotator-slot-width, auto);
}

.v3-rotator {
  display: inline-block;
  flex: 0 0 auto;
  min-width: 1ch;
  padding: 0.08em 0.35em 0.08em 0.22em;
  border-radius: 6px;
  white-space: nowrap;
  font-family: var(--font-serif);
  font-style: normal;
  font-weight: 600;
  background: var(--v3-rotator-bg, rgba(138, 75, 58, 0.12));
  color: var(--v3-rotator-color, var(--v3-accent));
  transition: background 0.35s ease, color 0.35s ease;
}

.v3-hero__lead {
  max-width: 60ch;
  margin: 1.85rem 0 0;
  color: var(--v3-copy);
  font-size: clamp(1.24rem, 1.12rem + 0.38vw, 1.5rem);
  line-height: 1.75;
  letter-spacing: -0.01em;
}

.v3-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.2rem;
}

.v3-hero__actions .v3-button {
  min-width: 13rem;
}

/* ── Responsive — tablet ── */

@media (max-width: 860px) {
  .v3-hero {
    min-height: auto;
    padding: 2.45rem 0 3rem;
  }

  .v3-hero__title {
    max-width: 9ch;
    font-size: clamp(3.35rem, 2.9rem + 4.4vw, 4.75rem);
  }

  .v3-hero__copy {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .v3-hero__dynamic {
    display: block;
    font-size: clamp(1.34rem, 1.2rem + 0.8vw, 1.72rem);
    line-height: 1.34;
  }

  .v3-rotator-slot {
    display: block;
    min-width: 0;
  }

  .v3-hero__actions {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 1.15rem;
  }

  .v3-hero__lead {
    max-width: 34rem;
    margin-top: 0.9rem;
    font-size: 1.05rem;
    line-height: 1.65;
  }
}

/* ── Responsive — mobile ── */

@media (max-width: 560px) {
  .v3-hero {
    padding: 2.1rem 0 2.55rem;
  }

  .v3-hero__title {
    max-width: 8.2ch;
    font-size: clamp(3.15rem, 2.6rem + 3.4vw, 4.05rem);
    line-height: 0.97;
  }

  .v3-hero__dynamic {
    margin-top: 0.85rem;
    font-size: clamp(1.24rem, 1.1rem + 0.65vw, 1.48rem);
  }

  .v3-hero__lead {
    margin-top: 0.75rem;
    font-size: 1rem;
    line-height: 1.6;
  }
}
