/* ===========================
   JDLC Empreendimentos — CSS
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --blue-900: #0a1628;
  --blue-800: #0f2040;
  --blue-700: #1a3a6b;
  --blue-600: #1e4d8c;
  --blue-500: #2563b8;
  --blue-400: #3b7dd8;
  --blue-300: #60a0ee;
  --blue-100: #dbeafe;
  --blue-50:  #eff6ff;
  --accent:   #f59e0b;
  --accent-light: #fcd34d;
  --white:    #ffffff;
  --gray-50:  #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-400: #94a3b8;
  --gray-600: #475569;
  --gray-800: #1e293b;
  --radius:   12px;
  --radius-lg: 20px;
  --shadow:   0 4px 24px rgba(10,22,40,0.12);
  --shadow-lg:0 12px 48px rgba(10,22,40,0.18);
}

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

html { scroll-behavior: smooth; }

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

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}
.btn-primary {
  background: var(--blue-500);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(37,99,184,0.35);
}
.btn-primary:hover { background: var(--blue-400); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(37,99,184,0.4); }
.btn-outline {
  background: transparent;
  color: var(--blue-600);
  border: 2px solid var(--blue-300);
}
.btn-outline:hover { background: var(--blue-50); }
.btn-ghost {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.22); }
.btn-lg { padding: 14px 32px; font-size: 1.05rem; border-radius: var(--radius-lg); }
.btn-block { width: 100%; justify-content: center; }
.btn-secondary {
  background: var(--gray-100);
  color: var(--gray-800);
  border: 1px solid var(--gray-200);
}
.btn-secondary:hover { background: var(--gray-200); }

/* === HEADER === */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10,22,40,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-mark {
  width: 38px; height: 38px;
  background: var(--blue-500);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  border-radius: 8px;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text strong { color: white; font-size: 1rem; font-weight: 700; }
.logo-text span { color: var(--blue-300); font-size: 0.72rem; font-weight: 400; letter-spacing: 0.04em; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav a:not(.btn):hover { color: white; }
.menu-toggle { display: none; background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer; }
.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 16px 24px 24px;
  gap: 12px;
  background: var(--blue-900);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.mobile-menu.open { display: flex; }
.mobile-menu a { color: rgba(255,255,255,0.85); text-decoration: none; font-weight: 500; padding: 8px 0; }

/* === HERO === */
.hero {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-800) 50%, var(--blue-700) 100%);
  display: flex;
  align-items: center;
  padding-top: 68px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 50%, rgba(37,99,184,0.25) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 10% 80%, rgba(245,158,11,0.08) 0%, transparent 60%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 60px;
  padding-bottom: 80px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--blue-100);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
  animation: fadeUp 0.6s ease forwards;
}
.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3.5rem, 8vw, 6rem);
  line-height: 1.0;
  color: white;
  margin-bottom: 24px;
  animation: fadeUp 0.7s ease forwards;
  letter-spacing: 0.02em;
}
.hero-title .accent {
  color: var(--accent);
  display: block;
}
.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.7);
  max-width: 520px;
  margin-bottom: 40px;
  font-weight: 300;
  line-height: 1.7;
  animation: fadeUp 0.8s ease forwards;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
  animation: fadeUp 0.9s ease forwards;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  animation: fadeUp 1s ease forwards;
}
.stat strong { display: block; color: white; font-size: 1.6rem; font-weight: 700; }
.stat span { color: rgba(255,255,255,0.5); font-size: 0.82rem; font-weight: 400; }
.stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,0.15); }
.hero-shape {
  position: absolute;
  bottom: 0; right: -80px;
  width: 600px; height: 600px;
  background: radial-gradient(ellipse, rgba(37,99,184,0.2) 0%, transparent 70%);
  pointer-events: none;
}

