:root {
  --verde-principal: #348f34;
  --verde-escuro: #206120;
  --verde-claro: #d8f2db;
  --branco: #ffffff;
  --cinza: #444;
  --bege-claro: #f7f7f2;
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  color: var(--cinza);
  background: var(--verde-claro);
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

/* HERO */
.hero {
  background: linear-gradient(135deg, var(--verde-principal), var(--verde-escuro));
  color: var(--branco);
  padding: 60px 20px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 80px;
  background: url('../img/onda-bottom.svg') no-repeat center bottom;
  background-size: cover;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.hero-texto {
  max-width: 500px;
}

.hero h1 {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.hero p {
  font-size: 1.05rem;
  margin-bottom: 20px;
}

.hero-img {
  width: 140px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.2));
}

.admin-link-hero {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 0.85rem;
  color: var(--branco);
  opacity: 0.5;
  text-decoration: none;
  z-index: 3;
}
.admin-link-hero:hover {
  opacity: 1;
}

.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* SOBRE */
#sobre {
  background: url('../img/paciente-sorrindo.jpg') center/cover no-repeat;
  padding: 100px 20px 80px;
  position: relative;
  clip-path: polygon(0 2%, 100% 0, 100% 100%, 0 98%);
  z-index: 2;
}
#sobre::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.3);
  z-index: 1;
}
.texto-sobre {
  max-width: 600px;
  background: var(--branco);
  margin: 0 auto;
  padding: 40px;
  border-radius: 20px;
  box-shadow: inset 0 0 1px #ddd, 0 4px 12px rgba(0, 0, 0, 0.05);
  text-align: center;
  position: relative;
  z-index: 2;
}
.texto-sobre h2 {
  color: var(--verde-escuro);
  font-size: 2rem;
  margin-bottom: 20px;
}
.texto-sobre p {
  margin-bottom: 15px;
}

/* ÁREAS */
#areas {
  background: linear-gradient(to bottom, var(--verde-claro), var(--verde-principal));
  padding: 100px 20px;
  text-align: center;
  position: relative;
  z-index: 2;
}

#areas h2 {
  font-size: 2rem;
  color: var(--verde-escuro);
  margin-bottom: 10px;
}

#areas .sub {
  font-size: 0.95rem;
  margin-bottom: 40px;
}

.cards-flip {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  perspective: 1000px;
}
.card-flip:hover {
  cursor: pointer;
}
.card-flip.flip {
  transform: rotateY(180deg);
}
.card-flip {
  width: 250px;
  height: 200px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
}
.face {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.05);
  padding: 16px;
  text-align: center;
}

.front {
  background: linear-gradient(to top, #f1fbf1, #ffffff);
  border: 1px solid var(--verde-principal);
  border-radius: 18px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  z-index: 2;
  transform: rotateY(0deg);
}

.front img {
  width: 50px;
  margin-bottom: 12px;
}

.front h3 {
  font-size: 1.2rem;
  color: var(--verde-escuro);
}

.back {
  background: var(--verde-principal);
  color: var(--branco);
  transform: rotateY(180deg);
  font-size: 1.1rem;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  border: 1px solid var(--verde-claro);
}

.back p {
  line-height: 2;
  font-weight: 700;
  color: var(--branco);
}

/* FAQ */
#faq {
  background: var(--branco);
  padding: 100px 20px;
  position: relative;
  clip-path: polygon(0 3%, 100% 0, 100% 100%, 0 97%);
  z-index: 2;
}
#faq h2 {
  text-align: center;
  color: var(--verde-escuro);
  font-size: 2rem;
  margin-bottom: 40px;
}
#faq details {
  background: #fdfdfb;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
  transition: 0.3s;
}
#faq details:nth-child(even) {
  background: var(--bege-claro);
}
#faq summary {
  font-weight: bold;
  font-size: 1rem;
  color: var(--verde-escuro);
  outline: none;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  cursor: pointer;
  padding-right: 24px;
  list-style: none;
}
#faq p {
  margin-top: 10px;
  font-size: 0.95rem;
  color: var(--cinza);
}
#faq summary::marker {
  display: none;
}
#faq summary::after {
  content: "▶";
  position: absolute;
  right: 0;
  top: 3px;
  transition: transform 0.3s ease;
  font-size: 0.9rem;
}
#faq details[open] summary::after {
  transform: rotate(90deg);
}

/* AGENDAMENTO */
#agendamento {
  background: var(--verde-principal);
  padding: 100px 20px;
  text-align: center;
  clip-path: polygon(0 2%, 100% 0, 100% 100%, 0 97%);
  color: var(--branco);
}
.agendar {
  background: var(--branco);
  max-width: 500px;
  margin: 0 auto;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  color: var(--verde-escuro);
}
.agendar h2 {
  margin-bottom: 15px;
}

/* LOCALIZAÇÃO */
#mapa {
  padding: 50px 20px;
  background-color: var(--bege-claro);
  text-align: center;
}
#mapa h2 {
  font-size: 2rem;
  color: var(--verde-escuro);
  margin-bottom: 20px;
}
#mapa p {
  font-size: 0.95rem;
  margin-top: 10px;
}
.mapa-box {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  border: 1px solid #cde5cd;
}

/* BOTÃO */
.btn {
  background-color: var(--verde-principal);
  color: var(--branco);
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  margin-top: 20px;
  transition: 0.3s ease;
}
.btn:hover {
  background-color: var(--verde-escuro);
  transform: translateY(-2px);
}

/* RODAPÉ */
footer {
  background-color: var(--verde-escuro);
  color: var(--branco);
  padding: 20px;
  text-align: center;
  font-size: 0.9rem;
}

.redes-sociais {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 20px;
}
.redes-sociais a {
  color: var(--branco);
  transition: transform 0.2s ease;
}
.redes-sociais a:hover {
  transform: scale(1.2);
}

.redes-sociais i {
  width: 22px;
  height: 22px;
  stroke-width: 1.8;
}

/* RESPONSIVO */
@media (max-width: 768px) {
  .hero-content {
    flex-direction: column-reverse;
    text-align: center;
  }
  .hero-img {
    width: 100px;
  }
  .card-flip {
    width: 140px;
    height: 150px;
  }
  .faq summary {
    font-size: 0.95rem;
  }
}
