/* Estilos Globais e Variáveis Modernas */
:root {
  /* Paleta de Cores Premium (Deep Teal + Verde Água Suave) */
  --primary: #10424b;
  /* Teal Escuro/Clínico */
  --primary-light: #1c6d7a;
  --secondary: #9fd9dd;
  /* Light Teal (Cor da marca atual) */
  --accent: #daebea;
  /* Fundo Suave */
  --accent-hover: #cbe2e0;

  --bg-color: #f8fafc;
  /* Slate-50 - Fundo Geral Off-white */
  --surface-color: #ffffff;
  /* Fundo dos Cartões e Paineis */

  --text-main: #1e293b;
  /* Slate-800 - Texto escuro mais suave que preto */
  --text-muted: #475569;
  /* Slate-600 */
  --border: #e2e8f0;
  /* Slate-200 */

  /* Tipografia */
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;

  /* Sombras e Elevação (Soft UI) */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);

  /* Arredondamentos */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;

  /* Transições suaves */
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset e Configurações Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  line-height: 1.6;
  background-color: var(--bg-color);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--primary);
  line-height: 1.3;
  font-weight: 600;
}

p {
  color: var(--text-muted);
}

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

ul {
  list-style-position: inside;
}

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

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

/* Estrutura Superior (Cabeçalho & Navegação) */
.top-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}

/* Header principal */
header {
  padding: 8px 3px;
  border-bottom: 2px solid var(--accent);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-logo {
  height: 85px;
  width: auto;
  border-radius: var(--radius-sm);
  object-fit: contain;
  transition: var(--transition);
}

.header-logo:hover {
  transform: scale(1.03);
}

.header-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.header-left h1,
.header-left .site-title {
  font-size: 1.7rem;
  letter-spacing: -0.5px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--primary);
  margin-bottom: 2px;
}

.header-left p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.2;
}

.header-right button,
#btnAgendar {
  background-color: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  padding: 14px 28px;
  cursor: pointer;
  border-radius: 50px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.header-right button:hover,
#btnAgendar:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Menu de Navegação */
nav {
  /* background: #f8fafc; Removido para usar o glassmorphism da top-bar */
  padding: 10px 20px;
}

nav ul {
  display: flex;
  list-style: none;
  justify-content: center;
  gap: 30px;
  margin: 0;
  padding: 0;
}

nav ul li a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 1rem;
  padding-bottom: 6px;
  position: relative;
}

nav ul li a:hover,
nav ul li a.active {
  color: var(--primary);
}

/* Efeito Hover Underline Navbar */
nav ul li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary);
  transition: var(--transition);
}

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

/* Seções Gerais */
section {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.title2,
.title3 {
  text-align: center;
  margin-bottom: 40px;
}

.title2 h2,
.title3 h2 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  position: relative;
  display: inline-block;
}

/* Sublinhado Decorativo em Títulos */
.title2 h2::after,
.title3 h2::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 3px;
  background-color: var(--secondary);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}


/* Seção Quem sou eu (Hero Area) */
.sobre {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  margin-bottom: 40px;
}

.sobre .texto {
  flex: 1;
}

.sobre .texto h1,
.sobre .texto h2 {
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.sobre .texto ul {
  list-style-type: none;
}

.sobre .texto ul li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 16px;
  font-size: 1.1rem;
}

/* Bullet points customizados */
.sobre .texto ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary-light);
  font-weight: bold;
}

.sobre .foto {
  flex: 0 0 40%;
}

.sobre img {
  /* abaixo caso queira deixar a imagem dentro de um card*/
  /*border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);*/
  filter: drop-shadow(0 15px 25px rgba(16, 66, 75, 0.2));
  object-fit: cover;
}

/* Serviços (Tratamentos) */
.servicos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.servicos .box {
  background-color: var(--surface-color);
  padding: 40px 30px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border);
}

.servicos .box:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--secondary);
}

