/* ========================================
   JONAS VITALE - CSS COMPLETO
   Cores: Azul (#1a5fb4) + Laranja (#e8590c)
   ======================================== */

:root {
  --primary: #1a5fb4;
  --primary-light: #3b82f6;
  --primary-dark: #1a3a6b;
  --secondary: #e8590c;
  --secondary-light: #f97316;
  --bg: #f0f4f8;
  --bg-card: #ffffff;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --radius: 0.75rem;
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.07), 0 4px 6px -4px rgb(0 0 0 / 0.05);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-light); }
img { max-width: 100%; height: auto; }

/* ---- HEADER ---- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
.site-header.scrolled { box-shadow: var(--shadow-lg); }
.header-container {
  max-width: 1200px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between; height: 64px;
}
.header-logo { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; color: var(--text); }
.logo-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white; display: flex; align-items: center; justify-content: center;
  font-size: 0.875rem; font-weight: 800;
}
.logo-text { font-size: 1.125rem; }
.header-nav { display: flex; gap: 1.75rem; }
.header-nav a {
  color: var(--text-muted); font-size: 0.875rem; font-weight: 500;
  padding: 0.25rem 0; border-bottom: 2px solid transparent; transition: all 0.2s;
}
.header-nav a:hover, .header-nav a.active {
  color: var(--primary); border-bottom-color: var(--primary);
}

/* Hamburger */
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: all 0.3s; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.mobile-nav {
  display: none; position: fixed; top: 64px; left: 0; right: 0; z-index: 99;
  background: white; border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem; flex-direction: column; gap: 0.75rem;
}
.mobile-nav.active { display: flex; }
.mobile-nav a { color: var(--text); font-weight: 500; padding: 0.5rem 0; }

@media (max-width: 768px) {
  .header-nav { display: none; }
  .hamburger { display: block; }
}

/* ---- HERO ---- */
.hero {
  min-height: 90vh; display: flex; align-items: center;
  background: linear-gradient(135deg, #0d2647 0%, #1a3a6b 50%, #122a4d 100%);
  position: relative; overflow: hidden; color: white;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: url('/images/hero-bg.jpg') center/cover no-repeat;
  opacity: 0.15; mix-blend-mode: overlay;
}
.hero-content {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto; padding: 6rem 1.5rem 4rem;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  border-radius: 9999px; padding: 0.5rem 1rem; margin-bottom: 1.5rem;
  font-size: 0.875rem; color: rgba(255,255,255,0.9);
}
.hero-badge .badge-icon { color: var(--secondary-light); }
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800;
  line-height: 1.15; margin-bottom: 1.5rem; max-width: 800px;
}
.hero h1 .highlight { color: var(--secondary-light); }
.hero .hero-desc {
  font-size: 1.125rem; color: rgba(255,255,255,0.8);
  max-width: 640px; margin-bottom: 2rem; line-height: 1.7;
}
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
  margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.15);
  max-width: 500px;
}
.hero-stats .stat-value { font-size: 1.75rem; font-weight: 800; color: var(--secondary-light); }
.hero-stats .stat-label { font-size: 0.75rem; color: rgba(255,255,255,0.6); margin-top: 0.25rem; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.75rem; border-radius: var(--radius);
  font-weight: 600; font-size: 0.9375rem; cursor: pointer;
  border: none; transition: all 0.2s; text-decoration: none;
}
.btn-primary { background: var(--secondary); color: white; box-shadow: 0 4px 14px rgba(232,89,12,0.25); }
.btn-primary:hover { background: var(--secondary-light); color: white; transform: translateY(-1px); }
.btn-outline {
  background: rgba(255,255,255,0.15); color: white;
  border: 1px solid rgba(255,255,255,0.3); backdrop-filter: blur(4px);
}
.btn-outline:hover { background: rgba(255,255,255,0.25); color: white; }
.btn-blue { background: var(--primary); color: white; }
.btn-blue:hover { background: var(--primary-light); color: white; }
.btn-ghost { background: transparent; color: var(--primary); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--primary); color: white; }
.btn-lg { padding: 0.875rem 2rem; font-size: 1rem; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.8125rem; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ---- SECTIONS ---- */
.section { padding: 5rem 0; }
.section-alt { background: white; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 800; margin-bottom: 1rem; }
.section-header p { color: var(--text-muted); max-width: 600px; margin: 0 auto; font-size: 1.0625rem; }

/* ---- AREAS (Processos, Pessoas, Cultura) ---- */
.areas-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.area-card {
  border-radius: var(--radius); overflow: hidden; position: relative;
  min-height: 280px; display: flex; align-items: flex-end;
  box-shadow: var(--shadow-lg); transition: transform 0.3s;
}
.area-card:hover { transform: translateY(-4px); }
.area-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.area-card .area-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 100%);
}
.area-card .area-content { position: relative; z-index: 1; padding: 1.5rem; color: white; }
.area-card .area-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.area-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; }
.area-card p { font-size: 0.875rem; color: rgba(255,255,255,0.85); }

