/* =============================================
   FERTILIDADE A FAVOR DA VIDA
   Dra. Ana Peixoto | CRM 19113/PR
   Design: Bordeaux · Gold · White
============================================= */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --bordeaux: #7A1A1A;
  --bordeaux-dark: #5C1010;
  --bordeaux-light: #9B2A2A;
  --gold: #C9A84C;
  --gold-light: #E0C06A;
  --cream: #FDF8F2;
  --white: #FFFFFF;
  --text-dark: #1F1111;
  --text-muted: #6B5555;
  --border: rgba(201, 168, 76, 0.2);
  --shadow: 0 12px 48px rgba(90, 16, 16, 0.12);
  --shadow-hover: 0 20px 60px rgba(90, 16, 16, 0.18);
  --radius: 20px;
  --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  --font-headings: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---- TYPOGRAPHY ---- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-headings);
  color: var(--bordeaux-dark);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 600;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 600;
}

h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 500;
}

p {
  color: var(--text-muted);
}

a {
  text-decoration: none;
  color: inherit;
}

.gold-text {
  color: var(--gold);
}

.bordeaux-text {
  color: var(--bordeaux);
}

/* ---- HEADER / NAV ---- */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(92, 16, 16, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.3);
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  transition: var(--transition);
}

.logo-nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-nav img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  object-fit: cover;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-text span:first-child {
  font-family: var(--font-headings);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.logo-text span:last-child {
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

nav a {
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: var(--transition);
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--gold);
  transition: var(--transition);
}

nav a:hover {
  color: var(--gold-light);
}

nav a:hover::after {
  width: 100%;
}

.btn-agendar-nav {
  background: var(--gold);
  color: var(--bordeaux-dark) !important;
  font-weight: 600 !important;
  padding: 8px 20px;
  border-radius: 50px;
  transition: var(--transition) !important;
}

.btn-agendar-nav:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(201, 168, 76, 0.35);
}

.btn-agendar-nav::after {
  display: none !important;
}

/* hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--gold-light);
  border-radius: 2px;
  transition: var(--transition);
}

/* ---- HERO ---- */
#hero {
  min-height: 100vh;
  background:
    linear-gradient(160deg, rgba(92, 16, 16, 0.97) 0%, rgba(122, 26, 26, 0.92) 50%, rgba(155, 42, 42, 0.80) 100%),
    url('logo.png') center/cover no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 5% 80px;
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 50% 50%, rgba(201, 168, 76, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* Logo hero */
.hero-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 36px;
  animation: fadeDown 0.9s ease both;
}

.hero-logo-wrap img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  box-shadow: 0 0 60px rgba(201, 168, 76, 0.25), 0 20px 60px rgba(0, 0, 0, 0.35);
  object-fit: cover;
}

.hero-content {
  max-width: 700px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(201, 168, 76, 0.12);
  border: 1px solid rgba(201, 168, 76, 0.35);
  border-radius: 50px;
  padding: 7px 20px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  color: var(--gold-light);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 28px;
  animation: fadeDown 0.9s 0.1s ease both;
}

.hero-badge svg {
  width: 14px;
  height: 14px;
}

.hero-content h1 {
  color: var(--white);
  margin-bottom: 10px;
  animation: fadeDown 0.9s 0.2s ease both;
}

.hero-content h1 em {
  color: var(--gold-light);
  font-style: italic;
}

.hero-subtitle {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(0.8rem, 1.5vw, 0.9rem);
  color: var(--gold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 400;
  margin-bottom: 16px;
  animation: fadeDown 0.9s 0.25s ease both;
}

.hero-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.75);
  max-width: 520px;
  margin: 0 auto 44px;
  line-height: 1.8;
  animation: fadeDown 0.9s 0.35s ease both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeDown 0.9s 0.45s ease both;
}

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  color: var(--bordeaux-dark);
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.3);
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201, 168, 76, 0.45);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 13px 30px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold-light);
  transform: translateY(-2px);
}

/* ---- SECTION COMMONS ---- */
section {
  padding: 96px 5%;
}

.section-tag {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.71rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.section-title {
  margin-bottom: 18px;
}

.section-line {
  width: 52px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin-bottom: 32px;
}

.section-line.center {
  margin: 0 auto 32px;
}

/* ---- SOBRE ---- */
#sobre {
  background: var(--white);
}

