@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Nunito:wght@500;600;700;800&display=swap');
:root {
  --green: #4f943b;
  --dark: #345c45;
  --light: #f7f8e9;
  --mint: #e8f2dc;
  --ink: #253b30;
  --muted: #5d6d63;
  --line: #dbe6d6
}
* {
  box-sizing: border-box
}
html {
  scroll-behavior: smooth
}
body {
  margin: 0;
  color: var(--ink);
  font-family: 'DM Sans', Arial, sans-serif;
  line-height: 1.65;
  background: #fff
}
a {
  color: inherit
}
a:focus-visible, button:focus-visible {
  outline: 3px solid #edaa4e;
  outline-offset: 3px
}
.container {
  width: min(1120px, calc(100% - 40px));
  margin: auto
}
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 3
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 106px
}
.brand img {
  width: 320px;
  height: auto;
  object-fit: contain;
  display: block;
}
.nav {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap
}
.nav a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  color: var(--dark)
}
.nav a[aria-current=page] {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 7px
}
.nav .nav-contact {
  background: var(--green);
  color: #fff;
  padding: 10px 17px;
  border-radius: 100px
}
.hero {
  background: linear-gradient(120deg, var(--light), #e8f3df);
  padding: 90px 0 85px;
  overflow: hidden
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 65px;
  align-items: center
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 12px;
  font-weight: 800;
  color: var(--green)
}
h1, h2, h3 {
  font-family: 'Nunito', 'DM Sans', sans-serif;
  line-height: 1.18;
  color: var(--dark);
  margin: 0 0 20px
}
h1 {
  font-size: clamp(34px, 4vw, 52px);
  letter-spacing: -.035em;
}

h2 {
  font-size: clamp(29px, 3vw, 42px)
}
h3 {
  font-size: 23px
}
p {
  margin: 0 0 18px
}
.lead {
  font-size: 19px;
  color: #4c6153;
  max-width: 680px
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--green);
  color: #fff;
  padding: 13px 24px;
  border-radius: 100px;
  font-weight: 800;
  text-decoration: none;
  border: 2px solid var(--green)
}
.btn-outline {
  background: transparent;
  color: var(--dark);
  border-color: #a5c59a
}
.hero-art {
  background: #fff9;
  border-radius: 44% 56% 54% 46%;
  min-height: 340px;
  display: grid;
  place-items: center;
  position: relative;
  border: 1px solid #d7e9cd
}
.hero-art:before {
  content: '';
  position: absolute;
  width: 180px;
  height: 180px;
  border: 22px solid #c6e1b3;
  border-radius: 50%;
  transform: translate(50px, -35px)
}
.hero-art span {
  position: relative;
  font-size: 90px;
  filter: saturate(.75)
}
.section {
  padding: 76px 0
}
.section-alt {
  background: var(--light)
}
.section-head {
  max-width: 720px;
  margin-bottom: 34px
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px
}
.card {
  border: 1px solid var(--line);
  background: white;
  border-radius: 22px;
  padding: 30px;
  box-shadow: 0 10px 24px #274d3610
}
.card-icon {
  font-size: 31px;
  margin-bottom: 17px
}
.card p {
  color: var(--muted)
}
.card a {
  font-weight: 800;
  color: var(--green);
  text-decoration: none
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 55px;
  align-items: center
}
.soft-panel {
  background: var(--mint);
  border-radius: 28px;
  padding: 40px
}
.soft-panel strong {
  color: var(--dark)
}
.cta {
  background: var(--dark);
  color: white;
  border-radius: 28px;
  padding: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px
}
.cta h2 {
  color: white;
  margin-bottom: 10px
}
.cta p {
  margin: 0;
  color: #e3efe4
}
.cta .btn {
  background: white;
  color: var(--dark);
  border-color: white;
  white-space: nowrap
}
.page-hero {
  background: var(--light);
  padding: 70px 0 60px
}
.page-hero h1 {
  font-size: clamp(35px, 4vw, 52px)
}
.prose {
  max-width: 780px
}
.prose p {
  font-size: 17px;
  color: #4d6154
}
.notice {
  padding: 17px 20px;
  border-left: 4px solid var(--green);
  background: var(--light);
  border-radius: 0 12px 12px 0;
  color: var(--muted)
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px
}
.contact-box {
  background: var(--light);
  padding: 32px;
  border-radius: 22px
}
.contact-box a {
  color: var(--dark);
  font-weight: 700;
  overflow-wrap: anywhere
}
.footer {
  background: #f0f5e9;
  border-top: 1px solid var(--line);
  padding: 32px 0;
  color: #536b59;
  font-size: 14px
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap
}
.footer a {
  color: var(--dark)
}
@media(max-width:850px) {
  .header-inner {
    flex-direction: column;
    padding: 12px 0 20px
  }
  .brand img {
    width: 205px;
    height: auto
  }
  .nav {
    justify-content: center;
    gap: 12px 17px
  }
  .nav a {
    font-size: 13px
  }
  .hero-inner, .two-col, .contact-grid {
    grid-template-columns: 1fr
  }
  .hero-art {
    display: none
  }
  .cards {
    grid-template-columns: 1fr
  }
  .cta {
    display: block
  }
  .cta .btn {
    margin-top: 25px
  }
  .section {
    padding: 55px 0
  }
}
@media(max-width:480px) {
  .container {
    width: min(100% - 30px, 1120px)
  }
  .hero {
    padding: 65px 0
  }
  .nav {
    gap: 8px 13px
  }
  .nav .nav-contact {
    padding: 7px 12px
  }
  .card {
    padding: 24px
  }
  .cta {
    padding: 28px
  }
}
/* V2 — fotografia de atendimento fonoaudiológico na abertura */
.hero-photo {
  margin: 0;
  min-width: 0;
  position: relative
}
.hero-photo img {
  display: block;
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: center;
  border-radius: 26px;
  box-shadow: 0 16px 40px rgba(37, 59, 48, .13)
}
.hero-photo figcaption {
  font-size: 11px;
  color: #5d6d63;
  margin-top: 9px;
  text-align: center
}
@media(max-width:850px) {
  .hero-photo {
    display: block
  }
  .hero-photo img {
    height: auto;
    max-height: 400px;
    object-fit: cover
  }
  .hero-inner {
    gap: 30px
  }
}

