/* =========================================================
   NSTA — SITE-WIDE STYLES
   ========================================================= */


/* ---------------------------------------------------------
   FONTS
   --------------------------------------------------------- */

@font-face {
  font-family: "Retro Mono Wide";
  src: url("/Association/assets/fonts/Retro%20Mono%20Wide.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}


/* ---------------------------------------------------------
   VARIABLES
   --------------------------------------------------------- */

:root {
  --cream: #f2ead8;
  --cream-light: #faf6ec;

  --red: #87271b;
  --gold: #dca127;
  --blue: #1676bc;
  --green: #28b674;

  --black: #171717;
  --white: #ffffff;

  --max-width: 1400px;
}


/* ---------------------------------------------------------
   RESET
   --------------------------------------------------------- */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream-light);
  color: var(--black);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.5;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}


/* ---------------------------------------------------------
   TYPOGRAPHY
   --------------------------------------------------------- */

h1,
h2,
h3,
h4 {
  font-family: "Retro Mono Wide", "Courier New", monospace;
  font-weight: normal;
  line-height: 1.15;
}

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


/* ---------------------------------------------------------
   HEADER
   --------------------------------------------------------- */

.site-header {
  width: 100%;
  position: relative;
  z-index: 1000;

  background: var(--cream-light);
  border-bottom: 2px solid var(--black);
}

.site-nav {
  max-width: var(--max-width);
  margin: 0 auto;

  min-height: 76px;
  padding: 1rem 5%;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-logo {
  font-family: "Retro Mono Wide", "Courier New", monospace;
  font-size: 1.8rem;
  text-decoration: none;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  font-weight: 700;
  text-decoration: none;
  position: relative;
}

.nav-links a::after {
  content: "";

  position: absolute;
  left: 0;
  bottom: -5px;

  width: 0;
  height: 2px;

  background: currentColor;

  transition: width 0.2s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}


/* ================================
   NAVIGATION DROPDOWNS
   ================================ */

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.35rem;

  border: none;
  background: none;

  font: inherit;
  color: inherit;

  cursor: pointer;
  padding: 0;
}

.dropdown-arrow {
  font-size: 0.8em;
  transition: transform 0.2s ease;
}


/* Desktop dropdown */

.nav-dropdown-menu {
  position: absolute;

  top: calc(100% + 0.75rem);
  left: 50%;

  transform: translateX(-50%) translateY(-8px);

  min-width: 220px;

  padding: 0.5rem;

  background: var(--cream, #f5f0e6);
  border: 1px solid rgba(0, 0, 0, 0.12);

  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);

  opacity: 0;
  visibility: hidden;

  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s ease;

  z-index: 1000;
}


/* Show dropdown */

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.dropdown-open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;

  transform: translateX(-50%) translateY(0);
}


.nav-dropdown.dropdown-open .dropdown-arrow {
  transform: rotate(180deg);
}


.nav-dropdown-menu a {
  display: block;

  padding: 0.7rem 0.85rem;

  text-decoration: none;
  color: inherit;

  white-space: nowrap;
}


.nav-dropdown-menu a:hover {
  background: rgba(0, 0, 0, 0.06);
}


/* ================================
   MOBILE DROPDOWNS
   ================================ */

@media (max-width: 768px) {

  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown-toggle {
    width: 100%;

    justify-content: space-between;

    padding: 0.75rem 0;
  }

  .nav-dropdown-menu {
    position: static;

    transform: none;

    min-width: 0;

    width: 100%;

    padding: 0;

    border: none;
    box-shadow: none;

    background: transparent;

    opacity: 1;
    visibility: visible;

    display: none;
  }

  .nav-dropdown.dropdown-open .nav-dropdown-menu {
    display: block;

    transform: none;
  }

  .nav-dropdown-menu a {
    padding: 0.6rem 1rem;
  }

}

/* ---------------------------------------------------------
   MOBILE NAVIGATION
   --------------------------------------------------------- */

.nav-toggle {
  display: none;

  border: 0;
  background: transparent;

  padding: 0.5rem;

  cursor: pointer;
}

.nav-toggle span {
  display: block;

  width: 25px;
  height: 2px;

  background: currentColor;

  margin: 5px 0;
}


/* ---------------------------------------------------------
   GENERAL LAYOUT
   --------------------------------------------------------- */

main {
  width: 100%;
}

.section {
  padding: 6rem 7%;
}

.section-header {
  max-width: var(--max-width);
  margin: 0 auto 3rem;
}

.section-label {
  font-family: "Retro Mono Wide", "Courier New", monospace;

  text-transform: uppercase;
  letter-spacing: 0.08em;

  font-size: 0.78rem;

  margin-bottom: 0.8rem;

  opacity: 0.7;
}

.section h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;

  margin-bottom: 1rem;
}

.section-header p {
  max-width: 700px;
  font-size: 1.05rem;
}


/* ---------------------------------------------------------
   HERO
   --------------------------------------------------------- */

.hero {
  min-height: 72vh;

  display: flex;
  align-items: center;

  padding: 6rem 7%;

  background: var(--cream);

  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: var(--max-width);
  width: 100%;

  margin: 0 auto;
}