/* ---- SERVICES GRID ---- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.service-card {
  background: var(--bg-card); border-radius: var(--radius); padding: 1.5rem;
  box-shadow: var(--shadow); transition: all 0.3s; border: 1px solid var(--border);
}
.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.service-card .service-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(26,95,180,0.1), rgba(232,89,12,0.1));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 1rem;
}
.service-card h3 { font-size: 1.0625rem; font-weight: 700; margin-bottom: 0.5rem; }
.service-card p { font-size: 0.875rem; color: var(--text-muted); }

/* ---- WHY CHOOSE / DIFERENCIAIS ---- */
.diff-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }
.diff-card {
  background: var(--bg-card); border-radius: var(--radius); padding: 1.5rem;
  box-shadow: var(--shadow); border: 1px solid var(--border);
}
.diff-card .diff-icon { font-size: 1.75rem; margin-bottom: 0.75rem; }
.diff-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.25rem; color: var(--primary); }
.diff-card p { font-size: 0.875rem; color: var(--text-muted); }

/* ---- CTA ---- */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: white; padding: 5rem 0; text-align: center; position: relative; overflow: hidden;
}
.cta-section h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; margin-bottom: 1rem; }
.cta-section p { color: rgba(255,255,255,0.85); max-width: 600px; margin: 0 auto 2rem; }
.cta-buttons { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* ---- ABOUT PREVIEW ---- */
.about-preview { display: grid; grid-template-columns: 1fr 1.5fr; gap: 3rem; align-items: center; }
.about-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.about-img img { width: 100%; height: auto; display: block; }
.about-text h2 { font-size: 1.75rem; font-weight: 800; margin-bottom: 1rem; }
.about-text p { color: var(--text-muted); margin-bottom: 1.5rem; line-height: 1.7; }
.about-highlights { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.5rem; }
.about-highlights li { display: flex; align-items: center; gap: 0.5rem; font-weight: 500; }
.about-highlights .check { color: var(--primary); font-weight: 700; }
@media (max-width: 768px) { .about-preview { grid-template-columns: 1fr; } }

/* ---- SOBRE (full page) ---- */
.page-header {
  padding: 6rem 0 3rem; text-align: center;
  background: linear-gradient(135deg, rgba(26,95,180,0.05), rgba(232,89,12,0.05));
}
.page-header h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; margin-bottom: 0.5rem; }
.page-header p { color: var(--text-muted); font-size: 1.0625rem; max-width: 600px; margin: 0 auto; }
.timeline { max-width: 800px; margin: 0 auto; }
.timeline-item {
  display: grid; grid-template-columns: 140px 1fr; gap: 1.5rem;
  padding: 1.5rem 0; border-bottom: 1px solid var(--border);
}
.timeline-period { font-size: 0.8125rem; font-weight: 600; color: var(--primary); padding-top: 0.25rem; }
.timeline-content h3 { font-weight: 700; margin-bottom: 0.25rem; }
.timeline-content .company { font-size: 0.875rem; color: var(--secondary); font-weight: 600; margin-bottom: 0.5rem; }
.timeline-content p { font-size: 0.875rem; color: var(--text-muted); }
@media (max-width: 640px) { .timeline-item { grid-template-columns: 1fr; gap: 0.25rem; } }

.edu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; }
.edu-card {
  background: var(--bg-card); border-radius: var(--radius); padding: 1.25rem;
  border: 1px solid var(--border);
}
.edu-card h4 { font-size: 0.9375rem; font-weight: 700; }
.edu-card .inst { font-size: 0.8125rem; color: var(--primary); font-weight: 600; }
.edu-card .period { font-size: 0.75rem; color: var(--text-muted); }

.cert-list, .skill-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cert-list span, .skill-list span {
  background: rgba(26,95,180,0.08); color: var(--primary); padding: 0.375rem 0.75rem;
  border-radius: 9999px; font-size: 0.8125rem; font-weight: 500;
}

