/* ============================================
   SORRISO PLENO - CLÍNICA ODONTOLÓGICA
   Design Premium - HTML + CSS + JS Puro
   ============================================ */

/* ============================================
   RESET E VARIÁVEIS
   ============================================ */

:root {
  /* Cores Corporativas */
  --primary: #0066cc;
  --primary-dark: #0052a3;
  --primary-light: #e6f0ff;
  --accent: #00d4aa;
  --accent-dark: #00a88a;
  --text-dark: #1a1a1a;
  --text-light: #666666;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --border-color: #e0e0e0;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);
  
  /* Tipografia */
  --font-display: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-body: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ============================================
   TIPOGRAFIA
   ============================================ */

h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-dark);
}

h2 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

p {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

/* ============================================
   LAYOUT GERAL
   ============================================ */

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

.section {
  padding: 6rem 2rem;
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title h2 {
  margin-bottom: 1rem;
}

.section-title p {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   HEADER STICKY
   ============================================ */

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: var(--transition);
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo::before {
  content: '🦷';
  font-size: 1.8rem;
}

nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
  position: relative;
  transition: var(--transition);
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

.cta-button {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  margin-top: 80px;
  position: relative;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('https://private-us-east-1.manuscdn.com/sessionFile/gCARvYUQXaRsBdk7GmJxo7/sandbox/7be9kisvltdwfwH68bDqtV-img-1_1771877104000_na1fn_b2RvbnRvLWhlcm8.webp?x-oss-process=image/resize,w_1920,h_1920/format,webp/quality,q_80&Expires=1798761600&Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9wcml2YXRlLXVzLWVhc3QtMS5tYW51c2Nkbi5jb20vc2Vzc2lvbkZpbGUvZ0NBUnZZVVFYYVJzQmRrN0dtSnhvNy9zYW5kYm94LzdiZTlraXN2bHRkd2Z3SDY4YkRxdFYtaW1nLTFfMTc3MTg3NzEwNDAwMF9uYTFmbl9iMlJ2Ym5SdkxXaGxjbTgud2VicD94LW9zcy1wcm9jZXNzPWltYWdlL3Jlc2l6ZSx3XzE5MjAsaF8xOTIwL2Zvcm1hdCx3ZWJwL3F1YWxpdHkscV84MCIsIkNvbmRpdGlvbiI6eyJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTc5ODc2MTYwMH19fV19&Key-Pair-Id=K2HSFNDJXOU9YS&Signature=h8ljkrfxvbf9ataMUwG-6ykVWKog~E4ywp5CW5y6XvpGlcsBPAt-va3ZAeDnQgcnL84Zoe65htlKg1qyD6OgqF5hKVCVREepRGFrsD9grcFUQKXr1QNbjW3oilG9KVXUdwuqcmK5IDP42mwVCJlg-bxEoy9wHRNpNo6sRBexikCAQHFVn-gHovy2EiZN1ktHgp0pZYeTJf7vGII015Z7LeR~4TvdTVSUDuwqtEfmtKEX8Zoi2XmcmuutdDrgQPWQxMqvSFFwsRfX2o4Fm1qjv-va~4Aj4vopPZ00JDph02YnKY9ssm75tWHk3f8CThug8aDhSb2qYp2QPWmDyHFJxQ__') center/cover;
  filter: brightness(0.5);
  z-index: -1;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: white;
  max-width: 700px;
}

.hero h1 {
  color: white;
  margin-bottom: 1rem;
  font-size: 3.5rem;
}

.hero .subtitle {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 2rem;
  font-weight: 300;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid white;
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ============================================
   PROCEDIMENTOS
   ============================================ */

.procedures {
  background: var(--bg-light);
}

.procedures-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.procedure-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
}

.procedure-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.procedure-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: var(--transition);
}

.procedure-card:hover img {
  transform: scale(1.05);
}

.procedure-info {
  padding: 1.5rem;
}

.procedure-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.procedure-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

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

/* ============================================
   COMO FUNCIONA
   ============================================ */

.how-it-works {
  background: white;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.step-card {
  text-align: center;
  padding: 2rem;
  border-radius: 12px;
  background: var(--bg-light);
  transition: var(--transition);
}

.step-card:hover {
  background: var(--primary-light);
  transform: translateY(-4px);
}

.step-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 auto 1rem;
}

.step-card h3 {
  margin-bottom: 0.8rem;
}

.step-card p {
  font-size: 0.95rem;
}

/* ============================================
   EQUIPE
   ============================================ */

.team {
  background: var(--bg-light);
}

.team-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-top: 3rem;
}

.team-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.team-image img {
  width: 100%;
  height: auto;
  display: block;
}

.team-members {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.member-card {
  text-align: center;
  padding: 1.5rem;
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.member-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.member-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
  color: var(--text-dark);
}

.member-role {
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 600;
}

/* ============================================
   ESTRUTURA & TECNOLOGIA
   ============================================ */

.structure {
  background: white;
}

.structure-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.structure-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.structure-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.structure-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.structure-info {
  padding: 2rem;
  background: white;
}

.structure-info h3 {
  margin-bottom: 1rem;
}

.structure-info p {
  font-size: 0.95rem;
  color: var(--text-light);
}

/* ============================================
   AUTOMAÇÃO (OPCIONAL)
   ============================================ */

.automation {
  background: linear-gradient(135deg, var(--primary-light), rgba(0, 102, 204, 0.05));
  border-radius: 12px;
  padding: 2rem;
  margin-top: 3rem;
  border-left: 4px solid var(--primary);
}

.automation h3 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.automation-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.automation-feature {
  display: flex;
  gap: 1rem;
}

.automation-feature::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.automation-note {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 1rem;
  font-style: italic;
}

/* ============================================
   DEPOIMENTOS
   ============================================ */

.testimonials {
  background: var(--bg-light);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.testimonial-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.testimonial-header {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-meta h4 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.testimonial-role {
  font-size: 0.85rem;
  color: var(--text-light);
}

.stars {
  color: #ffc107;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.7;
  font-style: italic;
}

/* ============================================
   FAQ (ACCORDION)
   ============================================ */

.faq {
  background: white;
}

.faq-container {
  max-width: 800px;
  margin: 3rem auto 0;
}

details {
  margin-bottom: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition);
}

details:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

summary {
  padding: 1.5rem;
  background: var(--bg-light);
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  transition: var(--transition);
}

summary:hover {
  background: var(--primary-light);
  color: var(--primary);
}

details[open] summary {
  background: var(--primary-light);
  color: var(--primary);
}

summary::after {
  content: '▼';
  font-size: 0.8rem;
  transition: var(--transition);
  transform: rotate(0deg);
}

details[open] summary::after {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 1.5rem;
  background: white;
  color: var(--text-light);
  line-height: 1.8;
}

/* ============================================
   FORMULÁRIO DE CONTATO
   ============================================ */

.contact {
  background: var(--bg-light);
}

.contact-form {
  max-width: 600px;
  margin: 3rem auto 0;
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.95rem;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.form-checkbox input {
  width: 20px;
  height: 20px;
  margin-top: 0.25rem;
  cursor: pointer;
  flex-shrink: 0;
}

.form-checkbox label {
  margin: 0;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
}

.form-microcopy {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 0.5rem;
  font-style: italic;
}

.form-submit {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.form-submit:active {
  transform: translateY(0);
}

/* ============================================
   RODAPÉ
   ============================================ */

footer {
  background: var(--text-dark);
  color: white;
  padding: 3rem 2rem 1rem;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-disclaimer {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-copy {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   BOTÃO VOLTAR AO TOPO
   ============================================ */

.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  z-index: 999;
}

.scroll-to-top:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.scroll-to-top.show {
  display: flex;
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */

@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .section {
    padding: 4rem 1.5rem;
  }

  .section-title {
    margin-bottom: 2.5rem;
  }

  nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: white;
    padding: 1rem;
    gap: 0.5rem;
    box-shadow: var(--shadow-md);
  }

  nav.active {
    display: flex;
  }

  nav a {
    padding: 0.75rem 1rem;
    display: block;
  }

  nav a::after {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    height: 400px;
    margin-top: 70px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero .subtitle {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .procedures-grid {
    grid-template-columns: 1fr;
  }

  .team-container {
    grid-template-columns: 1fr;
  }

  .team-members {
    grid-template-columns: 1fr;
  }

  .structure-grid {
    grid-template-columns: 1fr;
  }

  .automation-features {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .scroll-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 45px;
    height: 45px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  h3 {
    font-size: 1.2rem;
  }

  .section {
    padding: 3rem 1rem;
  }

  .hero {
    height: 300px;
    margin-top: 60px;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .hero .subtitle {
    font-size: 0.9rem;
  }

  .cta-button {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
  }

  .btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }

  .member-card {
    padding: 1rem;
  }

  .contact-form {
    padding: 1.5rem;
  }

  .form-checkbox {
    gap: 0.5rem;
  }

  .form-checkbox input {
    width: 18px;
    height: 18px;
  }
}

/* ============================================
   ANIMAÇÕES
   ============================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.slide-in-left {
  animation: slideInLeft 0.6s ease-out;
}

/* ============================================
   ESTADOS E VALIDAÇÃO
   ============================================ */

input.error,
textarea.error {
  border-color: #e74c3c;
  background-color: rgba(231, 76, 60, 0.05);
}

.error-message {
  color: #e74c3c;
  font-size: 0.85rem;
  margin-top: 0.3rem;
}

.success-message {
  color: var(--accent);
  font-size: 0.85rem;
  margin-top: 0.3rem;
}
