/*
Theme Name: Bonfim Saude Emocional
Theme URI: https://bonfimsaudeemocional.com.br/
Author: RA Midia
Description: Tema de blocos editorial e acolhedor para a Bonfim Saude Emocional.
Version: 1.0.2
Requires at least: 6.7
Tested up to: 7.0
Requires PHP: 8.0
Text Domain: bonfim-saude-emocional
*/

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
  --bonfim-plum: #3d0a4f;
  --bonfim-purple: #5b0b6d;
  --bonfim-gold: #c8a86b;
  --bonfim-gold-light: #e8d4aa;
  --bonfim-sand: #e6d7c3;
  --bonfim-ivory: #f8f5f1;
  --bonfim-lavender: #b99ac8;
  --bonfim-rose: #d9b7b0;
  --bonfim-muted: #7a6f74;
  --bonfim-ink: #1a0a22;
  --bonfim-white: #fff;
  --bonfim-radius-sm: 14px;
  --bonfim-radius-md: 28px;
  --bonfim-radius-lg: 48px;
  --bonfim-shadow: 0 24px 70px rgba(61, 10, 79, .11);
}

html { scroll-behavior: smooth; }
body {
  overflow-x: hidden;
  background: var(--bonfim-ivory);
  color: var(--bonfim-ink);
  text-rendering: optimizeLegibility;
}

::selection { background: var(--bonfim-gold-light); color: var(--bonfim-plum); }
a { text-underline-offset: .18em; }
:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid var(--bonfim-gold);
  outline-offset: 3px;
}

