/* ───── Quicksand ───── */
@font-face {
  font-family: 'Quicksand';
  src: url('./assets/fonts/Quicksand.ttf') format('truetype');
  font-style: normal;
  font-display: swap;
}

/* ───── MomoTrustDisplay ───── */
@font-face {
  font-family: 'MomoTrustDisplay';
  src: url('./assets/fonts/MomoTrustDisplay.ttf') format('truetype');
  font-style: normal;
  font-display: swap;
}

/* ───── worksans ───── */
@font-face {
  font-family: 'Work Sans';
  src: url('./assets/fonts/WorkSans.ttf') format('truetype');
  font-style: normal;
  font-display: swap;
}

:root {
  --dark-blue: #091d31;
  --navy: #17365D;
  --blue: #0c2c56;
  --red: #C9112B;
  --white: #ffffff;
  --white-light: #fff;
  --gray: #f5f2e6;
  --gray-2: #cccccc;
  --gold: #e8c96d;
  --Maroon: #891122;

  --font-heading: 'MomoTrustDisplay', sans-serif;
  --font-heading-2: 'Work Sans', sans-serif;
  --font-body: 'Quicksand', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--white);
  background-color: var(--red);
}

html.no-scroll,
body.no-scroll {
  overflow: hidden;
  height: 100%;
}

a,
img,
span {
  display: inline-block;
}

img {
  width: 100%;
  display: block;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: var(--muted);
  display: inline-block;
}

.container {
  max-width: 1280px;
  width: 95%;
  margin: 0 auto;
}

header,
section {
  scroll-margin-top: 83.2px;
}

