/* ==========================================================================
   Estilos Dedicados para o Hub de Agendamento — Longe de Casa Psi
   Conceito A: Acolhimento Contemporâneo
   ========================================================================== */

:root {
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --surface-warm: #FFF8E6;
  --text: #404B56;
  --text-muted: #5A6370;
  --magenta: #CC2F68;
  --magenta-dark: #A3194A;
  --indigo: #2A187F;
  --indigo-dark: #1E1160;
  --indigo-light: #EFEDF8;
  --border: #E8E3F2;
  --border-dark: #CFC8E6;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --font-serif: 'Newsreader', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --transition: all 0.2s ease-in-out;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body.page-template-page-agende-aqui,
body.page-agende-aqui-custom {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  width: 100%;
  min-width: 320px;
}

body.modal-open {
  overflow: hidden;
}

p, li, span, h1, h2, h3, h4, h5, h6 { text-align: left; }
section[id], [id] { scroll-margin-top: 90px; }

:focus-visible {
  outline: 2px solid var(--magenta);
  outline-offset: 3px;
}

.agende-container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Header & Navegação Institucional
   ========================================================================== */
.agende-header {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.96);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}
.agende-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}
.agende-brand-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
}
.agende-brand-title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
}
.agende-brand-tag {
  font-size: 12px;
  color: var(--magenta);
  font-weight: 600;
  letter-spacing: 0.02em;
}

nav.agende-nav-desktop {
  display: flex;
  align-items: center;
  gap: 28px;
}
nav.agende-nav-desktop a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}
nav.agende-nav-desktop a:hover,
nav.agende-nav-desktop a.active {
  color: var(--text);
  font-weight: 600;
}
.agende-header-btn {
  background: var(--magenta);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.agende-header-btn:hover { background: var(--magenta-dark); }

/* Menu Mobile */
.agende-mobile-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border-dark);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
}
.agende-mobile-drawer {
  display: none;
  position: absolute;
  top: calc(100% + 18px);
  left: 0;
  right: 0;
  background: var(--surface);
  border-bottom: 2px solid var(--border);
  padding: 16px 20px 20px;
  box-shadow: 0 16px 36px rgba(0,0,0,0.1);
  z-index: 101;
}
.agende-mobile-drawer.is-active { display: block; }
.agende-mobile-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  list-style: none;
}
.agende-mobile-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 15.5px;
  font-weight: 500;
  padding: 8px 0;
  border-bottom: 1px solid var(--surface-warm);
  display: block;
}
.agende-mobile-drawer .agende-header-btn {
  margin-top: 14px;
  width: 100%;
  text-align: center;
}

/* ==========================================================================
   Seção 1 — Hero
   ========================================================================== */
.agende-hero {
  padding: 56px 0 40px;
  background: linear-gradient(180deg, rgba(239, 237, 248, 0.45) 0%, rgba(255, 255, 255, 0) 100%);
  border-bottom: 1px solid var(--border);
}
.agende-hero-content {
  max-width: 780px;
}
.agende-eyebrow {
  display: inline-block;
  background: var(--indigo-light);
  color: var(--indigo);
  font-size: 13.5px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.agende-hero h1 {
  font-family: var(--font-serif);
  font-size: 42px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--text);
}
.agende-hero-lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ==========================================================================
   Seção 2 — Escolha da Profissional (Cards)
   ========================================================================== */
.agende-prof-section {
  padding: 64px 0 56px;
}
.agende-section-title-wrap {
  text-align: left;
  margin-bottom: 40px;
  max-width: 700px;
}
.agende-section-title-wrap h2 {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.agende-section-title-wrap p {
  color: var(--text-muted);
  font-size: 16.5px;
}

.agende-prof-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
  align-items: stretch;
}

.agende-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.agende-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.07);
}

.agende-card-photo-wrap {
  width: 100%;
  height: 280px;
  background: var(--surface-warm);
  overflow: hidden;
  position: relative;
}
.agende-card-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}

.agende-card-body {
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.agende-card-header {
  margin-bottom: 16px;
  border-bottom: 1px solid var(--surface-warm);
  padding-bottom: 14px;
}
.agende-card-name {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
}
.agende-card-crp {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--magenta);
  letter-spacing: 0.03em;
  margin-top: 4px;
  display: inline-block;
}

