/*
Theme Name: Psicóloga Julia Bianchini
Theme URI: https://example.com/
Author: Codex
Description: Tema WordPress personalizado baseado no wireframe navegável da Psicóloga Julia Bianchini.
Version: 1.0.3
Text Domain: psicologa-julia-bianchini
*/

@import url("https://fonts.googleapis.com/css2?family=Homemade+Apple&family=Playfair+Display:wght@500;600;700;800&family=Sen:wght@400;500;600;700;800&display=swap");

:root {
  --off-white: #EAEDDC;
  --wine: #990B0B;
  --pink-ice: #FBE7E7;
  --petal-pink: #FCBED0;
  --pink-peacock: #D6336B;
  --raspberry: #B81A46;
  --blue-violet: #404583;
  --dark-green: #163E2C;
  --burnt-yellow: #DB9419;
  --vivid-rose: #E5488F;
  --white: #fffaf7;
  --muted-green: rgba(22, 62, 44, 0.72);
  --line: rgba(22, 62, 44, 0.18);
  --shadow: 0 18px 45px rgba(22, 62, 44, 0.1);
  --radius-card: 8px;
  --radius-organic: 46% 54% 48% 52% / 58% 42% 58% 42%;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--off-white);
  color: var(--dark-green);
  font-family: "Sen", "Trebuchet MS", Arial, sans-serif;
  line-height: 1.65;
}

body.nav-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0 0 1rem;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--wine);
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 4.15rem);
  max-width: 950px;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 3rem);
}

h3 {
  font-size: 1.18rem;
}

button,
input,
textarea,
select {
  font: inherit;
}

.handwritten {
  color: var(--raspberry);
  font-family: "Homemade Apple", "Brush Script MT", "Segoe Print", cursive;
  font-size: clamp(1rem, 2.1vw, 1.45rem);
  line-height: 1.7;
}

.organic-note {
  display: block;
  width: fit-content;
  max-width: 390px;
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.organic-note.alt {
  color: var(--blue-violet);
}

.contrast .organic-note {
  color: var(--petal-pink);
}

.container {
  width: min(var(--max-width), calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(234, 237, 220, 0.94);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--wine);
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  line-height: 1.1;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--wine);
  color: var(--off-white);
  font-weight: 800;
  letter-spacing: 0;
}

.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  display: block;
}

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

.nav-link {
  border-radius: 999px;
  padding: 0.55rem 0.8rem;
  color: var(--dark-green);
  font-size: 0.95rem;
  font-weight: 700;
}

.nav-link:hover,
.nav-link.active {
  background: var(--pink-ice);
  color: var(--wine);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--wine);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: currentColor;
}

.section {
  padding: clamp(3.5rem, 8vw, 7rem) 0;
}

.section-tight {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}

.section-header {
  display: grid;
  gap: 1rem;
  max-width: 780px;
  margin-bottom: 2rem;
}

.section-header.center {
  justify-items: center;
  margin-inline: auto;
  text-align: center;
}

.kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(153, 11, 11, 0.25);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  background: rgba(251, 231, 231, 0.55);
  color: var(--wine);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.lead {
  color: var(--muted-green);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 7vw, 7.5rem) 0;
}

.hero::before {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(90deg, rgba(252, 190, 208, 0.26), transparent 38%),
    linear-gradient(180deg, rgba(255, 250, 247, 0.6), transparent 62%);
  content: "";
  pointer-events: none;
}

.hero::after {
  position: absolute;
  inset: 18% -8% auto auto;
  width: min(44vw, 560px);
  height: 58%;
  border-radius: 42% 58% 48% 52% / 52% 38% 62% 48%;
  background: rgba(251, 231, 231, 0.28);
  content: "";
  pointer-events: none;
}

.hero > .container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  position: relative;
  display: grid;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.85fr);
}