.servicos h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* Círculo decorativo antes dos títulos de serviço */
.servicos h3::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  background-color: var(--secondary);
  border-radius: 50%;
}

.servicos h4 {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  font-weight: 500;
  min-height: 50px;
  /* Alinhar o início das listas */
}

.servicos ul {
  list-style: none;
}

.servicos ul li {
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--text-main);
}

.servicos ul li:last-child {
  border-bottom: none;
}

/* Como é minha consulta */
.consulta-cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.consulta-card {
  background-color: var(--surface-color);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  position: relative;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.consulta-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--secondary);
}

.consulta-card .card-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.8;
  position: absolute;
  top: 5px;
  right: 10px;
  z-index: 1;
  pointer-events: none;
}

.consulta-card h3 {
  font-size: 1.4rem;
  margin-top: 10px;
  margin-bottom: 25px;
  color: var(--primary);
  position: relative;
  z-index: 2;
  display: inline-block;
  align-self: flex-start;
}

.consulta-card h3::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 3px;
  background-color: var(--secondary);
  bottom: -8px;
  left: 0;
  border-radius: 2px;
}

.consulta-card p,
.consulta-card ul {
  position: relative;
  z-index: 2;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.consulta-card p {
  margin-bottom: 16px;
  text-align: justify;
}

.consulta-card ul {
  margin-left: 0;
  margin-bottom: 20px;
  list-style: none;
}

.consulta-card li {
  margin-bottom: 10px;
  padding-left: 24px;
  position: relative;
  text-align: justify;
}

.consulta-card li::before {
  content: '→';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary-light);
  font-weight: bold;
}



/* Artigos Area */
.search-container {
  max-width: 1200px;
  margin: 40px auto 10px auto;
  padding: 0 20px;
}

#searchInput {
  width: 100%;
  padding: 15px 20px;
  font-size: 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  outline: none;
  font-family: var(--font-family);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  background: var(--surface-color);
  color: var(--text-main);
}

#searchInput:focus {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
}

#artigos {
  display: grid;
  gap: 25px;
}

#artigos article {
  background: var(--surface-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: stretch;
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--border);
}

#artigos article:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--secondary);
}

.article-content {
  padding: 30px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#artigos h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--primary);
}

#artigos p {
  font-size: 1rem;
  color: var(--text-muted);
  text-align: justify;
}

.article-icon {
  width: 250px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  flex-shrink: 0;
}

.grifo {
  font-weight: 600;
  color: var(--primary-light);
  font-size: 0.95rem;
  position: relative;
}