.hero-eyebrow {
  font-family: "Retro Mono Wide", "Courier New", monospace;

  text-transform: uppercase;
  letter-spacing: 0.08em;

  font-size: 0.8rem;

  margin-bottom: 1.25rem;

  opacity: 0.8;
}

.hero h1 {
  font-size: clamp(3rem, 7vw, 7rem);

  line-height: 1.2;

  margin-bottom: 1.5rem;

  max-width: 1050px;
}

.hero p {
  max-width: 680px;

  font-size: 1.2rem;

  line-height: 1.6;

  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;

  gap: 1rem;
}


/* ---------------------------------------------------------
   BUTTONS
   --------------------------------------------------------- */

.button {
  display: inline-block;

  padding: 0.9rem 1.4rem;

  text-decoration: none;
  font-weight: 700;

  border: 2px solid currentColor;

  transition:
    transform 0.15s ease,
    opacity 0.15s ease;
}

.button:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.button-primary {
  background: var(--red);

  color: var(--white);

  border-color: var(--red);
}

.button-secondary {
  background: transparent;
}


/* ---------------------------------------------------------
   CARDS
   --------------------------------------------------------- */

.project-grid,
.news-grid,
.link-grid {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;

  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 1.25rem;
}

.card {
  border: 2px solid currentColor;

  padding: 1.5rem;

  min-height: 220px;

  display: flex;
  flex-direction: column;

  color: inherit;
  text-decoration: none;

  transition:
    transform 0.15s ease,
    background 0.15s ease;
}

.card:hover {
  transform: translateY(-4px);
}

.card-tag {
  font-family: "Retro Mono Wide", "Courier New", monospace;

  font-size: 0.7rem;

  text-transform: uppercase;
  letter-spacing: 0.06em;

  margin-bottom: 1rem;

  opacity: 0.65;
}

.card h3 {
  font-size: 1.35rem;

  line-height: 1.1;

  margin-bottom: 0.75rem;
}

.card p {
  line-height: 1.5;
}

.card-arrow {
  margin-top: auto;

  padding-top: 1.5rem;

  font-weight: 700;
}


/* ---------------------------------------------------------
   HOMEPAGE COLOUR SECTIONS
   --------------------------------------------------------- */

.work-section {
  background: var(--cream);
}

.news-section {
  background: var(--blue);

  color: var(--white);
}

.news-section .card {
  border-color: rgba(255, 255, 255, 0.8);
}

.about-section {
  background: var(--gold);
}

.governance-section {
  background: var(--green);
}

.cta-section {
  background: var(--red);

  color: var(--white);

  text-align: center;
}

.cta-section .section-header {
  margin-left: auto;
  margin-right: auto;
}

.cta-section .hero-actions {
  justify-content: center;
}

.cta-section .button-secondary {
  color: var(--white);
}


/* ---------------------------------------------------------
   ABOUT
   --------------------------------------------------------- */

.about-layout {
  max-width: var(--max-width);
  margin: 0 auto;

  display: grid;

  grid-template-columns:
    1.2fr 0.8fr;

  gap: 4rem;

  align-items: start;
}

.about-copy {
  font-size: 1.15rem;
  line-height: 1.7;
}

.about-stat {
  border-top: 2px solid currentColor;

  padding-top: 1rem;

  margin-bottom: 2rem;
}

.about-stat strong {
  display: block;

  font-family: "Retro Mono Wide", "Courier New", monospace;

  font-size: 2rem;

  line-height: 1;

  margin-bottom: 0.4rem;
}


/* ---------------------------------------------------------
   PAGE HERO
   --------------------------------------------------------- */

.page-hero {
  padding: 5rem 7%;

  background: var(--cream);

  border-bottom: 2px solid var(--black);
}

.page-hero-inner {
  max-width: var(--max-width);

  margin: 0 auto;
}

.page-hero h1 {
  font-size: clamp(2.8rem, 6vw, 6rem);

  line-height: 1.15;

  margin-bottom: 1rem;
}

.page-hero p {
  max-width: 750px;

  font-size: 1.15rem;
}


/* ---------------------------------------------------------
   CONTENT
   --------------------------------------------------------- */

.content {
  max-width: 900px;

  margin: 0 auto;
}

.content h2 {
  font-size: 2rem;

  margin-top: 3rem;
}

.content h3 {
  font-size: 1.4rem;

  margin-top: 2rem;
}

.content p,
.content li {
  font-size: 1.05rem;

  line-height: 1.7;
}

.content ul,
.content ol {
  padding-left: 1.5rem;
}


/* ---------------------------------------------------------
   PROJECTS
   --------------------------------------------------------- */

.project-meta {
  display: flex;

  flex-wrap: wrap;

  gap: 0.75rem;

  margin: 1.5rem 0 2rem;
}

.project-status {
  display: inline-block;

  padding: 0.45rem 0.75rem;

  border: 2px solid currentColor;

  font-family: "Retro Mono Wide", "Courier New", monospace;

  font-size: 0.7rem;

  text-transform: uppercase;
}

