/* =========================
   Pedro Henrique • Psicanálise
   Tema Claro + Consultório
   ========================= */

/* Reset e base */
*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:#ffffff;
  color:#111827;
  line-height:1.55;
  position: relative;
}

/* ===== Mandala de fundo (marca d’água) =====
   IMPORTANTE:
   - Este CSS está em /assets/style.css
   - Então a imagem deve estar em /assets/mandala-bw.png
   - E o caminho correto é url("mandala-bw.png")
*/
body::before{
  content:"";
  position: fixed;
  inset: 0;
  background-image: url("mandala-bw.png");
  background-repeat: no-repeat;
  background-position: center 240px;
  background-size: 950px;
  opacity: 0.16; /* 👈 mais forte (ajuste: 0.10 a 0.16) */
  filter: grayscale(100%) contrast(120%);
  pointer-events: none;
  z-index: 0;
}

/* Garante que o conteúdo fique acima da mandala */
header, main, footer{
  position: relative;
  z-index: 1;
}

/* Tokens */
:root{
  --bg:#ffffff;
  --text:#111827;
  --muted:#4b5563;
  --muted2:#6b7280;

  --line:#e5e7eb;
  --soft:#f8fafc;
  --soft2:#f9fafb;

  --shadow: 0 8px 22px rgba(17,24,39,.06);
  --radius: 18px;
  --radius2: 999px;

  --brand:#111827; /* botão principal */
}

/* Acessibilidade */
.skip{
  position:absolute;
  left:-9999px;
  top:10px;
  background:#fff;
  color:#111;
  border:1px solid var(--line);
  padding:10px 12px;
  border-radius:12px;
  z-index:9999;
}
.skip:focus{ left:10px; }

a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: none; }

/* Layout */
.container{
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
}

/* Header / nav */
.nav{
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line);
}

.nav-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 0;
  gap: 14px;
}

.brand{
  display:flex;
  align-items:center;
  gap: 12px;
}

/* Esconde o círculo antigo, usa a imagem da logo */
.logo{ display:none; }

/* Logo imagem */
.logo-img{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  object-fit: contain; /* não corta a logo */
  padding: 6px;        /* respiro */
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.brand strong{ display:block; font-size: 14px; letter-spacing: .2px; }
.brand span span{
  display:block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 1px;
}

.menu-btn{
  display:none;
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 14px;
  cursor:pointer;
  font-weight:800;
}

.nav-links{
  display:flex;
  align-items:center;
  gap: 10px;
}
.nav-links a{
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid transparent;
  color: var(--muted);
  font-weight: 800;
}
.nav-links a:hover{
  background: var(--soft);
  border-color: var(--line);
  color: var(--text);
}

/* Mobile nav */
@media (max-width: 820px){
  .menu-btn{ display:inline-flex; }
  .nav-links{
    display:none;
    position:absolute;
    left: 16px;
    right: 16px;
    top: 68px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 10px;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
  }
  .nav-links.open{ display:flex; }
  .nav-links a{ color: var(--text); }

  body::before{
    background-position: center 200px;
    background-size: 520px;
    opacity: 0.14; /* um pouco mais visível no celular */
  }
}

/* Hero */
.hero{
  padding: 26px 0 10px;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 16px;
  align-items:start;
}
@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; }
}

.h-card{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.kicker{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius2);
  border: 1px solid var(--line);
  background: var(--soft);
  font-weight: 900;
  font-size: 12px;
  color: var(--text);
}

h1{
  margin: 12px 0 10px;
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: -0.4px;
}
.lead{
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 15px;
}

.hr{
  border:0;
  border-top: 1px solid var(--line);
  margin: 16px 0;
}

/* Buttons */
.btns{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  font-weight: 900;
  cursor:pointer;
}
.btn:hover{ background: var(--soft2); }

.btn.primary{
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.btn.primary:hover{ filter: brightness(1.05); }

/* Pills */
.pills{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  margin-top: 14px;
}
.pill{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius2);
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--muted);
  font-weight: 900;
  font-size: 12px;
}

/* Split + Cards */
.split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 820px){
  .split{ grid-template-columns: 1fr; }
}

.card{
  background:#fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}
.card h3{
  margin: 0 0 8px;
  font-size: 16px;
}
.card p{
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.grid3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 920px){
  .grid3{ grid-template-columns: 1fr; }
}

/* Sections */
.section{
  padding: 18px 0;
}
.section h2{
  margin: 0 0 8px;
  font-size: 22px;
  letter-spacing: -0.2px;
}
.section p{
  margin: 0;
  color: var(--muted);
}

/* Footer */
.footer{
  padding: 26px 0 30px;
  margin-top: 10px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.footer small{
  color: var(--muted2);
}

/* ===== ABAS (PLANOS + HORÁRIOS) ===== */
.tabs{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top: 14px;
}

.tab-btn{
  padding:10px 12px;
  border-radius: var(--radius2);
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--text);
  cursor:pointer;
  font-weight: 900;
  font-size: 13px;
}

.tab-btn[aria-selected="true"]{
  background: var(--brand);
  color:#fff;
  border-color: var(--brand);
}

.plan-panel{
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: #fff;
  box-shadow: var(--shadow);
}

.meta{
  color: var(--muted2);
  font-weight: 800;
  font-size: 13px;
}

.plan-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 10px;
}

.plan-box{
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  background: var(--soft);
}
.plan-box strong{
  display:block;
  margin-bottom: 6px;
  font-size: 13px;
}
.plan-box span{
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 820px){
  .plan-grid{ grid-template-columns: 1fr; }
}

/* ===== SERVIÇOS COM ÍCONES + MICROTEXTOS ===== */
.services{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.service-card{
  display:flex;
  gap: 12px;
  align-items:flex-start;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}

.service-icon{
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:center;
  background: var(--soft);
  font-size: 18px;
  flex: 0 0 auto;
}

.service-text h3{
  margin: 0 0 6px;
  font-size: 16px;
}

.service-text p{
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.micro{
  margin-top: 8px;
  color: var(--muted2);
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 920px){
  .services{ grid-template-columns: 1fr; }
}
/* ===== Campo de mensagem mais fluido ===== */

.msg-area{
  width: 100%;
  min-height: 120px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 15px;
  font-family: inherit;
  resize: vertical;
  transition: border .2s ease, box-shadow .2s ease;
}

.msg-area:focus{
  outline: none;
  border-color: #111827;
  box-shadow: 0 0 0 3px rgba(17,24,39,.08);
}