.hero-copy {
  display: grid;
  gap: 1.4rem;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.75rem 1.15rem;
  cursor: pointer;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

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

.btn-primary:hover {
  background: var(--raspberry);
}

.btn-secondary {
  border-color: rgba(153, 11, 11, 0.3);
  background: var(--pink-ice);
  color: var(--wine);
}

.btn-secondary:hover {
  border-color: var(--wine);
  background: var(--petal-pink);
}

.btn-dark {
  background: var(--dark-green);
  color: var(--off-white);
}

.btn-small {
  min-height: 40px;
  padding: 0.55rem 0.9rem;
  font-size: 0.9rem;
}

.placeholder-wrap {
  position: relative;
  min-height: 430px;
}

.image-placeholder {
  position: relative;
  display: grid;
  min-height: 410px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(153, 11, 11, 0.16);
  border-radius: var(--radius-organic);
  background:
    linear-gradient(135deg, rgba(252, 190, 208, 0.8), rgba(251, 231, 231, 0.7)),
    repeating-linear-gradient(135deg, rgba(153, 11, 11, 0.08) 0 1px, transparent 1px 14px);
  color: var(--wine);
  text-align: center;
  box-shadow: var(--shadow);
}

.image-placeholder.small {
  min-height: 300px;
}

.image-placeholder span {
  width: min(70%, 280px);
  border: 1px solid rgba(153, 11, 11, 0.25);
  border-radius: var(--radius-card);
  padding: 1rem;
  background: rgba(255, 250, 247, 0.74);
  font-weight: 800;
}

.floating-note {
  position: absolute;
  right: 0.5rem;
  bottom: 1rem;
  width: min(260px, 72%);
  border: 1px solid rgba(153, 11, 11, 0.16);
  border-radius: var(--radius-card);
  padding: 1rem;
  background: var(--white);
  box-shadow: var(--shadow);
}

.organic-flow {
  position: relative;
  overflow: hidden;
}

.organic-flow::before {
  position: absolute;
  inset: 12% auto auto -12%;
  width: min(34vw, 410px);
  height: 48%;
  border-radius: 48% 52% 54% 46% / 42% 50% 50% 58%;
  background: rgba(252, 190, 208, 0.14);
  content: "";
  pointer-events: none;
}

.organic-flow > .container {
  position: relative;
  z-index: 1;
}

.card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Hub de navegação — Entre sessões */
.hub-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hub-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid rgba(153, 11, 11, 0.12);
  border-radius: var(--radius-organic);
  text-decoration: none;
  color: inherit;
  transition: box-shadow .2s, transform .2s;
}

.hub-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
  transform: translateY(-2px);
}

.hub-card-body h3 {
  margin: 0 0 .35rem;
  font-size: 1rem;
  color: var(--dark-green);
}

.hub-card-body p {
  margin: 0;
  font-size: .875rem;
  color: #6b7280;
  line-height: 1.5;
}

.hub-arrow {
  font-size: 1.25rem;
  color: var(--wine);
  flex-shrink: 0;
}

.hub-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  height: 1.75rem;
  padding: 0 .5rem;
  border-radius: 999px;
  background: var(--wine);
  color: var(--off-white);
  font-size: .8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.section-action {
  margin-top: 2rem;
}

.card-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  border: 1px solid rgba(153, 11, 11, 0.12);
  border-radius: var(--radius-card);
  padding: clamp(1.1rem, 3vw, 1.55rem);
  background: var(--pink-ice);
  box-shadow: 0 12px 28px rgba(22, 62, 44, 0.06);
}

.card.alt {
  background: var(--petal-pink);
}

.card.white {
  background: var(--white);
}

.card h3 {
  margin-bottom: 0.55rem;
}

.service-card {
  display: grid;
  gap: 1.1rem;
  align-content: start;
  min-height: 270px;
  border-left: 5px solid var(--wine);
}

.meta {
  color: var(--blue-violet);
  font-size: 0.9rem;
  font-weight: 800;
}

.split {
  display: grid;
  align-items: start;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
}

.contrast {
  background: var(--dark-green);
  color: var(--off-white);
}

.contrast h2,
.contrast h3,
.contrast .kicker {
  color: var(--off-white);
}

.contrast .kicker {
  border-color: rgba(234, 237, 220, 0.24);
  background: rgba(234, 237, 220, 0.08);
}

.contrast .lead,
.contrast p {
  color: rgba(234, 237, 220, 0.86);
}

.contrast.wine {
  background: var(--wine);
}

.contrast-card {
  border: 1px solid rgba(234, 237, 220, 0.18);
  border-radius: var(--radius-card);
  padding: clamp(1.5rem, 4vw, 2.2rem);
  background: rgba(234, 237, 220, 0.08);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(22, 62, 44, 0.16);
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  background: var(--white);
  color: var(--dark-green);
  font-size: 0.92rem;
  font-weight: 800;
}

.tag.accent {
  border-color: rgba(219, 148, 25, 0.28);
  background: rgba(219, 148, 25, 0.14);
  color: var(--wine);
}

.info-list {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.info-list li {
  border-left: 3px solid var(--burnt-yellow);
  padding: 0.35rem 0 0.35rem 0.75rem;
}

.accordion {
  display: grid;
  gap: 0.8rem;
}

.accordion details {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--white);
}