.bonfim-anchor { scroll-margin-top: 108px; }
.bonfim-eyebrow {
  color: var(--bonfim-purple);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.bonfim-display {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: .98;
}

.bonfim-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(61, 10, 79, .08);
  background: rgba(248, 245, 241, .92);
  backdrop-filter: blur(16px);
}
.admin-bar .bonfim-site-header { top: 32px; }
.bonfim-header-inner { min-height: 82px; }
.bonfim-site-header .wp-block-site-logo img { max-height: 58px; width: auto; }
.bonfim-site-header .wp-block-navigation-item__content {
  position: relative;
  color: var(--bonfim-ink);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.bonfim-site-header .wp-block-navigation-item__content::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  content: '';
  background: var(--bonfim-gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .25s ease;
}
.bonfim-site-header .wp-block-navigation-item__content:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
.bonfim-header-cta .wp-block-button__link { padding: .85rem 1.2rem; }

.bonfim-hero {
  position: relative;
  min-height: min(790px, calc(100vh - 82px));
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 16%, rgba(185,154,200,.38), transparent 31%),
    radial-gradient(circle at 72% 88%, rgba(200,168,107,.25), transparent 33%),
    linear-gradient(132deg, #f8f5f1 0%, #f4ede8 55%, #eadfd7 100%);
}
.bonfim-hero::before {
  position: absolute;
  top: 8%;
  right: -8%;
  width: 48vw;
  min-width: 420px;
  aspect-ratio: 1;
  border: 1px solid rgba(61,10,79,.13);
  border-radius: 48% 52% 37% 63% / 55% 41% 59% 45%;
  content: '';
  transform: rotate(12deg);
}
.bonfim-hero::after {
  position: absolute;
  right: 18%;
  bottom: -12%;
  width: 290px;
  height: 420px;
  border-radius: 50% 50% 16px 16px;
  content: '';
  background: linear-gradient(160deg, rgba(91,11,109,.95), rgba(61,10,79,.98));
  box-shadow: var(--bonfim-shadow);
  transform: rotate(8deg);
  z-index: -1;
}
.bonfim-hero-inner { min-height: inherit; }
.bonfim-hero-copy { position: relative; z-index: 2; max-width: 790px; }
.bonfim-hero-title { max-width: 820px; font-size: clamp(4rem, 8vw, 8.6rem); }
.bonfim-hero-lead { max-width: 650px; color: #4f4253; font-size: clamp(1rem, 1.7vw, 1.22rem); line-height: 1.8; }
.bonfim-hero-actions { margin-top: 2rem; }
.bonfim-hero-note { margin-top: 2.4rem; color: var(--bonfim-muted); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }

.bonfim-section { position: relative; padding-top: clamp(5rem, 10vw, 9rem); padding-bottom: clamp(5rem, 10vw, 9rem); }
.bonfim-section-title { max-width: 780px; font-size: clamp(3rem, 5.7vw, 6.2rem); }
.bonfim-section-lead { max-width: 700px; color: #564959; font-size: 1.06rem; line-height: 1.85; }
.bonfim-section--plum { background: var(--bonfim-plum); color: var(--bonfim-ivory); }
.bonfim-section--plum .wp-block-heading { color: var(--bonfim-ivory) !important; }
.bonfim-section--plum .bonfim-clinic-statement { color: var(--bonfim-gold-light) !important; }
.bonfim-section--plum .bonfim-value,
.bonfim-section--plum .bonfim-service-card p,
.bonfim-section--plum .bonfim-service-card li { color: #ede5ee !important; opacity: 1; }
.bonfim-section--sand { background: #efe4d8; }
.bonfim-section--white { background: var(--bonfim-white); }

.bonfim-clinic-grid { align-items: start; gap: clamp(2rem, 7vw, 7rem); }
.bonfim-clinic-statement {
  position: sticky;
  top: 132px;
  padding-left: 1.3rem;
  border-left: 2px solid var(--bonfim-gold);
  color: var(--bonfim-gold-light);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  font-style: italic;
  line-height: 1.12;
}
.bonfim-values { gap: 1rem; }
.bonfim-value {
  padding: 1.2rem 1.25rem;
  border: 1px solid rgba(232,212,170,.25);
  border-radius: var(--bonfim-radius-sm);
  color: #f1e9ef;
  background: rgba(255,255,255,.045);
}

.bonfim-professionals { gap: clamp(1.5rem, 3vw, 2.5rem); }
.bonfim-professional-card {
  position: relative;
  overflow: hidden;
  min-height: 540px;
  padding: clamp(2rem, 4vw, 3.4rem);
  border: 1px solid rgba(61,10,79,.11);
  border-radius: var(--bonfim-radius-md);
  background: var(--bonfim-white);
  box-shadow: 0 20px 60px rgba(61,10,79,.07);
}
.bonfim-professional-card::after {
  position: absolute;
  top: -60px;
  right: -40px;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(200,168,107,.55);
  border-radius: 50%;
  content: '';
}
.bonfim-professional-monogram {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border-radius: 50%;
  color: var(--bonfim-ivory);
  background: var(--bonfim-plum);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.1rem;
  font-style: italic;
}
.bonfim-professional-role { color: var(--bonfim-purple); font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.bonfim-tag-list { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.5rem; }
.bonfim-tag {
  display: inline-flex;
  padding: .5rem .75rem;
  border: 1px solid rgba(91,11,109,.14);
  border-radius: 999px;
  color: #5a465e;
  background: #fbf8f5;
  font-size: .75rem;
}

.bonfim-services-grid { gap: 1rem; }
.bonfim-service-card {
  position: relative;
  min-height: 330px;
  padding: 2rem;
  border: 1px solid rgba(232,212,170,.24);
  border-radius: var(--bonfim-radius-sm);
  color: var(--bonfim-ivory);
  background: rgba(255,255,255,.045);
  transition: transform .3s ease, background .3s ease, border-color .3s ease;
}
.bonfim-service-card:hover { border-color: var(--bonfim-gold); background: rgba(255,255,255,.08); transform: translateY(-6px); }
.bonfim-service-number { color: var(--bonfim-gold); font-family: 'Cormorant Garamond', Georgia, serif; font-size: 2rem; font-style: italic; }
.bonfim-service-card h3 { margin-top: 3.5rem; font-size: clamp(1.9rem, 3vw, 2.7rem); }
.bonfim-service-card p, .bonfim-service-card li { color: #e8dfe9; font-size: .9rem; line-height: 1.7; }

.bonfim-needs-grid { gap: 1rem; }
.bonfim-need {
  padding: 1.35rem 1.4rem;
  border-bottom: 1px solid rgba(61,10,79,.15);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
}

.bonfim-blog-card {
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(61,10,79,.1);
  border-radius: var(--bonfim-radius-sm);
  background: var(--bonfim-white);
  box-shadow: 0 18px 50px rgba(61,10,79,.06);
}
.bonfim-blog-card .wp-block-post-featured-image { margin: 0; }
.bonfim-blog-card .wp-block-post-featured-image img { aspect-ratio: 16/10; object-fit: cover; }
.bonfim-blog-card__body { padding: 1.6rem; }
.bonfim-blog-card .wp-block-post-title { font-size: 1.8rem; line-height: 1.08; }
.bonfim-blog-card .wp-block-post-excerpt { color: var(--bonfim-muted); font-size: .9rem; }

.bonfim-contact-wrap { gap: clamp(2rem, 7vw, 7rem); }
.bonfim-contact-panel {
  padding: clamp(1.5rem, 3vw, 2.7rem);
  border: 1px solid rgba(61,10,79,.1);
  border-radius: var(--bonfim-radius-md);
  background: var(--bonfim-white);
  box-shadow: var(--bonfim-shadow);
}
.bonfim-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.bonfim-form__field { display: grid; gap: .45rem; }
.bonfim-form__field--full { grid-column: 1 / -1; }
.bonfim-form label { color: var(--bonfim-plum); font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.bonfim-form input,
.bonfim-form select,
.bonfim-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: .95rem 1rem;
  border: 1px solid #d8ccd9;
  border-radius: 10px;
  color: var(--bonfim-ink);
  background: #fdfbf9;
  font: inherit;
}
.bonfim-form textarea { min-height: 130px; resize: vertical; }
.bonfim-form__consent { display: flex; gap: .65rem; align-items: flex-start; color: var(--bonfim-muted); font-size: .78rem; line-height: 1.5; }
.bonfim-form__consent input { width: auto; margin-top: .2rem; }
.bonfim-form__submit {
  justify-self: start;
  padding: 1rem 1.4rem;
  border: 0;
  border-radius: 999px;
  color: var(--bonfim-white);
  background: var(--bonfim-purple);
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}
.bonfim-form__submit:hover { background: var(--bonfim-plum); transform: translateY(-2px); }
.bonfim-form-message { padding: 1rem 1.2rem; border-radius: 10px; margin-bottom: 1rem; }
.bonfim-form-message--success { color: #254e38; background: #e0f3e7; }
.bonfim-form-message--error { color: #7b2433; background: #fbe5e9; }
.bonfim-honeypot { position: absolute !important; left: -9999px !important; }

.bonfim-whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 45;
  display: inline-flex;
  gap: .55rem;
  align-items: center;
  padding: .85rem 1.05rem;
  border-radius: 999px;
  color: var(--bonfim-white);
  background: #287b4e;
  box-shadow: 0 16px 38px rgba(25,84,52,.25);
  font-size: .78rem;
  font-weight: 700;
  text-decoration: none;
}

.bonfim-site-footer { padding-top: 5rem; padding-bottom: 2rem; background: #22072d; color: #f3ebf2; }
.bonfim-site-footer a { color: #f8f5f1 !important; }
.bonfim-site-footer .wp-block-heading { color: #f4e6c5 !important; }
.bonfim-site-footer p { color: #ded2df !important; opacity: 1; }
.bonfim-site-footer .wp-block-site-title { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 2rem; }
.bonfim-footer-grid { gap: clamp(2rem, 6vw, 6rem); }
.bonfim-footer-meta { padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.2); color: #c9bccb; font-size: .72rem; }
.bonfim-site-footer .bonfim-footer-meta p { color: #cfc1d1 !important; }
.bonfim-contact-info { display: grid; gap: .75rem; }
.bonfim-contact-info a { text-decoration: none; }

.bonfim-page-hero { padding-top: 6rem; padding-bottom: 4rem; background: linear-gradient(140deg, #f8f5f1, #eadfd7); }
.bonfim-article { padding-top: 4rem; padding-bottom: 6rem; }
.bonfim-article .wp-block-post-content { font-size: 1.02rem; line-height: 1.85; }
.bonfim-article .wp-block-post-content > * { max-width: 760px; margin-right: auto; margin-left: auto; }
.bonfim-article .wp-block-post-content > .alignwide { max-width: 1180px; }

.bonfim-reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.bonfim-reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .bonfim-hero { min-height: 700px; }
  .bonfim-hero::after { right: -80px; opacity: .33; }
  .bonfim-clinic-statement { position: static; }
  .bonfim-header-cta { display: none; }
}

@media (max-width: 782px) {
  .admin-bar .bonfim-site-header { top: 46px; }
  .bonfim-header-inner { min-height: 72px; }
  .bonfim-site-header .wp-block-site-logo img { max-height: 48px; }
  .bonfim-hero-title { font-size: clamp(3.5rem, 15vw, 5.6rem); }
  .bonfim-form { grid-template-columns: 1fr; }
  .bonfim-form__field--full { grid-column: auto; }
  .bonfim-whatsapp-float span { display: none; }
  .bonfim-whatsapp-float { width: 52px; height: 52px; justify-content: center; padding: 0; font-size: 0; }
  .bonfim-whatsapp-float::before { content: 'WA'; font-size: .72rem; letter-spacing: .03em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .bonfim-reveal { opacity: 1; transform: none; }
}

