/* Future Government Institute landing page
   Design system mirrors cms/css/sponsorship.css — scoped under .fgi-page */

/* ── Variables (shared with sponsorship) ── */
.fgi-page {
  --fgi-blue: #07525E;
  --fgi-hero-blue: #07525E;
  --fgi-navy: #001524;
  --fgi-teal: #07525E;
  --fgi-orange: #D48D41;
  --fgi-orange-ink: #9a5a1b;
  --fgi-ice: #eef3f4;
  --fgi-slate: #001524;
  --fgi-muted: #5d6b78;
  --nav-height: calc(2rem + 2.5rem);

  background-color: #ffffff;
  color: var(--fgi-slate);
}

html:has(.fgi-page) { scroll-behavior: smooth; }

.fgi-page section[id] {
  scroll-margin-top: var(--nav-height);
}

/* ── Typography ── */
.fgi-page .eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--fgi-orange-ink);
  margin-bottom: 0.5rem;
}

.fgi-page h1,
.fgi-page h2,
.fgi-page h3 {
  color: var(--fgi-slate);
  font-weight: 700;
}

.fgi-page p { color: var(--fgi-muted); }

.fgi-page .section-heading {
  max-width: 720px;
  margin: 0 auto 3rem;
  position: relative;
  z-index: 1;
}

.fgi-page .section-heading .eyebrow {
  display: block;
}

.fgi-page .section-heading h2 {
  position: relative;
  display: inline-block;
  text-wrap: balance;
  margin-bottom: 1.75rem;
}

.fgi-page .section-heading h2::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--fgi-blue), rgba(7, 82, 94, 0.6));
  border-radius: 2px;
}

.fgi-page .section-heading p {
  margin-bottom: 0;
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
  text-wrap: pretty;
}

/* ── Buttons ── */
.fgi-page .btn-fgi-primary {
  background: var(--fgi-hero-blue);
  border-color: var(--fgi-hero-blue);
  color: #fff;
  font-weight: 600;
  border-radius: 0.75rem;
  padding: 0.85rem 2.1rem;
  box-shadow: 0 14px 30px rgba(7, 82, 94, 0.2);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.fgi-page .btn-fgi-primary:hover,
.fgi-page .btn-fgi-primary:focus {
  background: #064048;
  border-color: #064048;
  color: #fff;
  box-shadow: 0 18px 36px rgba(7, 82, 94, 0.3);
}

.fgi-page .btn-outline-fgi {
  color: var(--fgi-blue);
  border: 2px solid var(--fgi-blue);
  font-weight: 600;
  border-radius: 0.75rem;
  padding: 0.85rem 2.1rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.fgi-page .btn-outline-fgi:hover {
  background-color: var(--fgi-blue);
  color: #fff;
}

/* ── Hero ── */
.fgi-page .fgi-hero {
  background: var(--fgi-navy);
  overflow: visible;
  min-height: clamp(520px, 68vh, 720px);
  display: flex;
  align-items: center;
  position: relative;
}

.fgi-page .fgi-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 75% 50%, rgba(7, 82, 94, 0.35), transparent 70%),
    radial-gradient(ellipse 50% 50% at 20% 80%, rgba(7, 82, 94, 0.15), transparent 70%);
  pointer-events: none;
}

.fgi-page .fgi-hero .hero-container {
  width: 100%;
  padding-block: clamp(5rem, 8vw, 9rem);
  position: relative;
  z-index: 1;
}

.fgi-page .fgi-hero .hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.fgi-page .fgi-hero .hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  display: inline-block;
  margin-bottom: 1rem;
}

.fgi-page .fgi-hero .hero-title {
  font-size: clamp(2.75rem, 3vw + 1.75rem, 3.9rem);
  line-height: 1.08;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.fgi-page .fgi-hero .hero-highlight {
  color: #D48D41;
}

.fgi-page .fgi-hero .hero-lead {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.86);
  max-width: 36rem;
  margin-bottom: 2.25rem;
}

