/* ============================================================
   federation.css — FNHT Brand Theme
   Depends on: banner.css + index.css (for :root variables)
   ============================================================ */

/* ─── Hero ────────────────────────────────────────────────── */
.fed-hero {
  position: relative;
  height: 75vh;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.fed-hero-bg {
  position: absolute;
  inset: -5%;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 8s ease-out;
  will-change: transform;
}
.fed-hero:hover .fed-hero-bg { transform: scale(1); }

.fed-hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(10,4,4,0.88) 0%, rgba(10,4,4,0.35) 65%, transparent 100%),
    linear-gradient(to top,   rgba(10,4,4,0.70) 0%, transparent 55%);
}

/* reuse grain from banner.css */
.fed-hero .grain { z-index: 1; }

.fed-hero-content {
  position: relative;
  z-index: 2;
  padding: 0 8vw 6vh;
  max-width: 680px;
}

.fed-hero-content .section-tag {
  display: block;
  margin-bottom: 1rem;
}

.fed-hero-content h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 300;
  line-height: 0.95;
  color: var(--cream);
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}
.fed-hero-content h1 em { font-style: italic; color: rgba(247,244,240,0.7); }

.fed-hero-content p {
  font-family: 'Barlow', sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(247,244,240,0.60);
  max-width: 440px;
  margin-bottom: 0;
}

/* Scroll hint inside hero */
.fed-hero-scroll {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 2.5rem;
  font-family: 'Barlow', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(247,244,240,0.4);
  animation: fadeFloat 2.5s ease-in-out infinite;
}
.fed-hero-scroll .line {
  width: 1px; height: 28px;
  background: linear-gradient(to bottom, transparent, var(--red-light));
}
@keyframes fadeFloat {
  0%,100% { opacity: .4; transform: translateY(0); }
  50%      { opacity: .8; transform: translateY(5px); }
}

/* Vertical label — reuses same pattern as banner */
.fed-hero .vertical-label {
  position: absolute;
  right: 3vw; top: 50%;
  transform: translateY(-50%) rotate(90deg);
  font-family: 'Barlow', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(247,244,240,0.25);
  white-space: nowrap;
  z-index: 2;
  left: unset;
}

/* ─── Shared section title ────────────────────────────────── */
.fed-section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 300;
  color: var(--dark);
  letter-spacing: -0.01em;
  line-height: 1;
  margin-bottom: 1rem;
}
.fed-section-title em { font-style: italic; color: var(--red); }

/* ─── President ───────────────────────────────────────────── */
.fed-president { background: var(--warm-white); }

.fed-president-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 5rem;
  align-items: start;
}

/* Text col */
.fed-president-text .heading-line { margin: 1rem 0 2rem; }

.fed-president-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 300;
  font-style: italic;
  color: var(--text-body);
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.fed-president-body p {
  font-family: 'Barlow', sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.9;
  color: var(--text-muted);
  margin-bottom: 1.1rem;
}
.fed-president-body p:first-child {
  font-size: 1.05rem;
  color: var(--text-body);
  font-style: italic;
}

/* Image col */
.fed-president-img-wrap {
  position: relative;
  padding-top: 5rem; /* offset so it peeks below the text start */
}
.fed-president-img-wrap img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
}

/* Red frame behind image — brand accent */
.fed-president-img-accent {
  position: absolute;
  top: 3rem; right: -16px;
  width: 85%; height: 80%;
  border: 1px solid var(--red);
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}

/* Green corner badge */
.fed-president-img-badge {
  position: absolute;
  bottom: -1rem; left: -1rem;
  background: var(--dark);
  border-left: 3px solid var(--red);
  padding: 0.9rem 1.4rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.fed-president-img-badge span {
  font-family: 'Barlow', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(247,244,240,0.45);
}
.fed-president-img-badge strong {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--red-light);
  letter-spacing: 0.1em;
}

/* ─── Mission ─────────────────────────────────────────────── */
.fed-mission {
  position: relative;
  overflow: hidden;
  background: var(--dark-mid);
}

