/* Cura Ativa - Design System & CSS Otimizado */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;700&display=swap');

:root {
  --bg-gelo: #F8F9FA;
  --bg-white: #FFFFFF;
  --petroleo: #00334E;
  --petroleo-light: #004d73;
  --verde-eucalipto: #4A6741;
  --verde-light: #e5f0e3;
  --dourado: #D4AF37;
  --dourado-hover: #b29128;
  --text-dark: #1F2937;
  --text-muted: #6B7280;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Outfit', system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  color: var(--text-dark);
  background-color: var(--bg-gelo);
}

body {
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--petroleo);
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

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

/* Header */
header {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--petroleo);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo span {
  color: var(--verde-eucalipto);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-weight: 500;
  color: var(--text-dark);
}

.nav-links a:hover {
  color: var(--verde-eucalipto);
}

.btn-primary {
  background-color: var(--dourado);
  color: #fff;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.3);
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
  cursor: pointer;
  border: none;
  font-family: var(--font-sans);
  font-size: 1rem;
}

.btn-primary:hover {
  background-color: var(--dourado-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.btn-outline {
  border: 2px solid var(--verde-eucalipto);
  color: var(--verde-eucalipto);
  background: transparent;
  font-weight: 600;
  padding: 10px 26px;
  border-radius: var(--radius-pill);
}

.btn-outline:hover {
  background: var(--verde-eucalipto);
  color: #fff;
}

/* Sections */
section {
  padding: 100px 0;
}

.section-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-head h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.125rem;
}

.badge {
  background-color: var(--verde-light);
  color: var(--verde-eucalipto);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 16px;
}

/* Hero Section */
.hero {
  padding: 180px 0 120px;
  background: linear-gradient(135deg, var(--bg-gelo) 0%, #e0ecee 100%);
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-content p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  align-items: center;
}

.hero-image-wrapper {
  position: relative;
}

/* Autoridade Section */
.autoridade {
  background-color: var(--bg-white);
}

.trust-badges {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 40px;
  border-top: 1px solid #eee;
  padding-top: 40px;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--petroleo);
  font-weight: 600;
}

.trust-badge svg {
  color: var(--verde-eucalipto);
}

/* Patologias (Especialidades) Grid */
.patologias-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.patologia-card {
  background: var(--bg-white);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 1px solid rgba(0,0,0,0.03);
}

.patologia-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(74, 103, 65, 0.2);
}

.p-icon {
  width: 56px;
  height: 56px;
  background-color: var(--verde-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--verde-eucalipto);
}

.patologia-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.patologia-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Vitrine / Solução */
.vitrine {
  background-color: var(--petroleo);
  color: white;
}

.vitrine .section-head h2 {
  color: white;
}

.vitrine .section-head p {
  color: rgba(255,255,255,0.8);
}

.passos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.passo {
  text-align: center;
}

.passo-numero {
  width: 60px;
  height: 60px;
  background-color: var(--dourado);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 24px;
}

.passo h3 {
  color: white;
  margin-bottom: 12px;
}

.passo p {
  color: rgba(255,255,255,0.7);
}

/* SmartChat Widget */
.smartchat-overlay {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
}

.smartchat-btn {
  width: 64px;
  height: 64px;
  background-color: var(--dourado);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.4);
  cursor: pointer;
  transition: transform 0.3s;
  animation: pulse 2s infinite;
}

.smartchat-btn svg {
  color: white;
  width: 32px;
  height: 32px;
}

.smartchat-btn:hover {
  transform: scale(1.05);
}

.smartchat-window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 340px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transform-origin: bottom right;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform: scale(0);
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}

.smartchat-window.active {
  transform: scale(1);
  opacity: 1;
  pointer-events: auto;
}

.sc-header {
  background: var(--petroleo);
  color: white;
  padding: 20px;
  position: relative;
}

.sc-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
}

.sc-body {
  padding: 24px;
}

.sc-input-group {
  margin-bottom: 16px;
}

.sc-input-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--petroleo);
}

.sc-input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
  transition: border-color 0.2s;
}

.sc-input:focus {
  outline: none;
  border-color: var(--dourado);
}

.sc-submit {
  width: 100%;
  background: var(--dourado);
  color: white;
  border: none;
  padding: 14px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-size: 1rem;
  margin-top: 8px;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.6); }
  70% { box-shadow: 0 0 0 15px rgba(212, 175, 55, 0); }
  100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

/* Responsividade */
@media (max-width: 768px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .passos-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .nav-links {
    display: none;
  }
}
