:root {
  --primary: #003366;
  --primary-dark: #001a33;
  --secondary: #1e90ff;
  --accent: #00d4ff;
  --text-dark: #1a1a1a;
  --text-light: #667085;
  --white: #fff;
  --bg-light: #f8fafc;
  --border: #e5e7eb;
  --success: #25d366;
  --danger: #ff4757;
  --warning: #ffa502;
  --transition: all .3s cubic-bezier(.4, 0, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-light);
  color: var(--text-dark);
  font-family: "Inter", sans-serif;
  overflow-x: hidden;
}
a { color: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

header {
  position: fixed;
  z-index: 1000;
  top: 0;
  width: 100%;
  padding: .8rem 0;
  background: #fff;
  box-shadow: 0 4px 30px rgba(0,0,0,.05);
}
.nav-wrapper {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
}
.logo { width: auto; height: 50px; transition: var(--transition); }
.logo:hover { transform: scale(1.05); }
nav { justify-self: center; }
nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; list-style: none; }
nav a { color: var(--primary); font-weight: 600; text-decoration: none; transition: var(--transition); }
nav a:hover, nav a:focus-visible { color: var(--secondary); }

.hero-sub {
  padding: 140px 0 120px;
  color: var(--white);
  background: linear-gradient(135deg, rgba(0,51,102,.95), rgba(0,20,40,.9));
  clip-path: ellipse(150% 100% at 50% 0%);
}
.hero-content { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center; }
.hero-text h1, .cta-box h3 {
  font-family: "Montserrat", sans-serif;
}
.hero-text h1 { margin-bottom: 20px; font-size: clamp(2.4rem, 5vw, 3.2rem); line-height: 1.1; letter-spacing: -1px; }
.hero-text p { max-width: 620px; margin-bottom: 35px; font-size: 1.2rem; line-height: 1.6; opacity: .92; }
.hero-image img {
  display: block;
  width: 100%;
  max-width: 500px;
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0,0,0,.3);
  transform: perspective(1000px) rotateY(-8deg);
  transition: var(--transition);
}
.hero-image img:hover { transform: perspective(1000px) rotateY(0) scale(1.02); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border: 0;
  border-radius: 50px;
  color: var(--white);
  font: 700 .85rem "Inter", sans-serif;
  letter-spacing: 1px;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(0,0,0,.15);
  transition: var(--transition);
}
.btn:hover, .btn:focus-visible { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(0,0,0,.25); }
.btn-gradient { background: linear-gradient(45deg, var(--secondary), var(--accent), var(--secondary)); background-size: 200% auto; }
.btn-gradient:hover { background-position: right center; }
.btn-white { color: var(--primary); background: var(--white); }

.section { padding: 100px 0; }
.section-header { margin-bottom: 60px; text-align: center; }
.section-header h2, .section-title { color: var(--primary); font-size: clamp(2rem, 4vw, 2.5rem); }
.section-header h2 { margin-bottom: 15px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.card {
  display: flex;
  height: 100%;
  flex-direction: column;
  align-items: center;
  padding: 35px 25px;
  border-radius: 20px;
  background: var(--white);
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
  transition: var(--transition);
}
.card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,.1); }
.card i { margin-bottom: 20px; color: var(--secondary); font-size: 2.6rem; }
.card h3 { margin-bottom: 15px; color: var(--primary); font-size: 1.25rem; }
.card p { flex-grow: 1; color: var(--text-light); font-size: .95rem; line-height: 1.6; }
.cta-box {
  margin-top: 40px;
  padding: 60px 40px;
  border-radius: 30px;
  color: var(--white);
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  text-align: center;
  box-shadow: 0 20px 40px rgba(0,51,102,.2);
}
.cta-box h3 { margin-bottom: 15px; font-size: 2rem; }
.cta-box p { margin-bottom: 30px; font-size: 1.1rem; opacity: .9; }