/* Animated gradient blobs */
.fed-mission-bg {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
}
.fed-mission-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
  animation: blobFloat 8s ease-in-out infinite alternate;
}
.blob-1 {
  width: 500px; height: 500px;
  background: var(--red);
  top: -150px; left: -100px;
  animation-duration: 9s;
}
.blob-2 {
  width: 400px; height: 400px;
  background: var(--green);
  bottom: -100px; right: -80px;
  animation-duration: 11s;
  animation-direction: alternate-reverse;
}
.blob-3 {
  width: 300px; height: 300px;
  background: var(--red-bright);
  top: 40%; left: 40%;
  animation-duration: 7s;
  opacity: 0.15;
}
@keyframes blobFloat {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, 30px) scale(1.08); }
}

/* Mission heading overrides for dark bg */
.fed-mission .section-tag { color: var(--red-light); }
.fed-mission .fed-section-title { color: var(--cream); }
.fed-mission .fed-section-title em { color: rgba(247,244,240,0.6); }
.fed-mission .section-subtitle { color: rgba(247,244,240,0.45); }

/* Mission cards grid */
.fed-mission-grid {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.fed-mission-card {
  background: rgba(247,244,240,0.04);
  border: 1px solid rgba(247,244,240,0.08);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  overflow: hidden;
  transition: background .4s ease, border-color .4s ease, transform .4s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Red top border reveal on hover */
.fed-mission-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--red), var(--green));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease-cinema);
}
.fed-mission-card:hover::before { transform: scaleX(1); }
.fed-mission-card:hover {
  background: rgba(247,244,240,0.07);
  border-color: rgba(139,26,26,0.35);
  transform: translateY(-4px);
}

/* Number */
.fed-mission-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.8rem;
  font-weight: 300;
  line-height: 1;
  color: var(--red);
  opacity: 0.55;
  transition: opacity .3s ease, color .3s ease;
}
.fed-mission-card:hover .fed-mission-num {
  opacity: 1;
  color: var(--red-light);
}

/* Text */
.fed-mission-card p {
  font-family: 'Barlow', sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(247,244,240,0.6);
  margin: 0;
  transition: color .3s ease;
}
.fed-mission-card:hover p { color: rgba(247,244,240,0.85); }

/* ─── Staggered animation for mission cards ───────────────── */
.fed-mission-card { animation: cardReveal 0.6s ease-out backwards; }
.fed-mission-card:nth-child(1)  { animation-delay: 0.05s; }
.fed-mission-card:nth-child(2)  { animation-delay: 0.10s; }
.fed-mission-card:nth-child(3)  { animation-delay: 0.15s; }
.fed-mission-card:nth-child(4)  { animation-delay: 0.20s; }
.fed-mission-card:nth-child(5)  { animation-delay: 0.25s; }
.fed-mission-card:nth-child(6)  { animation-delay: 0.30s; }
.fed-mission-card:nth-child(7)  { animation-delay: 0.35s; }
.fed-mission-card:nth-child(8)  { animation-delay: 0.40s; }
.fed-mission-card:nth-child(9)  { animation-delay: 0.45s; }
.fed-mission-card:nth-child(10) { animation-delay: 0.50s; }

@keyframes cardReveal {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .fed-president-grid { grid-template-columns: 1fr 300px; gap: 3rem; }
}

@media (max-width: 768px) {
  .fed-hero { height: 60vh; min-height: 400px; align-items: flex-end; }
  .fed-hero-content { padding: 0 6vw 5vh; }
  .fed-hero-content h1 { font-size: clamp(2.2rem, 8vw, 3.5rem); }
  .fed-hero .vertical-label { display: none; }

  .fed-president-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .fed-president-img-wrap { padding-top: 0; }
  .fed-president-img-accent { display: none; }

  .fed-mission-grid { grid-template-columns: 1fr; }
  .blob-1, .blob-2, .blob-3 { opacity: 0.15; }
}

@media (max-width: 480px) {
  .fed-hero-content h1 { font-size: 2rem; }
  .fed-mission-card { padding: 1.5rem; }
  .fed-mission-num { font-size: 2.2rem; }
}