/* === SECTIONS === */
.section { padding: 96px 0; }
.section-dark {
  background: var(--blue-900);
}
.section-header { text-align: center; margin-bottom: 56px; }
.section-header.light h2, .section-header.light p { color: white; }
.section-header.light p { color: rgba(255,255,255,0.6); }
.section-tag {
  display: inline-block;
  background: var(--blue-100);
  color: var(--blue-600);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 12px;
}
.section-dark .section-tag { background: rgba(255,255,255,0.1); color: var(--blue-200, #93c5fd); }
.section-header h2 { font-size: 2.4rem; font-weight: 700; margin-bottom: 12px; }
.section-header p { color: var(--gray-600); font-size: 1.05rem; }

/* === STEPS === */
.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  flex-wrap: wrap;
  justify-content: center;
}
.step {
  flex: 1;
  min-width: 180px;
  max-width: 220px;
  text-align: center;
  padding: 32px 16px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}
.step.visible { opacity: 1; transform: translateY(0); }
.step-number {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3rem;
  color: var(--blue-100);
  line-height: 1;
  margin-bottom: 4px;
}
.step-icon { font-size: 2rem; margin-bottom: 12px; }
.step h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; color: var(--blue-800); }
.step p { font-size: 0.88rem; color: var(--gray-600); line-height: 1.5; }
.step-arrow {
  font-size: 1.8rem;
  color: var(--blue-300);
  align-self: center;
  padding: 0 8px;
  flex-shrink: 0;
}

/* === PARTNERS === */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.partner-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 32px;
  color: white;
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}
.partner-card.visible { opacity: 1; transform: translateY(0); }
.partner-card.featured {
  background: rgba(37,99,184,0.3);
  border-color: var(--blue-400);
  box-shadow: 0 0 40px rgba(37,99,184,0.2);
}
.partner-card.coming { opacity: 0.45; }
.partner-card.coming.visible { opacity: 0.45; }
.partner-badge {
  position: absolute;
  top: -12px; left: 24px;
  background: var(--accent);
  color: var(--blue-900);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 100px;
}
.partner-icon { font-size: 2.5rem; margin-bottom: 16px; }
.partner-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.partner-card p { font-size: 0.9rem; color: rgba(255,255,255,0.65); margin-bottom: 16px; line-height: 1.5; }
.partner-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.partner-tags span {
  background: rgba(255,255,255,0.1);
  border-radius: 100px;
  padding: 3px 12px;
  font-size: 0.78rem;
  font-weight: 500;
}

/* === BENEFITS === */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.benefit {
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  background: var(--white);
  transition: all 0.3s;
  opacity: 0;
  transform: translateY(16px);
}
.benefit.visible { opacity: 1; transform: translateY(0); }
.benefit:hover { border-color: var(--blue-300); box-shadow: var(--shadow); transform: translateY(-4px); }
.benefit-icon { font-size: 2rem; margin-bottom: 12px; }
.benefit h3 { font-weight: 700; font-size: 1rem; margin-bottom: 8px; color: var(--blue-800); }
.benefit p { font-size: 0.9rem; color: var(--gray-600); line-height: 1.5; }

/* === CTA === */
.cta-section { padding: 80px 0; background: var(--blue-50); }
.cta-box {
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  border-radius: 24px;
  padding: 60px;
  text-align: center;
  color: white;
  box-shadow: var(--shadow-lg);
}
.cta-box h2 { font-size: 2.2rem; font-weight: 700; margin-bottom: 12px; }
.cta-box p { color: rgba(255,255,255,0.75); margin-bottom: 32px; font-size: 1.05rem; }

/* === FOOTER === */
.footer { background: var(--blue-900); padding: 32px 0; border-top: 1px solid rgba(255,255,255,0.06); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-copy { color: rgba(255,255,255,0.4); font-size: 0.85rem; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 0.85rem; }
.footer-links a:hover { color: white; }

/* === FORMS (shared) === */
.page-wrapper {
  min-height: 100vh;
  background: var(--blue-900);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.form-card {
  background: white;
  border-radius: 24px;
  padding: 48px;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.4);
}
.form-card.wide { max-width: 680px; }
.form-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
}
.form-card h1 { font-size: 1.7rem; font-weight: 700; color: var(--blue-800); margin-bottom: 6px; }
.form-card .subtitle { color: var(--gray-600); font-size: 0.95rem; margin-bottom: 28px; }
.form-group { margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--gray-800); margin-bottom: 6px; }
input, select, textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  color: var(--gray-800);
  background: var(--gray-50);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--blue-400);
  box-shadow: 0 0 0 3px rgba(37,99,184,0.1);
  background: white;
}
textarea { resize: vertical; min-height: 80px; }
.form-link { text-align: center; margin-top: 20px; font-size: 0.9rem; color: var(--gray-600); }
.form-link a { color: var(--blue-500); font-weight: 600; text-decoration: none; }
.form-link a:hover { text-decoration: underline; }
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-bottom: 18px;
}
.alert-error { background: #fef2f2; border: 1px solid #fecaca; color: #dc2626; }
.alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #16a34a; }
.section-divider {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue-500);
  border-bottom: 2px solid var(--blue-100);
  padding-bottom: 6px;
  margin: 24px 0 16px;
}

