/* ===========================
   INSTITUTO AVANTE — STYLES
   avantepg.com.br
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Lato:wght@300;400;700&display=swap');

:root {
  --blue-dark:   #0e3a7e;
  --blue:        #1852a4;
  --blue-mid:    #1d6abf;
  --blue-light:  #3080d0;
  --gold:        #f5a623;
  --gold-dark:   #d4891a;
  --white:       #ffffff;
  --off-white:   #f4f7fc;
  --text-dark:   #0d1f3c;
  --text-gray:   #5a6a82;
  --border:      rgba(24,82,164,0.12);
  --shadow-blue: rgba(14,58,126,0.18);
}

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

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

body {
  font-family: 'Lato', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ── TYPOGRAPHY ────────────────────────── */
h1,h2,h3,h4,h5 { font-family: 'Montserrat', sans-serif; font-weight: 800; line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.25rem; font-weight: 700; }
p  { font-size: 1rem; line-height: 1.8; color: var(--text-gray); }

a { text-decoration: none; color: inherit; }

/* ── HELPERS ────────────────────────── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 90px 0; }
.section-sm { padding: 60px 0; }

.tag {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.section-title { color: var(--text-dark); margin-bottom: 16px; }
.section-title span { color: var(--blue); }

.section-subtitle { max-width: 600px; font-size: 1.05rem; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700; font-size: 0.9rem;
  letter-spacing: 0.5px;
  padding: 15px 30px;
  border-radius: 50px;
  cursor: pointer; border: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--gold);
  color: var(--text-dark);
  box-shadow: 0 6px 24px rgba(245,166,35,0.35);
}
.btn-primary:hover { background: var(--gold-dark); box-shadow: 0 10px 32px rgba(245,166,35,0.45); }

.btn-white {
  background: var(--white);
  color: var(--blue);
  box-shadow: 0 6px 24px rgba(14,58,126,0.15);
}
.btn-white:hover { box-shadow: 0 10px 32px rgba(14,58,126,0.25); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }

/* ── REVEAL ANIMATIONS ────────────────────────── */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* ── NAVBAR ────────────────────────── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0;
  transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
}
#navbar.scrolled {
  background: rgba(10,40,100,0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 30px rgba(0,0,0,0.2);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 80px;
  transition: height 0.3s;
}
#navbar.scrolled .nav-inner { height: 68px; }

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

.nav-links {
  display: flex; align-items: center; gap: 36px;
  list-style: none;
}
.nav-links a {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.85);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold); }

.nav-cta {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem; font-weight: 700;
  padding: 10px 22px;
  background: var(--gold);
  color: var(--text-dark) !important;
  border-radius: 50px;
  transition: background 0.2s, transform 0.2s !important;
}
.nav-cta:hover { background: var(--gold-dark) !important; transform: translateY(-1px); color: var(--text-dark) !important; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.hamburger span {
  display: block; width: 26px; height: 2px;
  background: white; border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed; inset: 0; top: 80px;
  background: rgba(10,40,100,0.98);
  backdrop-filter: blur(16px);
  z-index: 999;
  padding: 40px 24px;
  flex-direction: column; gap: 28px;
  list-style: none;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.3rem; font-weight: 700;
  color: white;
}
.mobile-menu a:hover { color: var(--gold); }

/* ── HERO ────────────────────────── */
#hero {
  min-height: 100vh;
  background: linear-gradient(150deg, var(--blue-dark) 0%, var(--blue) 50%, var(--blue-mid) 100%);
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding-top: 80px;
}

/* Geometric background shapes */
#hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 70% 30%, rgba(255,255,255,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 80%, rgba(245,166,35,0.08) 0%, transparent 40%);
}

.hero-geo {
  position: absolute; right: -60px; top: 50%;
  transform: translateY(-50%);
  width: 580px; height: 580px;
  opacity: 0.08;
}

.hero-content {
  position: relative; z-index: 1;
  max-width: 700px;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 8px 18px; border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
}
.hero-badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-content h1 {
  color: white;
  margin-bottom: 22px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}
.hero-content h1 span { color: var(--gold); }

.hero-content p {
  color: rgba(255,255,255,0.8);
  font-size: 1.12rem;
  max-width: 560px;
  margin-bottom: 36px;
}

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

