/* ═══════════════════════════════════════════════
   Dra. Alline Karolyne — main.css
   Estilos customizados + utilitários globais
════════════════════════════════════════════════ */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background-color: #fdfaf8;
  color: #2d1a24;
}

/* ── Custom Properties ── */
:root {
  --rose-600:    #e11d53;
  --rose-700:    #be1244;
  --blue-50:     #eef3ff;
  --blue-100:    #dce8ff;
  --blue-200:    #c0d4ff;
  --blue-500:    #4373c5;
  --blue-600:    #2c4e95;   /* brand primary — Azul Royal */
  --blue-700:    #3a5aaa;   /* softer — hover/ênfase */
  --blue-800:    #4a6abb;   /* médio — números/decorativo */
  --blue-900:    #5a7acc;   /* suave — acentos sutis */
  --burgundy:    #6b1f3c;
  --mauve:       #8b5a6e;
  --blush:       #f9e8ee;
  --petal:       #f3cad7;
  --cream:       #fdfaf8;
  --rosa-cha:    #d8a7b1;   /* Rosa Chá — seções principais */
  --sage:        #6ba292;   /* Verde Acinzentado — ícones sociais */
  --warm-beige:  #e4d4b7;   /* Bege Quente — fundo neutro */
  --transition:  0.25s ease;
}

/* ── Typography ── */
.font-display { font-family: 'Cormorant Garamond', Georgia, serif; }
.font-body    { font-family: 'DM Sans', system-ui, sans-serif; }

/* ── Hero Mesh Gradient ── */
.hero-mesh {
  background:
    radial-gradient(ellipse 80% 60% at 60% 30%, #fecdd5 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 10% 80%, #ffe4ea 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 90% 90%, #f9e8ee 0%, transparent 60%),
    #fdfaf8;
}

/* ── Grain overlay ── */
.grain::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  border-radius: inherit;
}

/* ── Badge pill ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fecdd5;
  color: #be1244;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
}

.badge-blue {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--blue-100);
  color: var(--blue-700);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
}

/* ── Rose divider ── */
.rose-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, #e11d53, #fda4b4);
  border-radius: 2px;
}

.divider-blue {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-600), var(--blue-200));
  border-radius: 2px;
}

/* ── Stat numbers ── */
.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(2.8rem, 8vw, 4.5rem);
  line-height: 1;
  color: var(--blue-700);
}

/* ── Timeline dot ── */
.timeline-dot {
  width: 12px;
  height: 12px;
  background: var(--blue-600);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
  box-shadow: 0 0 0 4px var(--blue-100);
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #e11d53 0%, #be1244 100%);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  padding: 14px 28px;
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(190,18,68,0.3);
  transition: box-shadow var(--transition), transform 0.2s;
  text-decoration: none;
  cursor: pointer;
  border: none;
}
.btn-primary:hover {
  box-shadow: 0 8px 30px rgba(190,18,68,0.4);
  transform: translateY(-1px);
  color: #fff;
  text-decoration: none;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--blue-600);
  color: var(--blue-600);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 13px 26px;
  border-radius: 6px;
  background: transparent;
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
  cursor: pointer;
}
.btn-outline:hover {
  background: var(--blue-600);
  color: #fff;
  text-decoration: none;
}

/* ── Card hover ── */
.card-hover {
  transition: box-shadow var(--transition), transform var(--transition);
}
.card-hover:hover {
  box-shadow: 0 12px 40px rgba(44,78,149,0.15);
  transform: translateY(-3px);
}

/* ── Accordion ── */
.acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.acc-body.open { max-height: 600px; }

.acc-icon { transition: transform 0.3s ease; }
.acc-icon.open { transform: rotate(45deg); }

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── WhatsApp float pulse ── */
.wpp-float {
  animation: pulse-soft 3s ease-in-out infinite;
}
@keyframes pulse-soft {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0.4); }
  50%       { box-shadow: 0 0 0 10px rgba(37,211,102,0); }
}

/* ── Page enter animation ── */
.page-enter {
  animation: pageEnter 0.35s ease forwards;
}
@keyframes pageEnter {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Wave SVG ── */
.wave-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  overflow: hidden;
  line-height: 0;
  height: 40px;
}
.wave-bottom svg {
  width: 100%;
  height: 100%;
}

/* ── Navbar scroll shrink ── */
#site-header.scrolled {
  box-shadow: 0 2px 20px rgba(107,31,60,0.08);
}

/* ── Mobile menu transition ── */
#mobile-menu {
  transition: max-height 0.35s ease, opacity 0.3s ease;
}

/* ── Single post layout ── */
.single-post-layout {
  width: 100%;
  max-width: 900px;
}

.single-post-shell {
  width: 100%;
}

.single-post-title {
  margin: 0;
  color: var(--burgundy);
  line-height: 1.14;
}

