/* /styles/hero-v2.css */

/* ============================================
   HERO V2 – Beetweb-like spacing (works with your PHP)
   - Respects .container/.section-inner
   - Uses data-width="container|content" to tune max widths
============================================ */

/* ----------------------------
   Base (mobile-first)
---------------------------- */

.hero-v2 {
  /* Defaults (container width) */
  --hero-max: 1180px;
  --hero-pad-x: 1.25rem;
  --hero-pad-y: clamp(3rem, 5vw, 5rem);
  --hero-gap: clamp(2rem, 5vw, 4rem);

  position: relative;

  background: linear-gradient(
    to bottom,
    #FFF5F5 0%,
    #FFF5F5 45%,
    #FFC7D9 100%
  );

  padding: var(--hero-pad-y) var(--hero-pad-x);
}

.hero-v2::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");

  opacity: 0.15;          /* master strength */
  mix-blend-mode: soft-light;
}

.hero-v2 > * {
  position: relative;
  z-index: 1;
}


/* If ACF sets "content" width, tighten the whole hero row */
.hero-v2[data-width="content"] {
  --hero-max: 980px;
}

/* Subtle divider */
.hero-v2::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: rgba(43, 15, 71, 0.08);
}

/* Layout wrapper (this class lives on .container or .section-inner) */
.hero-v2-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;

  /* Important: do not rely on your global .container width alone */
  max-width: var(--hero-max);
  margin-inline: auto;
}

/* Content */
.hero-v2-content {
  max-width: 36ch;
  margin: 0 auto;
  text-align: center;

  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.hero-v2-content p {
  color: var(--color-muted);
}

.hero-v2-title {
  font-size: 2.2rem;
  line-height: 1.2;
  margin: 0 0 0.25rem;
}

.hero-v2-intro {
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 38ch;
  margin: 0 auto 1.2rem;
}

/* Buttons */
.hero-v2-buttons {
  display: grid;
  gap: 0.9rem;
  margin-top: 0.6rem;
  width: 100%;
}

.hero-v2-buttons .btn {
  width: 100%;
  padding: 1.1rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
}

.hero-v2 .btn-primary {
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(43, 15, 71, 0.25);
}

.hero-v2 .btn-primary:active {
  transform: translateY(1px);
  box-shadow: 0 6px 16px rgba(43, 15, 71, 0.2);
}

.hero-v2 .btn-secondary {
  border-width: 1.5px;
}

/* Guiding link */
.hero-v2-guiding-link a {
  color: var(--color-primary);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  position: relative;
}

.hero-v2-guiding-link a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}

.hero-v2-guiding-link a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Image */
.hero-v2-image {
  order: -1;
  width: 100%;
  max-width: 360px;
}

.hero-v2-image-inner {
  width: 100%;
}

.hero-v2-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
}

/* ----------------------------
   Tablet
---------------------------- */

@media (min-width: 768px) {
  .hero-v2-title {
    font-size: 2.8rem;
  }
}

/* ----------------------------
   Desktop (key changes)
---------------------------- */

@media (min-width: 992px) {
  .hero-v2 {
    --hero-pad-y: clamp(4rem, 6vw, 6.5rem);
  }

  .hero-v2-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: var(--hero-gap);

    /* Helps achieve that Beetweb “full but not tall” feel */
    min-height: clamp(520px, 62vh, 680px);
  }

  .hero-v2-content {
    order: 1;
    text-align: left;
    margin: 0;

    /* Predictable balance */
    flex: 0 1 540px;
    max-width: 540px;

    gap: 1.25rem;
  }

  .hero-v2-title {
    font-size: clamp(3.1rem, 3.6vw, 4.1rem);
    line-height: 1.08;
    margin: 0;
  }

  .hero-v2-intro {
    margin: 0;
    max-width: 46ch;
  }

  .hero-v2-buttons {
    width: auto;
    display: flex;
    gap: 0.9rem;
    margin: 0.75rem 0 0;
  }

  .hero-v2-buttons .btn {
    width: auto;
    white-space: nowrap;
    padding: 1.05rem 1.6rem;
  }

  .hero-v2-image {
    order: 2;

    flex: 0 1 520px;
    max-width: 520px;

    margin-left: 0; /* critical: remove “lean in” imbalance */
  }

  .hero-v2-image img {
    border-radius: var(--radius-soft);
    animation: heroFloatSoft 14s ease-in-out infinite;
    will-change: transform;
  }
}

/* Wider screens */
@media (min-width: 1200px) {
  .hero-v2-inner {
    min-height: clamp(560px, 64vh, 720px);
  }
}

/* Animation */
@keyframes heroFloatSoft {
  0% { transform: translateY(0); }
  40% { transform: translateY(-6px); }
  70% { transform: translateY(-3px); }
  100% { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-v2-image img {
    animation: none;
  }
}

/* Small screens */
@media (max-width: 360px) {
  .hero-v2-content {
    max-width: 90%;
  }
}

/* /styles/hero-v2.css — Join our team (secondary) off-white */
.hero-v2 .hero-v2-buttons .btn-secondary {
  background: #fff8f2;
  border-color: rgba(43, 15, 71, 0.25);
  color: #2b0f47;
}

.hero-v2 .hero-v2-buttons .btn-secondary:hover,
.hero-v2 .hero-v2-buttons .btn-secondary:focus-visible {
  background: #fff2e8;
  border-color: rgba(43, 15, 71, 0.35);
}

.hero-v2 .hero-v2-buttons .btn-secondary:active {
  background: #ffe9da;
}

