/* ===================================================
   app-v1.css — SuperEmpreendedor Redesign
   Versioned from app.css — Full visual overhaul to
   match the approved design mockup.
   =================================================== */

:root {
  --navy: #031b3a;
  --navy-deep: #02142d;
  --orange: #ff6900;
  --orange-hover: #ff8222;
  --blue: #073c9c;
  --red: #9b0808;
  --text: #10213c;
  --muted: #4a5a70;
  --light-bg: #f7f8fa;
  --border: #d0d7e1;
}

/* === RESET & BASE === */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.5;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.container { max-width: 1440px; margin: 0 auto; padding: 0 40px; }

/* === HEADER === */
header {
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.head {
  height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  white-space: nowrap;
  flex-shrink: 0;
}
.brand-logo {
  height: 48px;
  width: auto;
}
.brand-text {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.3px;
}
.brand-text span { color: var(--orange); }
.brand small {
  display: block;
  font-size: 7.5px;
  letter-spacing: 2.5px;
  color: #b8c7db;
  margin-top: 2px;
  text-align: center;
}
.nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex: 1;
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.nav a {
  transition: color 0.2s;
  position: relative;
  padding: 4px 0;
}
.nav a:hover,
.nav a.active { color: var(--orange); }
.nav a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
}

/* Nav email/admin button */
.nav-email-btn {
  background: transparent;
  border: 2px solid var(--orange);
  color: var(--orange);
  border-radius: 8px;
  padding: 7px 16px;
  font-weight: 900;
  font-size: 12px;
  cursor: pointer;
  transition: 0.25s;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.nav-email-btn:hover {
  background: var(--orange);
  color: #fff;
  transform: translateY(-1px);
}

/* Hamburger mobile */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: 0.3s;
}

/* Primary button */
.btn {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 13px 24px;
  font-weight: 900;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 6px 20px rgba(255,105,0,0.3);
}
.btn.dark {
  background: var(--navy);
}
.btn.dark:hover {
  box-shadow: 0 6px 20px rgba(3,27,58,0.4);
}

/* === HERO SECTION === */
.hero {
  position: relative;
  background: var(--navy);
  color: #fff;
  min-height: 460px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(3,27,58,0.92) 0%, rgba(3,27,58,0.75) 45%, rgba(3,27,58,0.35) 100%);
  z-index: 2;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-grid {
  min-height: 460px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  position: relative;
  z-index: 3;
}
.hero-content {
  padding: 40px 0;
}
.hero-eyebrow {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  color: #e3ebf5;
}
.hero h1 {
  font-size: 46px;
  line-height: 1.05;
  margin: 0 0 18px;
  font-weight: 900;
}
.hero h1 span { color: var(--orange); }
.hero p {
  font-size: 16px;
  line-height: 1.6;
  max-width: 560px;
  color: #cdd9ea;
}

/* Hero panel (right side overlay) */
.hero-panel {
  justify-self: end;
  width: 320px;
  padding: 24px;
  background: rgba(3,27,58,0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 14px;
}
.hero-panel-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 16px 0;
  font-weight: 800;
  font-size: 13px;
  line-height: 1.35;
}
.hero-panel-item:first-child { margin-top: 0; }
.hero-panel-item:last-child { margin-bottom: 0; }
.hero-panel-item img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
  filter: brightness(0) saturate(100%) invert(44%) sepia(95%) saturate(1400%) hue-rotate(5deg) brightness(101%) contrast(106%);
}

