/* --- Reset e Fontes --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #0f172a;
  --bg-light: #f8fafc;
  --text-dark: #1e293b;
  --text-light: #64748b;
  --white: #ffffff;
  --font: 'Poppins', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--white);
}

.container {
  width: 90%;
  max-width: 1140px;
  margin: 0 auto;
}

.section {
  padding: 80px 0;
}

.bg-light {
  background-color: var(--bg-light);
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2.2rem;
  color: var(--secondary);
}

.section-title p {
  color: var(--text-light);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.grid-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

/* --- Botões --- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-outline {
  border: 2px solid var(--white);
  color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--secondary);
}

.btn-whatsapp {
  background: #25d366;
  color: var(--white);
  font-size: 1.1rem;
}

.btn-whatsapp:hover {
  background: #1eb956;
}

/* --- Header & Navigation --- */
.topbar {
  background: var(--secondary);
  color: var(--white);
  font-size: 0.85rem;
  padding: 8px 0;
}

.topbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.social-links a {
  color: #38bdf8;
  text-decoration: none;
  font-weight: 500;
}

.header {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--secondary);
  text-decoration: none;
}

.logo span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 25px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: 0.3s;
}

.nav-links a:hover {
  color: var(--primary);
}

/* --- Hero Section (Modificada para padrão tech/corporativo) --- */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  padding: 110px 0 130px;
  color: var(--white);
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.badge {
  display: inline-block;
  background: rgba(37, 99, 235, 0.2);
  color: #60a5fa;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid rgba(96, 165, 250, 0.3);
}

.hero h1 {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 35px;
}

.hero-btns {
  display: flex;
  justify-content: center;
  gap: 15px;
}

/* --- Cards do Portfólio --- */
.card-portfolio {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  position: relative;
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
}

.card-portfolio:hover {
  transform: translateY(-7px);
}

.card-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(15, 23, 42, 0.8);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 2;
}

.card-img-holder {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-icon {
  font-size: 3.5rem;
  color: rgba(255, 255, 255, 0.9);
}

.bg-clinica { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.bg-advocacia { background: linear-gradient(135deg, #1e293b, #0f172a); }
.bg-medico { background: linear-gradient(135deg, #0ea5e9, #0284c7); }
.bg-oficina { background: linear-gradient(135deg, #475569, #334155); }

.card-body {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.card-body h3 {
  font-size: 1.2rem;
  color: var(--secondary);
  margin-bottom: 10px;
}

.card-body p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.btn-demo {
  display: inline-block;
  text-align: center;
  padding: 10px 18px;
  background: var(--bg-light);
  color: var(--secondary);
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: 0.3s;
}

.btn-demo:hover {
  background: var(--primary);
  color: var(--white);
}

/* --- Caixas de Serviços e Gestão --- */
.service-box {
  background: var(--white);
  padding: 35px 30px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
  transition: transform 0.3s;
}

.service-box:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}

.service-icon {
  width: 55px;
  height: 55px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.service-box h3 {
  margin-bottom: 12px;
  color: var(--secondary);
  font-size: 1.2rem;
}

.service-box p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* --- Diferenciais --- */
.feature-box {
  background: var(--white);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  text-align: center;
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 20px;
}

.feature-box h3 {
  margin-bottom: 10px;
  color: var(--secondary);
}

.feature-box p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* --- CTA --- */
.cta {
  background: var(--secondary);
  color: var(--white);
  text-align: center;
  padding: 70px 0;
}

.cta h2 {
  font-size: 2.2rem;
  margin-bottom: 15px;
}

.cta p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 30px;
}

/* --- Footer --- */
.footer {
  background: #090d16;
  color: #94a3b8;
  padding: 30px 0;
  font-size: 0.9rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer h3 {
  color: var(--white);
}

.footer h3 span {
  color: var(--primary);
}

/* --- WhatsApp Float --- */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 25px;
  right: 25px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: 0.3s;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

/* --- Mobile Responsivo --- */
@media (max-width: 768px) {
  .topbar { display: none !important; }
  .nav-links { display: none !important; }
  .header .btn-header, .header a.btn-primary { display: none !important; }
  
  .hero h1 { font-size: 2rem; }
  .hero-btns { flex-direction: column; }
  .footer-content { flex-direction: column; gap: 15px; text-align: center; }
}