/*
Theme Name: Rodrigo Andrade Psi
Theme URI: https://rodrigoandradepsi.com
Author: OpenAI for Rodrigo Andrade Pereira
Description: Tema profissional, leve e responsivo para psicologia clínica online, com foco em clareza, SEO, acessibilidade e conversão ética.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: rodrigo-andrade-psi
*/

:root {
  --ra-navy: #0b1f33;
  --ra-navy-2: #102b45;
  --ra-blue: #245d83;
  --ra-blue-2: #3b769d;
  --ra-sky: #e8f1f5;
  --ra-cream: #f7f4ee;
  --ra-sand: #d9c7a8;
  --ra-ink: #14232e;
  --ra-muted: #60717d;
  --ra-line: #d8e2e8;
  --ra-white: #ffffff;
  --ra-success: #386851;
  --ra-shadow: 0 24px 60px rgba(11, 31, 51, .10);
  --ra-radius: 22px;
  --ra-container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ra-ink);
  background: var(--ra-white);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--ra-blue); text-decoration-thickness: .08em; text-underline-offset: .16em; }
a:hover { color: var(--ra-navy); }
button, input, textarea, select { font: inherit; }

.ra-container { width: min(calc(100% - 40px), var(--ra-container)); margin-inline: auto; }
.ra-narrow { width: min(calc(100% - 40px), 800px); margin-inline: auto; }
.ra-section { padding: 96px 0; }
.ra-section--soft { background: var(--ra-cream); }
.ra-section--sky { background: var(--ra-sky); }
.ra-section--dark { background: var(--ra-navy); color: var(--ra-white); }
.ra-section--compact { padding: 64px 0; }

