:root {
  --blue: #007bff;
  --blue-light: #60a5fa;
  --blue-deep: #0a192f; /* usado no tema escuro */
  --green: #22c55e;
  --bg: #ffffff;
  --muted-bg: #f5f5f5;
  --text: #1e1e1e;
  --muted: #666666;
  --radius: 12px;
  --container: 1100px;
  --accent: #007bff;
  --accent-hover: #2563eb;
}


/* Dark theme overrides (Dark Blue Tech) */
:root[data-theme="dark"] {
  --bg: var(--blue-deep);
  --muted-bg: #071223;
  --text: #f7fafc;
  --muted: #b8c6d9;
  --blue: #60a5fa; /* highlight */
  
}
:root[data-theme="dark"] section + section {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
:root[data-theme="dark"] #theme-toggle {
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.12));
    box-shadow: 0 4px 18px rgba(0,0,0,0.24);
}

/* Tema escuro - depoimentos */
:root[data-theme="dark"] .testimonial {
  background: #0e1a2b;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}
:root[data-theme="dark"] .avatar {
  background: var(--blue-light);
  color: #0a192f;
}
:root[data-theme="dark"] .modal-content {
  background: #0e1a2b;
  color: var(--text);
}
:root[data-theme="dark"] .modal-content input,
:root[data-theme="dark"] .modal-content textarea,
:root[data-theme="dark"] .modal-content select {
  background: #071223;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
}
:root[data-theme="dark"] .close {
  color: #94a3b8;
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s ease, color 0.3s ease;
}
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 24px;
}

section + section {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 48px;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  z-index: 10;
  width: 100%;
  padding: 1px 0;
  background: var(--bg);
}
/* Mobile menu button */
#mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text);
  cursor: pointer;
  padding: 8px;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.logo {
  width: 44px;
  height: 44px;
}
.brand-text {
  font-weight: 700;
  font-family: Poppins, Inter, Arial;
}
.main-nav {
  display: none;
  gap: 18px;
}
/* quando aberto */
.main-nav.open {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: absolute;
  right: 18px;
  top: 64px;
  background: var(--muted-bg);
  padding: 12px;
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
  z-index: 50;
}
.main-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}

.header-controls {
  display: flex;
  gap: 5px;
  align-items: center;
}
/* Botão de alternância de tema */
#theme-toggle {
  position: relative;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  
  color: #fff;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, transform 0.3s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#theme-toggle:hover {
  background: var(--blue-light);
  transform: scale(1.1);
}


/* Ícones */
#theme-toggle .sun,
#theme-toggle .moon {
  position: absolute;
  font-size: 1.4rem;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Estado inicial */
#theme-toggle .sun {
  opacity: 1;
  transform: rotate(0deg);
}

#theme-toggle .moon {
  opacity: 0;
  transform: rotate(-90deg);
}

/* Quando em modo escuro */
[data-theme="dark"] #theme-toggle .sun {
  opacity: 0;
  transform: rotate(90deg);
}

[data-theme="dark"] #theme-toggle .moon {
  opacity: 1;
  transform: rotate(0deg);
}
/* Botões */
.btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 12px;
  text-decoration: none;
  border: 0;
  font-weight: 600;
}
.btn.primary {
  background: var(--green);
  color: #fff;
  -webkit-text-stroke: 0.1px #000; /* Espessura e cor do contorno */
}
.btn.whatsapp {
  background: var(--green);
  color: #fff;
}
.btn.outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
  
}
/* Hero */
.hero {
  padding: 48px 0;
}
.hero-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  border-radius: 16px;
}
.hero-copy h1 {
  font-family: Poppins, Inter;
  font-size: 36px;
  margin: 0 0 16px;
  color: #ffffff;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlideUp 0.8s forwards;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}
.hero-copy p {
  font-size: 18px;
  color: #ffffff;
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlideUp 0.8s forwards;
  animation-delay: 0.2s;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}
.hero-copy .btn {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlideUp 0.8s forwards;
  animation-delay: 0.4s;
  
}



.tips-hero {
  position: relative;
  width: 100%;
  min-height: 60vh;
  overflow: hidden;
  border-radius: 16px;
}
.hero-media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  border-radius: 18px;
  opacity: 90%;
}
.hero-media img {
  object-fit: cover;
  }