/* === BRAND CARDS SECTION === */
.brands {
  padding: 28px 0 20px;
  background: #fff;
}
.brand-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.brand-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 18px 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s, box-shadow 0.3s;
}
.brand-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}
.brand-card > img:first-child {
  height: 100px;
  max-width: 220px;
  object-fit: contain;
  margin-bottom: 8px;
}
.brand-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  min-height: 62px;
  margin-bottom: 10px;
}
.brand-card .visual {
  width: 100%;
  height: 130px;
  border-radius: 10px;
  object-fit: cover;
  margin-bottom: 14px;
}
.brand-card .btn {
  width: 88%;
  padding: 12px 10px;
  font-size: 12px;
  margin-top: auto;
}
/* Card-specific button colors */
.course .btn { background: var(--blue); }
.course .btn:hover { box-shadow: 0 6px 20px rgba(7,60,156,0.3); }
.super .btn { background: var(--orange); }
.podcast .btn { background: var(--red); }
.podcast .btn:hover { box-shadow: 0 6px 20px rgba(155,8,8,0.3); }
.media .btn { background: var(--blue); }

/* === AUDIENCE / "PARA QUEM É" SECTION === */
.audience {
  background: var(--navy);
  color: #fff;
  padding: 32px 0;
}
.aud-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(4, 1fr) 1.3fr;
  gap: 22px;
  align-items: center;
}
.aud-title {
  font-size: 21px;
  font-weight: 900;
  line-height: 1.25;
}
.aud-title span { color: var(--orange); }
.aud-item {
  text-align: center;
  padding: 8px;
}
.aud-item .icon {
  width: 46px;
  height: 46px;
  margin: 0 auto 8px;
}
.aud-item .icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.aud-item strong {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
  letter-spacing: 0.03em;
}
.aud-item p {
  font-size: 11.5px;
  color: #c5d4e8;
  line-height: 1.4;
}
.aud-cta {
  background: var(--orange);
  border-radius: 14px;
  text-align: center;
  padding: 20px 16px;
}
.aud-cta strong {
  font-size: 17px;
  display: block;
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}
.aud-cta p {
  font-size: 12.5px;
  margin-bottom: 12px;
  line-height: 1.4;
  opacity: 0.95;
}
.aud-cta .btn {
  background: var(--navy);
  padding: 11px 22px;
}

