/* ==========================================
   MINHA SAÚDE ES — Folha de Estilos Principal
   ========================================== */

/* RESET & BASE */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --verde:        #0F6E56;
  --verde-claro:  #1D9E75;
  --verde-bg:     #E1F5EE;
  --verde-escuro: #085041;
  --verde-deep:   #04342C;
  --menta:        #9FE1CB;
  --creme:        #F8F5F0;
  --branco:       #ffffff;
  --text:         #1a1a1a;
  --text-muted:   #5a6068;
  --border:       #e5e0d8;
  --shadow:       0 4px 32px rgba(0,0,0,0.07);
  --radius-sm:    8px;
  --radius-md:    14px;
  --radius-lg:    20px;
  --radius-xl:    28px;
  --transition:   0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--creme);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

/* CONTAINER */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 5%;
}

/* TIPOGRAFIA */
h1, h2, h3 { font-family: 'Fraunces', serif; line-height: 1.15; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 600; }
h3 { font-size: 1.1rem; font-weight: 600; }
p  { font-weight: 300; }

.section-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--verde);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 0.4rem;
}
.section-title { color: var(--text); margin-bottom: 0.5rem; }
.section-sub   { color: var(--text-muted); margin-bottom: 2rem; font-weight: 300; }

/* BOTÕES */
.btn-primary {
  background: var(--verde-claro);
  color: #fff;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background var(--transition), transform var(--transition);
}
.btn-primary:hover { background: #17b885; transform: translateY(-1px); }

.btn-secondary {
  background: transparent;
  color: #fff;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 500;
  border: 1.5px solid rgba(255,255,255,0.35);
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition);
}
.btn-secondary:hover { border-color: #fff; background: rgba(255,255,255,0.1); }

.btn-outline {
  background: transparent;
  color: var(--verde);
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1.5px solid var(--verde);
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition);
}
.btn-outline:hover { background: var(--verde); color: #fff; }

/* ==========================================
   NAVBAR
   ========================================== */
.navbar {
  background: var(--verde-escuro);
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  font-family: 'Fraunces', serif;
  font-size: 1.35rem;
  color: #fff;
  letter-spacing: -0.5px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo span { color: var(--menta); }

.nav-links {
  display: flex;
  gap: 1.8rem;
  list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color var(--transition);
}
.nav-links a:hover { color: #fff; }

.nav-btn {
  background: var(--menta);
  color: var(--verde-escuro);
  border: none;
  padding: 9px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity var(--transition);
}
.nav-btn:hover { opacity: 0.85; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ==========================================
   HERO
   ========================================== */
.hero {
  background: var(--verde-escuro);
  padding: 5rem 5% 4rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -100px;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: rgba(29,158,117,0.1);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -120px; right: 12%;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: rgba(159,225,203,0.07);
  pointer-events: none;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
}

.hero-tag {
  display: inline-block;
  background: rgba(159,225,203,0.15);
  border: 1px solid rgba(159,225,203,0.3);
  color: var(--menta);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 1.2rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hero h1 { color: #fff; margin-bottom: 1rem; }
.hero h1 em { color: var(--menta); font-style: italic; }
.hero p { color: rgba(255,255,255,0.65); font-size: 1.05rem; margin-bottom: 2rem; }

.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Stats */
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.stat-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 1.3rem 1.5rem;
}
.stat-num {
  font-family: 'Fraunces', serif;
  font-size: 2.5rem;
  color: var(--menta);
  font-weight: 700;
  line-height: 1;
}
.stat-label {
  color: rgba(255,255,255,0.5);
  font-size: 0.82rem;
  margin-top: 4px;
}

/* ==========================================
   BUSCA
   ========================================== */
.busca-section { padding: 2.5rem 5% 0; }

.search-card {
  background: var(--branco);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}

.search-title {
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.search-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 1rem;
  align-items: end;
}

.field-group { display: flex; flex-direction: column; gap: 6px; }

.field-group label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.field-group select,
.field-group input {
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border var(--transition);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235a6068' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}
.field-group select:focus,
.field-group input:focus { border-color: var(--verde-claro); }

.btn-buscar {
  background: var(--verde);
  color: #fff;
  padding: 0 28px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  white-space: nowrap;
  height: 48px;
  transition: background var(--transition);
}
.btn-buscar:hover { background: var(--verde-escuro); }

/* ==========================================
   RESULTADOS
   ========================================== */
.resultados-section { padding: 1.5rem 5% 3rem; }

.resultados-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}

.resultados-count { font-size: 0.88rem; color: var(--text-muted); }

.btn-limpar {
  font-size: 0.82rem;
  color: var(--verde);
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  text-decoration: underline;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

/* Card de médico */
.medico-card {
  background: var(--branco);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  border: 1px solid #eee;
  transition: box-shadow var(--transition), transform var(--transition);
  cursor: default;
}
.medico-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.09);
  transform: translateY(-2px);
}

.medico-header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.avatar {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--verde-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: var(--verde);
  flex-shrink: 0;
  font-family: 'Fraunces', serif;
}

.medico-info h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 2px; font-family: 'DM Sans', sans-serif; }
.medico-info .especialidade { font-size: 0.82rem; color: var(--verde); font-weight: 500; }

.medico-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.8rem;
  margin-bottom: 0.8rem;
}

.tag {
  background: var(--verde-bg);
  color: var(--verde-escuro);
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 500;
}
.tag-cidade {
  background: #f0f0f0;
  color: #555;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
}
.tag-indisponivel {
  background: #fff4f4;
  color: #c0392b;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 500;
}

.convenios {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 0.8rem;
}
.convenio-tag {
  font-size: 0.72rem;
  color: #555;
  background: #f5f5f5;
  padding: 3px 9px;
  border-radius: 50px;
}

.btn-agendar {
  width: 100%;
  background: var(--verde-bg);
  color: var(--verde-escuro);
  padding: 10px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background var(--transition);
}
.btn-agendar:hover:not(:disabled) { background: var(--menta); }
.btn-agendar:disabled { opacity: 0.5; cursor: not-allowed; }

/* Sem resultado */
.sem-resultado {
  text-align: center;
  padding: 3rem;
  display: none;
}
.sem-resultado .sem-icon { font-size: 2.8rem; margin-bottom: 0.7rem; }
.sem-resultado p { color: var(--text-muted); margin-bottom: 1.2rem; }

/* ==========================================
   ESPECIALIDADES
   ========================================== */
.especialidades-section {
  background: var(--branco);
  padding: 4rem 5%;
}

.esp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  gap: 12px;
}

.esp-chip {
  background: var(--creme);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 12px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.esp-chip:hover {
  background: var(--verde-bg);
  border-color: var(--verde-claro);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(15,110,86,0.1);
}

.esp-icon { font-size: 1.7rem; }
.esp-chip span:last-child { font-size: 0.82rem; font-weight: 500; }

/* ==========================================
   CIDADES
   ========================================== */
.cidades-section { padding: 4rem 5%; }

.cidades-filtro {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.filtro-regiao {
  padding: 7px 16px;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  background: var(--branco);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.83rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--text);
}
.filtro-regiao:hover { border-color: var(--verde); color: var(--verde); }
.filtro-regiao.ativo { background: var(--verde); color: #fff; border-color: var(--verde); }

.cidades-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
}

.cidade-item {
  background: var(--branco);
  border: 1px solid #eee;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all var(--transition);
}
.cidade-item:hover {
  border-color: var(--verde-claro);
  background: var(--verde-bg);
  transform: translateX(2px);
}
.cidade-nome { font-weight: 500; }
.cidade-count {
  font-size: 0.73rem;
  color: var(--text-muted);
  background: #f0f0f0;
  padding: 2px 8px;
  border-radius: 50px;
}

/* ==========================================
   COMO FUNCIONA
   ========================================== */
.como-funciona {
  background: var(--verde-escuro);
  padding: 4rem 5%;
}
.como-funciona .section-tag { color: var(--menta); }
.como-funciona .section-title { color: #fff; margin-bottom: 2rem; }

.passos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.passo-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
}

.passo-num {
  font-family: 'Fraunces', serif;
  font-size: 2.5rem;
  color: var(--menta);
  font-weight: 700;
  opacity: 0.7;
  line-height: 1;
  margin-bottom: 0.8rem;
}
.passo-card h3 { color: #fff; margin-bottom: 0.5rem; font-family: 'DM Sans', sans-serif; font-size: 1rem; }
.passo-card p { color: rgba(255,255,255,0.55); font-size: 0.9rem; }

/* ==========================================
   APP / LEMBRETES
   ========================================== */
.app-section {
  background: var(--verde-escuro);
  padding: 4rem 5%;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.app-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.app-content h2 { color: #fff; margin-bottom: 1rem; }
.app-content p { color: rgba(255,255,255,0.6); line-height: 1.7; margin-bottom: 1.5rem; }

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.8);
  font-size: 0.92rem;
}
.feature-list li::before {
  content: '✓';
  background: var(--menta);
  color: var(--verde-escuro);
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  flex-shrink: 0;
}

.mockup-phone {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
}
.phone-header {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  text-align: center;
  margin-bottom: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.notif {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 10px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  transition: background var(--transition);
}
.notif:hover { background: rgba(255,255,255,0.12); }

.notif-icon {
  background: var(--verde-claro);
  border-radius: 10px;
  width: 38px; height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}
.notif-text p {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 2px;
  font-weight: 500;
}
.notif-text span {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
}

/* ==========================================
   PARA PROFISSIONAIS
   ========================================== */
.profissionais-section {
  background: var(--creme);
  padding: 4rem 5%;
}

.prof-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.prof-card {
  background: var(--branco);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}
.prof-icon { font-size: 2.5rem; }
.prof-card h3 { color: var(--text); font-family: 'DM Sans', sans-serif; }
.prof-card p { color: var(--text-muted); font-size: 0.9rem; max-width: 340px; }

/* ==========================================
   CONTATO
   ========================================== */
.contato-section {
  background: var(--branco);
  padding: 4rem 5%;
}

.contato-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.contato-item {
  background: var(--creme);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  border: 1px solid var(--border);
}
.contato-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.contato-item h4 { font-family: 'DM Sans', sans-serif; font-size: 0.88rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.4rem; }
.contato-link { color: var(--verde); font-weight: 500; text-decoration: none; font-size: 0.95rem; }
.contato-link:hover { text-decoration: underline; }

/* ==========================================
   FOOTER
   ========================================== */
.footer {
  background: #0a2e24;
  padding: 3.5rem 5% 1.5rem;
  color: rgba(255,255,255,0.45);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand .logo { margin-bottom: 0.8rem; display: block; }
.footer-brand p { font-size: 0.84rem; line-height: 1.7; }

.footer-social { display: flex; gap: 12px; margin-top: 1rem; }
.footer-social a {
  font-size: 1.2rem;
  text-decoration: none;
  transition: transform var(--transition);
}
.footer-social a:hover { transform: scale(1.15); }

.footer-col h4 {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
  font-family: 'DM Sans', sans-serif;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul a {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  font-size: 0.83rem;
  transition: color var(--transition);
}
.footer-col ul a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  flex-wrap: wrap;
  gap: 8px;
}

/* ==========================================
   WHATSAPP FLUTUANTE
   ========================================== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #25D366;
  color: #fff;
  width: 58px; height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  z-index: 999;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
}
.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(37,211,102,0.55);
}

/* ==========================================
   RESPONSIVO
   ========================================== */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-inner  { grid-template-columns: 1fr; }
  .app-inner   { grid-template-columns: 1fr; }
  .prof-grid   { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--verde-escuro); padding: 1rem 5%; gap: 1rem; }
  .nav-links.aberto { display: flex; }
  .nav-toggle { display: block; }
  .nav-btn { display: none; }

  .search-grid { grid-template-columns: 1fr; }
  .btn-buscar  { width: 100%; }

  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .passos-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero { padding: 3rem 5%; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .esp-grid { grid-template-columns: repeat(2, 1fr); }
}