/* ---- CONTATO ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; max-width: 900px; margin: 0 auto; }
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info-card {
  display: flex; align-items: center; gap: 1rem;
  background: var(--bg-card); border-radius: var(--radius); padding: 1rem;
  box-shadow: var(--shadow); border: 1px solid var(--border); transition: box-shadow 0.2s;
}
.contact-info-card:hover { box-shadow: var(--shadow-lg); }
.contact-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(26,95,180,0.1); display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; flex-shrink: 0;
}
.contact-label { font-size: 0.6875rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }
.contact-value { font-weight: 600; font-size: 0.875rem; color: var(--text); }

.form-card {
  background: var(--bg-card); border-radius: var(--radius); padding: 2rem;
  box-shadow: var(--shadow-lg); border: 1px solid var(--border);
}
.form-card h2 { font-size: 1.25rem; font-weight: 700; margin-bottom: 1.25rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.8125rem; font-weight: 600; margin-bottom: 0.375rem; color: var(--text); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 0.625rem 0.75rem; border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 0.875rem; font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s; background: white;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,95,180,0.1);
}
.form-group .error { border-color: #ef4444; }
.form-error { color: #ef4444; font-size: 0.75rem; margin-top: 0.25rem; }
.form-note { font-size: 0.75rem; color: var(--text-muted); }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

.success-msg {
  text-align: center; padding: 2rem;
}
.success-msg .success-icon { font-size: 3rem; margin-bottom: 1rem; }
.success-msg h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; }
.success-msg p { color: var(--text-muted); }

/* ---- GERADOR ---- */
.process-result {
  background: var(--bg-card); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  overflow: hidden; margin-top: 2rem; border: 1px solid var(--border);
}
.result-header {
  background: rgba(26,95,180,0.08); padding: 1.25rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem;
}
.result-header h3 { font-weight: 700; display: flex; align-items: center; gap: 0.5rem; }
.result-body { padding: 1.5rem; white-space: pre-wrap; line-height: 1.7; font-size: 0.9375rem; }
.result-actions { display: flex; gap: 0.5rem; }

/* ---- ARTIGOS ---- */
.docs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }
.doc-card {
  background: var(--bg-card); border-radius: var(--radius); padding: 1.5rem;
  box-shadow: var(--shadow); border: 1px solid var(--border); transition: box-shadow 0.2s;
}
.doc-card:hover { box-shadow: var(--shadow-lg); }
.doc-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.doc-card p { font-size: 0.8125rem; color: var(--text-muted); margin-bottom: 1rem; }
.doc-card .doc-meta { display: flex; gap: 0.75rem; font-size: 0.75rem; color: var(--text-muted); }

/* ---- ADMIN ---- */
.admin-container { max-width: 500px; margin: 8rem auto 4rem; padding: 0 1.5rem; }
.login-card { background: var(--bg-card); border-radius: var(--radius); padding: 2.5rem; box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
.login-card h1 { font-size: 1.5rem; font-weight: 800; text-align: center; margin-bottom: 2rem; }

/* ---- FOOTER ---- */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.5rem 1.5rem;
  margin-top: 4rem;
}
.footer-container {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.9rem;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.footer-logo .logo-icon {
  width: 28px; height: 28px; border-radius: 6px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white; display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 800;
}
.footer-logo .logo-text {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}
.footer-tagline {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  font-size: 0.8rem;
  padding-top: 0.4rem;
}
.footer-links a { color: var(--text-muted); font-weight: 500; }
.footer-links a:hover { color: var(--primary); }
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  font-size: 0.78rem;
}
.footer-contact a { color: var(--text-muted); }
.footer-contact a:hover { color: var(--secondary); }
.footer-copy {
  font-size: 0.7rem;
  color: var(--text-muted);
  opacity: 0.75;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border);
  width: 100%;
  margin-top: 0.4rem;
}

/* ---- TELEGRAM FLOAT ---- */
.telegram-float {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 99;
  width: 56px; height: 56px; border-radius: 50%;
  background: #26A5E4; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(38,165,228,0.4); transition: transform 0.2s;
}
.telegram-float:hover { transform: scale(1.1); }

/* ---- LOADING SPINNER ---- */
.spinner { display: inline-block; width: 1.25rem; height: 1.25rem; border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white; border-radius: 50%; animation: spin 0.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- FADE IN ANIMATION ---- */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s, transform 0.6s; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ---- UTILITIES ---- */
.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; }
.gap-1 { gap: 0.5rem; }
.hidden { display: none !important; }

/* ---- RESPONSIVE ---- */
@media (max-width: 640px) {
  .hero h1 { font-size: 1.75rem; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .hero-stats .stat-value { font-size: 1.25rem; }
  .hero-buttons { flex-direction: column; }
  .section { padding: 3rem 0; }
  .form-actions { flex-direction: column; }
}