.hero-scroll {
  position: absolute; bottom: 36px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.5);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem; letter-spacing: 2px; text-transform: uppercase;
  animation: scrollBounce 2s ease-in-out infinite;
}
.hero-scroll svg { width: 20px; height: 20px; }
@keyframes scrollBounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ── STATS BAR ────────────────────────── */
#stats {
  background: var(--text-dark);
  padding: 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  divide-color: rgba(255,255,255,0.08);
}
.stat-item {
  padding: 40px 24px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.6rem; font-weight: 900;
  color: var(--gold);
  display: block; line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 0.85rem; font-weight: 400;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.3px;
}

/* ── ABOUT ────────────────────────── */
#about {
  background: var(--off-white);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}
.about-visual {
  position: relative;
}
.about-img-wrap {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 80px var(--shadow-blue);
  position: relative;
}
.about-img-wrap img { width: 100%; display: block; }
.about-badge-float {
  position: absolute;
  bottom: -24px; right: -24px;
  background: var(--gold);
  border-radius: 16px;
  padding: 20px 24px;
  text-align: center;
  box-shadow: 0 16px 40px rgba(245,166,35,0.35);
}
.about-badge-float strong {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem; font-weight: 900;
  color: var(--text-dark);
  display: block; line-height: 1;
}
.about-badge-float span {
  font-size: 0.78rem; font-weight: 700;
  color: var(--text-dark); opacity: 0.7;
  letter-spacing: 0.5px;
}
.about-pillars {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; margin-top: 28px;
}
.pillar-card {
  background: white; border-radius: 12px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(14,58,126,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}
.pillar-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(14,58,126,0.12); }
.pillar-icon { font-size: 1.6rem; margin-bottom: 8px; }
.pillar-card h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.88rem; font-weight: 700;
  color: var(--text-dark); margin-bottom: 4px;
}
.pillar-card p { font-size: 0.82rem; line-height: 1.5; }

/* ── OBJECTIVES ────────────────────────── */
#objectives {
  background: linear-gradient(160deg, var(--blue-dark) 0%, var(--blue) 100%);
  position: relative; overflow: hidden;
}
#objectives::before {
  content: '';
  position: absolute; top: -100px; right: -100px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
}
.obj-header { text-align: center; color: white; margin-bottom: 56px; }
.obj-header .tag { color: var(--gold); }
.obj-header h2 { color: white; }
.obj-header p { color: rgba(255,255,255,0.7); max-width: 620px; margin: 0 auto; }
.obj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.obj-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 32px 28px;
  transition: background 0.3s, transform 0.3s;
  backdrop-filter: blur(4px);
}
.obj-card:hover { background: rgba(255,255,255,0.12); transform: translateY(-4px); }
.obj-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem; font-weight: 800;
  letter-spacing: 3px; color: var(--gold);
  margin-bottom: 14px; display: block;
}
.obj-card h3 { color: white; font-size: 1.1rem; margin-bottom: 10px; }
.obj-card p { color: rgba(255,255,255,0.65); font-size: 0.9rem; line-height: 1.7; }

/* ── CURRICULUM ────────────────────────── */
#curriculum { background: white; }
.curric-header { text-align: center; margin-bottom: 56px; }
.years-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.year-card {
  border-radius: 20px; overflow: hidden;
  box-shadow: 0 8px 40px var(--shadow-blue);
  transition: transform 0.3s, box-shadow 0.3s;
}
.year-card:hover { transform: translateY(-6px); box-shadow: 0 20px 60px var(--shadow-blue); }
.year-head {
  padding: 28px 24px 20px;
  background: var(--blue);
  text-align: center;
}
.year-head h3 {
  color: white; font-size: 1rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 4px;
}
.year-head span {
  font-size: 0.78rem; color: rgba(255,255,255,0.6);
}
.year-body { padding: 24px; background: var(--off-white); }
.subject-list { list-style: none; }
.subject-list li {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.88rem; color: var(--text-gray);
  padding: 7px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.subject-list li:last-child { border-bottom: none; }
.subject-list li::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold); flex-shrink: 0;
}

