/* ============================================
   NORTH FORSYTH FBLA — Stylesheet
   Editorial · refined · asymmetric
   ============================================ */

:root {
  /* FBLA brand-aligned palette */
  --fbla-blue: #002F6C;       /* deep, ink-like navy */
  --fbla-blue-2: #0046AD;     /* mid blue for accents */
  --fbla-gold: #F2A900;       /* warm gold */
  --fbla-gold-light: #FFD25C;

  --ink: #0E1014;
  --ink-2: #2A2E36;
  --paper: #F6F1E7;           /* warm cream — gives an editorial feel */
  --paper-2: #ECE5D6;
  --line: #1c1c1c;
  --muted: #6B6358;

  --max: 1280px;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, iframe { max-width: 100%; }

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

::selection { background: var(--fbla-blue); color: var(--fbla-gold-light); }

/* Subtle paper grain on body */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='5'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.6;
  mix-blend-mode: multiply;
}

/* ============ NAV ============ */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(246, 241, 231, 0.78);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.logo-mark {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px;
  background: var(--fbla-blue);
  color: var(--fbla-gold-light);
  border-radius: 50%;
  font-size: 13px;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.05em;
}
.logo-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 50%;
}
.logo-dot { color: var(--fbla-gold); }
.nav-links {
  list-style: none; display: flex; gap: 28px;
  margin: 0; padding: 0;
  margin-left: auto;
  font-size: 15px;
  font-weight: 500;
}
.nav-links a {
  position: relative;
  padding: 4px 0;
  transition: color .2s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--fbla-gold);
  transition: width .25s ease;
}
.nav-links a:hover { color: var(--fbla-blue); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  padding: 10px 18px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: background .2s, transform .15s;
}
.nav-cta:hover { background: var(--fbla-blue); transform: translateY(-1px); }

.nav-toggle { display: none; }

/* ============ HERO ============ */
.hero {
  position: relative;
  background: var(--fbla-blue);
  color: var(--paper);
  padding: 80px 32px 0;
  overflow: hidden;
  isolation: isolate;
}
.hero-grain {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(242,169,0,0.18), transparent 50%),
    radial-gradient(ellipse at 10% 90%, rgba(242,169,0,0.10), transparent 50%);
  pointer-events: none;
  z-index: -1;
}
.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding-bottom: 60px;
}
.hero-meta {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fbla-gold-light);
  border-bottom: 1px solid rgba(255,255,255,0.18);
  padding-bottom: 14px;
  margin-bottom: 50px;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(56px, 11vw, 168px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin: 0;
}
.hero-line-1 { display: block; }
.hero-line-2 { display: block; padding-left: 6vw; color: var(--fbla-gold-light); }
.hero-line-2 em { font-style: italic; font-weight: 400; }
.hero-line-3 { display: block; text-align: right; }

.hero-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 60px;
  align-items: end;
}
.hero-tagline {
  font-size: 19px;
  line-height: 1.55;
  max-width: 50ch;
  color: rgba(246,241,231,0.85);
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-self: end;
  flex-wrap: wrap;
}

.hero-stats {
  margin-top: 80px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255,255,255,0.18);
}
.stat {
  padding: 28px 0 4px;
  border-right: 1px solid rgba(255,255,255,0.18);
  padding-right: 24px;
}
.stat:last-child { border-right: none; }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  color: var(--fbla-gold-light);
  letter-spacing: -0.02em;
}
.stat-label {
  display: block;
  margin-top: 8px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(246,241,231,0.7);
}

.hero-marquee {
  background: var(--fbla-gold);
  color: var(--fbla-blue);
  overflow: hidden;
  border-top: 1px solid rgba(0,0,0,0.15);
  border-bottom: 1px solid rgba(0,0,0,0.15);
}
.marquee-track {
  display: flex;
  white-space: nowrap;
  animation: marquee 38s linear infinite;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 28px;
  padding: 16px 0;
}
.marquee-track span { padding: 0 30px; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all .2s ease;
  text-decoration: none;
}
.btn-primary {
  background: var(--fbla-gold);
  color: var(--fbla-blue);
  border-color: var(--fbla-gold);
}
.btn-primary:hover {
  background: var(--fbla-gold-light);
  border-color: var(--fbla-gold-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(242,169,0,0.35);
}
.btn-ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(246,241,231,0.4);
}
.btn-ghost:hover {
  border-color: var(--paper);
  background: rgba(246,241,231,0.08);
}
.btn-lg { padding: 18px 32px; font-size: 17px; }

