/* AAF CONSOLIDATED STYLES
  Organized for: Performance, Scannability, and Mobile-First Responsiveness
*/

:root {
  /* Palette */
  --color-neon-yellow: #EEFF40; /* rgb(238, 255, 64) */
  --color-graphite: #2A2A2A; /* rgb(42, 42, 42) */
  --color-gold: #BD912D; /* rgb(189, 145, 45) */
  --color-scarlet: #DE3037; /* rgb(222, 48, 55) */
  --color-silver: #CBCBCB; /* rgb(203, 203, 203) */
  --color-white: #FFFFFF; /* rgb(255, 255, 255) */

  /* Opacities */
  --white-10: rgba(255, 255, 255, 0.1);

  /* Fonts */
  --font-heading: 'Oswald', 'Impact', sans-serif;
  --font-body: 'Syne', 'Helvetica Neue', sans-serif;
}

/* --- Base Resets --- */
* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

/* The background layer container */
.bg-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; 
  z-index: -1;
  pointer-events: none;
  overflow: hidden;

  background-image: url('./assets/AAF_SecondaryLogo.svg');
  background-repeat: no-repeat;
  
  background-position: 80% 50px; 
  
  background-size: 300vw auto; 
  
  opacity: 0.05;

  filter: invert(1);
  
  
  
  
  /* position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  overflow: hidden; */

  /* background-image: 
    url('./assets/spray-accent-4.png'), 
    url('./assets/spray-accent-2.png'), 
    url('./assets/spray-accent-3.png');
  background-repeat: no-repeat;
  background-size: 550px, 350px, 450px;
  background-attachment: scroll; */

  /* For Accent 1 (Left): 
     We use min(0%, calc(50% - 700px)). 
     This stays at 0% (the edge) as long as 0% is further left than the text boundary.
     
     For Accents 2 & 3 (Right): 
     We use max(100%, calc(50% + 700px)). 
     This stays at 100% (the edge) until the screen shrinks, then it anchors to the center offset.
  */
  /* background-position:  */
  /*  min(-90px, calc(50% - 600px)) 100px,            /* Accent 1 */
  /*  max(calc(100% + 50px), calc(50% + 550px)) 150px,  /* Accent 2 */
  /*  max(calc(100% + 050px), calc(50% + 700px)) 1000px; /* Accent 3 */
    
  /* opacity: 0.7; */
}

/* Ensure the body anchors the layer */
body {
  position: relative;
}

/* Mobile: Simplified and centered-ish for small screens */
/* @media (max-width: 767px) {
  .spray-bg-layer {
    background-image: url('./assets/spray-accent-4.png'),
    url('./assets/spray-accent-2.png'),
    url('./assets/spray-accent-3.png');
    /* On mobile, let it peek in from the top left slightly more */
    /*background-position: calc(0% - 175px) -90px, calc(100% + 115px) 20px, calc(100% + 140px) 750px;
    background-size: 240px, 180px, 220px;
  }
} */

body {
  margin: 0;
  background-color: var(--color-graphite);
  color: var(--color-white);
  font-family: var(--font-body);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  margin: 0;
  text-transform: uppercase;
  line-height: 1.1;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

/* --- Layout Containers --- */
.container {
  width: 100%;
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.max-w-md {
  max-width: 28rem;
}

.max-w-lg {
  max-width: 40rem;
}

.section {
  padding: 3rem 0;
}

.divider {
  border: 0;
  border-top: 1px solid var(--white-10);
  margin: 0;
}

/* --- Global Utilities --- */
.text-acid {
  color: var(--color-neon-yellow);
}

.text-muted {
  color: var(--color-silver);
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.italic {
  font-style: italic;
}

.underline-link {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--color-silver);
}

.underline-link:hover {
  color: var(--color-white);
  text-decoration-color: var(--color-white);
}

.section-label {
  color: var(--color-silver);
  margin-bottom: 2rem;
  letter-spacing: 0.2em;
  font-size: 0.875rem;
}

/* --- Navigation & Header --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: rgba(42, 42, 42, 0.8);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  height: 70px;
  display: flex;
  align-items: center;
}

.nav-container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-img {
  height: 1.75rem;
  width: auto;
  filter: invert(1);
  opacity: 0.9;
  display: block;
}

.nav-links {
  display: none;
}

/* Hidden on mobile */

/* --- Animated Hamburger --- */
.menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 101;
}

.menu-btn span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--color-white);
  border-radius: 6px;
  transition: all 0.3s ease-in-out;
}

.menu-btn.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.menu-btn.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* --- Mobile Menu Dropdown --- */
.mobile-menu {
  position: absolute;
  top: 70px;
  left: 0;
  width: 100%;
  background-color: var(--color-graphite);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.open {
  max-height: 300px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.mobile-menu a {
  display: block;
  font-size: 1.25rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--white-10);
  color: var(--color-silver);
}

/* --- Hero Section --- */
main {
  padding-top: 70px;
  flex: 1;
}

.hero-img {
  width: 100%;
  max-width: 300px;
  height: auto;
  filter: invert(1);
  margin-bottom: 2rem;
}

.hero-content {
  max-width: 600px;
  margin: 0 auto;
}

.hero-text {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--color-white);
}

