/* =========================================================
   F.O.R.E. Page-Specific Styles
   Hero and composition rules only. Shared elements live in
   components.css / layout.css.
   ========================================================= */

/* ---------- Home hero v3: cohesive full-width composition ---------- */
.hero-v3 {
  position: relative;
  overflow: hidden;
  background: var(--color-cream);
  min-height: 500px;
  display: flex;
  align-items: center;
}

.hero-v3__content {
  position: relative;
  z-index: 3;
  max-width: 560px;
  padding-block: var(--space-7) var(--space-6);
}

.hero-v3__logo {
  height: 62px;
  width: auto;
  margin-bottom: var(--space-3);
}

html.js .hero-v3__logo,
html.js .hero-v3__headline,
html.js .hero-v3__body,
html.js .hero-v3__actions {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--duration-reveal) var(--ease-out),
              transform var(--duration-reveal) var(--ease-out);
}

html.js .reveal.is-visible .hero-v3__logo { transition-delay: 0ms; }
html.js .reveal.is-visible .hero-v3__headline { transition-delay: 90ms; }
html.js .reveal.is-visible .hero-v3__body { transition-delay: 180ms; }
html.js .reveal.is-visible .hero-v3__actions { transition-delay: 270ms; }

html.js .reveal.is-visible .hero-v3__logo,
html.js .reveal.is-visible .hero-v3__headline,
html.js .reveal.is-visible .hero-v3__body,
html.js .reveal.is-visible .hero-v3__actions {
  opacity: 1;
  transform: translateY(0);
}

.hero-v3__headline {
  margin-bottom: var(--space-3);
  color: var(--color-green);
  line-height: 1.18;
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
}

.hero-v3__headline .hl-pink { color: var(--color-pink); }
.hero-v3__headline .hl-orange { color: var(--color-orange); }

.hero-v3__body {
  font-size: var(--text-base);
  max-width: 46ch;
  margin-bottom: var(--space-4);
  color: var(--color-green-dark);
}

.hero-v3__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.hero-v3__media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 48%;
  z-index: 1;
  overflow: hidden;
}

.hero-v3__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 22%;
  display: block;
  animation: fore-hero-kenburns 22s ease-in-out infinite alternate;
}

@keyframes fore-hero-kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

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

/* Blend the photo into the cream content side instead of a hard edge/card */
.hero-v3__media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    var(--color-cream) 0%,
    rgba(255, 249, 243, 0.8) 9%,
    rgba(255, 249, 243, 0) 26%
  );
  z-index: 2;
  pointer-events: none;
}

/* Very low-opacity dimple texture, confined to the photo blend zone only */
.hero-v3__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.5) 1.5px, transparent 1.6px);
  background-size: 22px 22px;
  background-position: 0 0;
  opacity: 0.12;
  z-index: 2;
  pointer-events: none;
  mask-image: linear-gradient(to right, black 0%, black 30%, transparent 55%);
}

.hero-v3__corner-accent {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 190px;
  height: auto;
  z-index: 2;
  opacity: 0.9;
  pointer-events: none;
}

@media (max-width: 900px) {
  .hero-v3 {
    display: block;
    min-height: 0;
  }

  .hero-v3__content {
    max-width: none;
    padding: var(--space-6) 0 var(--space-5);
  }

  .hero-v3__media {
    position: relative;
    width: 100%;
    height: 62vw;
    max-height: 420px;
    top: auto;
    right: auto;
    bottom: auto;
  }

  .hero-v3__media::before {
    background: linear-gradient(
      to bottom,
      var(--color-cream) 0%,
      rgba(255, 249, 243, 0.55) 6%,
      rgba(255, 249, 243, 0) 22%
    );
  }

  .hero-v3__corner-accent {
    /* In the stacked mobile/tablet layout this decorative swoosh would sit
       directly behind the logo/headline instead of the outer hero edge —
       hide it here rather than let it clutter the stacked content. */
    display: none;
  }
}

/* ---------- Interior page hero (About, Programs, Sofia, Get Involved, Join, Contact) ---------- */
.hero-interior {
  background: var(--color-blush);
  padding-block: var(--space-7) var(--space-6);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-interior::before,
.hero-interior::after {
  content: "";
  position: absolute;
  background: url('/assets/img/shared/golf-ball.svg') no-repeat center / contain;
  opacity: 0.6;
  pointer-events: none;
}

.hero-interior::before {
  width: 46px;
  height: 46px;
  top: 14%;
  right: 7%;
  animation: fore-float 5s ease-in-out infinite, fore-spin 9s linear infinite;
}

.hero-interior::after {
  width: 26px;
  height: 26px;
  bottom: 12%;
  left: 6%;
  animation: fore-float 4.2s ease-in-out infinite reverse;
  animation-delay: 0.6s;
}

@media (prefers-reduced-motion: reduce) {
  .hero-interior::before,
  .hero-interior::after {
    animation: none;
  }
}

.hero-interior h1 {
  max-width: 22ch;
  margin-inline: auto;
}

.hero-interior p {
  max-width: 55ch;
  margin-inline: auto;
  font-size: var(--text-lg);
}

/* ---------- Why golf list ---------- */
.why-golf-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .why-golf-list { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .why-golf-list { grid-template-columns: repeat(5, 1fr); }
}

.why-golf-list li {
  text-align: center;
  padding: var(--space-4) var(--space-2);
}

/* ---------- Journey band ---------- */
.journey-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-green);
  text-align: center;
}

.journey-band__arrow {
  color: var(--color-orange);
  display: inline-block;
  animation: fore-arrow-drift 1.8s var(--ease-in-out) infinite;
}

@keyframes fore-arrow-drift {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}

@media (prefers-reduced-motion: reduce) {
  .journey-band__arrow { animation: none; }
}

/* ---------- FAQ strip ---------- */
.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding-block: var(--space-3);
}

.faq-item h3 {
  font-size: var(--text-base);
  margin-bottom: var(--space-1);
}

/* ---------- Girls in Action gallery ---------- */
.gallery-grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
}

.gallery-grid .media-placeholder {
  aspect-ratio: 1 / 1;
}
