/* =============================================
   CUIDAR TERAPIA — CSS GLOBAL
   Paleta: #35a4d4 (marca), #1d6f94 (ações/contraste AA), #e8f5fb
   ============================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Nunito Sans', sans-serif; color: #2d3748; background: #fff; line-height: 1.65; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ── TOKENS ── */
:root {
  --blue:      #35a4d4;  /* cor da marca — usar sobre fundos escuros ou como acento */
  --blue-deep: #1d6f94;  /* azul de ação — contraste AA (5.6:1) com texto branco */
  --blue-dk:   #16597a;  /* hover do azul de ação */
  --blue-lt:   #e8f5fb;
  --blue-mid:  #c2e4f4;
  --dark:      #0d2233;
  --text:      #2d3748;
  --muted:     #5a6b7f;  /* escurecido p/ contraste em texto pequeno */
  --border:    #e2e8f0;
  --bg:        #f7fbfd;
  --white:     #ffffff;
  --wpp:       #128c4b;  /* verde WhatsApp com contraste AA */
  --radius:    10px;
  --radius-lg: 16px;
  --shadow:    0 2px 16px rgba(53,164,212,0.10);
  --shadow-md: 0 4px 24px rgba(53,164,212,0.15);
}

/* ── TYPOGRAPHY ── */
h1,h2,h3,h4 { font-family: 'Lora', serif; color: var(--dark); line-height: 1.2; }
p { color: var(--muted); line-height: 1.75; }

