:root {
  --bg: #f3f7f4;
  --surface: #ffffff;
  --surface-strong: #edf8f3;
  --text: #222222;
  --text-muted: #5b6b64;
  --brand: #1abc9c;
  --brand-dark: #224d3f;
  --accent: #ffc107;
  --border: rgba(34, 77, 63, 0.12);
  --shadow: 0 10px 30px rgba(34, 77, 63, 0.08);
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--text);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

header {
  background: linear-gradient(180deg, #3a8e51 0%, #2d7a44 100%);
  color: #fff;
}

.top-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  padding: 12px 24px;
  background-color: rgba(58, 142, 81, 0.95);
}

.contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.95rem;
}

.search-bar input[type="search"] {
  padding: 8px 12px;
  width: 180px;
  border: none;
  border-radius: 999px;
  font-size: 0.95rem;
}

.social-buttons {
  display: flex;
  gap: 10px;
}

.social-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--brand);
  color: #ffffff;
  text-decoration: none;
  font-family: "Font Awesome 6 Brands";
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease;
}

.social-button i {
  font-size: 28px;
  line-height: 1;
  color: #ffffff;
  font-family: "Font Awesome 6 Brands";
  font-weight: 400;
}

.social-button:hover {
  background-color: #ffffff;
  color: var(--brand);
  transform: translateY(-2px);
}

.social-button:hover i {
  color: var(--brand);
}

.logo-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-logo img {
  max-height: 72px;
}

.brand-logo h1 {
  font-size: 1.85rem;
  margin: 0;
}

.brand-subtitle {
  margin: 6px 0 0;
  font-size: 0.98rem;
  color: #f8f4ea;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  background-color: var(--brand);
  color: #ffffff;
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(34, 77, 63, 0.14);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(34, 77, 63, 0.18);
  background-color: var(--brand-dark);
}