.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.sobre-visual {
  position: relative;
}

.sobre-badge-img {
  width: 100%;
  max-width: 400px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.sobre-badge-img .img-container {
  background: linear-gradient(135deg, var(--bordeaux) 0%, var(--bordeaux-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  min-height: 400px;
}

.sobre-badge-img img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 4px solid var(--gold);
  object-fit: cover;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

.sobre-deco {
  position: absolute;
  bottom: -24px;
  right: -24px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.15), rgba(201, 168, 76, 0.05));
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sobre-deco span {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  line-height: 1.5;
}

.sobre-text h2 {
  margin-bottom: 8px;
}

.sobre-text .section-tag {
  margin-bottom: 8px;
}

.sobre-text p {
  margin-bottom: 18px;
  font-size: 1rem;
}

.sobre-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.pill {
  background: rgba(122, 26, 26, 0.07);
  border: 1px solid rgba(122, 26, 26, 0.15);
  color: var(--bordeaux);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 50px;
}

/* ---- ESPECIALIDADES ---- */
#especialidades {
  background: var(--cream);
  text-align: center;
}

.esp-header {
  max-width: 600px;
  margin: 0 auto 60px;
}

.esp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
}

.esp-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  border: 1px solid var(--border);
  transition: var(--transition);
  text-align: left;
  position: relative;
  overflow: hidden;
}

.esp-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: linear-gradient(180deg, var(--gold), var(--bordeaux));
  transition: var(--transition);
}

.esp-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(201, 168, 76, 0.4);
}

.esp-card:hover::before {
  height: 100%;
}

.esp-icon {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(122, 26, 26, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  color: var(--bordeaux);
  transition: var(--transition);
}

.esp-card:hover .esp-icon {
  background: rgba(122, 26, 26, 0.06);
  border-color: rgba(122, 26, 26, 0.25);
  color: var(--bordeaux-dark);
}

.esp-card h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
  font-weight: 500;
}

.esp-card p {
  font-size: 0.88rem;
  line-height: 1.75;
}

/* ---- VALORES / PRINCÍPIOS ---- */
#valores {
  background: linear-gradient(160deg, var(--bordeaux-dark) 0%, var(--bordeaux) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

#valores::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('logo.png') center/400px no-repeat;
  opacity: 0.04;
  pointer-events: none;
}

#valores .section-tag {
  color: var(--gold-light);
}

#valores h2 {
  color: var(--white);
}

#valores .section-line {
  background: linear-gradient(90deg, var(--gold), transparent);
}

#valores>p {
  color: rgba(255, 255, 255, 0.75);
  max-width: 600px;
  margin: 0 auto 56px;
  font-size: 1rem;
}

.valores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.valor-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: var(--transition);
}

.valor-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(201, 168, 76, 0.4);
  transform: translateY(-4px);
}

.valor-card .icon {
  width: 40px;
  height: 40px;
  margin-bottom: 20px;
  color: var(--gold);
  opacity: 0.85;
}

.valor-card h4 {
  font-family: 'Cormorant Garamond', serif;
  color: var(--gold-light);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

.valor-card p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.875rem;
  line-height: 1.75;
}

/* ---- AGENDA / CTA ---- */
#agenda {
  background: var(--white);
  text-align: center;
}

.agenda-inner {
  max-width: 700px;
  margin: 0 auto;
}

.agenda-inner h2 {
  margin-bottom: 18px;
}

.agenda-inner p {
  font-size: 1rem;
  margin-bottom: 40px;
}

.agenda-options {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.agenda-link {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(122, 26, 26, 0.04);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 28px;
  width: 100%;
  max-width: 480px;
  transition: var(--transition);
  cursor: pointer;
  text-align: left;
}

.agenda-link:hover {
  border-color: var(--gold);
  background: rgba(201, 168, 76, 0.06);
  transform: translateX(6px);
}

.agenda-link-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(122, 26, 26, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--bordeaux);
  transition: var(--transition);
}

.agenda-link:hover .agenda-link-icon {
  background: rgba(122, 26, 26, 0.06);
  border-color: var(--gold);
  color: var(--bordeaux-dark);
}

.agenda-link-text strong {
  display: block;
  color: var(--bordeaux-dark);
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  margin-bottom: 3px;
}

