* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --preto: #0a0a0a;
  --preto-claro: #151515;
  --dourado: #d4af37;
  --dourado-claro: #f0d78c;
  --texto-claro: #f1f1f1;
  --texto-cinza: #b8b8b8;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--preto);
  color: var(--texto-claro);
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ===== HERO INDEX ===== */
.hero-index {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  z-index: 1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(15%) contrast(1.05);
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    var(--preto) 0%,
    rgba(10,10,10,0.85) 20%,
    rgba(10,10,10,0.3) 55%,
    rgba(10,10,10,0.05) 100%
  );
}

.hero-index-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
  padding: 40px 60px;
}

.logo-index {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 40px;
}
.logo-index span { color: var(--dourado); }

.tag-gold {
  display: inline-block;
  border: 1px solid var(--dourado);
  color: var(--dourado);
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-index-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.6rem;
  line-height: 1.25;
  color: #fff;
  margin-bottom: 16px;
}

.hero-index-content > p {
  color: var(--texto-cinza);
  margin-bottom: 40px;
  font-size: 1.05rem;
}

/* ===== CARDS DE OPÇÃO ===== */
.opcoes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.opcao-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(212,175,55,0.3);
  border-radius: 14px;
  padding: 28px 22px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  color: var(--texto-claro);
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

.opcao-card:hover {
  border-color: var(--dourado);
  background: rgba(212,175,55,0.08);
  transform: translateY(-4px);
}

.opcao-icon {
  font-size: 1.8rem;
  margin-bottom: 14px;
}

.opcao-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: #fff;
}

.opcao-card p {
  font-size: 0.88rem;
  color: var(--texto-cinza);
  margin-bottom: 16px;
  line-height: 1.5;
}

.opcao-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dourado);
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: var(--preto-claro);
  border: 1px solid rgba(212,175,55,0.4);
  border-radius: 16px;
  max-width: 520px;
  width: 100%;
  padding: 40px;
  position: relative;
  animation: modalFade 0.25s ease;
}

@keyframes modalFade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-box h2 {
  font-family: 'Playfair Display', serif;
  color: #fff;
  margin-bottom: 6px;
}

.modal-box > p {
  color: var(--texto-cinza);
  margin-bottom: 28px;
  font-size: 0.9rem;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  color: var(--texto-cinza);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
}
.modal-close:hover { color: var(--dourado); }

.modal-clinicas {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-clinica-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 16px 18px;
  transition: all 0.25s;
}

.modal-clinica-item:hover {
  border-color: var(--dourado);
  background: rgba(212,175,55,0.08);
}

.modal-clinica-item h4 {
  flex: 1;
  color: #fff;
  font-size: 1rem;
}

.ver-mais {
  font-size: 0.8rem;
  color: var(--dourado);
  white-space: nowrap;
}

.badge {
  background: var(--dourado);
  color: #000;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.badge-matriz { background: #fff; }
.badge-construcao { background: #999; color: #fff; }
.construcao { opacity: 0.8; border-style: dashed; }

/* ===== FOOTER ===== */
.footer-index {
  text-align: center;
  padding: 20px;
  color: var(--texto-cinza);
  font-size: 0.85rem;
  background: var(--preto);
}

/* ===== RESPONSIVO ===== */
@media (max-width: 900px) {
  .hero-bg {
    width: 100%;
    height: 45%;
    top: 0;
  }
  .hero-gradient {
    background: linear-gradient(
      180deg,
      rgba(10,10,10,0.2) 0%,
      var(--preto) 90%
    );
  }
  .hero-index {
    flex-direction: column;
    padding-top: 40vh;
  }
  .hero-index-content {
    max-width: 100%;
    padding: 30px 24px 60px;
    text-align: center;
  }
  .opcoes-grid {
    grid-template-columns: 1fr;
  }
  .hero-index-content h1 {
    font-size: 2rem;
  }
}