/* ── HOW TO JOIN ────────────────────────── */
#how {
  background: var(--off-white);
}
.how-header { text-align: center; margin-bottom: 56px; }
.steps-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute; top: 44px; left: 12.5%; right: 12.5%;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-light), var(--gold));
  z-index: 0;
}
.step {
  text-align: center; padding: 0 20px;
  position: relative; z-index: 1;
}
.step-num {
  width: 88px; height: 88px; border-radius: 50%;
  background: white;
  border: 3px solid var(--blue-light);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem; font-weight: 900;
  color: var(--blue);
  box-shadow: 0 8px 30px rgba(14,58,126,0.15);
  transition: background 0.3s, color 0.3s;
}
.step:hover .step-num { background: var(--blue); color: white; }
.step h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem; font-weight: 700;
  color: var(--text-dark); margin-bottom: 8px;
}
.step p { font-size: 0.85rem; line-height: 1.6; }

/* ── INSCRIPTION CTA ────────────────────────── */
#inscription {
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 100%);
  padding: 80px 0;
}
.insc-inner {
  display: flex; align-items: center;
  justify-content: space-between; gap: 40px;
  flex-wrap: wrap;
}
.insc-text h2 { color: var(--text-dark); }
.insc-text p { color: rgba(13,31,60,0.7); max-width: 480px; margin-top: 10px; }
.insc-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn-dark {
  background: var(--text-dark); color: white;
  box-shadow: 0 6px 24px rgba(0,0,0,0.3);
}
.btn-dark:hover { background: var(--blue-dark); box-shadow: 0 10px 32px rgba(0,0,0,0.4); }

/* ── CONTACT ────────────────────────── */
#contact { background: white; }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.4fr;
  gap: 80px; align-items: start;
}
.contact-info { }
.contact-info h2 { margin-bottom: 14px; }
.contact-info .section-subtitle { margin-bottom: 36px; }
.contact-detail {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.contact-detail:first-of-type { border-top: 1px solid var(--border); }
.contact-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--off-white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
  border: 1px solid var(--border);
}
.contact-detail h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--text-gray); margin-bottom: 4px;
}
.contact-detail p, .contact-detail a {
  font-size: 1rem; color: var(--text-dark); font-weight: 400;
}
.contact-detail a:hover { color: var(--blue); }

.social-links { display: flex; gap: 12px; margin-top: 28px; }
.social-link {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--off-white);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.social-link:hover {
  background: var(--blue); transform: translateY(-3px);
  box-shadow: 0 8px 20px var(--shadow-blue);
}
.social-link:hover svg path,
.social-link:hover svg rect,
.social-link:hover svg circle { fill: white; }

/* Contact Form */
.contact-form {
  background: var(--off-white);
  border-radius: 20px;
  padding: 40px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(14,58,126,0.07);
}
.contact-form h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.3rem; margin-bottom: 6px;
}
.contact-form > p { font-size: 0.9rem; margin-bottom: 28px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: white;
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  color: var(--text-dark);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(24,82,164,0.1);
}
.form-group textarea { resize: vertical; min-height: 110px; }

.form-msg {
  display: none;
  padding: 14px 18px; border-radius: 10px;
  font-weight: 600; font-size: 0.9rem;
  margin-top: 12px;
}
.form-msg.success { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; display: block; }
.form-msg.error { background: #ffebee; color: #c62828; border: 1px solid #ef9a9a; display: block; }

/* ── FOOTER ────────────────────────── */
footer {
  background: var(--text-dark);
  padding: 60px 0 28px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
}
.footer-brand img { height: 40px; margin-bottom: 16px; filter: brightness(0) invert(1) opacity(0.9); }
.footer-brand p { font-size: 0.88rem; color: rgba(255,255,255,0.45); line-height: 1.7; }
.footer-col h5 {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem; font-weight: 800;
  letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 0.9rem; color: rgba(255,255,255,0.65);
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.3); }
.footer-bottom a { color: var(--gold); }

/* ── WHATSAPP FLOAT ────────────────────────── */
.wa-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 900;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 28px rgba(37,211,102,0.45);
  transition: transform 0.2s, box-shadow 0.2s;
  animation: waAppear 1s ease 1.5s both;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 14px 40px rgba(37,211,102,0.55); }
.wa-float svg { width: 30px; height: 30px; }
@keyframes waAppear {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}

/* ── RESPONSIVE ────────────────────────── */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 50px; }
  .about-visual { max-width: 500px; margin: 0 auto; }
  .obj-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .stat-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.08); }
  .obj-grid { grid-template-columns: 1fr; }
  .years-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .steps-grid::before { display: none; }
  .insc-inner { flex-direction: column; text-align: center; }
  .insc-actions { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .about-badge-float { right: 0; bottom: -16px; }
  .about-pillars { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat-item { border-right: none; }
  .steps-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
}
