/* ============================================
   DRA. DANIELE DUARTE — CIRURGIA ONCOLÓGICA
   Paleta: cinzas quentes, creme, dourado, bordô
============================================ */

:root {
  /* Paleta oficial */
  --cinza-fumaca: #8A7F78;
  --cinza-quente: #B5ACA3;
  --off-white: #EAE4DA;
  --off-white-claro: #F4EFE6;
  --off-white-escuro: #DDD3C5;
  --dourado: #BF9874;
  --dourado-escuro: #A07E5C;
  --bordo: #6E4540;
  --bordo-escuro: #553330;
  --branco: #FFFFFF;
  --preto-texto: #2B2520;
  --cinza-texto: #5C5550;
  --cinza-suave: #A39C96;

  /* Tipografia */
  --font-display: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Espaçamentos */
  --section-y: clamp(4rem, 10vw, 8rem);
  --container-max: 1240px;
  --container-px: clamp(1.25rem, 4vw, 2.5rem);

  /* Transições */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --transition: 0.4s var(--ease-out);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--preto-texto);
  background: var(--off-white-claro);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Tipografia */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--preto-texto);
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.75rem); }
h4 { font-size: clamp(1.15rem, 2vw, 1.35rem); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dourado);
  display: inline-block;
  margin-bottom: 1.2rem;
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--dourado);
  vertical-align: middle;
  margin-right: 12px;
  transform: translateY(-2px);
}

.italic-accent {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
}

/* Layout */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-px);
  padding-right: var(--container-px);
}

section {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}

/* ============================================
   HEADER / NAVIGATION
============================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  background: rgba(244, 239, 230, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(191, 152, 116, 0.15);
  transition: all var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  flex-direction: column;
  gap: 0;
  line-height: 1;
  text-decoration: none;
}

.logo-name {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--bordo);
  line-height: 1;
  font-style: normal;
}

.logo-sub {
  display: block;
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cinza-texto);
  margin-top: 5px;
  line-height: 1;
}

@media (max-width: 900px) {
  .logo-name { font-size: 1.3rem; }
  .logo-sub  { font-size: 0.52rem; letter-spacing: 0.22em; }
}

.nav {
  display: flex;
  gap: 2.25rem;
  align-items: center;
}

.nav a {
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--preto-texto);
  position: relative;
  padding: 0.4rem 0;
}

.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--dourado);
  transition: width var(--transition);
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

.nav a.active {
  color: var(--bordo);
}

.btn-nav {
  padding: 0.7rem 1.4rem !important;
  background: var(--bordo);
  color: var(--off-white-claro) !important;
  border-radius: 2px;
  font-size: 0.82rem !important;
  transition: all var(--transition);
}

.btn-nav:hover {
  background: var(--bordo-escuro);
  transform: translateY(-1px);
}

.btn-nav::after {
  display: none !important;
}

/* Menu mobile */
.menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--bordo);
  transition: all var(--transition);
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

@media (max-width: 900px) {
  .menu-toggle { display: flex; }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 80%;
    max-width: 340px;
    background: var(--off-white-claro);
    flex-direction: column;
    gap: 1.75rem;
    justify-content: center;
    align-items: flex-start;
    padding: 4rem 2.5rem;
    transform: translateX(100%);
    transition: transform 0.5s var(--ease-out);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.08);
  }

  .nav.open {
    transform: translateX(0);
  }

  .nav a {
    font-size: 1.1rem;
  }
}

/* ============================================
   BOTÕES
============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 1rem 2rem;
  font-family: var(--font-body);
  font-size: 0.87rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 2px;
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--bordo);
  color: var(--off-white-claro);
}

.btn-primary:hover {
  background: var(--bordo-escuro);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(110, 69, 64, 0.25);
}

.btn-secondary {
  background: transparent;
  color: var(--bordo);
  border: 1px solid var(--bordo);
}

.btn-secondary:hover {
  background: var(--bordo);
  color: var(--off-white-claro);
}

.btn-wp {
  background: #25D366;
  color: white;
}

.btn-wp:hover {
  background: #1DA851;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.3);
}

.btn .arrow {
  transition: transform var(--transition);
}

.btn:hover .arrow {
  transform: translateX(4px);
}

/* ============================================
   WHATSAPP FLUTUANTE
============================================ */

.wp-float {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  width: 62px;
  height: 62px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
  z-index: 99;
  transition: all var(--transition);
  animation: wp-pulse 2.5s ease-in-out infinite;
}

.wp-float:hover {
  transform: scale(1.08);
  animation: none;
}

.wp-float svg {
  width: 32px;
  height: 32px;
  fill: white;
}

@keyframes wp-pulse {
  0%, 100% { box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.5); }
  50% { box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4), 0 0 0 18px rgba(37, 211, 102, 0); }
}

/* ============================================
   FOOTER
============================================ */

.footer {
  background: var(--bordo-escuro);
  color: var(--off-white);
  padding: 5rem 0 2rem;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--dourado), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-logo-text {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 1.5rem;
  text-decoration: none;
}

.footer-logo-name {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--off-white-claro);
  line-height: 1;
}

.footer-logo-sub {
  display: block;
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--dourado);
  margin-top: 6px;
  line-height: 1;
}

.footer-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--off-white);
  opacity: 0.85;
  max-width: 280px;
}

.footer h4 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dourado);
  margin-bottom: 1.25rem;
}

.footer ul {
  list-style: none;
}

.footer li {
  margin-bottom: 0.65rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--off-white);
  opacity: 0.85;
}

.footer a:hover {
  color: var(--dourado);
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid rgba(234, 228, 218, 0.15);
  padding-top: 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--off-white);
  opacity: 0.6;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 800px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}
@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================
   ANIMAÇÕES
============================================ */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }
.reveal-delay-4 { transition-delay: 0.48s; }

/* Adiciona padding-top pro conteúdo não ficar embaixo do header fixo */
main {
  padding-top: 84px;
}

/* ============================================
   CTA FINAL (compartilhado)
============================================ */

.cta-final {
  background: var(--bordo);
  color: var(--off-white-claro);
  text-align: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}

.cta-final::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(191, 152, 116, 0.12) 0%, transparent 60%);
  border-radius: 50%;
}

.cta-final-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.cta-final .eyebrow {
  color: var(--dourado);
}

.cta-final h2 {
  color: var(--off-white-claro);
  font-weight: 400;
  margin-bottom: 1.25rem;
}

.cta-final h2 .italic-accent {
  color: var(--dourado);
}

.cta-final p {
  color: var(--off-white);
  opacity: 0.85;
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 2.5rem;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.cta-final .btn-primary {
  background: var(--dourado);
  color: var(--bordo-escuro);
}

.cta-final .btn-primary:hover {
  background: var(--off-white-claro);
  color: var(--bordo);
}

/* ============================================
   FOOTER SOCIAL LINKS
============================================ */
.footer-social {
  margin-top: 1.25rem;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--off-white);
  opacity: 0.85;
  transition: color var(--transition), opacity var(--transition);
}

.footer-social-link:hover {
  color: var(--dourado);
  opacity: 1;
}

.footer-social-link svg {
  flex-shrink: 0;
  transition: color var(--transition);
}
