/* =============================================
   DR. FELIPE COSTA — STYLESHEET
   Ginecologia · Obstetrícia · Reprodução Humana
   ============================================= */

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---- CUSTOM PROPERTIES ---- */
:root {
  --cream:        #F9F5EF;
  --cream-mid:    #EEE4D3;
  --cream-dark:   #DDD0BA;
  --gold:         #A08C6E;
  --gold-dark:    #8A7558;
  --gold-light:   #C9B898;
  --sage:         #7A9A8A;
  --sage-light:   #A8BFB5;
  --dark:         #2A2420;
  --text:         #3D3530;
  --text-mid:     #5A5048;
  --text-light:   #8A7E78;
  --white:        #FFFFFF;
  --shadow-sm:    0 2px 8px rgba(42,36,32,.07);
  --shadow-md:    0 8px 24px rgba(42,36,32,.10);
  --shadow-lg:    0 20px 48px rgba(42,36,32,.12);
  --radius:       12px;
  --radius-lg:    20px;
  --radius-xl:    32px;
  --transition:   .3s ease;
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--dark);
  line-height: 1.2;
  font-weight: 600;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 600; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1.15rem; font-weight: 600; font-family: 'Inter', sans-serif; }
h5 { font-size: .9rem; font-weight: 600; font-family: 'Inter', sans-serif; letter-spacing: .06em; text-transform: uppercase; color: var(--text-mid); }
p { color: var(--text-mid); }

/* ---- LAYOUT ---- */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section-pad { padding: 5rem 0; }
.bg-cream { background: var(--cream); }