.ra-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  color: var(--ra-blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.ra-eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.ra-section--dark .ra-eyebrow { color: #a9d1e6; }

h1, h2, h3, h4 { color: var(--ra-navy); line-height: 1.13; margin-top: 0; letter-spacing: -.025em; }
h1 { font-size: clamp(42px, 6vw, 72px); font-weight: 760; }
h2 { font-size: clamp(34px, 4vw, 52px); font-weight: 740; }
h3 { font-size: 23px; font-weight: 720; }
.ra-section--dark h1, .ra-section--dark h2, .ra-section--dark h3 { color: var(--ra-white); }
.ra-lead { font-size: clamp(19px, 2.1vw, 23px); line-height: 1.55; color: #465a68; }
.ra-section--dark .ra-lead { color: #d6e2e9; }
.ra-muted { color: var(--ra-muted); }
.ra-max-copy { max-width: 720px; }

.ra-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 21px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 760;
  line-height: 1.2;
  text-decoration: none;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
}
.ra-btn:hover { transform: translateY(-1px); }
.ra-btn--primary { background: var(--ra-navy); color: var(--ra-white); }
.ra-btn--primary:hover { background: var(--ra-blue); color: var(--ra-white); }
.ra-btn--outline { border-color: #aac0ce; color: var(--ra-navy); background: rgba(255,255,255,.72); }
.ra-btn--outline:hover { border-color: var(--ra-blue); color: var(--ra-blue); }
.ra-btn--light { background: var(--ra-white); color: var(--ra-navy); }
.ra-btn--light:hover { background: var(--ra-sky); color: var(--ra-navy); }
.ra-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* Header */
.ra-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(216,226,232,.8);
}
.ra-header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.ra-brand { text-decoration: none; color: var(--ra-navy); display: flex; flex-direction: column; line-height: 1.1; }
.ra-brand strong { font-size: 17px; letter-spacing: -.01em; }
.ra-brand span { margin-top: 6px; color: var(--ra-muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ra-nav { display: flex; align-items: center; gap: 25px; }
.ra-nav ul { display: flex; align-items: center; gap: 22px; margin: 0; padding: 0; list-style: none; }
.ra-nav a { color: #304553; font-size: 14px; font-weight: 700; text-decoration: none; }
.ra-nav a:hover, .ra-nav .current-menu-item > a { color: var(--ra-blue); }
.ra-menu-toggle { display: none; border: 0; background: transparent; padding: 8px; color: var(--ra-navy); cursor: pointer; }
.ra-menu-toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; background: currentColor; border-radius: 3px; }

/* Hero */
.ra-hero { position: relative; overflow: clip; padding: 88px 0 82px; background: linear-gradient(135deg, #f7f8f6 0%, #edf4f7 54%, #f7f4ee 100%); }
.ra-hero::before, .ra-hero::after { content: ""; position: absolute; border-radius: 999px; pointer-events: none; }
.ra-hero::before { width: 520px; height: 520px; right: -190px; top: -230px; border: 1px solid rgba(36,93,131,.16); box-shadow: 0 0 0 80px rgba(36,93,131,.025), 0 0 0 160px rgba(36,93,131,.018); }
.ra-hero::after { width: 260px; height: 260px; left: -110px; bottom: -170px; background: rgba(217,199,168,.22); }
.ra-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(340px, .78fr); gap: 72px; align-items: center; }
.ra-hero h1 { max-width: 820px; margin-bottom: 24px; }
.ra-hero .ra-lead { max-width: 730px; margin: 0 0 30px; }
.ra-credentials { display: flex; gap: 11px 18px; flex-wrap: wrap; margin-top: 28px; color: #576a77; font-size: 14px; font-weight: 650; }
.ra-credentials span { display: inline-flex; align-items: center; gap: 8px; }
.ra-credentials span::before { content: ""; width: 7px; height: 7px; border-radius: 99px; background: var(--ra-blue-2); }
.ra-hero-card { position: relative; min-height: 520px; border-radius: 34px; background: var(--ra-navy); color: var(--ra-white); box-shadow: var(--ra-shadow); overflow: hidden; padding: 32px; display: flex; flex-direction: column; justify-content: space-between; }
.ra-hero-card::before { content: ""; position: absolute; width: 340px; height: 340px; right: -120px; top: -70px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; box-shadow: 0 0 0 50px rgba(255,255,255,.03), 0 0 0 100px rgba(255,255,255,.02); }
.ra-monogram { position: relative; width: 118px; height: 118px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; font-size: 38px; font-weight: 800; letter-spacing: -.06em; background: rgba(255,255,255,.06); }
.ra-card-quote { position: relative; max-width: 390px; font-size: 27px; line-height: 1.35; letter-spacing: -.025em; }
.ra-card-meta { position: relative; display: grid; gap: 8px; color: #c9d9e3; font-size: 14px; }
.ra-card-meta strong { color: var(--ra-white); font-size: 16px; }

/* Trust strip */
.ra-strip { border-top: 1px solid var(--ra-line); border-bottom: 1px solid var(--ra-line); background: var(--ra-white); }
.ra-strip-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.ra-strip-item { padding: 23px 28px; border-right: 1px solid var(--ra-line); }
.ra-strip-item:last-child { border-right: 0; }
.ra-strip-item strong { display: block; color: var(--ra-navy); font-size: 16px; }
.ra-strip-item span { color: var(--ra-muted); font-size: 14px; }

/* Grids and cards */
.ra-section-head { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 42px; }
.ra-section-head h2 { max-width: 700px; margin-bottom: 0; }
.ra-section-head p { max-width: 410px; margin: 0; color: var(--ra-muted); }
.ra-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ra-card { background: var(--ra-white); border: 1px solid var(--ra-line); border-radius: var(--ra-radius); padding: 28px; box-shadow: 0 10px 30px rgba(11,31,51,.035); }
.ra-card h3 { margin-bottom: 12px; }
.ra-card p { margin: 0; color: var(--ra-muted); }
.ra-card-number { width: 37px; height: 37px; display: grid; place-items: center; margin-bottom: 25px; border-radius: 50%; background: var(--ra-sky); color: var(--ra-blue); font-size: 13px; font-weight: 850; }

/* Split */
.ra-split { display: grid; grid-template-columns: .92fr 1.08fr; gap: 72px; align-items: start; }
.ra-split--reverse { grid-template-columns: 1.08fr .92fr; }
.ra-sticky { position: sticky; top: 118px; }
.ra-prose p { margin: 0 0 19px; color: #445865; }
.ra-prose strong { color: var(--ra-navy); }
.ra-callout { margin-top: 26px; padding: 22px 24px; border-left: 3px solid var(--ra-blue-2); background: rgba(232,241,245,.68); border-radius: 0 15px 15px 0; color: #354b58; }
.ra-stat-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.ra-stat { border: 1px solid rgba(255,255,255,.18); border-radius: 17px; padding: 18px; }
.ra-stat strong { display: block; font-size: 17px; color: var(--ra-white); }
.ra-stat span { color: #bdd0db; font-size: 13px; }

/* Process */
.ra-process { counter-reset: steps; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.ra-step { position: relative; padding-top: 62px; }
.ra-step::before { counter-increment: steps; content: "0" counter(steps); position: absolute; top: 0; left: 0; font-size: 14px; font-weight: 850; letter-spacing: .1em; color: var(--ra-blue); }
.ra-step::after { content: ""; position: absolute; top: 31px; left: 0; right: 0; height: 1px; background: var(--ra-line); }
.ra-step p { color: var(--ra-muted); }

/* CTA */
.ra-cta { position: relative; overflow: hidden; border-radius: 32px; padding: 54px; background: var(--ra-navy); color: var(--ra-white); box-shadow: var(--ra-shadow); }
.ra-cta::after { content: ""; position: absolute; width: 350px; height: 350px; right: -130px; bottom: -190px; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; box-shadow: 0 0 0 60px rgba(255,255,255,.025), 0 0 0 120px rgba(255,255,255,.018); }
.ra-cta h2 { position: relative; color: var(--ra-white); max-width: 740px; margin-bottom: 17px; }
.ra-cta p { position: relative; max-width: 680px; color: #d0dde5; margin-bottom: 26px; }
.ra-cta .ra-btns { position: relative; }

/* Page */
.ra-page-hero { padding: 74px 0 58px; background: linear-gradient(135deg, #f7f8f6, #edf4f7); border-bottom: 1px solid var(--ra-line); }
.ra-page-hero h1 { max-width: 900px; font-size: clamp(40px, 5vw, 64px); margin-bottom: 18px; }
.ra-page-content { padding: 74px 0 100px; }
.ra-page-content .ra-narrow > *:first-child { margin-top: 0; }
.ra-page-content h2 { margin-top: 55px; font-size: 34px; }
.ra-page-content h3 { margin-top: 34px; }
.ra-page-content ul { padding-left: 22px; }
.ra-page-content li { margin: 8px 0; }
.ra-page-content blockquote { margin: 34px 0; padding: 4px 0 4px 23px; border-left: 3px solid var(--ra-blue); color: #455967; font-size: 20px; }
.ra-note { margin: 34px 0; padding: 22px 24px; border: 1px solid #cbdce5; background: var(--ra-sky); border-radius: 16px; }

/* FAQ */
.ra-faq { display: grid; gap: 12px; }
.ra-faq details { border: 1px solid var(--ra-line); border-radius: 16px; background: var(--ra-white); padding: 0 20px; }
.ra-faq summary { cursor: pointer; padding: 20px 0; color: var(--ra-navy); font-weight: 760; }
.ra-faq details p { color: var(--ra-muted); margin: 0 0 20px; }

/* Blog */
.ra-post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ra-post-card { border: 1px solid var(--ra-line); border-radius: 18px; padding: 25px; }
.ra-post-card h2 { font-size: 24px; margin-bottom: 10px; }
.ra-post-card h2 a { color: var(--ra-navy); text-decoration: none; }
.ra-post-card .ra-post-meta { color: var(--ra-muted); font-size: 13px; }

/* Contact */
.ra-contact-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 60px; }
.ra-contact-card { border: 1px solid var(--ra-line); border-radius: 22px; padding: 30px; background: var(--ra-white); }
.ra-contact-options { display: grid; gap: 12px; margin-top: 24px; }
.ra-contact-option { display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 1px solid var(--ra-line); border-radius: 14px; padding: 17px 18px; text-decoration: none; color: var(--ra-ink); }
.ra-contact-option:hover { border-color: var(--ra-blue-2); color: var(--ra-blue); }

/* Footer */
.ra-site-footer { padding: 62px 0 34px; background: #081928; color: #c9d6de; }
.ra-footer-grid { display: grid; grid-template-columns: 1.3fr .7fr .7fr; gap: 50px; }
.ra-site-footer h3 { color: var(--ra-white); font-size: 18px; }
.ra-site-footer a { color: #dce9f0; text-decoration: none; }
.ra-site-footer a:hover { color: var(--ra-white); }
.ra-site-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.ra-footer-bottom { display: flex; justify-content: space-between; gap: 30px; margin-top: 46px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.13); color: #8ea3af; font-size: 12px; }

/* WordPress alignment */
.alignwide { width: min(calc(100% - 40px), 1160px); margin-left: auto; margin-right: auto; }
.alignfull { width: 100%; }
.wp-caption-text { color: var(--ra-muted); font-size: 13px; }

/* Accessibility */
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { position: fixed; top: 10px; left: 10px; z-index: 9999; width: auto; height: auto; padding: 10px 14px; clip: auto; background: var(--ra-white); color: var(--ra-navy); }
:focus-visible { outline: 3px solid #75aeca; outline-offset: 3px; }

@media (max-width: 980px) {
  .ra-nav ul { display: none; position: absolute; left: 20px; right: 20px; top: 70px; padding: 18px; border: 1px solid var(--ra-line); border-radius: 18px; background: var(--ra-white); box-shadow: var(--ra-shadow); flex-direction: column; align-items: stretch; }
  .ra-nav ul.is-open { display: flex; }
  .ra-menu-toggle { display: block; }
  .ra-nav > .ra-btn { display: none; }
  .ra-hero-grid, .ra-split, .ra-split--reverse, .ra-contact-grid { grid-template-columns: 1fr; gap: 42px; }
  .ra-hero-card { min-height: 390px; }
  .ra-sticky { position: static; }
  .ra-grid-3, .ra-post-grid { grid-template-columns: repeat(2, 1fr); }
  .ra-section-head { align-items: start; flex-direction: column; }
  .ra-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  .ra-container, .ra-narrow { width: min(calc(100% - 28px), var(--ra-container)); }
  .ra-section { padding: 72px 0; }
  .ra-hero { padding: 64px 0 54px; }
  .ra-hero-grid { gap: 34px; }
  .ra-hero-card { min-height: 350px; padding: 25px; border-radius: 25px; }
  .ra-card-quote { font-size: 23px; }
  .ra-strip-grid, .ra-grid-3, .ra-process, .ra-post-grid, .ra-footer-grid, .ra-stat-list { grid-template-columns: 1fr; }
  .ra-strip-item { border-right: 0; border-bottom: 1px solid var(--ra-line); padding-inline: 14px; }
  .ra-strip-item:last-child { border-bottom: 0; }
  .ra-cta { padding: 36px 26px; border-radius: 24px; }
  .ra-page-hero { padding: 54px 0 42px; }
  .ra-page-content { padding: 54px 0 75px; }
  .ra-footer-bottom { flex-direction: column; }
}