.accordion summary {
  cursor: pointer;
  padding: 1rem 1.1rem;
  color: var(--wine);
  font-weight: 800;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion summary::after {
  content: '';
  width: 18px;
  height: 18px;
  min-width: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23990b0b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform .22s;
  flex-shrink: 0;
}

.accordion details[open] > summary::after {
  transform: rotate(180deg);
}

.accordion details p {
  padding: 0 1.1rem 1.1rem;
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.form-row {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field label,
.checkbox-label {
  color: var(--wine);
  font-size: 0.92rem;
  font-weight: 800;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid rgba(22, 62, 44, 0.2);
  border-radius: var(--radius-card);
  padding: 0.85rem 0.95rem;
  background: var(--white);
  color: var(--dark-green);
}

.field textarea {
  min-height: 132px;
  resize: vertical;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}

.checkbox-label input {
  margin-top: 0.35rem;
  accent-color: var(--wine);
}

.form-status {
  display: none;
  color: var(--blue-violet);
  font-weight: 800;
}

.form-status.visible {
  display: block;
}

.blog-layout,
.contact-layout,
.sessions-layout {
  display: grid;
  align-items: start;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1fr) 330px;
}

.sidebar {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 1rem;
}

.sidebar .card h2 {
  font-size: clamp(2rem, 3.2vw, 2.65rem);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.filter-btn {
  border: 1px solid rgba(153, 11, 11, 0.25);
  border-radius: 999px;
  padding: 0.5rem 0.8rem;
  background: var(--white);
  color: var(--wine);
  cursor: pointer;
  font-weight: 800;
}

.filter-btn.is-active {
  background: var(--wine);
  color: var(--off-white);
}

.article-card {
  display: grid;
  gap: 0.85rem;
}

.article-thumb {
  display: grid;
  min-height: 150px;
  place-items: center;
  border-radius: var(--radius-card);
  background:
    linear-gradient(135deg, rgba(252, 190, 208, 0.75), rgba(234, 237, 220, 0.7)),
    repeating-linear-gradient(45deg, rgba(64, 69, 131, 0.12) 0 1px, transparent 1px 12px);
  color: var(--wine);
  font-weight: 800;
}

.featured-article {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.login-shell {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
}

.dashboard-band {
  display: grid;
  gap: 1rem;
}

.notice {
  border-left: 4px solid var(--burnt-yellow);
  border-radius: var(--radius-card);
  padding: 1rem;
  background: rgba(219, 148, 25, 0.12);
}

.cta-panel {
  display: grid;
  gap: 1.3rem;
  justify-items: start;
  border: 1px solid rgba(153, 11, 11, 0.14);
  border-radius: 24px 8px 28px 8px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--pink-ice);
}

.cta-panel.center {
  justify-items: center;
  text-align: center;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--dark-green);
  color: var(--off-white);
}

.footer-grid {
  display: grid;
  gap: clamp(1.6rem, 3vw, 3rem);
  align-items: start;
  grid-template-columns: minmax(420px, 1.25fr) repeat(3, minmax(130px, 0.8fr));
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.site-footer h2,
.site-footer h3 {
  color: var(--off-white);
}

.site-footer h2 {
  font-size: clamp(2rem, 2.75vw, 2.35rem);
  white-space: nowrap;
}

.site-footer h3 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
}

.site-footer p,
.site-footer a,
.site-footer li {
  color: rgba(234, 237, 220, 0.84);
}

.site-footer p {
  margin-bottom: 0;
}

.footer-links {
  display: grid;
  gap: 0.72rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-grid > div {
  display: grid;
  align-content: start;
  gap: 0.7rem;
}

.contact-final-cta {
  display: grid;
  gap: 1.35rem;
  justify-items: start;
  max-width: 760px;
}

.footer-bottom {
  border-top: 1px solid rgba(234, 237, 220, 0.16);
  padding: 1rem 0 1.5rem;
  color: rgba(234, 237, 220, 0.78);
  font-size: 0.9rem;
}

.whatsapp-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  border-radius: 999px;
  padding: 0.78rem 1rem;
  background: var(--dark-green);
  color: var(--off-white);
  box-shadow: 0 14px 34px rgba(22, 62, 44, 0.25);
  font-weight: 800;
}

.privacy-note {
  font-size: 0.92rem;
}

@media (max-width: 980px) {
  .site-nav {
    position: fixed;
    inset: 76px 1rem auto;
    display: none;
    max-height: calc(100vh - 96px);
    overflow: auto;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    padding: 1rem;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  body.nav-open .site-nav {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .nav-link,
  .site-nav .btn {
    width: 100%;
    justify-content: flex-start;
  }

  .hero-grid,
  .split,
  .featured-article,
  .login-shell,
  .blog-layout,
  .contact-layout,
  .sessions-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .site-footer h2 {
    white-space: normal;
  }

  .card-grid,
  .card-grid.two,
  .card-grid.four,
  .hub-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 1rem, var(--max-width));
  }

  .header-inner {
    min-height: 68px;
  }

  .brand span:last-child {
    max-width: 190px;
  }

  .site-nav {
    inset: 68px 0.5rem auto;
  }

  .hero {
    padding-top: 2.4rem;
  }

  .placeholder-wrap {
    display: flex;
    justify-content: center;
    min-height: 0;
  }

  .image-placeholder {
    width: 270px !important;
    min-width: 0 !important;
    height: 360px !important;
    min-height: 0 !important;
    flex-shrink: 0;
    border-radius: 50% 50% 46% 54% / 52% 52% 48% 48%;
  }

  .hero-image-wrap,
  .hero-image-wrap.small {
    width: 260px !important;
    height: 340px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .floating-note {
    position: static;
    width: auto;
    margin-top: 1rem;
  }

  .card-grid,
  .card-grid.two,
  .card-grid.four,
  .hub-grid,
  .footer-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .button-row {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .whatsapp-float {
    right: 0.7rem;
    bottom: 0.7rem;
    padding: 0.7rem 0.9rem;
  }
}


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

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}