/*
Theme Name: Matheus Placidino Clínica
Theme URI: https://matheusplacidino.com.br/
Author: Matheus Placidino
Description: Tema personalizado para o site de psicologia clínica de Matheus Placidino.
Version: 1.0.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: matheus-placidino-clinica
*/

:root {
  --off-white: #f6f1e8;
  --linen: #d2c2aa;
  --graphite: #1f2528;
  --petrol: #0f5b67;
  --wood: #9a6336;
  --white: #fffdf9;
  --muted: #606668;
  --line: rgba(31, 37, 40, 0.16);
  --display: "Fraunces", Georgia, serif;
  --body: "Manrope", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--off-white);
  color: var(--graphite);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body.admin-bar .site-header {
  position: relative;
}

.content-shell {
  min-height: 55vh;
  padding: 90px max(36px, calc((100vw - 920px) / 2));
}
.content-shell article { margin-bottom: 56px; }
.content-shell h1,
.content-shell h2 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.12;
}
.content-shell h1 { font-size: clamp(38px, 5vw, 58px); }
.content-shell h2 { font-size: clamp(30px, 4vw, 44px); }
.content-shell p { color: var(--muted); }
.content-shell .post-meta { color: var(--wood); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.content-shell .pagination { display: flex; gap: 22px; font-size: 12px; font-weight: 700; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--wood); outline-offset: 4px; }

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 200;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  background: var(--white);
  padding: 0;
  border-radius: 4px;
}
.skip-link:focus {
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  padding: 10px 16px;
}

.top-note {
  min-height: 34px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background: var(--graphite);
  color: rgba(255,255,255,.82);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 7px 24px;
  text-align: center;
}
.top-note > span { grid-column: 2; }
.instagram-top {
  grid-column: 3;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  letter-spacing: .08em;
  transition: color .2s ease;
}
.instagram-top:hover { color: white; }
.instagram-top svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.site-header {
  height: 96px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 36px;
  border-bottom: 1px solid var(--line);
}
.wordmark { display: inline-flex; align-items: center; gap: 12px; width: fit-content; }
.brand-mark {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  overflow: hidden;
  background: var(--petrol);
}
.brand-mark img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(3.1);
}
.brand-mark-light { background: transparent; }
.wordmark-copy { display: flex; flex-direction: column; line-height: 1.1; }
.wordmark-copy strong { font-family: var(--display); font-size: 20px; font-weight: 500; letter-spacing: -.02em; }
.wordmark-copy small { margin-top: 6px; font-size: 8px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.site-header nav { display: flex; align-items: center; gap: 28px; font-size: 13px; line-height: 1.3; font-weight: 600; }
.site-header nav a { position: relative; }
.site-header nav a::after {
  content: "";
  position: absolute;
  height: 1px;
  left: 0;
  right: 100%;
  bottom: -6px;
  background: var(--wood);
  transition: right .25s ease;
}
.site-header nav a:hover::after { right: 0; }
.header-cta { justify-self: end; display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; color: var(--petrol); }
.header-cta svg { width: 17px; height: 17px; }

.hero {
  min-height: 810px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 64px 36px 82px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr);
  align-items: center;
  gap: 72px;
}
.hero-content { padding-left: clamp(0px, 3vw, 44px); }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  color: var(--petrol);
  font-size: 10px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.eyebrow span { display: block; width: 30px; height: 1px; background: currentColor; }
