/* =============================================
   PÁGINAS DE ESPECIALIDADE — Dr. Felipe Costa
   Reprodução Humana · Obstetrícia · Ginecologia
   ============================================= */

/* ---- BREADCRUMB ---- */
.breadcrumb {
  font-size: .8rem;
  color: var(--text-light);
  margin-bottom: 1.25rem;
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--gold); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--gold-dark); }
.breadcrumb span { color: var(--cream-dark); }

/* ---- HERO ---- */
.esp-hero {
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(122,154,138,.12) 0%, transparent 70%),
    linear-gradient(160deg, var(--cream) 0%, var(--white) 100%);
  padding: 8rem 0 4rem;
  border-bottom: 1px solid var(--cream-mid);
}
.esp-hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.esp-hero-content h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-style: italic;
  margin: .25rem 0 1.25rem;
  text-wrap: balance;
}
.esp-hero-content .esp-lead {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-mid);
  margin-bottom: 2rem;
}
.esp-hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; }
.esp-hero-img-wrap {
  position: relative;
}
.esp-hero-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  background: var(--cream-mid);
}
.esp-hero-img-wrap::after {
  content: '';
  position: absolute;
  bottom: -22px; left: -22px;
  width: 120px; height: 120px;
  border-radius: var(--radius-lg);
  border: 14px solid rgba(160,140,110,.12);
  z-index: -1;
}

/* ---- INTRO / TEXTO CORRIDO ---- */
.esp-intro { background: var(--white); }
.esp-prose { max-width: 760px; margin: 0 auto; }
.esp-prose h2 {
  font-size: 1.7rem;
  margin: 2.5rem 0 1rem;
}
.esp-prose h2:first-child { margin-top: 0; }
.esp-prose p {
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--text-mid);
  margin-bottom: 1.25rem;
}
.esp-prose strong { color: var(--text); }

/* ---- GRID DE CONDIÇÕES / SERVIÇOS ---- */
.esp-servicos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.esp-servico {
  background: linear-gradient(180deg, var(--white) 0%, #fdfbf7 100%);
  border: 1px solid var(--cream-mid);
  border-radius: 24px;
  padding: 2.25rem 1.85rem;
  box-shadow: 0 1px 2px rgba(42,36,32,.04);
  transition: transform .4s cubic-bezier(.22,1,.36,1), box-shadow .4s ease, border-color .3s ease;
  position: relative;
  overflow: hidden;
}
.esp-servico::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--sage) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s cubic-bezier(.22,1,.36,1);
}
.esp-servico:hover {
  box-shadow: 0 26px 48px -24px rgba(42,36,32,.28);
  transform: translateY(-7px);
  border-color: var(--gold-light);
}
.esp-servico:hover::before { transform: scaleX(1); }
.esp-servico-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--cream) 0%, var(--cream-mid) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.15rem;
  transition: background .35s ease, transform .4s cubic-bezier(.22,1,.36,1);
}
.esp-servico:hover .esp-servico-icon {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  transform: scale(1.06) rotate(-3deg);
}
.esp-servico-icon svg {
  width: 26px; height: 26px;
  color: var(--gold);
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: color .35s ease;
}
.esp-servico:hover .esp-servico-icon svg { color: var(--white); }
.esp-servico h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.esp-servico p { font-size: .9rem; line-height: 1.6; }

/* ---- BANDA DESTAQUE COM IMAGEM (fundo escuro) ---- */
.esp-destaque {
  background: linear-gradient(135deg, var(--dark) 0%, #3d2e28 100%);
  position: relative;
  overflow: hidden;
}
.esp-destaque::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(160,140,110,.15) 0%, transparent 70%);
  pointer-events: none;
}
.esp-destaque-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.esp-destaque-img {
  width: 100%;
  aspect-ratio: 5/4;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.esp-destaque-content .section-tag { color: var(--gold-light); }
.esp-destaque-content h2 { color: var(--cream); margin-bottom: 1rem; }
.esp-destaque-content p {
  color: rgba(238,228,211,.8);
  line-height: 1.8;
  margin-bottom: 1rem;
}
.esp-destaque-content .esp-check {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  margin: 1.5rem 0 0;
}
.esp-check li {
  position: relative;
  padding-left: 1.75rem;
  color: rgba(238,228,211,.85);
  font-size: .95rem;
  line-height: 1.5;
}
.esp-check li::before {
  content: '✓';
  position: absolute;
  left: 0; top: 0;
  color: var(--gold-light);
  font-weight: 700;
}

/* ---- ETAPAS / PROCESSO ---- */
.esp-etapas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.esp-etapa {
  background: linear-gradient(180deg, var(--white) 0%, #fdfbf7 100%);
  border: 1px solid var(--cream-mid);
  border-radius: 24px;
  padding: 2rem 1.6rem;
  box-shadow: 0 1px 2px rgba(42,36,32,.04);
  transition: transform .4s cubic-bezier(.22,1,.36,1), box-shadow .4s ease, border-color .3s ease;
}
.esp-etapa:hover {
  box-shadow: 0 24px 44px -22px rgba(42,36,32,.26);
  transform: translateY(-6px);
  border-color: var(--gold-light);
}
.esp-etapa-num {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 600;
  line-height: 1;
  margin-bottom: .65rem;
  background: linear-gradient(135deg, var(--gold) 0%, var(--sage) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  width: fit-content;
}
.esp-etapa h4 { margin-bottom: .4rem; }
.esp-etapa p { font-size: .88rem; line-height: 1.6; }

/* ---- FAQ ---- */
.esp-faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.esp-faq-item {
  background: var(--white);
  border: 1px solid var(--cream-mid);
  border-radius: var(--radius);
  padding: 0 1.5rem;
  transition: box-shadow var(--transition);
}
.esp-faq-item[open] { box-shadow: var(--shadow-sm); }
.esp-faq-item summary {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  padding: 1.25rem 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.esp-faq-item summary::-webkit-details-marker { display: none; }
.esp-faq-item summary::after {
  content: '+';
  font-family: 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--gold);
  transition: transform var(--transition);
  flex-shrink: 0;
}
.esp-faq-item[open] summary::after { transform: rotate(45deg); }
.esp-faq-item p {
  font-size: .95rem;
  line-height: 1.75;
  color: var(--text-mid);
  padding: 0 0 1.25rem;
  margin: 0;
}

/* ---- CTA BAND ---- */
.esp-cta-band {
  background: var(--cream);
  text-align: center;
}
.esp-cta-band .container { max-width: 680px; }
.esp-cta-band h2 { margin-bottom: 1rem; }
.esp-cta-band p { font-size: 1.05rem; margin-bottom: 2rem; }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .esp-hero { padding: 6.5rem 0 3rem; }
  .esp-hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .esp-hero-img-wrap { order: -1; max-width: 420px; }
  .esp-servicos-grid { grid-template-columns: 1fr 1fr; }
  .esp-destaque-inner { grid-template-columns: 1fr; gap: 2rem; }
  .esp-destaque-img { order: -1; max-width: 480px; }
  .esp-etapas-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .esp-servicos-grid { grid-template-columns: 1fr; }
  .esp-etapas-grid { grid-template-columns: 1fr; }
  .esp-hero-cta { flex-direction: column; }
  .esp-hero-cta .btn { width: 100%; justify-content: center; }
}
