/*
Theme Name:  Petit Reabilitação
Theme URI:   https://www.instagram.com/petitreabilitacao/
Description: Tema oficial da Clínica Petit Reabilitação Pediátrica — Juiz de Fora, MG. Inclui Custom Post Types: Especialidade, Evento, Depoimento, Membro da Equipe.
Version:     1.0.0
Author:      Petit Reabilitação
Author URI:  https://www.instagram.com/petitreabilitacao/
Text Domain: petit
License:     GPL-2.0-or-later
Tags:        clinica, pediatrica, reabilitacao, saude
*/

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Poppins', sans-serif; color: #455056; background: #FEFCFF; font-size: 15px; line-height: 1.6; }
img { display: block; max-width: 100%; height: auto; }
a { color: #59439A; text-decoration: none; }
a:hover { color: #3B2C6C; }
button, input, select, textarea { font-family: inherit; }

/* ── CSS Variables ──────────────────────────────────────── */
:root {
  --purple:    #59439A;
  --purple-l:  #F1EFF9;
  --purple-m:  #DDD9F1;
  --purple-d:  #3B2C6C;
  --pink:      #EF3D6F;
  --pink-l:    #FEF0F4;
  --pink-d:    #B02050;
  --blue:      #339FC1;
  --blue-l:    #EBF7FB;
  --green:     #60BF88;
  --green-l:   #EEF9F3;
  --violet:    #5B72B7;
  --lavender:  #8E77B6;
  --salmon:    #F26F84;
  --fg:        #455056;
  --fg2:       #67777F;
  --fg3:       #8D999F;
  --bg:        #FEFCFF;
  --border:    #E8E4F0;
  --radius:    12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(69,80,86,.08);
  --shadow-md: 0 4px 16px rgba(69,80,86,.10);
}

/* ── Layout ─────────────────────────────────────────────── */
.container    { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.section      { padding: 80px 0; }
.section-sm   { padding: 56px 0; }
.grid-2       { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.grid-3       { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.grid-4       { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.text-center  { text-align: center; }
.mb-40        { margin-bottom: 40px; }
.mt-24        { margin-top: 24px; }
.divider      { height: 1px; background: var(--border); }

/* ── Typography ─────────────────────────────────────────── */
.section-label {
  font-size: 12px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--purple); display: block; margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700;
  color: var(--purple-d); line-height: 1.2; margin-bottom: 16px;
}
.section-desc { font-size: 16px; color: var(--fg2); line-height: 1.7; }

h1 { font-size: clamp(2rem,4vw,3rem); font-weight: 800; color: var(--purple-d); line-height: 1.15; }
h2 { font-size: clamp(1.6rem,3vw,2.2rem); font-weight: 700; color: var(--purple-d); }
h3 { font-size: 1.4rem; font-weight: 700; color: var(--purple-d); }
h4 { font-size: 1.1rem; font-weight: 700; color: var(--purple-d); }
p  { margin-bottom: 1em; color: var(--fg2); line-height: 1.75; }
p:last-child { margin-bottom: 0; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn, button.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; border: none; cursor: pointer; border-radius: 999px;
  transition: all .2s cubic-bezier(.16,1,.3,1); text-decoration: none;
  font-family: inherit;
}
.btn-primary   { background: var(--purple); color: #fff; padding: 13px 28px; font-size: 15px; box-shadow: 0 4px 16px rgba(89,67,154,.25); }
.btn-primary:hover { background: var(--purple-d); transform: translateY(-1px); color: #fff; }
.btn-cta       { background: var(--pink); color: #fff; padding: 10px 22px; font-size: 14px; box-shadow: 0 4px 16px rgba(239,61,111,.25); }
.btn-cta:hover { background: var(--pink-d); color: #fff; }
.btn-outline   { background: transparent; color: var(--purple); border: 2px solid var(--purple); padding: 11px 26px; font-size: 14px; }
.btn-outline:hover { background: var(--purple-l); color: var(--purple); }
.btn-band      { background: #fff; color: var(--purple-d); padding: 13px 32px; font-size: 15px; font-weight: 700; }
.btn-band:hover { transform: translateY(-2px); box-shadow: 0 4px 20px rgba(0,0,0,.2); color: var(--purple-d); }

/* ── Tags ────────────────────────────────────────────────── */
.tag { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.tag-p  { background: var(--purple-l); color: var(--purple); }
.tag-pk { background: var(--pink-l);   color: var(--pink-d); }
.tag-b  { background: var(--blue-l);   color: var(--blue); }
.tag-g  { background: var(--green-l);  color: #2D7A52; }

/* ── Header / Nav ────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(254,252,255,.95); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.site-header .header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 40px;
  display: flex; align-items: center; justify-content: space-between; height: 72px;
}
.site-logo img { height: 44px; width: auto; }
.main-nav ul   { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav a    { padding: 8px 14px; border-radius: var(--radius-sm); font-size: 14px; color: var(--fg2); font-weight: 400; transition: all .15s; display: block; }
.main-nav a:hover, .main-nav .current-menu-item a { background: var(--purple-l); color: var(--purple); font-weight: 500; }
.nav-cta       { margin-left: 8px; }

/* Mobile toggle */
.menu-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--fg); font-size: 22px; padding: 4px; }
.mobile-menu { display: none; background: #fff; border-top: 1px solid var(--border); padding: 16px 40px; }
.mobile-menu ul { list-style: none; }
.mobile-menu a  { display: block; padding: 10px 0; color: var(--fg); font-weight: 500; border-bottom: 1px solid var(--border); }
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu.is-open { display: block; }

@media (max-width: 900px) {
  .main-nav, .nav-cta { display: none; }
  .menu-toggle { display: block; }
  .container { padding: 0 20px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--purple-l) 0%, var(--bg) 60%, var(--blue-l) 100%);
  padding: 100px 0 80px; overflow: hidden; position: relative;
}
.hero::after {
  content: ''; position: absolute; top: -100px; right: -100px;
  width: 400px; height: 400px; border-radius: 50%;
  background: rgba(89,67,154,.05); pointer-events: none;
}
.hero-grid   { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.hero h1     { margin-bottom: 18px; }
.hero h1 em  { font-style: italic; color: var(--purple); }
.hero-desc   { font-size: 17px; margin-bottom: 28px; max-width: 480px; }
.hero-badges { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.hero-badge  { background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 7px 16px; font-size: 13px; color: var(--fg2); }
.hero-visual {
  background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--border);
  box-shadow: var(--shadow-md); min-height: 300px; display: flex;
  align-items: center; justify-content: center; position: relative; overflow: hidden;
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-float {
  position: absolute; bottom: 20px; right: 20px; background: #fff;
  border-radius: var(--radius); padding: 10px 16px; box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 10px;
}
.hero-float-icon { width: 32px; height: 32px; border-radius: var(--radius-sm); background: var(--green-l); display: flex; align-items: center; justify-content: center; font-size: 16px; }
.hero-float-text { font-size: 12px; font-weight: 700; color: var(--purple-d); }
.hero-float-sub  { font-size: 11px; color: var(--fg3); }

/* ── Stats bar ───────────────────────────────────────────── */
.stats-bar { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); text-align: center; padding: 36px 0; }
.stat-item  { border-right: 1px solid var(--border); padding: 0 20px; }
.stat-item:last-child { border-right: none; }
.stat-number { font-size: 2rem; font-weight: 800; color: var(--purple); display: block; }
.stat-label  { font-size: 13px; color: var(--fg3); margin-top: 2px; }

/* ── Cards ───────────────────────────────────────────────── */
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; transition: all .25s; }
.card:hover { border-color: var(--purple); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card-icon { width: 48px; height: 48px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 16px; }
.card-icon-p  { background: var(--purple-l); }
.card-icon-pk { background: var(--pink-l); }
.card-icon-b  { background: var(--blue-l); }
.card-icon-g  { background: var(--green-l); }
.card-title   { font-size: 17px; font-weight: 700; color: var(--purple-d); margin-bottom: 8px; }
.card-text    { font-size: 14px; color: var(--fg2); line-height: 1.6; }
.card-link    { font-size: 13px; color: var(--purple); font-weight: 600; margin-top: 12px; display: inline-block; }

/* Especialidade single card */
.esp-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; display: flex; gap: 18px; transition: all .25s; }
.esp-card:hover { border-color: var(--purple); box-shadow: var(--shadow-md); }
.esp-icon { width: 52px; height: 52px; border-radius: var(--radius-sm); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.esp-content h3 { font-size: 16px; font-weight: 700; color: var(--purple-d); margin-bottom: 5px; }
.esp-content p  { font-size: 13px; color: var(--fg2); line-height: 1.6; margin-bottom: 8px; }
.esp-tags { display: flex; gap: 6px; flex-wrap: wrap; }

/* Evento card */
.evento-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: all .25s; }
.evento-card:hover { box-shadow: var(--shadow-md); }
.evento-thumb { height: 170px; overflow: hidden; background: var(--purple-l); display: flex; align-items: center; justify-content: center; }
.evento-thumb img { width: 100%; height: 100%; object-fit: cover; }
.evento-body { padding: 22px; }
.evento-body h3 { font-size: 16px; font-weight: 700; color: var(--purple-d); margin-bottom: 6px; }
.evento-body p  { font-size: 13px; color: var(--fg2); line-height: 1.6; margin-bottom: 0; }
.evento-meta { font-size: 12px; color: var(--fg3); margin-bottom: 10px; display: flex; gap: 12px; }

/* Depoimento card */
.depo-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; position: relative; }
.depo-q    { font-size: 56px; color: var(--purple-l); position: absolute; top: 8px; left: 20px; line-height: 1; font-family: Georgia,serif; pointer-events: none; }
.depo-text { font-size: 14px; color: var(--fg2); line-height: 1.7; margin-bottom: 20px; padding-top: 28px; font-style: italic; }
.depo-author { display: flex; align-items: center; gap: 12px; }
.depo-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--purple-l); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: var(--purple); overflow: hidden; }
.depo-avatar img { width: 100%; height: 100%; object-fit: cover; }
.depo-name { font-size: 13px; font-weight: 600; color: var(--fg); }
.depo-rel  { font-size: 12px; color: var(--fg3); }

/* Membro da equipe */
.membro-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.membro-photo { height: 220px; background: var(--purple-l); overflow: hidden; }
.membro-photo img { width: 100%; height: 100%; object-fit: cover; }
.membro-info { padding: 20px; }
.membro-info h3 { font-size: 17px; font-weight: 700; color: var(--purple-d); margin-bottom: 2px; }
.membro-role { font-size: 13px; color: var(--purple); font-weight: 600; margin-bottom: 8px; display: block; }
.membro-info p { font-size: 13px; color: var(--fg2); line-height: 1.6; margin-bottom: 0; }

/* ── Page hero ───────────────────────────────────────────── */
.page-hero { padding: 72px 0 52px; background: linear-gradient(180deg, var(--purple-l) 0%, var(--bg) 100%); }

/* ── CTA band ────────────────────────────────────────────── */
.cta-band { background: var(--purple-d); padding: 64px 0; text-align: center; }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p  { color: rgba(255,255,255,.7); font-size: 15px; margin-bottom: 28px; }

/* ── About section ───────────────────────────────────────── */
.values-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; margin-top: 24px; }
.value-item  { display: flex; align-items: flex-start; gap: 12px; padding: 14px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.value-dot   { width: 8px; height: 8px; border-radius: 50%; background: var(--purple); margin-top: 5px; flex-shrink: 0; }
.value-text  { font-size: 14px; color: var(--fg2); }

/* ── Sedes ───────────────────────────────────────────────── */
.sede-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.sede-map  { height: 200px; background: var(--blue-l); overflow: hidden; }
.sede-map iframe { width: 100%; height: 100%; border: none; }
.sede-info { padding: 20px 24px; }
.sede-info h3 { font-size: 16px; font-weight: 700; color: var(--purple-d); margin-bottom: 4px; }
.sede-info p  { font-size: 14px; color: var(--fg2); margin-bottom: 0; }

/* ── Jornada ─────────────────────────────────────────────── */
.jornada-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.jornada-step { text-align: center; position: relative; }
.jornada-step::after { content: '→'; position: absolute; right: -12px; top: 20px; color: var(--purple-m); font-size: 20px; }
.jornada-step:last-child::after { display: none; }
.jornada-num  { width: 52px; height: 52px; border-radius: 50%; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 800; background: var(--purple-l); color: var(--purple); }
.jornada-step h4 { font-size: 14px; font-weight: 700; color: var(--purple-d); margin-bottom: 4px; }
.jornada-step p  { font-size: 12px; color: var(--fg3); line-height: 1.5; margin-bottom: 0; }

/* ── Contato / Form ──────────────────────────────────────── */
.contact-info-box { background: var(--purple-l); border-radius: var(--radius); padding: 28px; margin-bottom: 16px; }
.contact-info-box h5 { font-size: 11px; font-weight: 700; color: var(--purple); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.contact-info-box p  { font-size: 15px; color: var(--purple-d); font-weight: 600; margin-bottom: 2px; }
.contact-info-box .sub { font-size: 13px; color: var(--fg2); font-weight: 400; }

.wpcf7-form label { display: block; font-size: 13px; font-weight: 600; color: var(--fg); margin-bottom: 6px; margin-top: 14px; }
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form select,
.wpcf7-form textarea {
  width: 100%; padding: 12px 16px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); font-size: 14px; font-family: inherit;
  color: var(--fg); background: #fff; transition: border .15s; display: block;
}
.wpcf7-form input:focus, .wpcf7-form select:focus, .wpcf7-form textarea:focus {
  outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(89,67,154,.1);
}
.wpcf7-form textarea { resize: vertical; min-height: 110px; }
.wpcf7-form input[type="submit"] {
  background: var(--purple); color: #fff; padding: 13px 32px; border: none;
  border-radius: 999px; font-size: 15px; font-weight: 600; cursor: pointer;
  margin-top: 20px; transition: background .2s;
}
.wpcf7-form input[type="submit"]:hover { background: var(--purple-d); }

/* Acessibilidade */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer { background: var(--purple-d); padding: 60px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1fr; gap: 40px; margin-bottom: 40px; }
.site-footer h5 { color: #fff; font-size: 13px; font-weight: 700; margin-bottom: 14px; letter-spacing: .03em; }
.site-footer p, .site-footer a { font-size: 13px; color: rgba(255,255,255,.6); line-height: 1.9; }
.site-footer a:hover { color: #fff; }
.footer-logo img { height: 36px; filter: brightness(0) invert(1); opacity: .9; margin-bottom: 12px; }
.footer-nav ul { list-style: none; }
.footer-nav li a { display: block; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; font-size: 12px; color: rgba(255,255,255,.35); display: flex; justify-content: space-between; }
.social-links { display: flex; gap: 8px; margin-top: 8px; }
.social-link { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: var(--radius-sm); background: rgba(255,255,255,.1); color: #fff; font-size: 14px; transition: background .15s; text-decoration: none; }
.social-link:hover { background: var(--pink); color: #fff; }

/* ── Background helpers ──────────────────────────────────── */
.bg-warm        { background: #FFF9F7; }
.bg-purple-light { background: var(--purple-l); }
.bg-white       { background: #fff; }

/* ── Galeria ─────────────────────────────────────────────── */
.gallery-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.gallery-item { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1; background: var(--purple-l); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }

/* ── Single post ─────────────────────────────────────────── */
.entry-header { padding: 60px 0 40px; background: var(--purple-l); }
.entry-content { padding: 60px 0; max-width: 760px; }
.entry-content h2 { margin: 2rem 0 1rem; }
.entry-content ul, .entry-content ol { padding-left: 1.5em; color: var(--fg2); line-height: 1.8; margin-bottom: 1em; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--fg3); margin-bottom: 32px; transition: color .15s; }
.back-link:hover { color: var(--purple); }

/* ── Pagination ──────────────────────────────────────────── */
.pagination { display: flex; gap: 8px; justify-content: center; padding: 40px 0; }
.pagination a, .pagination span { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); border: 1px solid var(--border); font-size: 14px; font-weight: 600; color: var(--fg2); transition: all .15s; }
.pagination a:hover, .pagination .current { background: var(--purple); color: #fff; border-color: var(--purple); }

/* ── Abordagem cards ─────────────────────────────────────── */
.abord-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 18px 20px; }
.abord-card h4 { font-size: 14px; font-weight: 700; color: var(--purple-d); margin-bottom: 4px; }
.abord-card p  { font-size: 12px; color: var(--fg2); line-height: 1.5; margin-bottom: 0; }
