/* ============================================================
   Passagem Barata Do Norte — Design tokens
   ============================================================ */
:root {
  --blue: #0B63E5;
  --blue-mid: #0A4FCB;
  --blue-dark: #0742A0;
  --blue-deep: #0A1730;
  --navy: #0A1F44;
  --orange: #FF5A3C;
  --gold: #FFC93C;

  --bg-soft: #E7EDF5;
  --bg-soft-2: #F4F8FF;
  --border-soft: #EAF0FB;
  --border-faint: #EEF2F8;
  --border-input: #E2E8F2;

  --text-muted: #6B7A93;
  --text-faint: #8A99B3;
  --text-footer: #9FB3D1;

  --font-display: 'Sora', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;

  --container-w: 1280px;
  --side-pad: 40px;

  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 11px;

  --shadow-card: 0 20px 44px -28px rgba(10, 60, 150, 0.4);
  --shadow-cta: 0 14px 28px -12px rgba(255, 90, 60, 0.9);
  --shadow-modal: 0 40px 90px -30px rgba(0, 10, 40, 0.7);
}

/* ============================================================
   Reset & base
   ============================================================ */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-soft);
  font-family: var(--font-body);
  color: var(--navy);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover { color: var(--blue-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--navy);
  margin: 0;
  letter-spacing: -0.02em;
}

p { margin: 0; }

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding-left: var(--side-pad);
  padding-right: var(--side-pad);
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 800;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:active { transform: translateY(1px); }

.btn-cta {
  background: var(--orange);
  color: #fff;
  padding: 13px 22px;
  font-size: 15px;
  box-shadow: var(--shadow-cta);
}
.btn-cta:hover { background: #ff6b4f; }

.btn-cta-lg {
  padding: 17px 40px;
  font-size: 17px;
  border-radius: var(--radius-md);
  box-shadow: 0 18px 40px -16px rgba(255, 90, 60, 0.9);
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  padding: 13px 26px;
  font-size: 15px;
}
.btn-primary:hover { background: var(--blue-dark); }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border-faint);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--blue), #3E9BFF);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  color: var(--navy);
  line-height: 1.15;
}
.brand-name em { color: var(--blue); font-style: normal; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 600;
  font-size: 15px;
}
.main-nav a { color: #33465F; }
.main-nav a:hover { color: var(--blue); }
.nav-cta { margin-left: 6px; }

/* Prominent CTA shown in the top bar on mobile only (hidden on desktop,
   where the CTA already lives inside the nav) */
.header-cta { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  padding: 60px var(--side-pad) 96px;
  background: linear-gradient(160deg, var(--blue) 0%, var(--blue-mid) 55%, var(--blue-dark) 100%);
  color: #fff;
  overflow: hidden;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero-blob-a {
  width: 360px;
  height: 360px;
  background: rgba(255, 255, 255, 0.08);
  top: -140px;
  right: -80px;
}
.hero-blob-b {
  width: 220px;
  height: 220px;
  background: rgba(255, 201, 60, 0.18);
  bottom: -90px;
  left: 28%;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.14);
  padding: 7px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 18px;
}
.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  flex: none;
}

.hero h1 {
  color: #fff;
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1.06;
  margin: 0 0 16px;
}

.hero-lede {
  font-size: 18px;
  line-height: 1.55;
  color: #DCE8FF;
  margin: 0 0 28px;
  max-width: 480px;
}

.hero-stats {
  display: flex;
  gap: 26px;
  margin: 0;
  flex-wrap: wrap;
}
.hero-stats dt {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
}
.hero-stats dd {
  margin: 2px 0 0;
  font-size: 13px;
  color: #B9CFF2;
}

.hero-media-frame {
  border-radius: 24px;
  overflow: hidden;
  height: 360px;
  border: 6px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 40px 70px -30px rgba(0, 15, 50, 0.65);
}
.placeholder-art { width: 100%; height: 100%; }

/* ============================================================
   Search card
   ============================================================ */
.search-wrap {
  margin-top: -56px;
  position: relative;
  z-index: 5;
}

.search-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 14px;
  box-shadow: 0 34px 70px -30px rgba(8, 40, 90, 0.5);
  border: 1px solid var(--border-faint);
  margin: 0;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.field label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.field select,
.field input {
  width: 100%;
  border: 1px solid var(--border-input);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
  color: var(--navy);
  background: #fff;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field select:focus,
.field input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(11, 99, 229, 0.15);
}

.search-submit {
  align-self: end;
  height: 46px;
  padding: 0 26px;
}

/* ============================================================
   Partners
   ============================================================ */