.eyebrow-warm { color: var(--wood); }
.eyebrow-light { color: rgba(255,255,255,.65); }
.hero h1 {
  max-width: 660px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(48px, 5vw, 70px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.04em;
}
h1 em { color: var(--petrol); font-weight: 400; }
.hero-copy { max-width: 650px; margin-top: 28px; }
.hero-copy p { margin: 0 0 10px; color: var(--muted); font-size: 13px; line-height: 1.72; }
.hero-copy p:first-child, .hero-copy p:nth-child(2) { color: var(--graphite); font-weight: 600; }
.hero-actions { display: flex; align-items: center; gap: 30px; margin-top: 30px; }
.button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 15px 22px;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 700;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(31,37,40,.12); }
.button svg { width: 18px; height: 18px; }
.button-primary { background: var(--petrol); color: white; }
.button-primary:hover { background: #0a4c56; }
.button-light { background: var(--off-white); color: var(--graphite); white-space: nowrap; }
.hero-details { display: flex; gap: 24px; margin-top: 25px; color: #62686a; font-size: 11px; font-weight: 600; }
.hero-details span { display: flex; align-items: center; gap: 7px; }
.hero-details svg, .credentials svg { width: 15px; height: 15px; color: var(--wood); }
.hero-visual { position: relative; min-height: 620px; }
.photo-frame {
  position: absolute;
  inset: 0 0 28px 36px;
  overflow: hidden;
  background: var(--linen);
}
.photo-frame::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255,255,255,.45);
  z-index: 2;
  pointer-events: none;
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% center; filter: saturate(.78) contrast(.95); }
.hero-visual::before {
  content: "";
  position: absolute;
  width: 72%;
  height: 70%;
  left: 0;
  bottom: 0;
  border: 1px solid var(--wood);
  z-index: -1;
}
.hero-note {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 275px;
  min-height: 118px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  box-shadow: 0 18px 45px rgba(31,37,40,.1);
  padding: 22px;
}
.hero-note .brand-mark { flex: 0 0 auto; width: 34px; height: 34px; }
.hero-note p { margin: 0; font-family: var(--display); font-size: 14px; line-height: 1.5; }

.section { padding: 110px max(36px, calc((100vw - 1248px)/2)); }
.section-heading h2, .treatment h2, .about h2, .faq h2, .closing-cta h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(40px, 4.1vw, 58px);
  font-weight: 500;
  line-height: 1.07;
  letter-spacing: -.035em;
}
.split-heading { display: grid; grid-template-columns: 1.12fr .88fr; gap: 12%; align-items: end; }
.split-heading > p { margin: 0 0 5px; color: var(--muted); font-size: 15px; line-height: 1.8; }

.symptoms { background: var(--white); }
.symptoms-grid { display: grid; grid-template-columns: 1fr 1fr; margin-top: 62px; border-top: 1px solid var(--line); }
.symptoms-grid article { min-height: 82px; display: grid; grid-template-columns: 42px 1fr; align-items: center; gap: 17px; border-bottom: 1px solid var(--line); }
.symptoms-grid article:nth-child(odd) { padding-right: 36px; border-right: 1px solid var(--line); }
.symptoms-grid article:nth-child(even) { padding-left: 36px; }
.symptoms-grid article > span { color: var(--wood); font-family: var(--display); font-size: 11px; }
.symptoms-grid p { margin: 0; font-family: var(--display); font-size: 18px; line-height: 1.35; }
.section-action { display: flex; justify-content: center; margin-top: 52px; }

.treatment { background: var(--petrol); color: white; display: grid; grid-template-columns: .9fr 1.1fr; gap: 10%; align-items: start; }
.treatment-intro > p:last-child { max-width: 520px; margin: 25px 0 0; color: rgba(255,255,255,.72); font-size: 15px; }
.treatment-steps { border-top: 1px solid rgba(255,255,255,.25); }
.treatment-steps article { display: grid; grid-template-columns: 52px 1fr; gap: 20px; padding: 28px 0 30px; border-bottom: 1px solid rgba(255,255,255,.25); }
.treatment-steps article > span { color: var(--linen); font-family: var(--display); font-size: 13px; }
.treatment-steps h3 { margin: 0 0 8px; font-family: var(--display); font-size: 23px; font-weight: 500; line-height: 1.25; }
.treatment-steps p { margin: 0; color: rgba(255,255,255,.72); font-size: 13px; line-height: 1.8; }

