:root {
  --ink: #162033;
  --muted: #637186;
  --line: #dbe4ee;
  --paper: #ffffff;
  --soft: #f3f7fb;
  --navy: #123057;
  --blue: #2365d1;
  --teal: #087d75;
  --orange: #c66a1c;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 12px clamp(18px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: #fff;
  background: var(--navy);
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2.2vw, 28px);
  color: #334155;
  font-size: 14px;
  font-weight: 800;
}

.header-action,
.primary,
.secondary,
.search-box button,
.view-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  font-weight: 900;
}

.header-action,
.primary {
  padding: 0 18px;
  color: #fff;
  background: var(--blue);
}

.secondary {
  padding: 0 16px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .56);
  background: rgba(255, 255, 255, .14);
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: min(720px, 90vh);
  padding: clamp(72px, 10vw, 118px) clamp(18px, 6vw, 80px);
  overflow: hidden;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("assets/gfc-social-hero.png");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero-shade {
  background: linear-gradient(90deg, rgba(9, 18, 32, .92), rgba(9, 18, 32, .76) 48%, rgba(9, 18, 32, .22));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(790px, 100%);
  color: #fff;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #7ee0d1;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(46px, 7vw, 86px);
  line-height: .98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.06;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 9px;
  font-size: 21px;
  line-height: 1.22;
}

.hero-copy {
  width: min(700px, 100%);
  color: rgba(255, 255, 255, .88);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.5;
}

.search-box {
  display: grid;
  grid-template-columns: 1fr auto;
  width: min(710px, 100%);
  margin: 28px 0 18px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 10px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .22);
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 14px;
  color: var(--ink);
  background: transparent;
  font-size: 16px;
}

.search-box button {
  border: 0;
  padding: 0 18px;
  color: #fff;
  background: var(--orange);
  cursor: pointer;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.quick-links a {
  min-height: 92px;
  padding: 22px clamp(16px, 3vw, 34px);
  border-right: 1px solid var(--line);
}

.quick-links strong,
.quick-links span {
  display: block;
}

.quick-links span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.forum-index,
.latest-section,
.tools {
  padding: clamp(54px, 7vw, 92px) clamp(18px, 6vw, 80px);
}

.forum-index,
.tools {
  background: var(--soft);
}

.section-head {
  max-width: 850px;
  margin-bottom: 28px;
}

.section-head p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.58;
}

.forum-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.forum-card,
.latest-panel a,
.tool-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.forum-card {
  min-height: 250px;
  padding: 22px;
}

.forum-card h3 a {
  color: #1f4d86;
}

.forum-card p {
  color: var(--muted);
  line-height: 1.55;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tags a {
  padding: 7px 10px;
  border-radius: 7px;
  color: #294159;
  background: #eef4fa;
  font-size: 13px;
  font-weight: 800;
}

.latest-section {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(320px, 1fr);
  gap: clamp(26px, 6vw, 80px);
  align-items: center;
  color: #fff;
  background: var(--navy);
}

.latest-copy p:not(.eyebrow) {
  max-width: 650px;
  color: rgba(255, 255, 255, .78);
  font-size: 18px;
  line-height: 1.62;
}

.latest-panel {
  display: grid;
  gap: 12px;
}

.latest-panel a {
  padding: 22px;
  color: var(--ink);
}

.latest-panel strong,
.latest-panel span,
.tool-card strong,
.tool-card span {
  display: block;
}

.latest-panel span,
.tool-card span {
  margin-top: 6px;
  color: var(--muted);
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.tool-grid.two-tools {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tool-card {
  min-height: 120px;
  padding: 22px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 940px) {
  .site-header {
    flex-wrap: wrap;
  }

  nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    min-height: 760px;
  }

  .hero-shade {
    background: rgba(9, 18, 32, .78);
  }

  .quick-links,
  .forum-grid,
  .latest-section,
  .tool-grid {
    grid-template-columns: 1fr;
  }

  .quick-links a {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 560px) {
  .header-action {
    min-height: 40px;
    padding: 0 12px;
  }

  .search-box {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .search-box input {
    min-height: 44px;
  }

  .hero-actions a {
    width: 100%;
  }
}