/* --- List Items & Badges --- */
.list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--white-10);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.list-item h3 {
  font-size: 1.25rem;
  color: var(--color-white);
}
.list-item-header {
  display: flex; align-items: center; margin-bottom: 0.5rem;
}

.list-item:hover .list-item-arrow {
  color: var(--color-neon-yellow);
  transform: translateX(5px);
}

.list-item-arrow {
  transition: color 0.2s ease, transform 0.2s ease;
}

.badge {
  font-family: var(--font-body);
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 2px;
  margin-left: 0.5rem;
  vertical-align: middle;
  letter-spacing: 0.05em;
}

.badge.open {
  background: rgba(238, 255, 64, 0.15);
  color: var(--color-neon-yellow);
}

.badge.soon {
  color: var(--color-silver);
}

.list-item-desc {
  font-size: 0.875rem;
  max-width: 400px;
  margin: 0.5rem 0 0 0;
}

/* --- Forms & Inputs --- */
.form-group {
  margin-bottom: 2rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  color: var(--color-silver);
  margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--color-white);
  padding: 0.75rem 0;
  font-family: var(--font-body);
  font-size: 1rem;
  border-radius: 0;
  outline: none;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--color-neon-yellow);
}

.btn-primary {
  width: 100%;
  background-color: var(--color-neon-yellow);
  color: var(--color-graphite);
  font-family: var(--font-body);
  font-weight: 600;
  padding: 1rem;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: opacity 0.2s;
}

.btn-primary:hover {
  opacity: 0.8;
}

.back-link {
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.form-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.form-intro {
  margin-bottom: 2rem;
}

.required-star {
  color: var(--color-scarlet);
}

.input-hint {
  font-size: 0.75rem;
  color: var(--color-silver);
  margin-top: 0.5rem;
}

/* --- Newsletter --- */
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.newsletter-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem;
  color: white;
  font-family: var(--font-body);
  font-size: 1rem;
  width: 100%;
}

.newsletter-desc {
  max-width: 400px;
  margin: 0 auto;
}

.newsletter-status {
  margin-top: 1rem;
  font-size: 0.9rem;
}

/* --- FAQ Accordion --- */
.faq-question {
  font-size: 1.125rem;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--color-silver);
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding-top: 0.75rem;
  padding-bottom: 1rem;
}

.faq-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 1rem;
  line-height: 1;
  transform-origin: center;
  color: var(--color-silver);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  /* color: var(--color-neon-yellow); */
}

/* --- Manifesto / About --- */
.manifesto-container {
  font-size: 1.125rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* --- Footer --- */
footer {
  border-top: 1px solid var(--white-10);
  margin-top: 3rem;
  padding: 3rem 0;
  font-size: 0.875rem;
  color: var(--color-silver);
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  text-align: center;
}

.footer-socials {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 0.5rem;
}

.footer-socials a {
  font-size: 1.5rem;
  color: var(--color-silver);
}

.footer-socials a:hover {
  color: var(--color-neon-yellow);
}

.footer-links {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  justify-content: center;
}

.footer-links a {
  padding: 0.5rem 0;
}

.footer-links a:hover {
  color: var(--color-white);
  /* text-decoration: underline; */
}

.footer-copy {
  font-size: 0.75rem;
}

/* --- Animation Utilities --- */
.spinner {
  border: 2px solid rgba(42, 42, 42, 0.3);
  border-top: 2px solid var(--color-graphite);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  animation: spin 0.6s linear infinite;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* --- Desktop Overrides (min-width: 768px) --- */
@media (min-width: 768px) {
  header {
    height: 80px;
  }

  .logo-img {
    height: 2rem;
  }

  .menu-btn {
    display: none !important;
  }

  .mobile-menu {
    display: none !important;
  }

  .nav-links {
    display: flex;
    gap: 2.5rem;
  }

  .nav-links a {
    font-size: 0.9rem;
    color: var(--color-silver);
  }

  .nav-links a:hover,
  .nav-links a.active {
    color: var(--color-white);
  }

  main {
    padding-top: 80px;
  }

  .section {
    padding: 5rem 0;
  }

  .hero-img {
    max-width: 40rem;
    margin-bottom: 3rem;
  }

  .list-item h3 {
    font-size: 1.75rem;
  }

  .btn-primary {
    width: auto;
    padding: 0.75rem 2.5rem;
  }

  .newsletter-form {
    flex-direction: row;
    max-width: 500px;
    margin: 1.5rem auto 0;
  }

  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }

  .footer-socials {
    margin-bottom: 0;
    order: 2;
  }

  .footer-links {
    order: 1;
  }
}