.about { background: var(--off-white); display: grid; grid-template-columns: .88fr 1.12fr; gap: 9%; align-items: center; }
.about-visual { min-height: 700px; position: relative; }
.about-visual > img { width: 100%; height: 700px; object-fit: cover; object-position: 55% center; filter: saturate(.72); }
.about-caption {
  position: absolute;
  right: -34px;
  bottom: 36px;
  width: 255px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--graphite);
  color: white;
  padding: 22px;
  font-size: 10px;
  line-height: 1.6;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.about-caption .brand-mark { width: 34px; height: 34px; flex: 0 0 auto; }
.about-copy { max-width: 650px; }
.about-copy > p:not(.eyebrow) { margin: 18px 0 0; color: var(--muted); font-size: 13px; line-height: 1.82; }
.trajectory-title { margin: 29px 0 0; padding-top: 26px; border-top: 1px solid var(--line); font-family: var(--display); font-size: 22px; font-weight: 500; }
.credentials { list-style: none; padding: 8px 0 0; margin: 0; }
.credentials li { display: flex; align-items: flex-start; gap: 11px; margin: 9px 0; font-size: 11px; font-weight: 600; }
.credentials svg { flex: 0 0 auto; margin-top: 3px; }
.about-button { margin-top: 25px; }

.testimonials { background: var(--white); }
.testimonials-heading { max-width: 750px; margin-bottom: 58px; }
.testimonials-heading > p:last-child { margin: 22px 0 0; color: var(--muted); font-size: 14px; }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.testimonials-grid article { min-height: 430px; display: flex; flex-direction: column; padding: 35px 34px 28px; border-right: 1px solid var(--line); }
.testimonials-grid article:first-child { padding-left: 0; }
.testimonials-grid article:last-child { padding-right: 0; border-right: 0; }
.testimonial-meta { min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.google-review-link { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; transition: color .2s ease; }
.google-review-link:hover { color: var(--petrol); }
.google-review-link svg { width: 22px; height: 22px; flex: 0 0 auto; stroke: none; }
.quote-mark { height: 48px; color: var(--wood); font-family: var(--display); font-size: 66px; line-height: 1; }
.testimonials-grid article > p { flex: 1; margin: 17px 0 35px; color: var(--muted); font-family: var(--display); font-size: 17px; line-height: 1.65; }
.testimonials-grid article > footer { display: flex; justify-content: space-between; align-items: center; padding-top: 20px; border-top: 1px solid var(--line); }
.testimonials-grid footer span { color: var(--wood); font-family: var(--display); font-size: 11px; }
.testimonials-grid footer strong { font-size: 11px; letter-spacing: .12em; }

.faq { display: grid; grid-template-columns: .76fr 1.24fr; gap: 10%; background: var(--off-white); }
.faq-heading > .brand-mark { width: 72px; height: 72px; margin-top: 44px; opacity: .15; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { min-height: 96px; display: grid; grid-template-columns: 42px 1fr 20px; align-items: center; gap: 16px; cursor: pointer; list-style: none; font-family: var(--display); font-size: 19px; line-height: 1.35; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary > span { color: var(--wood); font-family: var(--display); font-size: 11px; }
.faq-list summary i { position: relative; display: block; width: 16px; height: 16px; }
.faq-list summary i::before, .faq-list summary i::after { content: ""; position: absolute; top: 7px; left: 1px; width: 14px; height: 1px; background: var(--petrol); transition: transform .2s ease; }
.faq-list summary i::after { transform: rotate(90deg); }
.faq-list details[open] summary i::after { transform: rotate(0); }
.faq-list details > p { max-width: 670px; margin: -2px 36px 31px 58px; color: var(--muted); font-size: 13px; line-height: 1.85; }

.closing-cta { min-height: 420px; display: grid; grid-template-columns: 110px 1fr auto; align-items: center; gap: 54px; background: var(--petrol); color: white; }
.final-symbol { width: 96px; height: 96px; border: 1px solid rgba(255,255,255,.25); display: grid; place-items: center; }
.final-symbol .brand-mark { width: 58px; height: 58px; }
.closing-cta h2 { max-width: 690px; }
.closing-cta div > p:last-child { max-width: 650px; margin: 20px 0 0; color: rgba(255,255,255,.7); font-size: 14px; }

.site-footer { min-height: 210px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; padding: 55px max(36px, calc((100vw - 1248px)/2)); background: var(--graphite); color: rgba(255,255,255,.78); }
.footer-wordmark { color: white; }
.footer-links { display: flex; gap: 28px; font-size: 10px; font-weight: 600; }
.site-footer > p { justify-self: end; margin: 0; font-size: 9px; }

.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 3px solid var(--off-white);
  border-radius: 50%;
  background: #25d366;
  color: white;
  box-shadow: 0 12px 30px rgba(31,37,40,.28);
  transition: transform .2s ease, box-shadow .2s ease;
}
.whatsapp-float:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 16px 35px rgba(31,37,40,.34); }
.whatsapp-float svg { width: 31px; height: 31px; fill: currentColor; stroke: none; }

@media (max-width: 1100px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .hero { grid-template-columns: 1.05fr .95fr; gap: 38px; }
  .hero h1 { font-size: clamp(46px, 6vw, 64px); }
  .treatment, .about, .faq { gap: 6%; }
  .closing-cta { grid-template-columns: 80px 1fr; }
  .closing-cta > .button { grid-column: 2; justify-self: start; }
  .site-footer { grid-template-columns: 1fr 1fr; }
  .footer-links { display: none; }
}

@media (max-width: 760px) {
  .top-note { grid-template-columns: 1fr auto; gap: 12px; text-align: left; font-size: 9px; line-height: 1.45; }
  .top-note > span { grid-column: 1; }
  .instagram-top { grid-column: 2; }
  .instagram-top > span { display: none; }
  .site-header { height: 82px; padding: 0 20px; }
  .wordmark-copy strong { font-size: 17px; }
  .wordmark-copy small { font-size: 7px; }
  .header-cta { font-size: 0; gap: 0; width: 42px; height: 42px; justify-content: center; border: 1px solid var(--line); }
  .header-cta svg { width: 18px; height: 18px; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding: 56px 20px 70px; gap: 48px; }
  .hero-content { padding: 0; }
  .hero h1 { font-size: clamp(45px, 13vw, 60px); }
  .hero-copy p { font-size: 13px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 16px; }
  .hero-details { flex-direction: column; gap: 7px; }
  .hero-visual { min-height: 510px; }
  .photo-frame { left: 16px; bottom: 24px; }
  .hero-note { width: 235px; min-height: 110px; padding: 18px; }
  .section { padding: 80px 20px; }
  .split-heading { grid-template-columns: 1fr; gap: 24px; }
  .symptoms-grid { grid-template-columns: 1fr; }
  .symptoms-grid article:nth-child(odd), .symptoms-grid article:nth-child(even) { padding: 10px 0; border-right: 0; }
  .symptoms-grid p { font-size: 17px; }
  .treatment, .about, .faq { grid-template-columns: 1fr; gap: 58px; }
  .about-visual { min-height: 520px; margin-right: 14px; }
  .about-visual > img { height: 520px; }
  .about-caption { right: -14px; bottom: 22px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .testimonials-grid article, .testimonials-grid article:first-child, .testimonials-grid article:last-child { min-height: 0; padding: 34px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .testimonials-grid article:last-child { border-bottom: 0; }
  .testimonials-grid article > p { font-size: 16px; }
  .faq-heading > .brand-mark { display: none; }
  .faq-list summary { min-height: 84px; grid-template-columns: 28px 1fr 18px; font-size: 17px; gap: 10px; }
  .faq-list details > p { margin: 0 20px 28px 38px; }
  .closing-cta { grid-template-columns: 1fr; gap: 26px; }
  .final-symbol { width: 74px; height: 74px; }
  .closing-cta > .button { grid-column: 1; }
  .site-footer { min-height: 240px; grid-template-columns: 1fr; align-content: center; padding: 50px 20px; }
  .site-footer > p { justify-self: start; }
  .whatsapp-float { right: 16px; bottom: 16px; width: 54px; height: 54px; }
  .whatsapp-float svg { width: 28px; height: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