/* ---- TAGS & LABELS ---- */
.section-tag {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .75rem;
}
.section-tag--light { color: var(--gold-light); }
.tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}
.section-header--light h2,
.section-header--light p { color: var(--cream); }
.section-header--light p { opacity: .85; }
.section-header p { margin-top: .75rem; font-size: 1.05rem; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.8rem;
  border-radius: 50px;
  font-size: .95rem;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn-outline:hover {
  background: var(--gold);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-light {
  background: var(--white);
  color: var(--gold-dark);
  border-color: var(--white);
}
.btn-light:hover {
  background: var(--cream);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-sm { padding: .6rem 1.3rem; font-size: .85rem; }
.btn-block { width: 100%; justify-content: center; margin-top: 1.25rem; }

/* ---- LOGO / ASSINATURA ---- */
.logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 2px;
}
.logo-script {
  font-family: 'Great Vibes', cursive;
  font-size: 2rem;
  font-weight: 400;
  color: var(--dark);
  line-height: 1;
}
.logo-sub {
  font-size: .6rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-light);
}

/* ============================================
   HEADER
   ============================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(249,245,239,.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--cream-mid);
  transition: box-shadow var(--transition);
}
.header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.nav-link {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-mid);
  transition: color var(--transition);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.nav-link:hover { color: var(--gold); }
.nav-link:hover::after { transform: scaleX(1); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 620px;
  padding: 9rem 0 4rem;
  background:
    radial-gradient(ellipse 60% 80% at 100% 100%, rgba(122,154,138,.13) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 0% 0%,   rgba(160,140,110,.10) 0%, transparent 65%),
    linear-gradient(160deg, #f4ede0 0%, #faf7f2 50%, #f0ebe2 100%);
  overflow: hidden;
}
/* arco decorativo */
.hero::before {
  content: '';
  position: absolute;
  top: -180px; right: -180px;
  width: 520px; height: 520px;
  border-radius: 50%;
  border: 60px solid rgba(160,140,110,.08);
  pointer-events: none;
  z-index: 0;
}
/* segundo arco menor */
.hero::after {
  content: '';
  position: absolute;
  bottom: -120px; left: 38%;
  width: 340px; height: 340px;
  border-radius: 50%;
  border: 40px solid rgba(122,154,138,.07);
  pointer-events: none;
  z-index: 0;
}
.hero .container { position: relative; z-index: 2; }

.hero-content {
  max-width: 520px;
  position: relative;
}
.hero-content h1 {
  margin-bottom: 1.25rem;
  font-style: italic;
  font-size: 3rem;
  text-wrap: balance;
}
.hero-desc {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.hero-badges {
  display: flex;
  flex-wrap: nowrap;
  gap: .75rem;
}
.badge {
  display: flex;
  align-items: center;
  gap: .65rem;
  background: var(--white);
  border: 1px solid var(--cream-mid);
  padding: .65rem 1rem;
  border-radius: var(--radius);
  font-size: .8rem;
  font-weight: 500;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
  flex: 1;
}
.badge small { display: block; font-weight: 400; color: var(--text-light); }
.badge-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.badge-icon svg {
  width: 16px; height: 16px;
  color: var(--gold);
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* imagem mobile com moldura */
.hero-image-mobile { display: none; }
.hero-image-frame {
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  border-radius: var(--radius-xl) var(--radius-xl) 48% 48%;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--cream-mid);
  box-shadow: var(--shadow-lg);
}
.hero-img-frame {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* onda divisória */
.hero-wave {
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  z-index: 3;
  line-height: 0;
  pointer-events: none;
}
.hero-wave svg {
  width: 100%;
  height: 90px;
  display: block;
}
.hero-wave .wave-front { fill: var(--white); }
@media (max-width: 600px) {
  .hero-wave svg { height: 54px; }
}

/* foto full-bleed lado direito */
.hero-doctor-wrap {
  position: absolute;
  right: 0;
  bottom: 0;
  top: 0;
  width: 58%;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  pointer-events: none;
  z-index: 1; /* atrás da wave: a foto "entra" na onda e a wave cobre a base */
}
.hero-img {
  height: 85%;
  max-height: 600px; /* impede a foto de crescer demais e cortar a cabeça do Dr. */
  width: auto;
  display: block;
  object-fit: contain;
  object-position: right bottom;
}

/* telas grandes: foto maior, sempre colada no canto direito */
@media (min-width: 1200px) {
  .hero { min-height: 700px; }
  .hero-doctor-wrap { width: 60%; }
  .hero-img { height: 95%; }
}
@media (min-width: 1500px) {
  .hero { min-height: 780px; }
  .hero-doctor-wrap { width: 62%; }
  .hero-img { height: 100%; }
}

/* ============================================
   SOBRE
   ============================================ */
.sobre-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 4rem;
  align-items: start;
}
.sobre-image-wrap {
  position: relative;
  max-width: 320px;
  padding-top: 2.25rem;
  padding-bottom: 56px;
}
.sobre-img {
  width: 100%;
  border-radius: var(--radius-xl);
  aspect-ratio: 3/4;
  object-fit: cover;
  background: var(--cream-mid);
  box-shadow: var(--shadow-md);
}
.sobre-card-credencial {
  position: absolute;
  bottom: -48px; right: -24px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-lg);
  border-left: 3px solid var(--gold);
  max-width: 240px;
}
.credencial-title {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .6rem;
}
.sobre-card-credencial ul { display: flex; flex-direction: column; gap: .35rem; }
.sobre-card-credencial li {
  font-size: .8rem;
  color: var(--text-mid);
  padding-left: 1rem;
  position: relative;
}
.sobre-card-credencial li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}
.sobre-content { padding-top: .5rem; }
.sobre-content h2 { margin-bottom: 1.25rem; }
.sobre-content p { margin-bottom: 1rem; }
.link-lattes {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--gold);
  font-size: .9rem;
  font-weight: 500;
  margin-top: .5rem;
  transition: gap var(--transition);
}
.link-lattes:hover { gap: .7rem; }

/* ============================================
   ESPECIALIDADES
   ============================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}
.card {
  background: linear-gradient(180deg, var(--white) 0%, #fdfbf7 100%);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  box-shadow: 0 1px 2px rgba(42,36,32,.04);
  border: 1px solid var(--cream-mid);
  transition: transform .4s cubic-bezier(.22,1,.36,1), box-shadow .4s ease, border-color .3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
/* linha de destaque que cresce no hover */
.card::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);
}
.card:hover {
  box-shadow: 0 28px 50px -24px rgba(42,36,32,.28);
  transform: translateY(-8px);
  border-color: var(--gold-light);
}
.card:hover::before { transform: scaleX(1); }

