/* ==========================================================================
   FXSP - flat site stylesheet
   Palette: brand navy + steel blue (from logo), Swiss-minimal layout
   ========================================================================== */

:root {
  --navy-950: #0b1426;
  --navy-900: #111c33;
  --navy-800: #1a2947;
  --navy-700: #24365c;
  --steel-600: #46618c;
  --steel-500: #54739f;
  --steel-300: #9db1cc;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --surface: #ffffff;
  --surface-alt: #f5f7fa;
  --border: #e2e8f0;
  --text: #1e293b;
  --text-muted: #55657a;
  --radius: 14px;
  --shadow-sm: 0 1px 3px rgba(17, 28, 51, 0.08);
  --shadow-md: 0 8px 24px rgba(17, 28, 51, 0.10);
  --shadow-lg: 0 20px 50px rgba(11, 20, 38, 0.25);
  --container: 1140px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--surface);
}

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

h1, h2, h3, h4 {
  line-height: 1.2;
  color: var(--navy-900);
  margin: 0 0 0.75rem;
  font-weight: 600;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--blue-600);
}

a:hover {
  color: var(--blue-700);
}

:focus-visible {
  outline: 3px solid var(--blue-600);
  outline-offset: 2px;
  border-radius: 4px;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy-900);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 300;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
  color: #fff;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  min-height: 48px;
  border-radius: 10px;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease,
    color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  touch-action: manipulation;
}

.btn svg {
  flex: none;
}

.btn-primary {
  background: var(--blue-600);
  color: #fff;
}

.btn-primary:hover {
  background: var(--blue-700);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: #fff;
  color: #fff;
}

.btn-ghost {
  border-color: var(--border);
  color: var(--navy-900);
  background: #fff;
}

.btn-ghost:hover {
  border-color: var(--steel-500);
  color: var(--navy-900);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
}

.brand img {
  height: 44px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 0.9rem;
  min-height: 44px;
  border-radius: 8px;
  color: var(--navy-800);
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.main-nav a:hover {
  background: var(--surface-alt);
  color: var(--navy-900);
}

.main-nav .nav-cta {
  margin-left: 0.5rem;
  background: var(--blue-600);
  color: #fff;
  font-weight: 600;
  padding: 0.6rem 1.2rem;
}

.main-nav .nav-cta:hover {
  background: var(--blue-700);
  color: #fff;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  margin-left: 0.75rem;
  flex: none;
}

.lang-switch a,
.lang-switch span {
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-muted);
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}

.lang-switch .active {
  background: var(--navy-900);
  color: #fff;
}

.lang-switch a:hover {
  background: var(--surface-alt);
  color: var(--navy-900);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.55rem;
  cursor: pointer;
  color: var(--navy-900);
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(88vh, 780px);
  padding: 6rem 0;
  background: linear-gradient(rgba(11, 20, 38, 0.72), rgba(17, 28, 51, 0.82)),
    url("../img/hero-sao-paulo.jpg") center 30% / cover no-repeat;
  color: #fff;
}

.hero .container {
  max-width: 880px;
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel-300);
  margin-bottom: 1.5rem;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.hero p.lede {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: #d7e0ee;
  max-width: 42rem;
  margin: 0 auto 2.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
  padding: 5.5rem 0;
}

.section-alt {
  background: var(--surface-alt);
}

.section-eyebrow {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel-600);
  margin-bottom: 0.75rem;
}

.section h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  letter-spacing: -0.01em;
  max-width: 34ch;
}

.section-intro {
  color: var(--text-muted);
  font-size: 1.08rem;
  max-width: 62ch;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.split-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  width: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 2;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.9rem;
}

.check-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.check-list svg {
  flex: none;
  margin-top: 0.2rem;
  color: var(--blue-600);
}

/* Dark mission band */

.band-dark {
  background: linear-gradient(150deg, var(--navy-950), var(--navy-800));
  color: #cfd9e8;
  padding: 5.5rem 0;
}

.band-dark h2,
.band-dark h3 {
  color: #fff;
}

.band-dark .section-eyebrow {
  color: var(--steel-300);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.3);
}

.card .icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(84, 115, 159, 0.25);
  color: #aec4e0;
  margin-bottom: 1.25rem;
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

.card p {
  color: #b9c6d9;
  margin-bottom: 0.75rem;
}

.card p:last-child {
  margin-bottom: 0;
}

/* Light feature cards (privacy page) */