/* Botão flutuante do WhatsApp */
.whatsapp-flutuante {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background-color: #25D366;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  text-decoration: none;
  transition: transform 0.2s ease;
}

.whatsapp-flutuante:hover {
  transform: scale(1.08);
  color: #ffffff;
}

.whatsapp-flutuante:focus-visible {
  outline: 3px solid #245c43;
  outline-offset: 3px;
}

@media (max-width: 600px) {
  .whatsapp-flutuante {
    right: 16px;
    bottom: 16px;
    width: 54px;
    height: 54px;
  }
}

/* Correção do contraste dos botões */

/* Botão Contato do menu */
.nav .nav-contact,
.nav .nav-contact[aria-current="page"] {
  color: #ffffff;
  text-decoration: none;
}

/* Botão WhatsApp da página Contato */
.contact-box a.btn {
  color: #ffffff;
  font-weight: 800;
}

/* Redes sociais no cabeçalho */
.header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.header-social {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  flex-wrap: wrap;
}

.header-social a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--dark);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.header-social a:hover {
  color: var(--green);
  text-decoration: underline;
}

.header-social svg {
  flex-shrink: 0;
}

/* Ajuste para celulares e tablets */
@media (max-width: 850px) {
  .header-right {
    align-items: center;
    width: 100%;
  }

  .header-social {
    justify-content: center;
    gap: 10px 18px;
  }
}

@media (max-width: 480px) {
  .header-social a {
    font-size: 11px;
  }

  .header-social {
    gap: 8px 14px;
  }
}


/* Ajuste final — legibilidade do menu e redes sociais */

/* Desktop */
.nav a {
  font-size: 15px;
}

.header-social a {
  font-size: 13px;
}

/* Tablets e celulares */
@media (max-width: 850px) {
  .nav a {
    font-size: 15px;
  }

  .header-social a {
    font-size: 13px;
  }
}

/* Celulares menores */
@media (max-width: 480px) {
  .nav a {
    font-size: 15px;
  }

  .header-social a {
    font-size: 13px;
  }
}

/* Áreas de atendimento — quatro especialidades */

#especialidades .cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

#especialidades .card {
  padding: 24px;
  display: flex;
  flex-direction: column;
}

#especialidades .card h3 {
  font-size: 21px;
  overflow-wrap: anywhere;
}

#especialidades .card a {
  margin-top: auto;
}

/* Tablets */
@media (max-width: 1024px) {
  #especialidades .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Celulares */
@media (max-width: 600px) {
  #especialidades .cards {
    grid-template-columns: 1fr;
  }
}


/* Crédito de desenvolvimento do site */
.developer-credit {
  text-align: center;
  font-size: 12px;
  line-height: 1.6;
  padding: 12px 20px 5px;
  margin-top: 10px;
  border-top: 1px solid rgba(128, 128, 128, 0.18);
}

.developer-credit a {
  color: inherit;
  font-weight: 600;
  text-decoration: none;
}

.developer-credit a:hover {
  text-decoration: underline;
}

/* Ajuste do crédito de desenvolvimento no celular */
@media (max-width: 600px) {
  .developer-credit {
    padding: 12px 20px 65px;
  }
}