/* cabeçalho do card: ícone + badge em linha */
.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.card-icon-wrap {
  width: 58px; height: 58px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--cream) 0%, var(--cream-mid) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .35s ease, transform .4s cubic-bezier(.22,1,.36,1);
}
.card:hover .card-icon-wrap {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  transform: scale(1.06) rotate(-3deg);
}
.card-icon-wrap svg {
  width: 27px; height: 27px;
  color: var(--gold);
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: color .35s ease;
}
.card:hover .card-icon-wrap svg { color: var(--white); }
.card-tag {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--white);
  padding: .3rem .85rem;
  border-radius: 50px;
}

/* corpo */
.card h3 { margin-bottom: .6rem; }
.card > p { font-size: .93rem; line-height: 1.65; margin-bottom: 1.25rem; }

/* divisor */
.card-divider {
  height: 1px;
  background: var(--cream-mid);
  margin-bottom: 1.25rem;
}

/* lista: flex:1 empurra botão para o fundo */
.card-list {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  flex: 1;
  margin-bottom: 1.75rem;
}
.card-list li {
  font-size: .875rem;
  color: var(--text-mid);
  padding-left: 1.2rem;
  position: relative;
  line-height: 1.5;
}
.card-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: .75rem;
  top: .1em;
}

/* variante featured (fundo escuro) */
.card-featured {
  background: var(--dark);
  border-color: var(--dark);
}
.card-featured .card-icon-wrap {
  background: rgba(255,255,255,.08);
}
.card-featured .card-icon-wrap svg { color: var(--gold-light); }
.card-featured h3 { color: var(--cream); }
.card-featured > p { color: rgba(238,228,211,.75); }
.card-featured .card-divider { background: rgba(255,255,255,.1); }
.card-featured .card-list li { color: rgba(238,228,211,.7); }
.card-featured .card-list li::before { color: var(--gold-light); }
.card-featured .btn-outline {
  color: var(--gold-light);
  border-color: var(--gold-light);
}
.card-featured .btn-outline:hover {
  background: var(--gold-light);
  color: var(--dark);
}

/* ============================================
   FERTILIDADE
   ============================================ */
.fertilidade {
  background: linear-gradient(135deg, var(--dark) 0%, #3d2e28 100%);
  position: relative;
  overflow: hidden;
}
.fertilidade::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(160,140,110,.15) 0%, transparent 70%);
  pointer-events: none;
}
.jornada-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}
.step {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 22px;
  padding: 2rem 1.6rem;
  transition: transform .4s cubic-bezier(.22,1,.36,1), background .35s ease, border-color .3s ease;
}
.step:hover {
  background: rgba(255,255,255,.09);
  border-color: rgba(201,184,152,.4);
  transform: translateY(-6px);
}
.step-num {
  font-family: 'Playfair Display', serif;
  font-size: 3.1rem;
  font-weight: 600;
  line-height: 1;
  margin-bottom: .75rem;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--sage-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  width: fit-content;
}
.step h4 { color: var(--cream); margin-bottom: .5rem; }
.step p { font-size: .9rem; color: rgba(238,228,211,.75); line-height: 1.6; }
.fertilidade-cta {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.fertilidade-quote {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-style: italic;
  color: var(--cream);
  max-width: 480px;
  text-align: center;
}

/* ============================================
   DIFERENCIAIS
   ============================================ */
.diferenciais-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.diferencial {
  padding: 2rem 1.75rem;
  background: linear-gradient(180deg, var(--white) 0%, #fdfbf7 100%);
  border-radius: 22px;
  border: 1px solid var(--cream-mid);
  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;
}
.diferencial:hover {
  box-shadow: 0 24px 44px -22px rgba(42,36,32,.26);
  transform: translateY(-6px);
  border-color: var(--gold-light);
}
.diferencial-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;
  font-size: 1.6rem;
  margin-bottom: 1.1rem;
  transition: transform .4s cubic-bezier(.22,1,.36,1);
}
.diferencial:hover .diferencial-icon { transform: scale(1.08) rotate(-3deg); }
.diferencial h4 { margin-bottom: .5rem; }
.diferencial p { font-size: .9rem; }

/* ============================================
   BLOG
   ============================================ */
.blog-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
}
.blog-card {
  background: var(--white);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(42,36,32,.04);
  border: 1px solid var(--cream-mid);
  transition: transform .4s cubic-bezier(.22,1,.36,1), box-shadow .4s ease, border-color .3s ease;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  box-shadow: 0 28px 50px -24px rgba(42,36,32,.28);
  transform: translateY(-8px);
  border-color: var(--gold-light);
}
.blog-card-img {
  height: 210px;
  background: var(--cream-mid) center / cover no-repeat;
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
  transition: transform .6s cubic-bezier(.22,1,.36,1);
}
.blog-card:hover .blog-card-img { transform: scale(1.06); }
/* leve gradiente para legibilidade do selo */
.blog-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(42,36,32,.18) 0%, transparent 45%);
  pointer-events: none;
}
.blog-card--featured .blog-card-img { height: 250px; }
.blog-tag-cat {
  position: absolute;
  top: 1rem; left: 1rem;
  z-index: 2;
  background: var(--gold);
  color: var(--white);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .3rem .75rem;
  border-radius: 50px;
}
.blog-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  flex: 1;
}
.blog-date { font-size: .8rem; color: var(--text-light); }
.blog-card-content h3 { font-size: 1.2rem; margin: 0; }
.blog-card-content p { font-size: .9rem; flex: 1; }
.link-read {
  font-size: .85rem;
  font-weight: 600;
  color: var(--gold);
  transition: gap var(--transition), color var(--transition);
}
.link-read:hover { color: var(--gold-dark); }
.blog-footer {
  text-align: center;
  margin-top: 2.5rem;
}