.project-section {
  padding: 4rem 7%;
}

.project-section-inner {
  max-width: 900px;

  margin: 0 auto;
}


/* ---------------------------------------------------------
   NEWSROOM
   --------------------------------------------------------- */

.news-list {
  max-width: 900px;

  margin: 0 auto;

  display: grid;

  gap: 1rem;
}

.news-item {
  border-top: 2px solid currentColor;

  padding: 1.5rem 0;

  text-decoration: none;

  display: grid;

  grid-template-columns: 180px 1fr;

  gap: 2rem;
}

.news-date {
  font-family: "Retro Mono Wide", "Courier New", monospace;

  font-size: 0.8rem;

  text-transform: uppercase;

  opacity: 0.7;
}

.news-item h2 {
  font-size: 1.6rem;

  margin-bottom: 0.5rem;
}


/* ---------------------------------------------------------
   DOCUMENTS
   --------------------------------------------------------- */

.document-list {
  max-width: 900px;

  margin: 0 auto;

  display: grid;

  gap: 1rem;
}

.document-card {
  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 2rem;

  padding: 1.25rem 1.5rem;

  border: 2px solid currentColor;

  text-decoration: none;

  transition: transform 0.15s ease;
}

.document-card:hover {
  transform: translateY(-2px);
}

.document-type {
  font-family: "Retro Mono Wide", "Courier New", monospace;

  font-size: 0.7rem;

  text-transform: uppercase;

  opacity: 0.65;
}


/* ---------------------------------------------------------
   TEAM
   --------------------------------------------------------- */

.team-grid {
  max-width: var(--max-width);

  margin: 0 auto;

  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 1.25rem;
}

.team-card {
  border: 2px solid currentColor;

  padding: 1.5rem;
}

.team-card h2 {
  font-size: 1.4rem;

  margin-bottom: 0.3rem;
}

.team-email {
  display: inline-block;
  margin-top: 1rem;
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.team-role {
  font-family: "Retro Mono Wide", "Courier New", monospace;

  font-size: 0.7rem;

  text-transform: uppercase;

  opacity: 0.7;
}


/* ---------------------------------------------------------
   FOOTER
   --------------------------------------------------------- */

.site-footer {
  background: var(--black);

  color: var(--white);

  padding: 4rem 7% 1.5rem;
}

.footer-inner {
  max-width: var(--max-width);

  margin: 0 auto;

  display: grid;

  grid-template-columns:
    1fr 2fr;

  gap: 4rem;
}

.footer-logo {
  font-family: "Retro Mono Wide", "Courier New", monospace;

  font-size: 2rem;

  text-decoration: none;
}

.footer-brand p {
  max-width: 300px;

  opacity: 0.7;
}

.footer-navigation {
  display: grid;

  grid-template-columns:
    repeat(5, 1fr);

  gap: 1.5rem;
}

.footer-column {
  display: flex;

  flex-direction: column;

  gap: 0.5rem;
}

.footer-column h3 {
  font-size: 0.85rem;

  margin-bottom: 0.5rem;

  opacity: 0.65;
}

.footer-column a {
  text-decoration: none;

  font-size: 0.9rem;
}

.footer-column a:hover {
  text-decoration: underline;
}

.footer-bottom {
  max-width: var(--max-width);

  margin: 3rem auto 0;

  padding-top: 1rem;

  border-top: 1px solid rgba(255, 255, 255, 0.25);

  font-size: 0.8rem;

  opacity: 0.65;
}


/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */

@media (max-width: 1000px) {

  .project-grid,
  .news-grid,
  .link-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-navigation {
    grid-template-columns: repeat(3, 1fr);
  }

  .about-layout {
    grid-template-columns: 1fr;

    gap: 2rem;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


@media (max-width: 700px) {

  .site-nav {
    min-height: 68px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;

    top: 100%;
    left: 0;
    right: 0;

    display: none;

    flex-direction: column;

    align-items: stretch;

    gap: 0;

    background: var(--cream-light);

    border-bottom: 2px solid var(--black);
  }

  .nav-links.nav-open {
    display: flex;
  }

  .nav-links a {
    padding: 1rem 7%;

    border-top: 1px solid rgba(0, 0, 0, 0.15);
  }

  .nav-links a::after {
    display: none;
  }

  .hero {
    min-height: auto;

    padding: 4.5rem 6%;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 13vw, 4.5rem);
  }

  .hero p {
    font-size: 1.05rem;
  }

  .section {
    padding: 4rem 6%;
  }

  .page-hero {
    padding: 4rem 6%;
  }

  .project-grid,
  .news-grid,
  .link-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .news-item {
    grid-template-columns: 1fr;

    gap: 0.5rem;
  }

  .document-card {
    align-items: flex-start;

    flex-direction: column;

    gap: 0.75rem;
  }

  .footer-navigation {
    grid-template-columns: repeat(2, 1fr);
  }
}


@media (max-width: 450px) {

  .footer-navigation {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;

    align-items: stretch;
  }

  .hero-actions .button {
    text-align: center;
  }
}