/* ── ACESSIBILIDADE ── */
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ── BUTTONS ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 28px; border-radius: 30px; font-size: 14px; font-weight: 700; font-family: 'Nunito Sans', sans-serif; cursor: pointer; border: none; transition: all .2s; letter-spacing: .3px; }
.btn-primary { background: var(--blue-deep); color: #fff; }
.btn-primary:hover { background: var(--blue-dk); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(29,111,148,.35); }
.btn-outline { background: transparent; color: var(--blue-deep); border: 2px solid var(--blue-deep); }
.btn-outline:hover { background: var(--blue-deep); color: #fff; }
.btn-white { background: #fff; color: var(--blue-deep); }
.btn-white:hover { background: var(--blue-lt); }
.btn-wpp { background: var(--wpp); color: #fff; }
.btn-wpp:hover { background: #0e7740; transform: translateY(-1px); }

/* ── SECTION ── */
.section { padding: 80px 24px; }
.section-inner { max-width: 1140px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 52px; }
.label-tag { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 2.5px; text-transform: uppercase; color: var(--blue-deep); margin-bottom: 10px; }
.section-title { font-size: 34px; font-weight: 700; color: var(--dark); margin-bottom: 14px; }
.section-sub { font-size: 16px; color: var(--muted); max-width: 580px; margin: 0 auto; }

/* ── HEADER ── */
#site-header { background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.07); position: sticky; top: 0; z-index: 500; }
.header-inner { max-width: 1140px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 16px; }
.site-logo { flex-shrink: 1; min-width: 0; }
.site-logo img { height: 44px; width: auto; }
.site-logo .logo-fallback { font-family: 'Lora',serif; font-size: 20px; font-weight: 700; color: var(--dark); }
.site-logo .logo-fallback span { color: var(--blue-deep); }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { font-size: 13px; font-weight: 600; color: #4a5568; transition: color .2s; }
.site-nav a:hover { color: var(--blue-deep); }
.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header-cta { padding: 10px 20px; font-size: 13px; white-space: nowrap; line-height: 1.2; }
#menu-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--dark); padding: 8px; line-height: 1; min-width: 44px; min-height: 44px; }

/* Mobile nav */
#mobile-nav { display: none; background: #fff; border-top: 1px solid var(--border); padding: 8px 24px 16px; }
#mobile-nav a { display: block; padding: 12px 0; font-weight: 600; color: var(--text); border-bottom: 1px solid #f0f0f0; font-size: 15px; }
#mobile-nav a:last-child { border-bottom: none; }

/* ── HERO ── */
.hero {
  background:
    linear-gradient(135deg, rgba(13,34,51,.92) 0%, rgba(13,51,82,.88) 100%),
    url('../img/site/espaco-1.jpeg') center 35%/cover no-repeat;
  padding: 96px 24px 80px; text-align: center; position: relative; overflow: hidden;
}
.hero::before { content:''; position:absolute; width:700px; height:700px; border-radius:50%; background:radial-gradient(circle,rgba(53,164,212,.18) 0%,transparent 70%); top:-200px; right:-200px; pointer-events:none; }
.hero::after { content:''; position:absolute; width:400px; height:400px; border-radius:50%; background:radial-gradient(circle,rgba(53,164,212,.12) 0%,transparent 70%); bottom:-150px; left:-100px; pointer-events:none; }
.hero-inner { max-width: 760px; margin: 0 auto; position: relative; z-index: 1; }
.hero-badge { display:inline-flex; align-items:center; gap:8px; background:rgba(53,164,212,.15); border:1px solid rgba(53,164,212,.35); border-radius:20px; padding:5px 16px; font-size:12px; font-weight:700; color:#7fc8e8; margin-bottom:24px; letter-spacing:.5px; }
.dot-pulse { width:7px; height:7px; border-radius:50%; background:var(--blue); animation:pulse 1.8s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(.85)} }
.hero h1 { font-size: 48px; font-weight: 700; color: #fff; margin-bottom: 20px; line-height: 1.1; }
.hero h1 em { font-style:normal; color: var(--blue); }
.hero p { font-size: 18px; color: rgba(255,255,255,.75); max-width: 560px; margin: 0 auto 36px; }
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-btns .btn { font-size: 15px; padding: 14px 32px; }
.hero-btn-ghost { background: transparent; border: 2px solid rgba(255,255,255,.5); color: #fff; }
.hero-btn-ghost:hover { background: rgba(255,255,255,.12); }

/* ── CARROSSEL ── */
.carousel-wrap { position: relative; overflow: hidden; }
.carousel-track { display: flex; gap: 24px; transition: transform .4s cubic-bezier(.4,0,.2,1); will-change: transform; }
.carousel-track.no-transition { transition: none; }
.carousel-nav { display: flex; gap: 10px; justify-content: center; align-items: center; margin-top: 28px; }
.carousel-btn { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--blue-deep); background: #fff; color: var(--blue-deep); font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .2s; }
.carousel-btn:hover { background: var(--blue-deep); color: #fff; }
.carousel-dots { display: flex; gap: 4px; align-items: center; justify-content: center; }
.carousel-dot { width: 24px; height: 24px; border: none; background: none; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
.carousel-dot::before { content:''; width: 8px; height: 8px; border-radius: 50%; background: var(--blue-mid); transition: all .2s; }
.carousel-dot.active::before { background: var(--blue-deep); width: 22px; border-radius: 4px; }

/* ── CARD PSICÓLOGO ── */
.psico-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 1px solid var(--border); overflow: hidden; transition: transform .2s, box-shadow .2s; min-width: 220px; flex: 0 0 220px; }
.psico-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.psico-foto-wrap { position: relative; width: 100%; padding-top: 100%; overflow: hidden; background: var(--blue-lt); }
.psico-foto-wrap img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:top center; }
.psico-badge-disp { background:var(--blue-deep); color:#fff; border-radius:20px; padding:4px 12px; font-size:11px; font-weight:700; display:inline-flex; align-items:center; gap:5px; margin-bottom:8px; }
.psico-info { padding: 16px 16px 18px; }
.psico-nome { font-family:'Lora',serif; font-size:15px; font-weight:700; color:var(--dark); margin-bottom:3px; line-height:1.25; }
.psico-crp { font-size:12px; color:var(--muted); margin-bottom:8px; }
.psico-abord { font-size:11px; font-weight:700; color:var(--blue-deep); background:var(--blue-lt); border-radius:20px; padding:3px 10px; display:inline-block; margin-bottom:12px; }
.psico-espec-tags { margin-bottom: 10px; }
.psico-espec-tag { font-size:11px; color:var(--muted); background:#f0f4f8; border-radius:10px; padding:2px 8px; margin:2px 1px; display:inline-block; }
.btn-psico { display:block; text-align:center; background:var(--blue-deep); color:#fff; border-radius:20px; padding:9px 12px; font-size:12px; font-weight:700; transition:background .2s; }
.btn-psico:hover { background:var(--blue-dk); }
.btn-psico-wpp { display:flex; align-items:center; justify-content:center; background:var(--wpp); color:#fff; border-radius:20px; padding:9px 12px; min-width:38px; transition:background .2s; }
.btn-psico-wpp:hover { background:#0e7740; }

/* ── CARD SERVIÇO ── */
.servico-card { background:#fff; border-radius:var(--radius-lg); padding:28px 24px; border:1px solid var(--border); border-top:3px solid var(--blue); transition:box-shadow .2s,transform .2s; min-width:240px; flex:0 0 240px; }
.servico-card:hover { box-shadow:var(--shadow-md); transform:translateY(-2px); }
.servico-icon { width:52px; height:52px; border-radius:14px; background:var(--blue-lt); display:flex; align-items:center; justify-content:center; margin-bottom:16px; color:var(--blue-deep); }
.servico-icon svg { width:28px; height:28px; }
.servico-nome { font-family:'Lora',serif; font-size:17px; font-weight:700; color:var(--dark); margin-bottom:10px; }
.servico-desc { font-size:13px; color:var(--muted); line-height:1.65; }

/* ── SAÚDE MENTAL EDUCATIVO ── */
.saude-section { background: linear-gradient(135deg, var(--blue-lt) 0%, #fff 100%); }
.saude-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 24px; }
.saude-card { background:#fff; border-radius:var(--radius-lg); padding:32px 26px; box-shadow:var(--shadow); border-left:4px solid var(--blue); transition:transform .2s; }
.saude-card:hover { transform:translateY(-3px); }
.saude-card-icon { width:52px; height:52px; border-radius:14px; background:var(--blue-lt); display:flex; align-items:center; justify-content:center; margin-bottom:16px; color:var(--blue-deep); }
.saude-card-icon svg { width:28px; height:28px; }
.saude-card h3 { font-size:18px; color:var(--dark); margin-bottom:10px; }
.saude-card p { font-size:14px; }

/* ── CTA PROFISSIONAL ── */
.prof-cta-section { background: var(--blue-lt); padding: 56px 24px; }
.prof-cta-inner { max-width: 900px; margin: 0 auto; background: linear-gradient(135deg, var(--dark) 0%, #0d3352 100%); border-radius: 20px; padding: 44px 40px; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.prof-cta-texto h2 { color: #fff; font-size: 24px; margin-bottom: 8px; }
.prof-cta-texto p { color: rgba(255,255,255,.75); font-size: 14px; max-width: 480px; }

/* ── INSTAGRAM ── */
.instagram-section { background: var(--dark); padding: 80px 24px; }
.instagram-section .section-title { color:#fff; }
.instagram-section .section-sub { color:rgba(255,255,255,.65); }
.instagram-section .label-tag { color:#7fc8e8; }
.insta-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-bottom:32px; }
.insta-post { position:relative; border-radius:var(--radius); overflow:hidden; aspect-ratio:1; cursor:pointer; }
.insta-post img { width:100%; height:100%; object-fit:cover; transition:transform .3s; }
.insta-post:hover img { transform:scale(1.05); }
.insta-overlay { position:absolute; inset:0; background:rgba(29,111,148,.72); display:flex; align-items:center; justify-content:center; opacity:0; transition:opacity .3s; }
.insta-post:hover .insta-overlay, .insta-post:focus-visible .insta-overlay { opacity:1; }
.insta-overlay svg { width:36px; height:36px; fill:#fff; }
.insta-tipo { position:absolute; top:8px; right:8px; background:rgba(0,0,0,.6); border-radius:4px; padding:3px 7px; font-size:10px; color:#fff; font-weight:700; }
.btn-instagram { background:linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); color:#fff; padding:14px 32px; font-size:14px; border-radius:30px; display:inline-flex; align-items:center; gap:10px; }

/* ── DEPOIMENTOS ── */
.depo-card { background:#fff; border-radius:var(--radius-lg); padding:28px; box-shadow:var(--shadow); border:1px solid var(--border); min-width:300px; flex:0 0 300px; position:relative; }
.depo-aspas { font-size:60px; font-family:'Lora',serif; color:var(--blue-mid); position:absolute; top:12px; left:18px; line-height:1; }
.depo-texto { font-size:14px; color:var(--muted); line-height:1.75; margin-bottom:18px; padding-top:24px; font-style:italic; }
.depo-autor { display:flex; align-items:center; gap:12px; }
.depo-avatar { width:42px; height:42px; border-radius:50%; background:var(--blue-lt); display:flex; align-items:center; justify-content:center; font-weight:800; font-size:14px; color:var(--blue-deep); flex-shrink:0; }
.depo-nome { font-size:14px; font-weight:700; color:var(--dark); }
.depo-estrelas { color:#b8860b; font-size:13px; }
.depo-data { font-size:12px; color:var(--muted); }

/* ── CONTATO ── */
.contato-grid { display:grid; grid-template-columns: 1fr 1.2fr; gap:32px; align-items:stretch; }
.contato-card { background:#fff; border-radius:var(--radius-lg); border:1px solid var(--border); box-shadow:var(--shadow); padding:32px 28px; }
.contato-item { display:flex; gap:14px; align-items:flex-start; padding:14px 0; border-bottom:1px solid #f0f4f8; }
.contato-item:last-child { border-bottom:none; }
.contato-item-icon { width:42px; height:42px; border-radius:12px; background:var(--blue-lt); color:var(--blue-deep); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.contato-item-icon svg { width:20px; height:20px; }
.contato-item-label { font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:1.5px; color:var(--muted); margin-bottom:2px; }
.contato-item-valor { font-size:14px; font-weight:600; color:var(--dark); line-height:1.5; }
.contato-item-valor a:hover { color:var(--blue-deep); }
.contato-mapa { border-radius:var(--radius-lg); overflow:hidden; border:1px solid var(--border); box-shadow:var(--shadow); min-height:320px; }
.contato-mapa iframe { width:100%; height:100%; min-height:320px; border:0; display:block; }

/* ── FOOTER ── */
#site-footer { background:var(--blue-deep); color:#fff; padding:60px 24px 0; }
.footer-inner { max-width:1140px; margin:0 auto; display:grid; grid-template-columns:1.6fr 1fr 1fr; gap:48px; padding-bottom:48px; }
.footer-logo img { height:52px; width:auto; margin-bottom:16px; filter:brightness(0) invert(1); }
.footer-logo-txt { font-family:'Lora',serif; font-size:22px; font-weight:700; color:#fff; margin-bottom:16px; }
.footer-desc { font-size:13px; color:rgba(255,255,255,.85); line-height:1.8; margin-bottom:18px; }
.footer-social-links { display:flex; gap:10px; flex-wrap:wrap; margin-bottom:16px; }
.footer-social-link { display:inline-flex; align-items:center; gap:6px; background:rgba(255,255,255,.15); border-radius:6px; padding:7px 14px; font-size:12px; font-weight:700; color:#fff; transition:background .2s; }
.footer-social-link:hover { background:rgba(255,255,255,.28); }
.footer-social-link svg { width:16px; height:16px; fill:#fff; }
.footer-col-title { font-family:'Lora',serif; font-size:16px; font-weight:700; color:#fff; margin-bottom:18px; padding-bottom:10px; border-bottom:1px solid rgba(255,255,255,.2); }
.footer-col a { display:flex; align-items:flex-start; gap:8px; font-size:13px; color:rgba(255,255,255,.85); margin-bottom:12px; transition:color .2s; line-height:1.5; }
.footer-col a:hover { color:#fff; }
.footer-col a svg { flex-shrink:0; margin-top:2px; }
.footer-profissional-link { display:inline-flex; align-items:center; gap:8px; background:rgba(255,255,255,.15); border:1px solid rgba(255,255,255,.3); border-radius:8px; padding:12px 16px; font-size:13px; font-weight:700; color:#fff; transition:background .2s; margin-top:8px; }
.footer-profissional-link:hover { background:rgba(255,255,255,.25); }
.footer-bottom { border-top:1px solid rgba(255,255,255,.15); padding:18px 0; text-align:center; font-size:12px; color:rgba(255,255,255,.7); max-width:1140px; margin:0 auto; }

/* ── BOTÃO FLUTUANTE WHATSAPP (somente desktop) ── */
.wpp-float { position:fixed; bottom:22px; right:22px; z-index:900; width:58px; height:58px; border-radius:50%; background:#25d366; color:#fff; display:flex; align-items:center; justify-content:center; box-shadow:0 6px 20px rgba(0,0,0,.28); transition:transform .2s, box-shadow .2s; }
.wpp-float svg { width:30px; height:30px; }
.wpp-float:hover { transform:scale(1.08); box-shadow:0 8px 26px rgba(0,0,0,.35); }
@keyframes wpp-pop { from { transform:scale(0); } to { transform:scale(1); } }
.wpp-float { animation: wpp-pop .35s ease-out .8s backwards; }

/* ── MENU INFERIOR ESTILO APP (somente mobile) ── */
.bottom-nav { position:fixed; bottom:0; left:0; right:0; z-index:950; display:none; background:#fff; border-top:1px solid var(--border); box-shadow:0 -4px 18px rgba(13,34,51,.10); padding:6px 6px calc(6px + env(safe-area-inset-bottom)); }
.bottom-nav-inner { display:grid; grid-template-columns:repeat(4,1fr); max-width:520px; margin:0 auto; }
.bottom-nav a { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; font-size:11px; font-weight:700; color:var(--muted); padding:6px 2px 4px; border-radius:12px; min-height:52px; transition:color .15s, background .15s; }
.bottom-nav a svg { width:22px; height:22px; flex-shrink:0; }
.bottom-nav a.active { color:var(--blue-deep); background:var(--blue-lt); }
.bottom-nav a.bn-insta:active, .bottom-nav a:active { background:#f0f6fa; }
.bottom-nav a.bn-wpp { color:var(--wpp); }

/* ── TODOS OS PSICÓLOGOS GRID ── */
.todos-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(220px,1fr)); gap:24px; }
.todos-grid .psico-card { min-width:unset; flex:unset; }

/* ── SOBRE GRID ── */
.sobre-grid { display:grid; grid-template-columns:1fr 1fr; gap:48px; align-items:start; }
.sobre-texto { order:1; }
.sobre-fotos { display:flex; flex-direction:column; gap:10px; order:2; }
.sobre-fotos-top { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.sobre-fotos-top img { width:100%; height:170px; object-fit:cover; border-radius:12px; }
.sobre-fotos-bottom img { width:100%; height:200px; object-fit:cover; border-radius:12px; object-position:center 30%; }

/* ── RESPONSIVO ── */
@media (max-width:900px) {
  .footer-inner { grid-template-columns:1fr 1fr; }
  .hero h1 { font-size:34px; }
  .section-title { font-size:26px; }
  .insta-grid { grid-template-columns:repeat(2,1fr); }
  .contato-grid { grid-template-columns:1fr; }
}
@media (max-width:768px) {
  #desktop-nav { display:none; }
  #menu-toggle { display:block; }
  #mobile-nav.open { display:block; }
  /* CTA do header só no desktop — no mobile o menu inferior assume */
  .header-cta { display:none; }
  /* Menu inferior estilo app substitui o botão flutuante */
  .bottom-nav { display:block; }
  .wpp-float { display:none; }
  body { padding-bottom:72px; }
  /* Carrossel: sem dots no mobile (não cabem), só setas */
  .carousel-dots { display:none; }
  .carousel-nav { gap:16px; margin-top:24px; }
}
@media (max-width:600px) {
  .hero { padding:72px 20px 64px; }
  .hero h1 { font-size:38px; }
  .hero p { font-size:15px; margin-bottom:30px; }
  /* CTAs da hero com o mesmo tamanho, empilhados */
  .hero-btns { flex-direction:column; align-items:stretch; max-width:300px; margin:0 auto; }
  .hero-btns .btn { width:100%; font-size:15px; padding:14px 24px; }
  .footer-inner { grid-template-columns:1fr; gap:28px; }
  .psico-card { min-width:180px; flex:0 0 180px; }
  .header-inner { padding:0 16px; gap:8px; }
  .site-logo img { height:36px; }
  .prof-cta-inner { padding:32px 24px; }
  .sobre-grid { grid-template-columns:1fr; gap:24px; }
  .sobre-fotos { width:100%; }
  .sobre-fotos-top img { height:140px; }
  .sobre-fotos-bottom img { height:160px; }
}
