/* ======================================================
   NEXA — SELF HOSTED FONTS
   ====================================================== */

@font-face {
  font-family: 'Nexa';
  src: url('../fonts/Nexa-ExtraLight.woff2') format('woff2'),
       url('../fonts/Nexa-ExtraLight.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Nexa';
  src: url('../fonts/Nexa-Heavy.woff2') format('woff2'),
       url('../fonts/Nexa-Heavy.woff') format('woff');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
/* ======================================================
   INFINITO ALLIANCE — CORE VARIABLES
   ====================================================== */

:root {
  /* Backgrounds */
  --bg-dark: #111031;
  --bg-light: #ffffff;

  /* Brand colors */
  --color-primary: #0c1b40;
  --color-secondary: #2c4e82;
  --color-neutral-light: #c7c7c7;
  --color-neutral-mid: #8e9090;

  /* Typography */
  --font-heavy: 'Nexa', Arial, sans-serif;
  --font-light: 'Nexa', Arial, sans-serif;

  /* Layout */
  --container-width: 1200px;
  --section-padding-desktop: 96px;
  --section-padding-mobile: 64px;
}

/* ======================================================
   RESET & BASE
   ====================================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-light);
  background-color: var(--bg-light);
  color: var(--color-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ======================================================
   LAYOUT HELPERS
   ====================================================== */

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-padding-desktop) 0;
  scroll-margin-top: 96px;
}

.section-dark {
  background-color: var(--bg-dark);
  color: #ffffff;
}

.section-light {
  background-color: var(--bg-light);
  color: var(--color-primary);
}

/* ======================================================
   HEADER
   ====================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 72px;
}

.logo {
  font-family: var(--font-heavy);
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #ffffff;
  font-size: 0.9rem;
}

.lang-toggle button {
  background: none;
  border: none;
  color: var(--color-neutral-light);
  font-family: var(--font-heavy);
  cursor: pointer;
  font-size: 0.75rem;
}

.lang-toggle button:hover {
  color: #ffffff;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  width: 32px;
  height: 28px;
  padding: 2px;
  border-radius: 4px;
  cursor: pointer;
  color: #ffffff;
  overflow: hidden;
  position: relative;
}

.menu-toggle:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.menu-toggle .menu-bar {
  position: absolute;
  left: 50%;
  width: 18px;
  height: 2px;
  background-color: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
  transform: translateX(-50%);
}

.menu-toggle .menu-bar:nth-of-type(1) {
  top: 8px;
}

.menu-toggle .menu-bar:nth-of-type(2) {
  top: 50%;
  transform: translate(-50%, -50%);
}

.menu-toggle .menu-bar:nth-of-type(3) {
  bottom: 8px;
}

.site-header.nav-open .menu-toggle .menu-bar:nth-of-type(1) {
  top: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}

.site-header.nav-open .menu-toggle .menu-bar:nth-of-type(2) {
  opacity: 0;
}

.site-header.nav-open .menu-toggle .menu-bar:nth-of-type(3) {
  bottom: auto;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
}

.main-nav {
  display: flex;
  gap: 32px;
}

.main-nav a {
  font-family: var(--font-heavy);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-neutral-light);
  text-decoration: none;
}

.main-nav a:hover {
  color: #ffffff;
}

.logo img {
  display: block;
}

.logo-nav img {
  height: 24px;
}

.logo-hero {
  margin-bottom: 40px;
}

.logo-hero img {
  margin: 0 auto;
}

.hero-logo-img {
  height: calc(72px * 2.5); /* 150% larger than original 72px lockup */
  display: block;
}


/* ======================================================
   TYPOGRAPHY
   ====================================================== */

h1,
h2,
h3 {
  font-family: var(--font-heavy);
  font-weight: 800;
  line-height: 1.2;
}

h1 {
  font-size: 3rem;
  margin-bottom: 24px;
}

h2 {
  font-size: 2.2rem;
  margin-bottom: 48px;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 16px;
}

p {
  font-family: var(--font-light);
  font-weight: 300;
  color: inherit;
}

/* ======================================================
   HERO
   ====================================================== */

#hero {
  text-align: center;
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

#hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 160px;
  background: linear-gradient(180deg, rgba(17, 16, 49, 0) 0%, rgba(17, 16, 49, 0.95) 100%);
  pointer-events: none;
}

.hero-content {
  max-width: 820px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  position: relative;
  z-index: 1;
}

.hero-subtitle {
  color: var(--color-neutral-light);
  font-size: 1.1rem;
  margin-bottom: 40px;
}

.hero-content.hero-loaded {
  opacity: 1;
  transform: translateY(0);
}

/* ======================================================
   BUTTONS
   ====================================================== */

.btn-primary {
  display: inline-block;
  padding: 14px 32px;
  border: 1px solid var(--color-secondary);
  color: #ffffff;
  text-decoration: none;
  font-family: var(--font-heavy);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-primary:hover {
  background-color: var(--color-secondary);
  color: #ffffff;
}

/* ======================================================
   PILLARS
   ====================================================== */

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.pillar p {
  color: var(--color-neutral-light);
}

.pillar {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.pillar:hover,
.pillar:focus-within {
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-4px);
}

.pillar-list {
  margin-top: 24px;
  padding-left: 18px;
}

.pillar-list li {
  font-family: var(--font-light);
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-neutral-light);
  margin-bottom: 10px;
}

/* ======================================================
   PRESENCE
   ====================================================== */

.presence-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.presence-item .flag {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 16px;
  opacity: 0.85;
}

.presence-item p {
  color: var(--color-neutral-mid);
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ======================================================
   TESTIMONIALS
   ====================================================== */

.testimonial-carousel {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
}

.testimonial {
  display: none;
  text-align: center;
}

.testimonial.active {
  display: block;
}

.testimonial p {
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-neutral-light);
}

.testimonial-footnote {
  margin-top: 32px;
  font-size: 0.75rem;
  color: var(--color-neutral-mid);
  text-align: center;
}

/* ======================================================
   CLIENTS
   ====================================================== */

.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 40px;
  align-items: center;
}

.clients-grid img {
  max-width: 100%;
  filter: grayscale(100%);
  opacity: 0.7;
}

.track-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  text-align: center;
}

.track-item h3 {
  font-size: 2.4rem;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.track-item p {
  color: var(--color-neutral-mid);
  font-size: 0.9rem;
}

/* ======================================================
   CONTACT
   ====================================================== */

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

.contact-content p {
  margin-bottom: 24px;
  color: var(--color-neutral-light);
}

/* ======================================================
   FOOTER
   ====================================================== */

.site-footer {
  background-color: var(--bg-dark);
  padding: 32px 0;
  text-align: center;
}

.site-footer p {
  font-size: 0.75rem;
  color: var(--color-neutral-mid);
}

/* ======================================================
   RESPONSIVE
   ====================================================== */

@media (max-width: 900px) {
  h1 {
    font-size: 2.4rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .pillars-grid,
  .presence-grid,
  .track-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .section {
    padding: var(--section-padding-mobile) 0;
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
  }

  .menu-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-left: auto;
  }

  .main-nav,
  .lang-toggle {
    width: 100%;
  }

  .main-nav {
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 16px;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    transform: translateY(-10px);
    transition: max-height 0.25s ease, opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  }

  .lang-toggle {
    display: flex;
    justify-content: flex-start;
    gap: 16px;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    transform: translateY(-10px);
    transition: max-height 0.25s ease, opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  }

  .site-header.nav-open .main-nav,
  .site-header.nav-open .lang-toggle {
    max-height: 400px;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}
