/* ===========================================================
   IABC Intercâmbio 2026 — estilos
   =========================================================== */

:root {
  --bg: #FAF4EA;
  --bg-alt: #EFE3C9;
  --bg-card: #FFFFFF;
  --bg-soft: #F4EFE1;
  --border: #E4D6BA;
  --border-soft: #F0E7D4;
  --text: #1E1B16;
  --text-muted: #6B6459;
  --text-faint: #A39B8A;
  --red: #B3261E;
  --red-dark: #8C1D17;
  --navy: #10305A;
  --navy-dark: #0B2340;
  --navy-soft: #B7C6DC;
  --navy-faint: #8FA3C0;
  --green: #2F7D4F;
  --green-bg: #E7F2EA;
  --amber: #8A6115;
  --amber-bg: #FBF0DC;
  --amber-border: #E9D9AE;
  --error: #8C1D17;
  --error-bg: #FBEAEA;
  --error-border: #E7B5B0;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

::selection { background: var(--red); color: #FFFFFF; }

img { max-width: 100%; }

h1, h2, h3, h4 { font-family: 'Archivo', sans-serif; margin: 0; }

button { font-family: inherit; }

a { color: inherit; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding-left: clamp(16px, 4vw, 48px);
  padding-right: clamp(16px, 4vw, 48px);
}

@keyframes iabc-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes iabc-pop { 0% { transform: scale(0.7); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes iabc-fadeup { 0% { transform: translateY(10px); opacity: 0; } 100% { transform: translateY(0); opacity: 1; } }

/* ============ LOGO (CSS wordmark) ============ */
.iabc-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.01em;
  text-decoration: none;
  line-height: 1;
  color: var(--navy);
}
.iabc-logo span { color: var(--red); }
.iabc-logo small {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-left: 6px;
  align-self: center;
}
.iabc-logo.on-dark { color: #FFFFFF; }
.iabc-logo.on-dark small { color: var(--navy-soft); }

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px clamp(16px, 4vw, 48px);
  gap: 16px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 32px);
}

.desktop-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}

.btn {
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  border-radius: 999px;
}

.btn-red {
  background: var(--red);
  color: #FFFFFF;
}
.btn-red:hover { background: var(--red-dark); }
.btn-red:disabled { background: #D9C9A6; cursor: not-allowed; }

.btn-nav {
  padding: 12px 22px;
  font-size: 15px;
}

.hamburger {
  display: none;
  background: transparent;
  border: none;
  width: 40px;
  height: 40px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  top: 59px;
  background: var(--bg);
  z-index: 39;
  display: none;
  flex-direction: column;
  padding: 24px;
  gap: 20px;
  animation: iabc-fadeup 0.2s ease;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { text-decoration: none; font-weight: 700; font-size: 20px; }
.mobile-menu .btn-red { padding: 16px; border-radius: 14px; font-size: 17px; margin-top: 10px; }
.mobile-menu-footer {
  display: flex;
  gap: 16px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.mobile-menu-footer a { color: var(--text-muted); font-size: 13px; text-decoration: none; }

@media (max-width: 860px) {
  .desktop-nav { display: none; }
  .hamburger { display: flex; }
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: min(640px, 100vh);
  display: flex;
  align-items: flex-end;
  background:
    linear-gradient(180deg, rgba(11,35,64,0.72) 0%, rgba(11,35,64,0.82) 55%, rgba(11,35,64,0.98) 100%),
    radial-gradient(ellipse at 20% 20%, #244a76 0%, transparent 55%),
    linear-gradient(150deg, #0B2340 0%, #14345c 45%, #0B2340 100%);
  background-blend-mode: normal;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero.has-photo::before { display: none; }
.hero::before {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 40%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 200' preserveAspectRatio='none'%3E%3Cg fill='%23000000' fill-opacity='0.25'%3E%3Crect x='40' y='60' width='18' height='140'/%3E%3Crect x='58' y='30' width='30' height='170'/%3E%3Crect x='88' y='70' width='16' height='130'/%3E%3Cpolygon points='73,10 88,30 58,30'/%3E%3Crect x='160' y='90' width='90' height='110'/%3E%3Crect x='170' y='75' width='8' height='15'/%3E%3Crect x='195' y='75' width='8' height='15'/%3E%3Crect x='220' y='75' width='8' height='15'/%3E%3Crect x='320' y='50' width='14' height='150'/%3E%3Crect x='340' y='20' width='14' height='180'/%3E%3Ccircle cx='347' cy='14' r='8'/%3E%3Crect x='360' y='55' width='14' height='145'/%3E%3Crect x='460' y='100' width='140' height='100'/%3E%3Crect x='620' y='65' width='20' height='135'/%3E%3Crect x='650' y='40' width='16' height='160'/%3E%3Crect x='680' y='80' width='24' height='120'/%3E%3Crect x='760' y='95' width='110' height='105'/%3E%3Crect x='900' y='55' width='18' height='145'/%3E%3Crect x='925' y='25' width='34' height='175'/%3E%3Crect x='935' y='10' width='6' height='18'/%3E%3Crect x='970' y='75' width='16' height='125'/%3E%3Crect x='1040' y='90' width='130' height='110'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: bottom;
  background-size: 1200px 200px;
  opacity: 0.9;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: clamp(28px, 6vw, 64px) clamp(16px, 4vw, 48px) clamp(32px, 5vw, 56px);
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: #FFFFFF;
  padding: 7px 14px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.badge-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: #FFFFFF; }

.hero h1 {
  font-weight: 900;
  font-size: clamp(38px, 8vw, 76px);
  line-height: 0.98;
  color: #FFFFFF;
  margin: 0 0 16px;
}

.hero p.lead {
  color: #E9DFC9;
  font-size: clamp(16px, 2vw, 19px);
  max-width: 520px;
  margin: 0 0 28px;
  line-height: 1.5;
}

.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: #FFFFFF;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn-outline-light {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: #FFFFFF;
  border: 1.5px solid rgba(255,255,255,0.55);
  padding: 17px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
}

.btn-hero {
  padding: 17px 30px;
  font-size: 16px;
  font-weight: 800;
}

/* ============ SOBRE ============ */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
}
.about-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--bg-soft);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.about-card h3 { font-size: 19px; margin: 0 0 8px; }
.about-card p { color: var(--text-muted); font-size: 15px; line-height: 1.55; margin: 0; }

/* ============ ROTEIRO ============ */
.roteiro-section { padding: clamp(24px, 5vw, 40px) 0 clamp(48px, 7vw, 88px); background: var(--bg-alt); }
.section-eyebrow { color: var(--red); font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; font-size: 13px; }
.section-title { font-weight: 900; font-size: clamp(28px, 4.5vw, 42px); margin: 8px 0 28px; }

.loc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.loc-card { background: var(--bg-card); border-radius: 16px; overflow: hidden; border: 1px solid var(--border); }
.loc-photo {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  background: linear-gradient(135deg, var(--navy) 0%, #1c4b82 100%);
  background-size: cover;
  background-position: center;
}
.loc-photo.has-photo svg { display: none; }
.loc-card .loc-name { padding: 12px 14px; font-weight: 700; font-size: 14px; }

/* ============ INVESTIMENTO ============ */
.invest-grid {
  display: grid;
  grid-template-columns: minmax(260px, 380px) 1fr;
  gap: 32px;
}
@media (max-width: 720px) { .invest-grid { grid-template-columns: 1fr; } }

.invest-card {
  background: var(--navy);
  border-radius: 24px;
  padding: 32px;
  color: #FFFFFF;
  align-self: start;
}
.invest-card .eyebrow { color: #E9DFC9; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; }
.invest-price { font-weight: 900; font-size: clamp(34px, 5vw, 46px); margin: 10px 0 4px; }
.invest-sub { color: var(--navy-soft); font-size: 15px; margin-bottom: 22px; }
.invest-note {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  color: var(--navy-faint);
  font-size: 12px;
  line-height: 1.5;
  margin: 18px 0 0;
}

.includes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.include-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  font-size: 14.5px;
}
.include-item.excluded { background: #FBF0DC; border-color: #E9D9AE; }

/* ============ CTA FINAL ============ */
.cta-final { background: var(--red); padding: clamp(48px, 7vw, 72px) clamp(16px, 4vw, 48px); text-align: center; }
.cta-final h2 { color: #FFFFFF; font-size: clamp(28px, 5vw, 44px); margin: 0 0 14px; }
.cta-final p { color: #F6DCD8; font-size: 16px; margin: 0 0 28px; }
.btn-white { background: #FFFFFF; color: var(--red); }
.btn-white:hover { background: #F6E9E5; }

/* ============ FOOTER ============ */
.site-footer {
  padding: 32px clamp(16px, 4vw, 48px);
  background: var(--navy-dark);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
}
.site-footer p { color: var(--navy-faint); font-size: 13px; margin: 0; }
.footer-links { display: flex; gap: 16px; }
.footer-links a { color: var(--navy-soft); font-size: 13px; text-decoration: none; }

/* ============ FLOW ============ */
.flow-view { display: none; min-height: 100vh; background: var(--bg); flex-direction: column; }
.flow-view.active { display: flex; }
#landing-view.hidden { display: none; }

.flow-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 14px clamp(16px, 4vw, 32px);
}
.flow-header-inner { max-width: 640px; margin: 0 auto; }
.flow-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.flow-back-link {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.flow-macro-label { font-weight: 800; font-size: 13px; color: var(--navy); }
.flow-dots { display: flex; gap: 6px; }
.flow-dots .dot { flex: 1; height: 6px; border-radius: 4px; background: var(--border); transition: background 0.2s ease; }
.flow-dots .dot.on { background: var(--red); }

.flow-body { flex: 1; display: flex; align-items: flex-start; justify-content: center; padding: clamp(20px, 5vw, 40px) clamp(16px, 4vw, 32px) 60px; }
.flow-step-wrap { width: 100%; max-width: 560px; }
.flow-step { animation: iabc-fadeup 0.25s ease; }
.flow-step.center { text-align: center; }

.flow-step h2 { font-weight: 900; font-size: clamp(24px, 4vw, 30px); margin: 0 0 6px; }
.flow-step > p.desc { color: var(--text-muted); margin: 0 0 26px; font-size: 15px; }

.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  margin-bottom: 16px;
}
.form-card h3 {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 16px;
}
.form-card h3.resp { color: var(--red); }
.form-card h3.aluno { color: var(--navy); }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.field input {
  width: 100%;
  padding: 13px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 15px;
  font-family: inherit;
  background: #FFFFFF;
  color: var(--text);
}
.field input:focus { outline: 2px solid var(--navy); outline-offset: 1px; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.field-row .field { margin-bottom: 0; }

.form-error {
  background: var(--error-bg);
  border: 1px solid var(--error-border);
  color: var(--error);
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13.5px;
  margin-bottom: 16px;
}

.icon-badge {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--bg-alt);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.otp-input {
  width: 220px;
  text-align: center;
  letter-spacing: 0.4em;
  font-size: 24px;
  font-weight: 800;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  font-family: inherit;
  margin-bottom: 12px;
}

.demo-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: var(--amber-bg);
  border: 1px solid var(--amber-border);
  color: var(--amber);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  max-width: 320px;
  margin: 0 auto 22px;
}

.btn-block { width: 100%; padding: 17px; border-radius: 14px; font-size: 16px; }
.btn-block-narrow { width: 100%; max-width: 320px; padding: 17px; border-radius: 14px; font-size: 16px; margin-bottom: 14px; }

.resend-row { text-align: center; }
.link-btn { background: transparent; border: none; color: var(--navy); font-weight: 700; font-size: 14px; cursor: pointer; font-family: inherit; }
.resend-wait { color: var(--text-faint); font-size: 14px; }

.contract-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  height: 320px;
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.65;
  color: #33302A;
  margin-bottom: 16px;
}
.contract-box h4 { margin-top: 0; }
.contract-box p { margin: 0 0 12px; }
.contract-box ul { margin: 0 0 12px; padding-left: 20px; }
.contract-box li { margin-bottom: 4px; }
.contract-box hr { margin: 20px 0; }

.contract-check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  margin-bottom: 20px;
}
.contract-check-row input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--red); }
.contract-hint { text-align: center; color: var(--text-faint); font-size: 13px; margin: -6px 0 16px; }

.choice-list { display: grid; gap: 14px; margin-bottom: 24px; }
.choice-card {
  text-align: left;
  background: #FFFFFF;
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  cursor: pointer;
  font-family: inherit;
  display: block;
}
.choice-card.selected { background: #FBEAE8; border-color: var(--red); }
.choice-card .title { font-weight: 800; font-size: 17px; color: var(--text); margin-bottom: 4px; }
.choice-card .sub { color: var(--text-muted); font-size: 14px; }
.choice-card.with-icon { display: flex; align-items: center; gap: 14px; }
.choice-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: #FFFFFF; color: var(--navy);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  box-shadow: inset 0 0 0 1px var(--border);
}

.parcelas-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 24px; }
.parcela-card {
  text-align: center;
  background: #FFFFFF;
  border: 2px solid var(--border);
  border-radius: 14px;
  padding: 16px 10px;
  cursor: pointer;
  font-family: inherit;
}
.parcela-card.selected { background: #FBEAE8; border-color: var(--red); }
.parcela-card .n { font-weight: 800; font-size: 16px; color: var(--text); }
.parcela-card .v { color: var(--text-muted); font-size: 13px; }

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  margin-bottom: 20px;
}
.review-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 14px;
}
.review-row:last-child { border-bottom: none; }
.review-row span { color: var(--text-muted); }

.evidence-box {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 22px;
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.6;
}
.evidence-box .row { display: flex; align-items: center; gap: 7px; margin-bottom: 5px; }
.evidence-box .row:last-child { margin-bottom: 0; }

.processing { text-align: center; padding: 60px 0; }
.spinner {
  width: 54px; height: 54px; border-radius: 50%;
  border: 4px solid var(--border); border-top-color: var(--red);
  margin: 0 auto 24px;
  animation: iabc-spin 0.9s linear infinite;
}

.success { text-align: center; animation: iabc-pop 0.35s ease; }
.success-icon {
  width: 68px; height: 68px; border-radius: 50%;
  background: var(--green-bg); color: var(--green);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.success-actions { display: flex; flex-direction: column; gap: 12px; max-width: 320px; margin: 0 auto; }
.btn-navy { background: var(--navy); color: #FFFFFF; border: none; padding: 16px; border-radius: 14px; font-weight: 800; font-size: 15px; cursor: pointer; }
.btn-ghost-outline {
  background: transparent; color: var(--navy); border: 1.5px solid var(--border);
  padding: 16px; border-radius: 14px; font-weight: 700; font-size: 15px; text-decoration: none; text-align: center;
}
.btn-text { background: transparent; color: var(--text-muted); border: none; padding: 8px; font-weight: 600; font-size: 14px; cursor: pointer; }

.step-back {
  display: block;
  margin: 22px auto 0;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}
