/* ==========================================================================
   USAX — Global Stylesheet
   www.usax.com
   ========================================================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #ffffff;
  background-color: #050505;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.25s ease;
}

a:hover {
  color: #ffffff;
}

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }

p {
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.75;
}

/* ---------- Landing Page — Background ---------- */
.landing-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background: #050505;
}

.landing-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Zoom in and center on the U.S. */
  transform: scale(1.35);
  transform-origin: 38% 65%;
}

/* Dark vignette overlay — heavy darkened buffer around edges */
.landing-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background:
    radial-gradient(
      ellipse 60% 50% at center 45%,
      rgba(0, 0, 0, 0.3) 0%,
      rgba(0, 0, 0, 0.7) 55%,
      rgba(0, 0, 0, 0.92) 100%
    );
}

/* ---------- Landing Page — Hero ---------- */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem;
  min-height: 100vh;
  position: relative;
}

/* Logo */
.hero-logo {
  width: clamp(180px, 22vw, 320px);
  margin-bottom: 1.75rem;
  /* mix-blend-mode: screen makes the black background transparent */
  mix-blend-mode: screen;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 40px rgba(0, 0, 0, 0.6));
}

/* Tagline row */
.tagline-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 2.25rem;
  flex-wrap: wrap;
}

.tagline {
  font-size: clamp(0.95rem, 2vw, 1.3rem);
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 0, 0, 0.7), 0 0 60px rgba(0, 0, 0, 0.4);
}

.tagline-flag {
  height: clamp(14px, 1.8vw, 22px);
  width: auto;
  vertical-align: middle;
  border-radius: 1px;
  box-shadow: 0 0 4px rgba(255,255,255,0.15);
}

/* CTA Button */
.cta-button {
  display: inline-block;
  padding: 0.9rem 2.8rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 0, 0, 0.5);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
}

.cta-button:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.6);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.08);
}

.cta-button:active {
  transform: translateY(0);
}

/* Subtitle under button */
.hero-subtitle {
  font-size: clamp(0.72rem, 1.2vw, 0.82rem);
  font-style: italic;
  color: rgba(255, 255, 255, 0.58);
  max-width: 520px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 0, 0, 0.6);
}

/* ---------- Modal Form Overlay ---------- */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: rgba(18, 18, 18, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 2.75rem 2.5rem;
  width: 100%;
  max-width: 460px;
  position: relative;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.4rem;
  cursor: pointer;
  transition: color 0.2s ease;
  line-height: 1;
}

.modal-close:hover {
  color: #ffffff;
}

.modal h2 {
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
  letter-spacing: 0.04em;
}

.modal .modal-desc {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 1.75rem;
}

/* ---------- Form Styles ---------- */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  outline: none;
  transition: border-color 0.25s ease, background 0.25s ease;
  appearance: none;
  -webkit-appearance: none;
}

.form-group input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.form-group input:focus,
.form-group select:focus {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
}

/* Custom select arrow */
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,255,255,0.5)' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-group select option {
  background: #1a1a1a;
  color: #ffffff;
}

.submit-button {
  width: 100%;
  padding: 0.8rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #050505;
  background: #ffffff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.25s ease;
  margin-top: 0.5rem;
}

.submit-button:hover {
  background: rgba(255, 255, 255, 0.88);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.12);
}

.submit-button:active {
  transform: translateY(0);
}

.submit-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Mensalis checkbox */
.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 1rem;
  cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  min-width: 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  margin-top: 2px;
  position: relative;
  transition: all 0.2s ease;
}

.form-checkbox input[type="checkbox"]:checked {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
}

.form-checkbox input[type="checkbox"]:checked::after {
  content: '\2713';
  position: absolute;
  top: -1px;
  left: 2px;
  font-size: 12px;
  color: #ffffff;
}

.form-checkbox-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.45;
  cursor: pointer;
}

/* Form success/error states */
.form-message {
  text-align: center;
  padding: 1rem;
  border-radius: 4px;
  font-size: 0.85rem;
  margin-top: 1rem;
  display: none;
}

.form-message.success {
  display: block;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: #86efac;
}

.form-message.error {
  display: block;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #fca5a5;
}

/* ---------- Footer ---------- */
.site-footer {
  text-align: center;
  padding: 2rem 1.5rem 1.5rem;
  position: relative;
  z-index: 1;
}

.footer-usa {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 0.15rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
}

.footer-texas {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 0.6rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
}

.footer-copyright {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 1rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
}

.footer-links a {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.3);
  transition: color 0.25s ease;
}

.footer-links a:hover {
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- Sub-Pages Layout ---------- */
.subpage {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.subpage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.subpage-header-logo {
  height: 22px;
  mix-blend-mode: screen;
}

.subpage-header a.back-link {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.45);
}

.subpage-header a.back-link:hover {
  color: rgba(255, 255, 255, 0.8);
}

.subpage-content {
  flex: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
  width: 100%;
}

.subpage-content h1 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.subpage-content .page-date {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 2.5rem;
}

.subpage-content h2 {
  font-size: 1.15rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  color: rgba(255, 255, 255, 0.92);
}

.subpage-content p {
  margin-bottom: 1rem;
  font-size: 0.92rem;
}

.subpage-content ul, .subpage-content ol {
  margin-bottom: 1rem;
  padding-left: 1.25rem;
}

.subpage-content li {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.4rem;
}

/* ---------- Team Page Grid ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.team-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 1.75rem;
}

.team-card h3 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.team-card .role {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.team-card p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .hero {
    padding: 1.5rem 1rem;
  }

  .modal {
    padding: 2rem 1.5rem;
  }

  .subpage-header {
    padding: 1rem 1.25rem;
  }

  .subpage-content {
    padding: 2rem 1.25rem 3rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 0.6rem;
  }
}