.hero-media::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.6));
  z-index: 1;
}
.hero-copy {
  position: relative;
  z-index: 2;
  color: white;
  text-align: center;
  padding: 2rem;
  max-width: 800px;
  margin: 0 auto;
  animation: fadeSlideUp 0.8s forwards;
  backdrop-filter: blur(4px);  
}
.hero-copy h1 {
  font-family: Poppins, Inter, sans-serif;
  font-size: 2rem;
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlideUp 0.8s forwards;
  }
.hero-copy p {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  text-shadow: 3px 3px 10px rgba(0,0,0,0.8);
  transform: translateY(20px);
  animation: fadeSlideUp 0.8s forwards;
  animation-delay: 0.2s;
  text-align: justify;
  
  }

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-copy h1 {
    font-size: 2rem;
  }
  
  .hero-copy p {
    font-size: 1rem;
  }
  .testimonials {
    padding: 1.5rem 0.5rem;
  }

  .testimonials h2 {
    font-size: 1.6rem;
  }

  .testimonials-carousel {
    gap: 0.75rem;
    padding: 0.5rem;
  }

  .testimonial {
    flex: 0 0 90%;
    max-width: 90%;
    padding: 1rem;
  }
}

.lead {
  color: var(--muted);
  margin: 0 0 18px;
}
/* Hero media */
.hero-media img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlideUp 0.8s forwards;
  animation-delay: 0.6s;
  

}
.hero-media img,
.tips-hero img {
  width: 100%;        /* ocupa todo o container horizontal */
  height: 100%;       /* mantém proporção */
  object-fit: cover;  /* corta se necessário sem deformar */
  border-radius: 16px;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  background: var(--muted-bg);
  padding: 18px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}
.card h3 {
  margin-top: 0;
}
.card img {
  width: 100%;
  max-height: 200px;   /* altura consistente */
  object-fit: cover;   /* mantém proporção e corta excesso */
  border-radius: 12px;
  margin-bottom: 12px;
}
/* Sobre / About */
.about img {
  width: 200px;       /* tamanho fixo para foto de rosto */
  height: 200px;
  border-radius: 50%; /* circular */
  object-fit: cover;
  margin-right: 24px;
  float: left;        /* texto flui ao lado */
}
/* Contact */
.contact {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.contact-section {
  background: #f9fbff;
  padding: 60px 20px;
  display: flex;
  justify-content: center;
}
.contact-box {
  display: flex;
  flex-direction: column; /* empilha sempre: info acima, form abaixo */
  gap: 24px;
  padding: 32px;
  background: var(--muted-bg);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  align-items: stretch; /* crianças ocupam largura disponível */
}

.contact form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-self: center;
}


.contact-details li {
  margin-bottom: 8px;
  color: var(--text);
}

.contact-details a {
  color: var(--blue);
  text-decoration: none;
}

.contact-form {  
  display: flex;
  flex-direction: column;
  
}

.contact-form-wrapper {
  flex: 1 1 380px;  
  flex-direction: column;
  margin: 0 auto;
  
}

.contact-form-wrapper form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 60%;
}

.contact-form-wrapper input,
.contact-form-wrapper textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.1);
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
}

.contact-form-wrapper textarea {
  resize: vertical;
  min-height: 120px;
  
}

.contact-form-wrapper button {
  align-self: flex-end;
  padding: 12px 24px;
}
.contact input,
.contact textarea {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.contact textarea {
  min-height: 120px;
}
.contact img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 12px;
}
/* Garantir que a info fique no topo e o formulário abaixo */
.contact-info {
  order: 1;
  width: 100%;
  text-align: left;
}
/* Formulário abaixo, ocupando toda a largura (ou ajuste max-width) */
.contact-form-wrapper {
  order: 2;
  width: 100%;
  max-width: 900px; /* remova ou ajuste se quiser ocupar exatamente 100% */
}
/* Layout interno do form — botão e inputs alinhados à esquerda */
.contact-form-wrapper form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch; /* garante inputs e botão à esquerda (full width) */
}

#contact-form .input-group {
  display: flex;
  flex-direction: column; /* se quiser inputs lado a lado, mude aqui */
  gap: 12px;
}

/* Se preferir que o botão NÃO ocupe 100% e fique à esquerda, use: */
#contact-form button {
  width: auto;
  align-self: flex-start;
  padding: 12px 24px;
}