.agenda-link-text small {
  color: var(--text-muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 300;
}

/* ---- FOOTER ---- */
footer {
  background: var(--bordeaux-dark);
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  padding: 48px 5% 32px;
  border-top: 1px solid rgba(201, 168, 76, 0.2);
}

.footer-logo img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid rgba(201, 168, 76, 0.5);
  object-fit: cover;
  margin-bottom: 16px;
}

footer h4 {
  font-family: 'Playfair Display', serif;
  color: var(--gold-light);
  font-size: 1rem;
  margin-bottom: 6px;
}

footer p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-links {
  display: flex;
  gap: 28px;
  justify-content: center;
  margin: 24px 0 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.85rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--gold-light);
}

.footer-divider {
  width: 40px;
  height: 1px;
  background: rgba(201, 168, 76, 0.3);
  margin: 20px auto;
}

.footer-copy {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.35);
}

/* ============ TERMOS PAGE ============ */
.termos-hero {
  background: linear-gradient(160deg, var(--bordeaux-dark), var(--bordeaux));
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 5% 60px;
}

.termos-hero h1 {
  color: var(--white);
  margin-bottom: 12px;
}

.termos-hero p {
  color: rgba(255, 255, 255, 0.7);
}

.termos-body {
  max-width: 860px;
  margin: 0 auto;
  padding: 72px 5%;
}

.termos-body h2 {
  font-size: 1.3rem;
  color: var(--bordeaux);
  margin: 40px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.termos-body h2:first-child {
  margin-top: 0;
}

.termos-body p {
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.termos-body ul {
  padding-left: 24px;
  margin-bottom: 14px;
}

.termos-body li {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.termos-body .atualizado {
  display: inline-block;
  background: rgba(201, 168, 76, 0.12);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 4px 16px;
  font-size: 0.8rem;
  color: var(--gold);
  margin-bottom: 32px;
}

.legal-nav {
  display: flex;
  gap: 20px;
  margin-bottom: 48px;
  flex-wrap: wrap;
  position: sticky;
  top: 80px;
  background: var(--cream);
  padding: 10px 0;
  z-index: 10;
  border-bottom: 1px solid var(--border);
}

.legal-nav a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
}

.legal-nav a:hover {
  color: var(--bordeaux);
}

.termos-body section {
  padding: 40px 0;
  border-bottom: 1px solid rgba(201, 168, 76, 0.1);
}

.termos-body section:last-of-type {
  border-bottom: none;
}

.termos-body h3 {
  font-size: 1.1rem;
  color: var(--bordeaux-light);
  margin: 24px 0 8px;
}

.legal-contact-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-dark);
}

.contact-item svg {
  color: var(--gold);
}

.atualizado {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---- MOBILE NAV ---- */
@media (max-width: 768px) {
  nav.desktop {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-menu {
    display: none;
    position: fixed;
    inset: 72px 0 0;
    background: rgba(70, 10, 10, 0.97);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 36px;
    z-index: 99;
  }

  .mobile-menu.open {
    display: flex;
  }

  .mobile-menu a {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.5rem;
    font-family: var(--font-headings);
    font-weight: 600;
  }

  .mobile-menu a:hover {
    color: var(--gold-light);
  }

  .sobre-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .sobre-badge-img .img-container {
    min-height: 260px;
    padding: 40px;
  }

  .sobre-badge-img img {
    width: 150px;
    height: 150px;
  }

  .sobre-deco {
    display: none;
  }
}

@media (max-width: 500px) {
  section {
    padding: 72px 5%;
  }

  .hero-logo-wrap img {
    width: 120px;
    height: 120px;
  }
}

/* ---- ANIMATIONS ---- */
@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================= RESPONSIVENESS REFINEMENTS ================= */
@media (max-width: 992px) {
  .sobre-grid {
    gap: 48px;
  }

  .hero-content h1 {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  section {
    padding: 80px 5%;
  }

  .hero-logo-wrap img {
    width: 140px;
    height: 140px;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .esp-grid,
  .valores-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .sobre-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .section-line {
    margin: 0 auto 24px;
  }

  .sobre-visual {
    order: -1;
  }

  .sobre-badge-img {
    margin: 0 auto;
  }

  .footer-links {
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }

  .hero-logo-wrap img {
    width: 120px;
    height: 120px;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}