/* ============================================================
   OITO-80 , global.css
   Fonte, reset, variáveis, nav, footer, botões, animações
   ============================================================ */

@font-face {
  font-family: 'OnyDisplay';
  src: url('../css/OnyDisplay-ExtraBold.otf') format('opentype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:      #012daa;
  --black:     #000000;
  --white:     #ffffff;
  --gray-f5:   #f5f5f3;
  --gray-e:    #e8e8e5;
  --gray-mid:  #999999;
  --font-display: 'OnyDisplay', 'Impact', sans-serif;
  --font-body:    'Plus Jakarta Sans', sans-serif;
  --ease:      cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --max-w:     1320px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

html {
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; }

/* ── NAVIGATION ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 76px;
  display: flex;
  align-items: center;
  padding: 0 48px;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

/* Light nav (pages with white hero) */
.nav.light-nav.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: var(--gray-e);
}

/* Dark nav (pages with image/dark hero) */
.nav.dark-nav { background: transparent; }
.nav.dark-nav.scrolled {
  background: rgba(1,45,170,0.97);
  border-color: rgba(255,255,255,0.12);
}

/* Logo , 928×206px, ratio 4.5:1
   ONLY height is set , width is always auto so proportions are never broken.
   Logo has black background + white text:
   - dark nav (hero, before scroll): white on dark → perfect
   - dark nav scrolled (blue bg): white on blue → perfect
   - light nav scrolled (white bg): invert(1) turns white→black, black bg→white */
.nav-logo a { display: flex; align-items: center; }
.nav-logo-img {
  height: 32px;
  width: auto;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
  /* PNG with real transparency , white text, transparent background.
     Works on any background without filters or blend modes. */
}
/* Light nav scrolled (white bg): invert to show as dark logo */
.nav.light-nav.scrolled .nav-logo-img {
  filter: invert(1);
}

/* Center links */
.nav-center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.nav-center a {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--black);
  transition: color 0.2s;
  padding: 4px 0;
  position: relative;
  white-space: nowrap;
}
.nav-center a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 100%;
  height: 1.5px;
  background: var(--blue);
  transition: right 0.3s var(--ease);
}
.nav-center a:hover::after,
.nav-center a.active::after { right: 0; }
.nav-center a:hover,
.nav-center a.active { color: var(--blue); }

/* Dark nav link colours */
.nav.dark-nav .nav-center a { color: rgba(255,255,255,0.85); }
.nav.dark-nav .nav-center a:hover,
.nav.dark-nav .nav-center a.active { color: var(--white); }
.nav.dark-nav .nav-center a::after { background: var(--white); }

/* Right side */
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Language switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  border: 1px solid rgba(0,0,0,0.18);
  border-radius: 2px;
  overflow: hidden;
}
.lang-btn {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 6px 11px;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--gray-mid);
  font-family: var(--font-body);
  transition: all 0.2s;
  line-height: 1;
}
.lang-btn.active { background: var(--blue); color: var(--white); }

.nav.dark-nav .lang-switcher { border-color: rgba(255,255,255,0.25); }
.nav.dark-nav .lang-btn { color: rgba(255,255,255,0.55); }
.nav.dark-nav .lang-btn.active { background: var(--blue); color: var(--white); }

/* CTA button */
.nav-cta-btn {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 22px;
  background: var(--blue);
  color: var(--white);
  border-radius: 2px;
  transition: background 0.2s, transform 0.2s;
  white-space: nowrap;
}
.nav-cta-btn:hover { background: #023acf; transform: translateY(-1px); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  margin-left: 8px;
  background: none;
  border: none;
  aria-label: "Menu";
}
.hamburger span {
  width: 22px; height: 2px;
  background: var(--black);
  display: block;
  transition: 0.3s;
}
.nav.dark-nav .hamburger span { background: var(--white); }

/* Mobile overlay */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 76px 0 0 0;
  background: var(--white);
  z-index: 999;
  padding: 20px 32px;
  flex-direction: column;
  overflow-y: auto;
}
.mobile-overlay.open { display: flex; }

.mobile-overlay a {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--black);
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-e);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mobile-overlay a:hover { color: var(--blue); }
.mobile-overlay a.mobile-cta { color: var(--blue); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 15px 32px;
  border-radius: 2px;
  cursor: pointer;
  border: none;
  transition: all 0.25s var(--ease);
}
.btn-blue  { background: var(--blue);  color: var(--white); }
.btn-blue:hover  { background: #023acf; transform: translateY(-1px); }
.btn-white { background: var(--white); color: var(--black); }
.btn-white:hover { background: var(--gray-f5); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.45);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn-outline-dark {
  background: transparent;
  color: var(--black);
  border: 1.5px solid rgba(0,0,0,0.22);
}
.btn-outline-dark:hover { border-color: var(--blue); color: var(--blue); }

/* ── FOOTER ── */
footer {
  background: var(--black);
  padding: 80px 48px 40px;
}
.footer-top {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 200px 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand-logo {
  display: inline-block;
  margin-bottom: 20px;
}
.footer-brand-logo img {
  height: 28px;
  width: auto;
  display: block;
  object-fit: contain;
  /* PNG with real transparency , shows cleanly on any background */
}
.footer-brand p {
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.4);
  line-height: 1.7;
}
.footer-col h4 {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 14px;
  font-weight: 400;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-col a:hover { color: var(--white); }
.footer-address {
  font-size: 14px;
  font-weight: 400;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
  transition: color 0.2s;
}
.footer-address:hover { color: var(--white); }
.footer-social-icon {
  width: 14px; height: 14px;
  flex-shrink: 0;
  margin-top: 2px;
  opacity: 0.6;
}
.footer-bottom {
  max-width: var(--max-w);
  margin: 32px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.2); }

/* ── ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.reveal-left {
  opacity: 0;
  transform: translateX(-36px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.reveal-left.in { opacity: 1; transform: none; }
.reveal-right {
  opacity: 0;
  transform: translateX(36px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.reveal-right.in { opacity: 1; transform: none; }

/* ── RESPONSIVE NAV ── */
@media (max-width: 1100px) {
  .nav { padding: 0 24px; }
  .nav-center { gap: 20px; }
  .nav-center a { font-size: 10px; }
}
@media (max-width: 900px) {
  .nav-center { display: none; }
  .hamburger  { display: flex; }
}
@media (max-width: 640px) {
  .nav { padding: 0 16px; height: 56px; }
  .nav-logo-img { height: 16px; }
  .mobile-overlay { inset: 56px 0 0 0; padding: 16px 24px; }
  .mobile-overlay a { font-size: 18px; padding: 10px 0; }
}

/* ── RESPONSIVE FOOTER ── */
@media (max-width: 900px) {
  footer { padding: 60px 24px 32px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 640px) {
  .footer-top { grid-template-columns: 1fr; }
}

/* Images inside media containers must fill them , override global height:auto */
.split-media img,
.intro-media img,
.img-strip img,
.img-band-bg img,
.svc-hero-media img,
.sobre-hero-media img,
.prereg-hero-media img,
.hero-parallax img,
.space-photo img,
.team-img-wrap img,
.video-bg img {
  height: 100%;
  max-width: none;
}