.agende-card-bio {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.agende-card-focus {
  background: var(--bg);
  border-left: 3px solid var(--indigo);
  padding: 12px 14px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 24px;
  margin-top: auto;
}
.agende-focus-label {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--indigo);
  display: block;
  margin-bottom: 4px;
}
.agende-focus-text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.45;
}

/* Botões do Hub */
.btn-magenta {
  background: var(--magenta);
  color: #fff !important;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 24px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  text-align: center;
  transition: background 0.2s ease, transform 0.15s ease;
  font-family: inherit;
}
.btn-magenta:hover {
  background: var(--magenta-dark);
}
.btn-magenta:active {
  transform: scale(0.98);
}

/* ==========================================================================
   Seção 3 — Como Funciona o Primeiro Contato (3 Etapas)
   ========================================================================== */
.agende-steps-section {
  padding: 60px 0;
  background: var(--surface-warm);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.agende-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 36px;
}
.agende-step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.02);
}
.agende-step-number {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--indigo-light);
  color: var(--indigo);
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.agende-step-card h3 {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.35;
}
.agende-step-card p {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.6;
}

/* ==========================================================================
   Seção 4 — Informações Importantes & Orientações Práticas
   ========================================================================== */
.agende-info-section {
  padding: 64px 0 72px;
}
.agende-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 36px;
}
.agende-info-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px 24px;
}
.agende-info-item h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--indigo-dark);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.agende-info-item p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}
.agende-info-item.highlight-meet {
  background: linear-gradient(135deg, rgba(239, 237, 248, 0.5) 0%, rgba(255, 255, 255, 1) 100%);
  border: 1px solid #CFC9E8;
}

/* ==========================================================================
   Rodapé Institucional Integrado
   ========================================================================== */
.agende-footer {
  background: #1E1160;
  color: #ECE9F5;
  padding: 60px 0 32px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.agende-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.agende-footer-brand h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
  color: #FFFFFF;
  margin-bottom: 12px;
}
.agende-footer-brand p {
  color: #A9A5BD;
  font-size: 14.5px;
  line-height: 1.6;
  max-width: 380px;
}
.agende-footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--magenta);
  margin-bottom: 16px;
}
.agende-footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.agende-footer-col a {
  color: #D6D1E8;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}
.agende-footer-col a:hover { color: #FFFFFF; }
.agende-footer-bottom {
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #8E8AA3;
}
.agende-footer-note {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #A9A5BD;
}

/* ==========================================================================
   Modal Demonstrativo Seguro (HTML5 <dialog>)
   ========================================================================== */
.demo-dialog {
  margin: auto;
  padding: 36px 32px 30px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
  max-width: 480px;
  width: 90%;
  font-family: var(--font-sans);
}
.demo-dialog::backdrop {
  background: rgba(30, 17, 96, 0.65);
  backdrop-filter: blur(4px);
}
.demo-dialog-badge {
  display: inline-block;
  background: var(--indigo-light);
  color: var(--indigo);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}
.demo-dialog h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.25;
}
.demo-dialog p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 24px;
}
.demo-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--border-dark);
  color: var(--text);
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
  font-family: inherit;
}
.btn-outline:hover {
  background: var(--surface-warm);
}

/* ==========================================================================
   Responsividade (Tablet 768px e Mobile 390px / 375px)
   ========================================================================== */
@media (max-width: 992px) {
  nav.agende-nav-desktop { display: none; }
  .agende-mobile-btn { display: inline-block; }
  .agende-prof-grid { gap: 24px; }
  .agende-steps-grid { grid-template-columns: 1fr; gap: 18px; }
  .agende-info-grid { grid-template-columns: 1fr; gap: 18px; }
  .agende-footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .agende-hero { padding: 40px 0 32px; }
  .agende-hero h1 { font-size: 32px; }
  .agende-hero-lead { font-size: 16.5px; }
  .agende-prof-grid { grid-template-columns: 1fr; }
  .agende-card-photo-wrap { height: 240px; }
  .agende-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .agende-container { padding: 0 18px; }
  .agende-hero h1 { font-size: 28px; }
  .agende-card-body { padding: 24px 20px 20px; }
  .agende-card-name { font-size: 22px; }
  .agende-card-photo-wrap { height: 210px; }
  .demo-dialog { padding: 26px 20px 22px; }
}