.card-light {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.card-light h3 {
  font-size: 1.15rem;
}

.card-light .icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #e8eef9;
  color: var(--steel-600);
  margin-bottom: 1rem;
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 3rem;
  align-items: start;
  margin-top: 3rem;
}

.contact-info {
  display: grid;
  gap: 1rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
}

.contact-item .icon-badge {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #e8eef9;
  color: var(--steel-600);
}

.contact-item h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.contact-item p {
  margin: 0;
  color: var(--text-muted);
}

.contact-item a {
  text-decoration: none;
  font-weight: 500;
}

.contact-item a:hover {
  text-decoration: underline;
}

.contact-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-field {
  margin-bottom: 1.25rem;
}

.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.4rem;
  color: var(--navy-800);
}

.form-field .req {
  color: #c0392b;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  min-height: 48px;
  font: inherit;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-alt);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--blue-600);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0.75rem 0 0;
}

.form-status {
  display: none;
  margin: 1rem 0 0;
  padding: 0.85rem 1.1rem;
  border-radius: 10px;
  font-weight: 500;
}

.form-status.success {
  display: block;
  background: #e8f6ee;
  border: 1px solid #b4dfc6;
  color: #14603a;
}

.form-status.error {
  display: block;
  background: #fdeeee;
  border: 1px solid #f2c5c2;
  color: #8f2721;
}

.btn:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
  box-shadow: none;
}

/* Honeypot field: visually removed, still present for bots */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.map-embed {
  margin-top: 3rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.map-embed iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--navy-950);
  color: #b9c6d9;
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.site-footer h4 {
  color: #fff;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.site-footer a {
  color: #b9c6d9;
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-partner {
  background: #fff;
  border-radius: 10px;
  padding: 0.9rem;
  display: inline-block;
}

.footer-partner img {
  max-width: 260px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.5rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
}

.footer-bottom nav {
  display: flex;
  gap: 1.5rem;
}

/* --------------------------------------------------------------------------
   Terms popup
   -------------------------------------------------------------------------- */

.terms-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(11, 20, 38, 0.78);
  backdrop-filter: blur(6px);
}

.terms-overlay.open {
  display: flex;
}

.terms-dialog {
  background: #fff;
  border-radius: 16px;
  max-width: 620px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.terms-dialog img.terms-logo {
  height: 56px;
  width: auto;
  margin: 0 auto 1.5rem;
}

.terms-dialog h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.terms-dialog p {
  color: var(--text-muted);
  text-align: left;
}

.terms-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.75rem;
}

body.terms-locked {
  overflow: hidden;
}

body.terms-locked .page-wrap {
  filter: blur(4px);
  pointer-events: none;
  user-select: none;
}

/* --------------------------------------------------------------------------
   Prose (privacy policy)
   -------------------------------------------------------------------------- */

.page-hero {
  background: linear-gradient(rgba(11, 20, 38, 0.78), rgba(17, 28, 51, 0.85)),
    url("../img/brazil-skyline.jpg") center / cover no-repeat;
  color: #fff;
  padding: 5.5rem 0;
  text-align: center;
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-bottom: 0.5rem;
}

.page-hero p {
  color: #d7e0ee;
  font-size: 1.1rem;
  margin: 0;
}

.prose {
  max-width: 760px;
  margin: 0 auto;
}

.prose h2 {
  font-size: 1.5rem;
  margin-top: 2.75rem;
}

.prose h3 {
  font-size: 1.15rem;
  margin-top: 1.75rem;
}

.prose ul {
  padding-left: 1.4rem;
  display: grid;
  gap: 0.5rem;
  margin: 0 0 1rem;
}

.prose .notice {
  background: var(--surface-alt);
  border-left: 4px solid var(--steel-600);
  border-radius: 0 10px 10px 0;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}

/* --------------------------------------------------------------------------
   Reveal animation
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 980px) {
  .split,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .split-media {
    order: -1;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 1rem 1.5rem 1.5rem;
    display: none;
  }

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

  .main-nav .nav-cta {
    margin-left: 0;
    justify-content: center;
  }

  .main-nav .lang-switch {
    margin: 0.5rem 0 0;
    align-self: flex-start;
  }

  .section {
    padding: 3.75rem 0;
  }

  .band-dark {
    padding: 3.75rem 0;
  }

  .hero {
    padding: 4.5rem 0;
    min-height: 70vh;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .terms-dialog {
    padding: 1.75rem;
  }
}