.fgi-page .fgi-hero .hero-cta .btn {
  min-width: 190px;
}

.fgi-page .fgi-hero .hero-btn {
  border-radius: 0.75rem;
  padding: 0.85rem 2.1rem;
  font-size: 1rem;
  font-weight: 700;
}

.fgi-page .fgi-hero .hero-btn-outline {
  font-weight: 600;
  border-width: 2px;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.85);
  background: transparent;
  border-radius: 0.75rem;
}

.fgi-page .fgi-hero .hero-btn-outline:hover {
  color: var(--fgi-navy);
  background: #fff;
}

/* Hero media (logo) */
.fgi-page .hero-media {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fgi-page .hero-logo-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.fgi-page .hero-logo-img {
  width: 420px;
  max-width: 100%;
  height: auto;
}

/* ── Stats Strip ── */
.fgi-page .stats-strip {
  background: linear-gradient(135deg, #001524 0%, #07525E 100%);
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
}

.fgi-page .stats-strip::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(7, 82, 94, 0.08), transparent 70%);
  pointer-events: none;
}

.fgi-page .stat-item {
  text-align: center;
  padding: 1rem;
}

.fgi-page .stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: #D48D41;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.fgi-page .stat-label {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  font-weight: 500;
}

/* ── About section ── */
.fgi-page .about-section {
  background: linear-gradient(180deg, #ffffff 0%, var(--fgi-ice) 100%);
}

/* ── Offerings ── */
.fgi-page .offerings-section {
  background: linear-gradient(135deg, #e9eff0 0%, #eef3f4 50%, #f1f5f6 100%);
  position: relative;
  overflow: hidden;
}

.fgi-page .offerings-section::before {
  content: '';
  position: absolute;
  top: -15%;
  right: 10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(7, 82, 94, 0.05), transparent 65%);
  pointer-events: none;
}

.fgi-page .offering-card {
  border: 1px solid rgba(7, 82, 94, 0.1);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(7, 82, 94, 0.08), 0 2px 6px rgba(7, 82, 94, 0.04);
  position: relative;
}

.fgi-page .offering-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--fgi-blue), var(--fgi-teal));
  z-index: 1;
}

.fgi-page .offering-card .offering-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(7, 82, 94, 0.1), rgba(7, 82, 94, 0.06));
  border-radius: 16px;
  font-size: 2rem;
  color: var(--fgi-blue);
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.fgi-page .offering-card .offering-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-grow: 1;
}

.fgi-page .offering-card .offering-content h3 {
  font-size: 1.35rem;
  line-height: 1.3;
  margin-bottom: 0;
}

.fgi-page .offering-card .offering-content > p {
  line-height: 1.65;
  color: var(--fgi-slate);
  font-size: 0.95rem;
  opacity: 0.85;
}

/* ── Assessment CTA ── */
.fgi-page .assessment-cta {
  background: linear-gradient(135deg, var(--fgi-navy) 0%, #07525E 100%);
  position: relative;
  overflow: hidden;
}

.fgi-page .assessment-cta::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(7, 82, 94, 0.12), transparent 70%);
  pointer-events: none;
}

.fgi-page .assessment-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 3rem;
  backdrop-filter: blur(10px);
}