/* ============ SECTION DEFAULTS ============ */
.section {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 120px 32px;
  z-index: 2;
}
.section-head {
  margin-bottom: 64px;
  max-width: 720px;
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fbla-blue);
  margin-bottom: 18px;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--fbla-gold);
}
.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
}
.section-sub {
  font-size: 19px;
  color: var(--ink-2);
  max-width: 60ch;
  margin: 0;
}

/* ============ ABOUT ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  align-items: start;
}
.about-text .lead {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.35;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
}
.about-card {
  background: var(--ink);
  color: var(--paper);
  padding: 36px 32px;
  border-radius: 6px;
  position: relative;
  transform: rotate(0.3deg);
  box-shadow: 6px 6px 0 var(--fbla-gold);
}
.about-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}
.about-card ul { padding-left: 18px; margin: 0; }
.about-card li { margin-bottom: 10px; line-height: 1.5; }
.about-card strong { color: var(--fbla-gold-light); }

/* ============ OFFICERS ============ */
.officers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 4px;
  background: var(--ink);
  border: 1px solid var(--ink);
}
.officer-card {
  background: var(--paper);
  padding: 32px 24px 28px;
  position: relative;
  transition: background .25s, color .25s;
}
.officer-card:hover {
  background: var(--fbla-blue);
  color: var(--paper);
}
.officer-card:hover .officer-name { color: var(--fbla-gold-light); }
.officer-card:hover .officer-role-num { color: var(--fbla-gold); }
.officer-role-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 28px;
}
.officer-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin: 0 0 6px;
}
.officer-role {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
}

/* ============ EVENTS / CALENDAR ============ */
.calendar-wrap {
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 8px;
  overflow: hidden;
  background: white;
  box-shadow: 0 12px 40px rgba(0,47,108,0.08);
}
.calendar-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 20px 24px;
  border-top: 1px solid rgba(0,0,0,0.08);
  background: var(--paper-2);
}
.calendar-note {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}
.calendar-note code {
  background: white;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 11px;
}

/* ============ VIDEOS ============ */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}
.video-card {
  background: white;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 10px;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
  display: flex;
  flex-direction: column;
}
.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0,47,108,0.12);
}
.video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--ink);
  overflow: hidden;
}
.video-thumb iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
.video-meta {
  padding: 18px 20px 22px;
}
.video-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fbla-blue);
  margin-bottom: 8px;
}
.video-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 0 0 6px;
}
.video-date {
  font-size: 13px;
  color: var(--muted);
}

/* ============ FORUM ============ */
.forum-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
.forum-form {
  background: white;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 10px;
  padding: 28px;
  box-shadow: 0 8px 30px rgba(0,47,108,0.06);
}
.forum-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 12px;
  margin-bottom: 12px;
}
.forum-form input,
.forum-form textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 16px;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  resize: vertical;
  transition: border-color .2s, background .2s;
}
.forum-form input:focus,
.forum-form textarea:focus {
  outline: none;
  border-color: var(--fbla-blue);
  background: white;
}
.forum-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  flex-wrap: wrap;
  gap: 12px;
}
.forum-hint {
  font-size: 13px;
  color: var(--muted);
}
.forum-hint.error { color: #b00020; }
.forum-hint.success { color: #006b3c; }

.forum-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.forum-loading,
.forum-empty {
  text-align: center;
  padding: 60px 20px;
  background: var(--paper-2);
  border-radius: 8px;
  color: var(--muted);
  font-style: italic;
}
.forum-post {
  background: white;
  border: 1px solid rgba(0,0,0,0.08);
  border-left: 4px solid var(--fbla-gold);
  padding: 22px 26px;
  border-radius: 6px;
  transition: border-left-color .2s;
}
.forum-post:hover { border-left-color: var(--fbla-blue); }
.forum-post-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
  gap: 16px;
  flex-wrap: wrap;
}
.forum-post-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -0.01em;
  margin: 0;
}
.forum-post-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.forum-post-author {
  color: var(--fbla-blue);
  font-weight: 600;
}
.forum-post-body {
  color: var(--ink-2);
  white-space: pre-wrap;
  line-height: 1.55;
  margin: 0;
}