/* ============================================
   INSTAGRAM
   ============================================ */
.instagram { background: var(--white); }

/* grade do feed do Instagram (Behold) */
.instagram-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.instagram-grid[aria-busy="true"] {
  min-height: 200px;
}
.ig-item {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--cream);
}
.ig-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.ig-item:hover img { transform: scale(1.06); }
.ig-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--dark);
  opacity: 0;
  transition: opacity .3s ease;
}
.ig-item:hover::after { opacity: .15; }
.ig-badge {
  position: absolute;
  top: .55rem;
  right: .55rem;
  color: var(--white);
  font-size: .85rem;
  line-height: 1;
  text-shadow: 0 1px 3px rgba(0,0,0,.5);
  z-index: 1;
}
.instagram-cta {
  text-align: center;
  margin-top: 2rem;
}
.instagram-cta .btn { gap: .5rem; }

/* ============================================
   CONTATO
   ============================================ */
.contato-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 4rem;
  align-items: start;
}
/* desce o mapa para alinhar o topo com o título (h2), ignorando a tag acima */
.contato-mapa { margin-top: 2.1rem; }
.contato-info h2 { margin-bottom: 1rem; }
.contato-info > p { margin-bottom: 2rem; }
.contato-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.contato-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.contato-icon { font-size: 1.25rem; flex-shrink: 0; margin-top: .1rem; }
.contato-item strong { display: block; font-size: .85rem; font-weight: 600; color: var(--dark); margin-bottom: .3rem; }
.contato-item p, .contato-item a {
  font-size: .9rem;
  color: var(--text-mid);
  line-height: 1.6;
}
.contato-item a:hover { color: var(--gold); }
.social-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-mid);
  border: 1px solid var(--cream-dark);
  padding: .5rem 1rem;
  border-radius: 50px;
  transition: var(--transition);
}
.social-link svg { width: 16px; height: 16px; }
.social-link:hover { border-color: var(--gold); color: var(--gold); }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--dark);
  color: var(--cream-mid);
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding: 4rem 1.5rem;
}
.logo--footer .logo-script { color: var(--cream); }
.logo--footer .logo-sub { color: rgba(238,228,211,.5); }
.footer-brand p { font-size: .85rem; color: rgba(238,228,211,.6); margin-top: .5rem; }
.footer-crm { font-size: .75rem; color: rgba(238,228,211,.4); margin-top: .5rem; }
.footer-links { display: flex; flex-direction: column; gap: .6rem; }
.footer-links h5 { color: var(--cream); margin-bottom: .5rem; }
.footer-links a {
  font-size: .88rem;
  color: rgba(238,228,211,.65);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--gold-light); }
.footer-contact { display: flex; flex-direction: column; gap: .5rem; }
.footer-contact h5 { color: var(--cream); margin-bottom: .5rem; }
.footer-contact p { font-size: .85rem; color: rgba(238,228,211,.65); line-height: 1.6; }
.footer-contact a { font-size: .88rem; color: rgba(238,228,211,.65); transition: color var(--transition); }
.footer-contact a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.5rem;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
}
.footer-bottom p { font-size: .78rem; color: rgba(238,228,211,.4); }
.footer-credit { flex-basis: 100%; text-align: center; margin-top: .35rem; }
.footer-credit a { color: var(--gold-light); font-weight: 500; }
.footer-credit a:hover { text-decoration: underline; }

