/* ==========================================================================
   Homepage-specific styles
   ========================================================================== */

/* ---------- Hero ---------- */
.hero {
  background: var(--green);
  background-image:
    radial-gradient(circle at 88% 15%, rgba(247, 189, 45, 0.38), transparent 50%),
    radial-gradient(circle at 8% 95%, rgba(217, 98, 43, 0.4), transparent 48%),
    radial-gradient(circle at 50% 110%, rgba(0, 0, 0, 0.25), transparent 55%);
  color: var(--cream);
  padding: 64px 0 56px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 40px;
}
.hero h1 {
  color: var(--cream);
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  margin-bottom: 0.4em;
}
.hero-underline {
  position: relative;
  display: inline-block;
}
.hero-underline::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 10px;
  background: var(--yellow);
  border-radius: 6px;
  z-index: -1;
  opacity: 0.85;
}
.hero-sub {
  font-size: 1.1rem;
  color: rgba(251, 246, 233, 0.88);
  max-width: 46ch;
  margin-bottom: 1.75em;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 2.5em;
}
.btn-outline-dark {
  background: transparent;
  border: 3px solid var(--cream);
  color: var(--cream);
  box-shadow: 4px 4px 0 rgba(0,0,0,0.2);
}
.btn-outline-dark:hover { box-shadow: 6px 6px 0 rgba(0,0,0,0.2); }

.hero-stats {
  display: flex;
  gap: 28px;
}
.hero-stats > div {
  display: flex;
  flex-direction: column;
  min-width: 108px;
}
.hero-stats strong {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--yellow);
  line-height: 1;
  display: block;
}
.hero-stats span {
  font-size: 0.78rem;
  color: rgba(251, 246, 233, 0.7);
  margin-top: 6px;
  display: block;
  line-height: 1.3;
}

.hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}
.hero-built-img {
  width: clamp(320px, 42vw, 560px);
  filter: drop-shadow(0 16px 32px rgba(0,0,0,0.5));
  animation: float 5s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

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

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-art { order: -1; min-height: 180px; }
  .hero-built-img { width: min(380px, 90vw); }
}

/* ---------- Mission cards ---------- */
.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.mission-card h3 { margin: 0.4em 0 0.3em; font-size: 1.3rem; }
.mission-card p { color: var(--text-muted); margin-bottom: 0; font-size: 0.96rem; }

@media (max-width: 820px) {
  .mission-grid { grid-template-columns: 1fr; }
}

/* ---------- Featured project ---------- */
.featured-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  align-items: center;
}
.featured-frame {
  background: var(--yellow);
  border: 3px solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
  padding: 0;
  overflow: hidden;
  min-height: 320px;
}
.featured-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-slot-square { min-height: 320px; }
.featured-copy h2 { font-size: 1.9rem; }
.featured-copy p { color: var(--text-muted); max-width: 52ch; }

@media (max-width: 820px) {
  .featured-grid { grid-template-columns: 1fr; text-align: center; }
  .featured-mascot { margin: 0 auto; }
  .featured-copy p { margin-left: auto; margin-right: auto; }
}

/* ---------- Why grid ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.why-item {
  padding: 24px;
  border-left: 3px solid var(--orange);
}
.why-item h4 { font-size: 1.05rem; margin-bottom: 0.4em; }
.why-item p { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 0; }

@media (max-width: 900px) {
  .why-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .why-grid { grid-template-columns: 1fr; }
}

/* ---------- Classes teaser ---------- */
.classes-teaser {
  background-image:
    linear-gradient(rgba(247, 189, 45, 0.87), rgba(247, 189, 45, 0.87)),
    url("../images/ClassesTeaserBg.png");
  background-size: cover;
  background-position: center;
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
}
.classes-teaser-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.classes-teaser-copy { max-width: 60ch; }
.classes-teaser-copy h2 { margin: 0 0 0.3em; font-size: 1.6rem; }
.classes-teaser-copy p { margin: 0; color: var(--text); opacity: 0.85; }
.classes-teaser .eyebrow { color: var(--orange-dark); }

/* ---------- News section ---------- */
.news-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.news-header h2 { margin: 0; font-size: 1.7rem; }

.news-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.news-feature {
  position: relative;
  display: block;
  background: var(--green);
  color: var(--cream);
  border: 3px solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
  padding: 36px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.news-feature:hover {
  transform: translate(-3px, -3px);
  box-shadow: 7px 7px 0 var(--ink);
}
.news-feature-tag {
  margin-bottom: 14px;
}
.news-feature h3 {
  color: var(--cream);
  font-size: 1.8rem;
  margin-bottom: 0.4em;
  max-width: 18ch;
}
.news-feature p {
  color: rgba(251, 246, 233, 0.85);
  max-width: 48ch;
  margin-bottom: 1.2em;
}
.news-link {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--yellow);
  font-size: 0.95rem;
}

.news-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.news-item {
  display: block;
  background: var(--cream-panel);
  border: 3px solid var(--ink);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  flex: 1;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 3px 3px 0 rgba(22,19,16,0.5);
}
.news-item:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 rgba(22,19,16,0.5);
}
.news-date {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--orange-dark);
  margin-bottom: 8px;
}
.news-item h4 {
  font-size: 1.02rem;
  margin-bottom: 0.35em;
}
.news-item p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

@media (max-width: 820px) {
  .news-grid { grid-template-columns: 1fr; }
  .news-feature h3 { max-width: none; }
}

/* ---------- Join CTA ---------- */
.join-cta h2 { font-size: 2rem; }
.join-cta p { color: var(--text-muted); margin-bottom: 1.5em; }

.wro-teaser-band {
  position: relative;
  padding: 96px 0;
  overflow: hidden;
}
.wro-teaser-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.wro-teaser-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.wro-teaser-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--green);
  opacity: 0.9;
}
.wro-teaser-content {
  position: relative;
  z-index: 1;
}