.whatsapp-float {
  position: fixed;
  z-index: 999;
  right: 30px;
  bottom: 30px;
  display: flex;
  width: 60px;
  height: 60px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--success);
  font-size: 30px;
  box-shadow: 0 10px 25px rgba(37,211,102,.3);
  transition: var(--transition);
}
.whatsapp-float:hover, .whatsapp-float:focus-visible { transform: scale(1.1) rotate(10deg); }
.btn-flutuante-voltar {
  position: fixed;
  z-index: 999;
  bottom: 30px;
  left: 30px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 25px;
  border: 2px solid var(--white);
  border-radius: 50px;
  color: var(--white);
  background: var(--primary);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(0,0,0,.2);
  transition: var(--transition);
}
.btn-flutuante-voltar:hover { background: var(--secondary); transform: scale(1.05); }
footer { padding: 60px 0; color: var(--white); background: var(--primary-dark); text-align: center; }
.footer-contact { margin-top: 10px; font-size: .8rem; opacity: .65; }

/* Shared careers/admin controls. */
.vaga-card { margin-bottom: 24px; padding: 28px 32px; border-top: 3px solid var(--secondary); border-radius: 12px; background: var(--white); box-shadow: 0 4px 15px rgba(0,0,0,.06); }
.vaga-card h2 { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; color: var(--primary); font-size: 1.25rem; text-transform: uppercase; }
.vaga-desc, .vaga-info p { margin-bottom: 8px; color: #555; line-height: 1.6; white-space: pre-wrap; }
.vaga-info strong { display: block; color: var(--primary); }
.btn-cand { margin-top: 14px; padding: 10px 22px; border: 0; border-radius: 25px; color: var(--white); background: var(--secondary); font-weight: 600; cursor: pointer; }
.form-box { display: none; margin-top: 20px; padding-top: 20px; border-top: 1px dashed #ddd; }
.form-box.ativo { display: block; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; margin-bottom: 5px; color: var(--primary); font-size: .85rem; font-weight: 600; }
.form-group input, .form-group textarea { width: 100%; padding: 11px; border: 1px solid #ddd; border-radius: 8px; font: inherit; }
.modal { position: fixed; z-index: 9999; inset: 0; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,.7); }
.modal.ativo { display: flex; }
.modal-box { width: 90%; max-width: 520px; max-height: 90vh; overflow: auto; padding: 28px; border-radius: 14px; background: var(--white); }
.modal-box.large { max-width: 900px; }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 2px solid #f0f0f0; }
.close { border: 0; color: inherit; background: none; font-size: 1.5rem; cursor: pointer; }
.tabs { display: flex; gap: 8px; margin-bottom: 20px; border-bottom: 2px solid #eee; }
.tab { padding: 10px 18px; border: 0; border-bottom: 3px solid transparent; color: #666; background: none; font-weight: 600; cursor: pointer; }
.tab.ativo { border-bottom-color: var(--secondary); color: var(--primary); }
.tab-content { display: none; }
.tab-content.ativo { display: block; }
.item-list { margin: 10px 0; padding: 14px 16px; border-left: 3px solid var(--secondary); border-radius: 8px; background: var(--bg-light); }
.item-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.btn-small { display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; border: 0; border-radius: 4px; color: var(--white); font-size: .75rem; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn-edit { background: var(--warning); }
.btn-toggle { background: #6c757d; }
.btn-del { background: var(--danger); }
.btn-down { background: var(--secondary); }

@media (max-width: 900px) {
  .nav-wrapper { display: flex; justify-content: space-between; }
  nav { display: none; }
  .hero-content { grid-template-columns: 1fr; gap: 35px; text-align: center; }
  .hero-text p { margin-right: auto; margin-left: auto; }
  .hero-image { order: -1; }
  .hero-image img { margin: 0 auto; transform: none; }
}
@media (max-width: 700px) {
  .grid { grid-template-columns: 1fr; }
  .section { padding: 70px 0; }
  .cta-box { padding: 40px 24px; }
}
@media (max-width: 600px) {
  .nav-wrapper .btn { padding: 11px 14px; font-size: .7rem; }
  .whatsapp-float { right: 18px; bottom: 18px; }
  .btn-flutuante-voltar { bottom: 18px; left: 18px; padding: 15px; border-radius: 50%; }
  .btn-flutuante-voltar span { display: none; }
}