/* Seção do artigo individual (páginas artigoX.html) */
.secao-artigo {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Conteúdo interno de um artigo */
.artigo {
  background: var(--surface-color);
  padding: 50px 60px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin: 0 auto;
  /*max-width: 900px;*/
  border-top: 5px solid var(--primary-light);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.artigo h1,
.artigo h2 {
  font-size: 2.2rem;
  margin-bottom: 30px;
  text-align: center;
}

.artigo img {
  border-radius: var(--radius-md);
  margin: 0 auto 30px;
  max-height: 450px;
  box-shadow: var(--shadow-sm);
}

.artigo p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  line-height: 1.8;
  text-align: justify;
}

.artigo a {
  text-decoration: underline;
}

.artigo ul {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.8;
  margin-left: 30px;
  margin-bottom: 20px;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.7);
  /* Slate mais escuro */
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: var(--surface-color);
  padding: 40px;
  width: 90%;
  max-width: 450px;
  border-radius: var(--radius-lg);
  position: relative;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.modal-content span {
  position: absolute;
  top: 15px;
  right: 20px;
  cursor: pointer;
  font-size: 1.8rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.modal-content span:hover {
  color: var(--primary);
  transform: scale(1.1);
}

.modal-content h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.btnSendMessage {
  background-color: #25d366;
  color: white;
  border: none;
  padding: 15px 30px;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin: 15px auto;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  line-height: 1.2;
}

.btnSendMessage:hover {
  background-color: #128c7e;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btnSendMessage img {
  width: 30px;
  height: 30px;
}

.qrcode {
  width: 60%;
  margin: 20px auto;
  display: block;
}

/* Footer unificado */
footer {
  background-color: var(--primary);
  color: #fff;
  padding: 50px 20px;
  display: flex;
  justify-content: center;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.footer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  transition: var(--transition);
  text-decoration: none;
}

.footer-link:hover {
  color: #fff;
}

.footer-link span {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 22px;
}

.footer-link img,
.footer-link svg {
  height: 20px;
  width: 20px;
  filter: brightness(0) invert(1);
  fill: currentColor;
}

.footer-copy {
  margin-top: 15px;
  font-size: 0.85rem;
  opacity: 0.7;
  color: rgba(255, 255, 255, 0.6);
}


/* Botão Flutuante de Agendamento */
.floating-btn {
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 1000;
  background-color: var(--primary);
  color: #fff;
  border: none;
  padding: 18px 30px;
  border-radius: 50px;
  /*box-shadow: 0 10px 30px rgba(16, 66, 75, 0.4);*/
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition);
  max-width: 280px;
  text-align: center;
  line-height: 1.2;
}

.floating-btn:hover {
  background-color: var(--primary-light);
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 40px rgba(16, 66, 75, 0.5);
}

/* Responsividade Aprimorada */
@media (max-width: 992px) {
  .sobre {
    flex-direction: column;
    /* Foto abaixo do texto no tablet/mobile */
    text-align: center;
    gap: 40px;
  }

  .sobre .texto ul {
    text-align: left;
    display: flex;
    flex-direction: column;
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
  }

  .sobre .foto {
    flex: 0 0 auto;
    width: 80%;
    margin: 0 auto;
  }

  .servicos {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .floating-btn {
    bottom: 35px;
    right: 20px;
    padding: 14px 20px;
    font-size: 0.85rem;
    max-width: 200px;
  }

  section {
    padding: 30px 15px;
  }

  .header-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
  }

  .header-left {
    flex: 0 0 auto;
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
  }

  .header-logo {
    height: 50px;
    flex-shrink: 0;
  }

  .header-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .header-left .site-title {
    font-size: 1.05rem;
    margin-bottom: 0;
    white-space: nowrap;
  }

  .header-left p {
    font-size: 0.7rem;
    line-height: 1.2;
    white-space: nowrap;
  }

  .header-right {
    flex: 1 1 auto;
    display: flex;
    justify-content: flex-end;
    min-width: 0;
  }

  .header-right button,
  #btnAgendar {
    width: auto;
    max-width: 130px;
    padding: 8px 10px;
    font-size: 0.85rem;
    line-height: 1.2;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    white-space: normal;
    word-break: normal;
    border-radius: 18px;
  }

  nav {
    /* background: #f8fafc; Removido para usar o glassmorphism da top-bar */
    padding: 8px 20px 5px 20px;
  }

  nav ul {
    gap: 15px;
    overflow-x: auto;
    /* Permite scroll se for muito longo no mobile */
    padding-bottom: 10px;
    justify-content: center;
    /* Centralizado conforme preferência */
  }

  .sobre .texto h2 {
    font-size: 2rem;
  }

  .servicos {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .consulta-cards-container {
    padding: 0 15px;
  }

  .consulta-card {
    padding: 30px 20px;
    border-radius: var(--radius-md);
  }


  #artigos article {
    flex-direction: column;

  }

  .article-icon {
    width: 100%;
    height: 220px;
  }

  .article-content {
    padding: 20px;
  }

  .secao-artigo {
    padding: 20px 10px;
  }

  .artigo {
    padding: 30px 20px;
    margin: 0 auto;
  }

  .artigo h2 {
    font-size: 1.8rem;
  }

  .artigo h1 {
    font-size: 1.8rem;
  }
}