/* ============================================
   WHATSAPP FLOAT
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 2rem; right: 2rem;
  z-index: 999;
  width: 60px; height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  transition: transform var(--transition), box-shadow var(--transition);
  animation: pulse-wa 2.5s infinite;
}
.whatsapp-float svg { width: 30px; height: 30px; color: var(--white); }
.whatsapp-float:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 8px 30px rgba(37,211,102,.5);
  animation: none;
}
.whatsapp-tooltip {
  position: absolute;
  right: 70px;
  background: var(--dark);
  color: var(--white);
  font-size: .8rem;
  font-weight: 500;
  white-space: nowrap;
  padding: .4rem .85rem;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.whatsapp-float:hover .whatsapp-tooltip { opacity: 1; }
@keyframes pulse-wa {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,.4); }
  50% { box-shadow: 0 4px 32px rgba(37,211,102,.7); }
}

/* ============================================
   RESPONSIVE — TABLET (≤ 900px)
   ============================================ */
@media (max-width: 900px) {
  .section-pad { padding: 3.5rem 0; }

  /* header */
  .logo-sub { display: none; }
  .logo-script { font-size: 1.9rem; }
  .header-inner { justify-content: center; position: relative; }
  .logo { margin: 0 auto; text-align: center; }
  .hamburger { position: absolute; right: 1.5rem; }

  /* nav mobile */
  .nav {
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    gap: 1rem;
    border-top: 1px solid var(--cream-mid);
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform .35s ease, opacity .35s ease;
    z-index: 999;
  }
  .nav.open { transform: translateY(0); opacity: 1; pointer-events: all; }
  .hamburger { display: flex; }

  /* hero */
  .hero { min-height: auto; padding: 6rem 0 3rem; }
  .hero-content { max-width: 100%; text-align: center; }
  .hero-content h1 { font-size: 2.2rem; }
  .hero-cta { justify-content: center; }
  .hero-badges { justify-content: center; flex-wrap: wrap; }
  .hero-doctor-wrap { display: none; }
  .hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-image-mobile {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
  }

  /* sobre */
  .sobre-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  /* texto/título primeiro no mobile; foto e formação depois */
  .sobre-content { order: -1; padding-top: 0; }
  .sobre-content h2 { margin-bottom: 1rem; }
  /* foto e quadro de formação lado a lado no mobile */
  .sobre-image-wrap {
    max-width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  .sobre-img {
    width: 42%;
    flex-shrink: 0;
  }
  .sobre-card-credencial {
    position: static;
    margin: 0;
    flex: 1;
    max-width: none;
    padding: 1rem 1.1rem;
  }

  /* especialidades */
  .cards-grid { grid-template-columns: 1fr; }

  /* fertilidade */
  .jornada-steps { grid-template-columns: 1fr 1fr; }

  /* diferenciais */
  .diferenciais-grid { grid-template-columns: 1fr 1fr; }

  /* blog */
  .blog-grid { grid-template-columns: 1fr; }

  /* instagram */
  .instagram-grid { grid-template-columns: repeat(3, 1fr); gap: .75rem; }

  /* contato */
  .contato-grid { grid-template-columns: 1fr; gap: 2rem; }
  .contato-mapa { margin-top: 0; }

  /* footer */
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

/* ============================================
   RESPONSIVE — MOBILE (≤ 480px)
   ============================================ */
@media (max-width: 480px) {
  .hero-content h1 { font-size: 1.9rem; }
  .hero-cta { flex-direction: column; align-items: center; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .hero-badges { flex-direction: column; }
  .hero-image-frame { max-width: 220px; }

  .jornada-steps { grid-template-columns: 1fr; }
  .diferenciais-grid { grid-template-columns: 1fr; }
  .instagram-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom .container { flex-direction: column; text-align: center; }

  .whatsapp-float { bottom: 1.25rem; right: 1.25rem; }
}

/* ============================================
   UTILITY
   ============================================ */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Fade-in animation on scroll */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