.single-post-meta {
  gap: 0.75rem 1rem;
  color: var(--mauve);
  font-size: 0.86rem;
}

.single-post-category a {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  background: var(--blue-100);
  color: var(--blue-700);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  text-decoration: none;
}

.single-post-excerpt {
  color: var(--mauve);
  font-size: 1.06rem;
  line-height: 1.75;
  margin-top: 0.5rem;
}

.single-post-header,
.wp-content-body,
.single-post-nav {
  width: 100%;
}

.single-featured-media .size-post-thumbnail {
  width: 100%;
  max-width: min(100%, var(--wp--style--global--content-size, 900px));
  margin-left: auto;
  margin-right: auto;
}

.single-featured-media img {
  width: 100%;
  height: auto;
}

.single-entry-wrap {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 1.5rem;
}

.single-author-card {
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: 1rem;
  padding: 1.1rem 1.25rem;
  gap: 1rem;
  align-items: flex-start;
}

.single-author-name {
  color: var(--blue-800);
  font-weight: 600;
  margin: 0 0 0.25rem;
}

.single-author-bio {
  color: var(--mauve);
  font-size: 0.92rem;
  line-height: 1.7;
  margin: 0;
}

.single-post-nav .wp-block-post-navigation-link {
  background: #fff;
  border: 1px solid var(--petal);
  border-radius: 1rem;
  padding: 1.25rem;
}

.single-post-nav .post-navigation-link__label {
  display: block;
  margin-bottom: 0.4rem;
  color: #8b5a6eb3;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.single-post-nav .post-navigation-link__title {
  color: var(--burgundy);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.65rem;
  font-weight: 600;
  line-height: 1.15;
}

.single-post-nav .wp-block-post-navigation-link a {
  text-decoration: none;
}

.single-post-nav .wp-block-post-navigation-link a:hover .post-navigation-link__title {
  color: #8b3a62;
}

.site-header-fse {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--cream) 95%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid color-mix(in srgb, var(--petal) 60%, transparent);
}

.site-header-inner {
  max-width: 1152px;
  margin: 0 auto;
  min-height: 64px;
  padding: 0 1.25rem;
}

.site-branding-fse {
  gap: 0.7rem;
}

.site-title-fse a {
  color: var(--burgundy);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  text-decoration: none;
}

.site-subtitle-fse {
  margin: 0;
  color: var(--mauve);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 10px;
}

.site-nav-fse .wp-block-navigation-item__content {
  color: var(--mauve);
  font-size: 0.9rem;
  font-weight: 500;
}

.site-nav-fse .wp-block-navigation-item__content:hover {
  color: var(--blue-700);
}

.site-footer-fse {
  background: var(--burgundy);
  color: #f7dce6;
  margin-top: 2.5rem;
}

.site-footer-inner {
  max-width: 1152px;
  margin: 0 auto;
  padding: 3rem 1.25rem;
}

.site-footer-columns {
  margin-bottom: 2rem;
}

.site-footer-title a {
  color: #fff;
  text-decoration: none;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 600;
}

.site-footer-subtitle,
.site-footer-legal,
.site-footer-copy {
  color: #f7dce6b3;
}

.site-footer-heading {
  color: #f7dce6;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  margin-bottom: 0.6rem;
}

.site-footer-nav .wp-block-navigation-item__content {
  color: #f7dce6b3;
  font-size: 0.8rem;
}

.site-footer-nav .wp-block-navigation-item__content:hover {
  color: #fff;
}

/* Respect theme.json/global style values when available. */
@supports (max-width: min(100%, 1px)) {
  .single-post-layout {
    max-width: min(100%, var(--wp--style--global--content-size, 900px));
  }
}

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

/* ── Utilitários extras ── */
.bg-cream       { background-color: #fdfaf8; }
.bg-blush       { background-color: #f9e8ee; }
.bg-warm-beige  { background-color: var(--warm-beige); }
.text-mauve     { color: #8b5a6e; }
.text-burgundy  { color: #6b1f3c; }
.text-rosa-cha  { color: var(--rosa-cha); }
.text-sage      { color: var(--sage); }
.border-petal   { border-color: #f3cad7; }

/* ── Admin bar fix ── */
/* Remove margin-top que WordPress adiciona e reposiciona header */
html { margin-top: 0 !important; }
body.admin-bar {
  margin-top: 0 !important;
}

body.admin-bar #site-header {
  top: 32px;
}

body.admin-bar > div:first-child {
  margin-top: 32px;
}

/* Tablet admin bar is taller (46px) */
@media (max-width: 782px) {
  .site-header-inner {
    padding: 0 1rem;
  }

  .single-entry-wrap {
    padding: 1rem;
  }

  .single-post-nav .post-navigation-link__title {
    font-size: 1.35rem;
  }

  body.admin-bar #site-header {
    top: 46px;
  }

  body.admin-bar > div:first-child {
    margin-top: 46px;
  }
}