/* === DASHBOARD === */
.dashboard-layout { display: flex; min-height: 100vh; background: var(--gray-50); }
.sidebar {
  width: 260px;
  background: var(--blue-900);
  color: white;
  display: flex;
  flex-direction: column;
  padding: 24px 0;
  flex-shrink: 0;
}
.sidebar-logo { padding: 0 24px 32px; border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 16px; }
.sidebar-nav { flex: 1; }
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: all 0.2s;
}
.sidebar-link:hover, .sidebar-link.active {
  background: rgba(255,255,255,0.08);
  color: white;
  border-left: 3px solid var(--blue-400);
}
.sidebar-link .icon { font-size: 1.1rem; width: 22px; text-align: center; }
.sidebar-footer { padding: 24px; border-top: 1px solid rgba(255,255,255,0.08); }
.main-content { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.topbar {
  background: white;
  border-bottom: 1px solid var(--gray-200);
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar h1 { font-size: 1.2rem; font-weight: 700; color: var(--blue-800); }
.user-info { display: flex; align-items: center; gap: 10px; color: var(--gray-600); font-size: 0.9rem; }
.user-avatar {
  width: 36px; height: 36px;
  background: var(--blue-500);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 0.9rem;
}
.dashboard-body { flex: 1; padding: 32px; overflow-y: auto; }
.cards-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 28px; }
.info-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--gray-200);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.info-card .label { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gray-400); margin-bottom: 8px; }
.info-card .value { font-size: 1.8rem; font-weight: 700; color: var(--blue-800); margin-bottom: 4px; }
.info-card .value.red { color: #dc2626; }
.info-card .value.green { color: #16a34a; }
.info-card .sub { font-size: 0.82rem; color: var(--gray-400); }
.card-icon { font-size: 1.8rem; margin-bottom: 10px; }
.section-title { font-size: 1.1rem; font-weight: 700; color: var(--blue-800); margin-bottom: 16px; }
.table-wrapper { background: white; border-radius: var(--radius-lg); border: 1px solid var(--gray-200); overflow: hidden; margin-bottom: 28px; }
table { width: 100%; border-collapse: collapse; }
th { background: var(--gray-50); padding: 12px 16px; text-align: left; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gray-400); border-bottom: 1px solid var(--gray-200); }
td { padding: 14px 16px; border-bottom: 1px solid var(--gray-100); font-size: 0.92rem; color: var(--gray-800); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--gray-50); }
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
}
.badge-pending { background: #fef3c7; color: #b45309; }
.badge-paid { background: #d1fae5; color: #065f46; }
.badge-overdue { background: #fee2e2; color: #991b1b; }
.badge-approved { background: #dbeafe; color: #1d4ed8; }
.badge-analysis { background: #f3e8ff; color: #7c3aed; }

/* === ANIMATIONS === */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .nav { display: none; }
  .menu-toggle { display: block; }
  .form-card { padding: 32px 24px; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 16px; }
  .step-arrow { display: none; }
  .steps { gap: 16px; }
  .step { min-width: 140px; padding: 20px 12px; }
  .cta-box { padding: 36px 24px; }
  .sidebar { display: none; }
  .topbar h1 { font-size: 1rem; }
  .dashboard-body { padding: 16px; }
  .cards-row { grid-template-columns: 1fr 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
}

/* === WHATSAPP BUTTON === */
.btn-wa-header {
  background: #25D366;
  color: white !important;
  border: none !important;
  box-shadow: 0 3px 12px rgba(37,211,102,.35);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-wa-header:hover {
  background: #1ebe5d;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37,211,102,.45);
}

/* WhatsApp flutuante */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.5);
  text-decoration: none;
  transition: all 0.2s;
  animation: waPulse 2.5s ease-in-out infinite;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,.6); }
.wa-float svg { width: 28px; height: 28px; fill: white; }
@keyframes waPulse {
  0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,.5); }
  50%      { box-shadow: 0 4px 32px rgba(37,211,102,.8); }
}