.fgi-page .assessment-banner h2 {
  color: #ffffff;
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.fgi-page .assessment-banner p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.fgi-page .assessment-banner .btn-light {
  font-weight: 600;
  border-radius: 0.75rem;
  padding: 0.85rem 2.1rem;
}

.fgi-page .assessment-icons {
  display: flex;
  gap: 1.5rem;
}

.fgi-page .assessment-icon-ring {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #D48D41;
}

@media (max-width: 767.98px) {
  .fgi-page .assessment-banner {
    flex-direction: column;
    text-align: center;
    padding: 2rem;
  }
  .fgi-page .assessment-icons { display: none; }
}

/* ── Fellows ── */
.fgi-page .fellows-section {
  background: linear-gradient(180deg, #ffffff 0%, var(--fgi-ice) 100%);
}

.fgi-page .fellow-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: #ffffff;
  border: 1px solid rgba(7, 82, 94, 0.1);
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(7, 82, 94, 0.06);
  height: 100%;
}

.fgi-page .fellow-photo-placeholder {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  line-height: 1;
  background: var(--fgi-ice);
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(7, 82, 94, 0.15);
  flex-shrink: 0;
}

.fgi-page .fellow-photo-placeholder i {
  font-size: 1.4rem;
  color: var(--fgi-muted);
}

.fgi-page .fellow-photo-wrapper {
  position: relative;
  flex-shrink: 0;
}

.fgi-page .fellow-photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(7, 82, 94, 0.15);
}

.fgi-page .fellow-photo-flag {
  position: absolute;
  right: -4px;
  bottom: -4px;
  font-size: 1rem;
  line-height: 1;
  background: #ffffff;
  border-radius: 50%;
  padding: 1px 3px;
  box-shadow: 0 1px 3px rgba(7, 82, 94, 0.2);
}

.fgi-page .fellow-info h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--fgi-slate);
}

.fgi-page .fellow-info p {
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--fgi-muted);
  margin-bottom: 0;
}

/* ── Industry Sponsors ── */
.fgi-page .sponsors-section {
  background: linear-gradient(135deg, var(--fgi-blue) 0%, #064048 100%);
  position: relative;
  overflow: hidden;
}

.fgi-page .sponsors-section::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06), transparent 70%);
  pointer-events: none;
}

.fgi-page .sponsors-section h2,
.fgi-page .sponsors-section h3 {
  color: #ffffff;
}

.fgi-page .sponsor-logo-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  overflow: hidden;
}

.fgi-page .sponsor-logo-card img {
  max-height: 3.5rem;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* ── Final CTA ── */
.fgi-page .final-cta {
  background: var(--fgi-navy);
  position: relative;
  overflow: hidden;
}

.fgi-page .final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 50% 50%, rgba(7, 82, 94, 0.3), transparent 70%);
  pointer-events: none;
}

.fgi-page .final-cta h2 { color: #ffffff; }
.fgi-page .final-cta p { color: rgba(255, 255, 255, 0.8); }

/* Normalise both CTA buttons to identical size/border so their text baselines align */
.fgi-page .final-cta .btn {
  border-radius: 0.75rem;
  padding: 0.9rem 2.2rem;
  font-size: 1.05rem;
  font-weight: 600;
  border-width: 2px;
}

.fgi-page .final-cta .btn-outline-light {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.85);
  background: transparent;
}

.fgi-page .final-cta .btn-outline-light:hover {
  color: var(--fgi-navy);
  background: #ffffff;
  border-color: #ffffff;
}

/* ── Responsive ── */
@media (max-width: 991.98px) {
  .fgi-page .fgi-hero .hero-container {
    padding-block: clamp(3rem, 6vw, 5rem);
  }
  .fgi-page .fgi-hero {
    min-height: auto;
  }
}

@media (max-width: 767.98px) {
  .fgi-page .stat-number { font-size: 2.25rem; }
  .fgi-page .hero-media { max-width: 100%; }
}

/* ── Prose / measure (moved off inline styles) ── */
.fgi-page .fgi-prose {
  color: var(--fgi-slate);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 62ch;
}

/* ── About video embed ── */
.fgi-page .about-video {
  position: relative;
  padding-top: 56.25%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 21, 36, 0.12);
}

.fgi-page .about-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ── Offering text link (demoted from button to cut CTA proliferation) ── */
.fgi-page .offering-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  align-self: flex-start;
  color: var(--fgi-teal);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.2s ease;
}