.cta-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cta {
  background: linear-gradient(135deg, #e01a33 0%, var(--red) 45%, #7f0d1a 100%);
  border: 2px solid #b30f25;
  color: var(--white);

  font-size: 1.5rem;
  font-weight: 800;
  font-family: var(--font-heading-2);

  display: inline-block;
  width: 12rem;
  height: 3.2rem;
  display: flex;
  justify-content: center;
  align-items: center;

  transition:
    background 0.2s ease-out,
    transform 0.2s ease-out,
    box-shadow 0.2s ease-out;

  text-transform: uppercase;
  text-align: center;
}

.cta:hover {
  background: linear-gradient(135deg, #f0223f 0%, #cf102c 45%, #8f0f1f 100%);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.cta:hover {
  background: linear-gradient(135deg, #f4e6bd, #d2bb7d 45%, #a48c55 100%);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.cta:active {
  transform: translateY(0);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.3);
}

.cta:focus-visible,
.nav-text-link:focus-visible,
.footer-link:focus-visible,
.footer-social-link:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.cta-secondary {
  padding: 0.5rem 1.75rem;
  height: auto;
  width: auto;
}

.section-title {
  font-size: clamp(2.5rem, 1rem + 3vw, 4rem);

  font-family: var(--font-heading-2);
  letter-spacing: -1px;
  font-weight: 900;
  line-height: 0.9;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.section-title-sec {
  font-size: clamp(1.75rem, 1rem + 2vw, 2.6rem);
  font-family: var(--font-heading-2);
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  text-align: center;
  color: var(--white);
}

.section-desc {
  line-height: 1.8;
  font-size: 1.125rem;
  max-width: 64ch;
  font-weight: 500;
}

.section-desc + .section-desc {
  margin-top: 1.5rem;
}

.gold {
  color: var(--gold);
}

label,
input,
button {
  display: block;
  width: 100%;
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.skip-to-content {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  background: var(--gold);
  color: var(--blue);
  padding: 0.75rem 1rem;
  z-index: 101;
  font-weight: 700;
}

.skip-to-content:focus-visible {
  left: 0.5rem;
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.logo-link:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* margin top to facilitate the navbar */
.mtop-fac-nav {
  margin-top: calc(2rem + 56px);
}

/* Legal pages */
.page-hero {
  background:
    linear-gradient(
      rgb(9, 29, 49, 0.9),
      rgb(9, 29, 49, 0.75),
      rgb(9, 29, 49, 0.75)
    ),
    url('./assets/img/background-1.webp');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;

  padding: calc(6rem + 56px) 1rem 4rem 1rem;
}

.page-hero .container {
  display: flex;
  justify-content: center;
}

.page-hero-title {
  font-size: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
  font-family: var(--font-heading-2);
  letter-spacing: -1px;
  font-weight: 900;
  text-transform: uppercase;
  text-align: center;
}


/* Issues Cards (2-column dark-blue cards with white text) */
.issues-cards__container {
  max-width: 980px;
  margin: 0 auto;
}

.issues-cards__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.issue-card {
  background: var(--dark-blue, #0b1f3a);
  color: #fff;
  border-radius: 14px;
  padding: 1.25rem 1.25rem 1.1rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.issue-card h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.05rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.issue-card p {
  margin: 0;
  opacity: 0.92;
  line-height: 1.45;
  font-size: 0.95rem;
}

.issues-cards__cta {
  margin-top: 1.25rem;
  display: flex;
  justify-content: flex-start;
}

/* Mobile: single column */
@media (max-width: 760px) {
  .issues-cards__grid {
    grid-template-columns: 1fr;
  }
}

.legal-content {
  background-color: var(--blue);
  padding: clamp(2rem, 1rem + 2vw, 3.5rem) 0 4rem 0;
}

#issues.legal-content {
  background-color: var(--red);
}

.legal-content .container {
  display: grid;
  gap: 2rem;
  max-width: 900px;
}

.legal-intro {
  line-height: 1.8;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--white);
}

.legal-section {
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(232, 201, 109, 0.25);
  padding: 1.5rem;
  border-radius: 12px;
}

#issues .legal-section {
  background-color: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(232, 201, 109, 0.1);
}

.legal-section h2 {
  font-size: clamp(1.5rem, 1.1rem + 1vw, 2rem);
  font-family: var(--font-heading-2);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.legal-section p,
.legal-section li {
  line-height: 1.7;
  font-size: 1.05rem;
  color: var(--white);
}

.legal-section ul {
  list-style: disc;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.5rem;
}

.legal-section + .legal-section {
  margin-top: 0.5rem;
}

.banner {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;

  font-family: var(--font-heading-2);
  background-color: var(--white);
  color: var(--navy);
}

.banner-title-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.banner-title-container img {
  max-width: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
}

.banner-title {
  line-height: 1;
  font-size: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
}

@media (max-width: 720px) {
  .legal-section {
    padding: 1.25rem;
  }
}

@media (max-width: 1024px) {
  header,
  section {
    scroll-margin-top: 68.84px;
  }
}

@media (max-width: 920px) {
  .section-desc {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .cta-container {
    justify-content: center;
  }
}

@media (max-width: 540px) {
  .cta-container {
    flex-direction: column;
    align-items: center;
  }

  .banner {
    gap: 0.25rem;
    padding: 0.5rem 1rem;
  }

  .banner-title-container {
    gap: 0;
  }

  .banner-title-container img {
    max-width: 1.25rem;
  }

  .banner-title {
    font-size: 1.25rem;
  }
}

/* Homepage Issues preview (scoped: does NOT affect legal pages) */
#issues.issues-preview {
  position: relative;
}

#issues.issues-preview .issues-preview-container {
  position: relative;
  gap: 0.25rem;
}

/* Bottom fade overlay */
#issues.issues-preview .issues-preview-fade {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;

  background: linear-gradient(
    to bottom,
    rgba(9, 29, 49, 0.4) 0%,
    rgba(9, 29, 49, 0.4) 8%,
    rgba(9, 29, 49, 0.42) 16%,
    rgba(9, 29, 49, 0.46) 24%,
    rgba(9, 29, 49, 0.52) 32%,
    rgba(9, 29, 49, 0.6) 40%,
    rgba(9, 29, 49, 0.7) 48%,
    rgba(9, 29, 49, 0.8) 56%,
    rgba(9, 29, 49, 0.88) 64%,
    rgba(9, 29, 49, 0.93) 72%,
    rgba(9, 29, 49, 0.96) 80%,
    rgba(9, 29, 49, 0.99) 90%,
    rgba(9, 29, 49, 1) 100%
  );

  pointer-events: none;
  border-radius: 12px;
}

/* CTA sits above the fade */
#issues.issues-preview .issues-preview-cta {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

@media (max-width: 380px) {
  #issues.issues-preview .issues-preview-cta {
    width: 80%;
  }
}