.forum-config-warn {
  background: #FFF8E1;
  border: 1px dashed var(--fbla-gold);
  padding: 18px 22px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--ink-2);
}
.forum-config-warn code {
  background: white;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 12px;
}

/* ============ RESOURCES ============ */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}
.resource-card {
  display: block;
  padding: 32px 28px 38px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
  transition: background .25s, color .25s;
  position: relative;
  overflow: hidden;
}
.resource-card::before {
  content: attr(data-category);
  position: absolute;
  top: 14px; right: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  transition: color .25s;
}
.resource-card:hover {
  background: var(--fbla-gold);
  color: var(--ink);
}
.resource-card:hover::before { color: var(--fbla-blue); }
.resource-num {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--fbla-blue);
  display: block;
  margin-bottom: 22px;
}
.resource-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
  line-height: 1.15;
}
.resource-card p {
  margin: 0;
  font-size: 15px;
  color: var(--ink-2);
}
.resource-card:hover p { color: var(--ink); }

/* ============ JOIN ============ */
.join {
  background: var(--ink);
  color: var(--paper);
  margin: 0;
  max-width: none;
  padding: 120px 32px;
}
.join-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.join h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(48px, 6vw, 88px);
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0 0 18px;
}
.join h2::after {
  content: ".";
  color: var(--fbla-gold);
}
.join p {
  font-size: 18px;
  color: rgba(246,241,231,0.75);
  max-width: 56ch;
  margin: 0 auto 32px;
  line-height: 1.55;
}
.join-note {
  margin-top: 40px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(246,241,231,0.55);
}
.join-note a { color: var(--fbla-gold-light); text-decoration: underline; }

/* ============ FOOTER ============ */
.footer {
  background: var(--fbla-blue);
  color: var(--paper);
  padding: 60px 32px 30px;
}
.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.18);
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.footer-meta {
  font-size: 14px;
  color: rgba(246,241,231,0.7);
  margin: 0;
  line-height: 1.55;
}
.footer-head {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fbla-gold-light);
  margin: 0 0 14px;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: 8px; }
.footer ul a {
  font-size: 14px;
  color: rgba(246,241,231,0.85);
  transition: color .2s;
}
.footer ul a:hover { color: var(--fbla-gold-light); }
.footer-bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(246,241,231,0.6);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
.footer-bottom a {
  color: var(--fbla-gold-light);
  transition: color .2s;
}
.footer-bottom a:hover { color: var(--paper); }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle {
    display: flex; flex-direction: column; gap: 4px;
    margin-left: auto;
    background: none; border: none; cursor: pointer; padding: 8px;
  }
  .nav-toggle span {
    width: 22px; height: 2px; background: var(--ink);
    transition: transform .2s;
  }
  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--paper);
    padding: 20px 32px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    gap: 16px;
  }

  .hero { padding-top: 50px; }
  .hero-line-2 { padding-left: 0; }
  .hero-line-3 { text-align: left; }
  .hero-bottom { grid-template-columns: 1fr; gap: 28px; }
  .hero-actions { justify-self: start; }
  .hero-stats { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.18); padding: 20px 0; }
  .stat:last-child { border-bottom: none; }

  .section { padding: 80px 24px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .forum-row { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav-inner { padding: 14px 20px; }
  .hero { padding: 40px 20px 0; }
  .hero-meta { flex-direction: column; gap: 6px; align-items: flex-start; }
  .section { padding: 70px 20px; }
  .marquee-track { font-size: 22px; }
  .resource-card { padding: 26px 22px 30px; }
}