.fgi-page .offering-link::after {
  content: '\2192';
  transition: transform 0.2s ease;
}

.fgi-page .offering-link:hover {
  border-bottom-color: var(--fgi-teal);
}

.fgi-page .offering-link:hover::after {
  transform: translateX(3px);
}

@media (prefers-reduced-motion: reduce) {
  .fgi-page .offering-link::after { transition: none; }
}

/* ── Assessment reassurance line ── */
.fgi-page .assessment-banner .assessment-reassurance {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  margin: 0.85rem 0 0;
}

/* ── Sponsors body copy (moved off inline styles) ── */
.fgi-page .sponsors-section p {
  color: rgba(255, 255, 255, 0.82);
}

/* Ochre underline reads on the teal sponsors backdrop (teal-on-teal was invisible) */
.fgi-page .sponsors-section .section-heading h2::after {
  background: linear-gradient(90deg, var(--fgi-orange), rgba(212, 141, 65, 0.6));
}

/* ── Partner CTA button (moved off inline styles) ── */
.fgi-page .partner-cta-btn {
  font-weight: 600;
  border-radius: 0.75rem;
  padding: 0.85rem 2.5rem;
}

/* ── Final CTA copy (moved off inline styles) ── */
.fgi-page .final-cta-inner {
  position: relative;
  z-index: 1;
}

.fgi-page .final-cta-lead {
  font-size: 1.05rem;
}

/* ── Solid-white CTAs on the dark/teal sections (replaces the inert btn-light grey) ── */
.fgi-page .assessment-banner .btn-light,
.fgi-page .partner-cta-btn {
  background-color: #ffffff;
  border-color: #ffffff;
  color: var(--fgi-navy);
}
.fgi-page .assessment-banner .btn-light:hover,
.fgi-page .assessment-banner .btn-light:focus,
.fgi-page .partner-cta-btn:hover,
.fgi-page .partner-cta-btn:focus {
  background-color: #eef3f4;
  border-color: #eef3f4;
  color: var(--fgi-navy);
}

/* ── Keyboard focus rings (WCAG 2.4.7) — white ring on the solid CTAs against dark sections ── */
.fgi-page .btn-fgi-primary:focus-visible,
.fgi-page .assessment-banner .btn-light:focus-visible,
.fgi-page .partner-cta-btn:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}
/* Outline CTAs already carry a white resting border, so a white ring blends in.
   Use ochre + a wider offset so keyboard focus is unmistakable. */
.fgi-page .hero-btn-outline:focus-visible,
.fgi-page .btn-outline-light:focus-visible {
  outline: 2px solid var(--fgi-orange);
  outline-offset: 3px;
}
.fgi-page .about-section .btn-fgi-primary:focus-visible {
  outline-color: var(--fgi-navy);
}

/* ── Assess Your Capability (compact repeat CTA — page close) ──
   Tight horizontal bar below the final CTA: short prompt left, two buttons right.
   Light treatment is a deliberate counterpoint to the dark glass banner mid-page. */
.fgi-page .assessment-paths-compact {
  background: var(--fgi-ice);
}

.fgi-page .assessment-compact-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  padding: 1.5rem 2rem;
  background: #ffffff;
  border: 1px solid rgba(7, 82, 94, 0.12);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(7, 82, 94, 0.08);
}

.fgi-page .assessment-compact-copy .eyebrow {
  margin-bottom: 0.15rem;
}

.fgi-page .assessment-compact-copy h2 {
  font-size: 1.5rem;
  margin: 0;
}

.fgi-page .assessment-compact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (max-width: 575.98px) {
  .fgi-page .assessment-compact-actions {
    width: 100%;
  }
  .fgi-page .assessment-compact-actions .btn {
    flex: 1 1 auto;
  }
}

.fgi-page .assessment-compact-actions .btn:focus-visible {
  outline: 2px solid var(--fgi-navy);
  outline-offset: 2px;
}