/* === GENERIC SECTIONS (Ecossistema / Frentes) === */
section { padding: 64px 0; }
.title {
  text-align: center;
  color: var(--navy);
  font-size: 34px;
  margin: 0 0 14px;
  font-weight: 900;
}
.subtitle {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 36px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  border: 1px solid #e0e6ee;
  border-radius: 14px;
  padding: 28px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.card h3 { color: var(--navy); margin-bottom: 8px; }
.card p { color: var(--muted); line-height: 1.55; font-size: 14px; }

/* Dark section */
.dark-section { background: var(--navy); color: #fff; }
.dark-section .title { color: #fff; }
.dark-section .subtitle { color: #d5dfeb; }
.dark-section .card { border-color: rgba(255,255,255,0.15); }
.dark-section .card h3 { color: #fff; }
.dark-section .card p { color: #c0cede; }

/* CTA bar */
.cta {
  background: var(--orange);
  color: #fff;
  padding: 28px 0;
}
.cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.cta h2 { margin: 0; font-size: 24px; }
.cta .btn { background: var(--navy); }

/* === FOOTER === */
footer {
  background: var(--navy-deep);
  color: #fff;
  padding: 48px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.6fr;
  gap: 28px;
}
.footer-brand-logo {
  height: 52px;
  width: auto;
  margin-bottom: 12px;
}
footer p, footer a {
  color: #b0bfd4;
  font-size: 13px;
  line-height: 1.6;
}
footer a {
  display: block;
  margin: 6px 0;
  transition: color 0.2s;
}
footer a:hover { color: var(--orange); }
footer h4 {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
  color: #fff;
}
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 16px;
  transition: background 0.2s;
}
.footer-social a:hover { background: var(--orange); }

/* Contact info in footer */
.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
  color: #b0bfd4;
  font-size: 13px;
}
.footer-contact-item .contact-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.footer-contact-item .contact-icon.whatsapp { color: #25d366; }
.footer-contact-item .contact-icon.email { color: var(--orange); }
.footer-contact-item .contact-icon.pin { color: var(--orange); }

/* Footer brand logos row */
.footer-brands {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.footer-brands img {
  height: 50px;
  max-width: 130px;
  object-fit: contain;
}
.footer-copy {
  text-align: right;
  font-size: 12px;
  color: #8a9bb4;
  margin-top: 8px;
}

/* === MODAL === */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal.open { display: flex; }
.modal-card {
  background: #fff;
  border-radius: 16px;
  max-width: 540px;
  width: 100%;
  padding: 32px;
  position: relative;
  box-shadow: 0 24px 60px rgba(0,0,0,0.2);
}
.close {
  position: absolute;
  right: 18px;
  top: 10px;
  font-size: 30px;
  cursor: pointer;
  color: #666;
  line-height: 1;
  transition: color 0.2s;
}
.close:hover { color: var(--orange); }
.form { display: grid; gap: 12px; }
.form input, .form select {
  padding: 14px;
  border: 1px solid #ccd4df;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.2s;
}
.form input:focus, .form select:focus {
  outline: none;
  border-color: var(--orange);
}
.success {
  display: none;
  background: #e8f7ee;
  color: #17693b;
  padding: 16px;
  border-radius: 8px;
  margin-top: 12px;
  font-weight: 600;
}
.success.show { display: block; }
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  z-index: -1;
  pointer-events: none;
  tab-index: -1;
}

/* === APP DOWNLOAD POPUP (Mobile only) === */
.app-download-popup {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 150;
  background: linear-gradient(135deg, var(--navy), #0a2a52);
  border: 2px solid var(--orange);
  border-radius: 16px;
  padding: 20px;
  width: 300px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
  color: #fff;
  animation: slideUp 0.5s ease-out;
}
.app-download-popup.visible { display: block; }
.app-download-popup .popup-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  line-height: 1;
}
.app-download-popup .popup-close:hover { opacity: 1; }
.app-download-popup h3 {
  font-size: 16px;
  margin-bottom: 6px;
  color: var(--orange);
}
.app-download-popup p {
  font-size: 13px;
  color: #c5d4e8;
  line-height: 1.45;
  margin-bottom: 14px;
}
.app-download-popup .btn-download {
  display: block;
  width: 100%;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px;
  font-weight: 900;
  font-size: 14px;
  cursor: pointer;
  text-align: center;
  transition: 0.2s;
}
.app-download-popup .btn-download:hover {
  background: var(--orange-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255,105,0,0.35);
}
.app-download-popup .download-icon {
  display: inline-block;
  margin-right: 6px;
}

@keyframes slideUp {
  from { transform: translateY(100px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* === RESPONSIVE === */
@media (max-width: 1100px) {
  .nav { gap: 14px; font-size: 11px; }
  .hero h1 { font-size: 38px; }
  .hero-panel { width: 280px; }
  .aud-grid { grid-template-columns: repeat(3, 1fr); }
  .aud-title, .aud-cta { grid-column: span 3; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 850px) {
  .container { padding: 0 20px; }
  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--navy);
    padding: 20px;
    gap: 14px;
    border-bottom: 2px solid var(--orange);
    z-index: 99;
  }
  .hamburger { display: flex; }
  .head .btn { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-panel {
    position: relative;
    justify-self: start;
    width: 100%;
    max-width: 420px;
    margin-top: 20px;
    margin-bottom: 20px;
  }
  .brand-grid, .cards { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-copy { text-align: center; }
}

@media (max-width: 560px) {
  .brand-grid, .cards, .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
  .hero-content { padding: 30px 0; }
  .aud-grid { grid-template-columns: 1fr 1fr; }
  .aud-title, .aud-cta { grid-column: span 2; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .footer-copy { text-align: center; }
}

/* Show popup only on mobile */
@media (min-width: 851px) {
  .app-download-popup { display: none !important; }
}