.main-nav {
  background-color: var(--brand);
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list > li {
  position: relative;
}

.nav-list > li > a,
.dropdown-button {
  display: block;
  padding: 16px 22px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.nav-list > li > a:hover,
.dropdown-button:hover {
  background-color: var(--accent);
  color: var(--brand-dark);
}

.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  background-color: var(--brand);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
  border-radius: 8px;
  overflow: hidden;
  z-index: 10;
  padding: 8px 0;
  opacity: 0;
  transform: translateY(-10px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.dropdown-content li a {
  padding: 14px 20px;
  color: #fff;
  font-weight: 500;
  display: block;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-content li:last-child a {
  border-bottom: none;
}

.dropdown-content li a:hover {
  background-color: #ffc107;
  color: #1a1a1a;
}

.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

main:not(.content) {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  padding: 24px;
}

main.content {
  display: block;
  padding: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.content,
.sidebar,
.map-container,
.content-block {
  background-color: #ffffff;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.content {
  padding: 28px;
}

.content-block {
  padding: 28px;
  margin-bottom: 24px;
}

.content-block h1,
.content-block h2,
.success-story h2,
.practice-focus h4,
.address-card h4 {
  margin-top: 0;
}

.content-block h1,
.content-block h2 {
  color: #224d3f;
}

.content-block p,
.content-block ul,
.content-block ol,
.success-story p,
.sidebar p,
.practice-focus li,
.address-card p,
.feature-list li {
  line-height: 1.75;
  color: #424242;
}

.content-block ul,
.content-block ol,
.feature-list {
  margin: 18px 0;
  padding-left: 1.2rem;
}

.content-block h2 {
  margin-bottom: 18px;
  font-size: 2rem;
  color: #224d3f;
}

.content-block p,
.success-story p,
.sidebar p,
.practice-focus li,
.address-card p,
.feature-list li {
  line-height: 1.75;
  color: #424242;
}

.content-block img {
  width: 100%;
  border-radius: 16px;
  margin: 18px 0;
}

.feature-list {
  list-style: disc inside;
  margin: 18px 0;
  padding-left: 1rem;
}

.feature-list li {
  margin-bottom: 12px;
}

.success-story {
  margin-top: 36px;
}

.images-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.story-image {
  border-radius: 16px;
  height: auto;
  object-fit: cover;
}

.artigos-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin-top: 24px;
}

.artigo {
  background-color: var(--surface);
  border: 1px solid rgba(26, 188, 156, 0.15);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(34, 77, 63, 0.08);
  display: flex;
  flex-direction: column;
}

.artigo img,
.story-image,
.image-block img,
.address-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 18px;
}

.artigo-content {
  padding: 22px;
}

.artigo h3 {
  margin: 0 0 12px;
  font-size: 1.25rem;
  color: #224d3f;
}

.artigo p {
  line-height: 1.7;
  color: #4a4a4a;
  margin-bottom: 16px;
}

.ler-mais {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: #ffffff;
  background-color: var(--brand);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.ler-mais:hover {
  background-color: var(--brand-dark);
}

.map-link,
.calculadora button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background-color: var(--brand);
  color: #ffffff;
  padding: 14px 18px;
  border-radius: 999px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.map-link:hover,
.calculadora button:hover {
  background-color: var(--brand-dark);
  transform: translateY(-2px);
}

.calculadora-page .calculadora-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.calculadora {
  padding: 24px;
}

.calculadora label {
  display: block;
  margin-top: 18px;
  font-weight: 700;
}

.calculadora input,
.calculadora button {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #d6e6dd;
  margin-top: 10px;
  font-size: 1rem;
}

.calculadora button {
  border: none;
  background-color: var(--brand);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
}

.calculadora button:hover {
  background-color: var(--brand-dark);
}

.descricao {
  padding: 24px;
}

.content-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
}

.image-block img {
  border-radius: 18px;
}

.content-row h1,
.content-row h2 {
  margin-top: 0;
}

.success-story h2 {
  margin: 24px 0 14px;
  font-size: 1.9rem;
  color: #1f5f48;
}

.sidebar {
  padding: 28px;
}

.doctor-photo {
  width: 100%;
  border-radius: 20px;
  margin-bottom: 22px;
}

.sidebar h3 {
  margin-bottom: 8px;
  font-size: 1.65rem;
  color: #224d3f;
}

.subtitle {
  margin-top: 0;
  color: #555;
}

.practice-focus {
  margin: 24px 0 0;
}

.practice-focus ul {
  list-style: disc inside;
  margin: 14px 0 0;
  padding-left: 1rem;
}

.practice-focus li {
  margin-bottom: 10px;
}

.address-card {
  margin-top: 28px;
  padding: 22px;
  border-radius: 18px;
  background-color: #f2faf7;
  text-align: center;
}

.address-card img {
  border-radius: 16px;
  margin-bottom: 18px;
}

.address-card p {
  margin: 0;
}

.whatsapp-button {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: var(--brand);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-family: "Font Awesome 6 Brands";
  box-shadow: 0 10px 26px rgba(34, 77, 63, 0.35);
  z-index: 1000;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.whatsapp-button i {
  font-size: 40px;
  line-height: 1;
  color: #ffffff;
  font-family: "Font Awesome 6 Brands";
  font-weight: 400;
}

.whatsapp-button:hover {
  transform: translateY(-2px);
  background-color: var(--brand-dark);
}

.whatsapp-button .tooltip {
  position: absolute;
  right: 72px;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 8px 12px;
  border-radius: 12px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
}

.whatsapp-button:hover .tooltip {
  opacity: 1;
  visibility: visible;
}

.map-container {
  padding: 24px;
}

.map-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.endereco {
  font-size: 1rem;
  color: #1a1a1a;
}

.map-link {
  background-color: var(--brand);
  color: #fff;
  text-decoration: none;
  padding: 12px 18px;
  border-radius: 999px;
}

.map-link:hover {
  background-color: var(--brand-dark);
}

.map-container iframe {
  width: 100%;
  min-height: 340px;
  border-radius: 16px;
  border: 0;
}

footer {
  text-align: center;
  padding: 20px 24px;
  background-color: var(--brand-dark);
  color: #f8f4ea;
  font-size: 0.95rem;
}

@media (max-width: 1024px) {
  main {
    grid-template-columns: 1fr;
  }

  .nav-list {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .top-bar,
  .logo-bar,
  .map-header {
    flex-direction: column;
    align-items: stretch;
  }

  .search-bar input[type="search"] {
    width: 100%;
  }

  .nav-list {
    flex-direction: column;
  }

  .dropdown-content {
    position: static;
    box-shadow: none;
  }

  .calculadora-page .calculadora-container,
  .content-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .brand-logo {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-button {
    width: 100%;
  }

  .content-block h2,
  .success-story h2 {
    font-size: 1.6rem;
  }

  .map-container iframe {
    min-height: 260px;
  }
}