.partners { padding: 34px var(--side-pad) 30px; background: #fff; }
.partners-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  flex-wrap: wrap;
}
.partners-label {
  color: var(--text-faint);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.partner-logo { font-family: var(--font-display); font-weight: 800; font-size: 22px; }
.partner-azul { color: #1B5FA8; letter-spacing: 0.02em; }
.partner-gol { color: #F27127; letter-spacing: 0.02em; }
.partner-latam { color: #2A2A66; letter-spacing: 0.14em; }

/* ============================================================
   Section heads
   ============================================================ */
.kicker {
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.kicker-orange { color: var(--orange); }
.kicker-blue { color: var(--blue); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.section-head h2 { font-size: clamp(26px, 3.2vw, 34px); }

.section-head-stack { margin-bottom: 30px; }
.section-head-stack h2 { font-size: clamp(26px, 3.2vw, 34px); margin: 0 0 6px; }
.section-sub { font-size: 16px; color: var(--text-muted); }

.link-arrow { font-weight: 700; font-size: 15px; }

/* ============================================================
   Flight offer cards
   ============================================================ */
.offers { padding: 66px var(--side-pad); background: var(--bg-soft-2); }

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

.flight-card {
  background: #fff;
  border-radius: 20px;
  padding: 22px;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.flight-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 54px -26px rgba(10, 60, 150, 0.5);
}

.flight-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.airline-badge {
  background: #EAF2FF;
  color: var(--blue);
  font-weight: 800;
  font-size: 12px;
  padding: 5px 11px;
  border-radius: 999px;
}
.stops-label { color: var(--text-faint); font-weight: 600; font-size: 13px; }

.route-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.route-point { flex: none; }
.route-point.is-end { text-align: right; }
.route-code {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  color: var(--navy);
  line-height: 1;
}
.route-city { font-size: 13px; color: var(--text-muted); margin-top: 3px; }

.route-line {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 4px;
  min-width: 24px;
}
.route-dash { flex: 1; height: 2px; border-top: 2px dashed #C9D8EF; }
.route-plane {
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--blue);
}

.flight-card-bottom {
  border-top: 1px solid var(--border-faint);
  padding-top: 16px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.price-label { font-size: 12px; color: var(--text-faint); font-weight: 600; }
.price-value { font-family: var(--font-display); font-weight: 800; font-size: 24px; color: var(--orange); }

.flight-card-bottom .btn-primary { padding: 11px 18px; font-size: 14px; border-radius: 11px; }

/* ============================================================
   Features
   ============================================================ */
.features { padding: 56px var(--side-pad); background: #fff; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.feature { display: flex; gap: 16px; }
.feature-icon {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
}
.feature-icon-blue { background: #EAF2FF; color: var(--blue); }
.feature-icon-orange { background: #FFF0EC; color: var(--orange); }
.feature-icon-gold { background: #FFF7E0; color: #C89200; }
.feature h3 { font-size: 17px; margin: 0 0 4px; }
.feature p { font-size: 14px; color: var(--text-muted); line-height: 1.5; }

/* ============================================================
   Blog / articles
   ============================================================ */
.blog { padding: 66px var(--side-pad); background: var(--bg-soft-2); }
.article-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.article-card {
  display: flex;
  gap: 18px;
  background: #fff;
  border-radius: 18px;
  padding: 16px;
  border: 1px solid var(--border-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -28px rgba(10, 60, 150, 0.4);
}
.article-thumb {
  width: 150px;
  height: 124px;
  flex: none;
  border-radius: 12px;
  overflow: hidden;
}
.article-thumb svg { width: 100%; height: 100%; }
.article-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.article-cat {
  align-self: flex-start;
  background: #EAF2FF;
  color: var(--blue);
  font-weight: 800;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.article-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--navy);
  line-height: 1.28;
}
.article-read { font-size: 13px; color: var(--text-faint); }

/* ============================================================
   CTA band
   ============================================================ */
.cta-band {
  padding: 60px var(--side-pad);
  background: linear-gradient(120deg, var(--blue), var(--blue-dark));
  color: #fff;
  text-align: center;
}
.cta-band h2 { color: #fff; font-size: clamp(26px, 3.6vw, 36px); margin: 0 0 12px; }
.cta-band p { font-size: 17px; color: #DCE8FF; margin: 0 0 26px; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--blue-deep);
  color: var(--text-footer);
  padding: 46px var(--side-pad) 24px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}
.brand-footer { margin-bottom: 14px; }
.brand-name-footer { font-family: var(--font-display); font-weight: 800; font-size: 15px; color: #fff; }
.footer-brand p { line-height: 1.6; max-width: 280px; }
.footer-col h4 {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  margin: 0 0 12px;
}
.footer-col { display: flex; flex-direction: column; gap: 9px; }
.footer-col a, .footer-col span { color: var(--text-footer); }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 30px;
  padding-top: 20px;
  color: #6E82A4;
  font-size: 13px;
}

/* ============================================================
   Quote modal
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(6, 12, 30, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: #fff;
  border-radius: var(--radius-lg);
  width: 480px;
  max-width: 100%;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  box-shadow: var(--shadow-modal);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.25s ease;
}
.modal-overlay.is-open .modal { transform: translateY(0) scale(1); }

.modal-header {
  background: linear-gradient(120deg, var(--blue), var(--blue-dark));
  color: #fff;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  position: sticky;
  top: 0;
}
.modal-close {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  font-size: 18px;
  line-height: 1;
  flex: none;
}
.modal-close:hover { background: rgba(255, 255, 255, 0.32); }

.modal-form {
  padding: 24px 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.modal-intro {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 4px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.field-row select { border-radius: 11px; padding: 11px 13px; }
.modal-form input {
  border: 1px solid var(--border-input);
  border-radius: 11px;
  padding: 11px 13px;
  font-size: 15px;
  color: var(--navy);
  font-family: inherit;
}
.modal-form input:focus, .field-row select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(11, 99, 229, 0.15);
}
.code-input {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  letter-spacing: 0.4em;
  text-indent: 0.4em;
  padding-top: 14px;
  padding-bottom: 14px;
  text-transform: uppercase;
}
.code-input.is-invalid {
  border-color: var(--orange);
  animation: shake 0.3s;
}
.field-error {
  color: var(--orange);
  font-size: 13px;
  font-weight: 600;
  margin: 0;
}
.field-error[hidden] { display: none; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}
.modal-submit { margin-top: 6px; padding: 15px; font-size: 16px; width: 100%; }
.modal-fineprint { text-align: center; font-size: 12px; color: var(--text-faint); margin: 0; }
.modal-fineprint a { font-weight: 700; }

.modal-form[hidden],
.modal-success[hidden] {
  display: none;
}

.modal-success { padding: 40px 26px; text-align: center; }
.success-check {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #E6F7EE;
  color: #129A5A;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin: 0 auto 16px;
  font-family: var(--font-display);
  font-weight: 800;
}
.modal-success h3 { font-size: 20px; margin: 0 0 8px; }
.modal-success p { color: var(--text-muted); font-size: 15px; line-height: 1.55; margin: 0 0 22px; }

body.modal-locked { overflow: hidden; }

/* ============================================================
   Scroll reveal
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   Responsive — tablet
   ============================================================ */
@media (max-width: 960px) {
  :root { --side-pad: 28px; }

  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-media { order: -1; }
  .hero-media-frame { height: 240px; }
  .hero-lede { max-width: 100%; }

  .search-card {
    grid-template-columns: 1fr 1fr;
  }
  .search-submit { grid-column: 1 / -1; }

  .flight-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; gap: 24px; }
  .article-grid { grid-template-columns: 1fr; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    row-gap: 30px;
  }
  .footer-brand { grid-column: 1 / -1; }
}

/* ============================================================
   Responsive — mobile
   ============================================================ */
@media (max-width: 720px) {
  :root { --side-pad: 20px; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 20px;
    border-bottom: 1px solid var(--border-faint);
    box-shadow: 0 20px 30px -20px rgba(10, 40, 90, 0.25);
    display: none;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-faint);
  }
  /* CTA now lives in the top bar on mobile, so hide the one inside the dropdown */
  .nav-cta { display: none; }

  .header-cta {
    display: inline-flex;
    margin-left: auto;
    padding: 10px 16px;
    font-size: 14px;
  }
  .nav-toggle { display: flex; margin-left: 12px; }

  .hero { padding: 40px 20px 80px; }
  .hero-stats { gap: 20px; }

  .search-card {
    grid-template-columns: 1fr;
    border-radius: 18px;
  }
  .search-submit { grid-column: auto; }
  .search-wrap { margin-top: -48px; }

  .partners-row { gap: 18px 24px; justify-content: center; }

  .offers, .blog { padding: 48px 20px; }
  .flight-grid { grid-template-columns: 1fr; }

  .section-head { flex-direction: column; align-items: flex-start; gap: 10px; }

  .article-card { flex-direction: column; }
  .article-thumb { width: 100%; height: 160px; }

  .cta-band { padding: 48px 20px; }

  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-brand p { max-width: 100%; }

  .modal-form { padding: 20px 18px 24px; }
  .field-row { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
  .hero h1 { font-size: 30px; }
  .brand-name { font-size: 14px; }
  .header-cta { padding: 9px 12px; font-size: 13px; }
  .nav-toggle { margin-left: 8px; }
}