/* Pequeno ajuste visual para telas muito largas */
@media (min-width: 1400px) {
  .contact-box { padding: 40px; }
  .contact-form-wrapper { max-width: 1100px; }
}
/* desktop mantém o layout normal */
@media (min-width: 768px) {
  .main-nav {
    display: flex;
    position: static;
    flex-direction: row;
    box-shadow: none;
    background: transparent;
  }
}
@media (max-width: 480px) {
  .testimonial {
    flex: 0 0 95%;
    max-width: 95%;
    padding: 0.9rem;
  }
}
/* WhatsApp float */
.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 22px;
  background: var(--green);
  color: #fff;
  box-shadow: 0 10px 30px rgba(34, 197, 94, 0.18);
  transition: transform 0.18s ease;
}
.whatsapp-float:hover {
  transform: translateY(-4px);
}
/* Footer */
.site-footer {
  padding: 16px 0;
  margin-top: 28px;
  background: transparent;
  color: var(--muted);
}


/* Responsivo */
@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .testimonials {
    padding: 2.5rem 1rem;
  }
  .testimonials-carousel {
    gap: 1rem;
    max-width: 80%;
  }
  .testimonial {
    flex: 0 0 85%;
    min-width: 85%;
    padding: 16px;
  }
}
@media (max-width: 640px) {
  .main-nav {
    display: none;
  }
  #mobile-menu-btn {
    display: inline-block;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .hero-copy h1 {
    font-size: 28px;
  }
} 

@media (max-width: 768px) {
  .contact-box {
    flex-direction: column;
  }

  .contact-form-wrapper,
  .contact-info {
    width: 100%;
    order: unset;
  }
}
/* Depoimentos */
.testimonials {
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
  background: var(--bg-alt);
  color: var(--text);
  text-align: center;
  padding: 2rem 1rem;
  box-sizing: border-box;
}

.testimonials h2 {
  margin-bottom: 1.5rem;
  font-size: 2rem;
  color: var(--text);
  word-wrap: break-word;
}


.testimonials-carousel {
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.5rem;
  margin: 0 auto;
  box-sizing: border-box;
  max-width: 100%;
}

.testimonials-carousel::-webkit-scrollbar {
  display: none;
}

.testimonial {
  flex: 0 0 85%;
  scroll-snap-align: start;
  background: var(--card-bg);
  border-radius: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  padding: 1.2rem;
  margin: 0 auto;
  transition: transform 0.3s ease;
}

.testimonial:hover {
  transform: scale(1.03);
}


.testimonial-bubble {
  font-style: italic;
  margin-bottom: 1rem;
  position: relative;
}
.testimonials::-webkit-scrollbar {
  display: none; /* remove a barra de rolagem */
}

.avatar {
  background: var(--accent);
  color: white;
  font-weight: bold;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.5rem;
}

.testimonial-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  flex-wrap: wrap;
}

.stars {
  color: gold;
  font-size: 1rem;
}

/* ====================== Modal ====================== */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  align-items: center;
  justify-content: center;
}
.modal-content {
  background: var(--bg);
  padding: 24px;
  border-radius: var(--radius);
  max-width: 400px;
  width: 90%;
  position: relative;
  text-align: left;
}
.modal-content label {
  display: fixed;
  margin-top: 10px;
  font-weight: 500;
}
.modal-content input,
.modal-content textarea,
.modal-content select {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  margin-top: 5px;
}
.modal-content textarea {
  resize: vertical;
  min-height: 80px;
}
#depoimentoModal.active {
  display: flex;
}

#depoimentoModal .modal-content {
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
.close {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 22px;
  color: var(--muted);
  cursor: pointer;
}
/* ====================== Toast (mensagem de feedback) ====================== */
.toast {
  position: fixed;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 0.95rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: all 0.4s ease;
  z-index: 9999;
}

.toast.show {
  top: 20px;
  opacity: 1;
}

.toast.success {
  background-color: rgba(40, 167, 69, 0.9);
  backdrop-filter: blur(6px);
}

.toast.error {
  background-color: rgba(220, 53, 69, 0.9);
  backdrop-filter: blur(6px);
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}
/* Animação fade + slide */
@keyframes fadeSlideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}