/* ============================================================
   ATENTA – Clínica de Psicologia Integrada
   styles.css — extraído do index.html original
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      /* ── cores originais do tema ── */
      --color-primary:   #3f3351;
      --color-secondary: #ffebe5;
      --color-text:      #1d1d1d;
      --color-accent:    #f49d6e;
      --color-pink:      #d282a6;
      --color-green:     #acc3a6;
      --color-yellow:    #f2d617;
      --color-teal:      #5fbbbd;
      --color-orange:    #f0881c;
      --color-purple:    #663e90;
      --white:           #ffffff;
    }

    body {
      font-family: 'Catamaran', sans-serif;
      font-size: 16px;
      font-weight: 700;
      overflow-x: hidden;
      background-color: rgba(255,235,229,0.5);
    }

    p {
      font-family: 'Catamaran', sans-serif;
      font-size: 17px;
      font-weight: 700;
      line-height: 1.3;
      color: #3f3f3f;
    }

    h1 {
      font-family: 'Catamaran', sans-serif;
      font-size: 66px;
      font-weight: 900;
      text-transform: capitalize;
      line-height: 1.1;
      color: var(--color-primary);
    }

    h2 {
      font-family: 'Philosopher', serif;
      font-size: 47px;
      font-weight: 700;
      text-transform: capitalize;
      color: #864879;
    }

    h3 {
      font-family: 'Catamaran', sans-serif;
      font-size: 39px;
      font-weight: 700;
      text-transform: capitalize;
      color: var(--color-primary);
    }

    h4 {
      font-family: 'Catamaran', sans-serif;
      font-size: 24px;
      font-weight: 800;
      text-transform: capitalize;
      color: var(--color-primary);
    }

    a { text-decoration: none; }

    /* ─── NAVBAR ─────────────────────────────────────────── */
    header {
      position: fixed;
      top: 0; left: 0; right: 0;
      z-index: 100;
      background: rgba(255,255,255,0.96);
      backdrop-filter: blur(6px);
      box-shadow: 0 2px 12px rgba(0,0,0,0.08);
      height: 68px;
      display: flex;
      align-items: center;
      padding: 0 40px;
    }

    .nav-inner {
      width: 100%;
      max-width: 1170px;
      margin: 0 auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .nav-logo img {
      height: 48px;
      display: block;
    }

    nav {
      display: flex;
      align-items: center;
      gap: 36px;
    }

    nav a {
      text-decoration: none;
      color: var(--color-primary);
      font-family: 'Catamaran', sans-serif;
      font-weight: 700;
      font-size: 1rem;
      transition: color 0.2s;
    }

    nav a:hover { color: var(--color-purple); }

    .btn-agendar {
      display: flex;
      align-items: center;
      gap: 8px;
      background: var(--color-purple);
      color: var(--white) !important;
      padding: 11px 22px;
      border-radius: 6px;
      font-family: 'Catamaran', sans-serif;
      font-weight: 800;
      font-size: 0.95rem;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      transition: background 0.2s, transform 0.15s;
    }

    .btn-agendar:hover {
      background: #7d4db8;
      transform: translateY(-1px);
    }

    .btn-agendar svg { flex-shrink: 0; }

    /* ─── HERO ───────────────────────────────────────────── */
    #inicio {
      position: relative;
      min-height: 88vh;
      display: flex;
      align-items: center;
      overflow: hidden;
      padding-top: 68px;
    }

    .hero-bg {
      position: absolute;
      inset: 0;
      background: url('assets/espaco_atenta.jpg') center/cover no-repeat;
      z-index: 0;
    }

    .hero-bg::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(
        to right,
        rgba(255,240,220,0.55) 0%,
        rgba(255,220,200,0.45) 50%,
        rgba(240,220,235,0.40) 100%
      );
    }

    .hero-content {
      position: relative;
      z-index: 1;
      width: 100%;
      max-width: 1170px;
      margin: 0 auto;
      padding: 60px 40px 80px;
      display: flex;
      justify-content: flex-end;
      align-items: flex-start;   /* painel sobe para o topo */
    }

    /* ─── SERVICES PANEL ─────────────────────────────────── */
    .services-panel {
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      gap: 10px;
    }

    .services-panel h2 {
      /* herda o h2 global: Philosopher, 47px, #864879 */
      margin-bottom: 10px;
      text-align: right;
    }

    .service-pill {
      display: inline-flex;
      align-items: center;
      gap: 14px;
      padding: 11px 16px 11px 28px;
      border-radius: 50px;
      text-decoration: none;
      color: var(--white);
      font-family: 'Catamaran', sans-serif;
      font-weight: 800;
      font-size: 1.35rem;
      white-space: nowrap;
      cursor: pointer;
      transition: filter 0.2s, transform 0.2s;
      box-shadow: 0 3px 14px rgba(0,0,0,0.20);
    }

    .service-pill:hover {
      filter: brightness(1.08);
      transform: translateX(-4px);
    }

    .service-pill .icon {
      background: rgba(255,255,255,0.28);
      border-radius: 50%;
      width: 32px; height: 32px;
      display: flex; align-items: center; justify-content: center;
      flex-shrink: 0;
    }

    .service-pill .icon svg {
      width: 18px; height: 18px;
      stroke: white;
      fill: none;
    }

    .pill-yellow .icon svg { stroke: #333; }

    /* cores originais do tema */
    .pill-purple { background: var(--color-purple); }
    .pill-yellow { background: var(--color-yellow); color: #333; }
    .pill-yellow .icon { background: rgba(0,0,0,0.12); }
    .pill-orange { background: var(--color-orange); }
    .pill-teal   { background: var(--color-teal); }
    .pill-green  { background: #2e9e6b; }
    .pill-pink   { background: #c0206a; }
    .pill-blue   { background: #3a86ff; }
    .pill-terra  { background: #e76f51; }

    /* ─── RESPONSIVE ─────────────────────────────────────── */
    @media (max-width: 768px) {
      header { padding: 0 20px; }
      h2 { font-size: 35px; }
      nav { gap: 18px; }
      nav a:not(.btn-agendar) { display: none; }

      .hero-content {
        justify-content: center;
        align-items: center;
        padding: 60px 20px;
      }

      .services-panel {
        align-items: center;
        width: 100%;
      }

      .services-panel h2 { text-align: center; }
    }

    @media (max-width: 500px) {
      h2 { font-size: 27px; }
    }

.cards-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
  .cards-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .esp-card {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 36px 24px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: default;
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
  }

  .esp-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.35);
    filter: brightness(1.06);
  }

  .esp-icon-wrap {
    background: rgba(0,0,0,0.22);
    border-radius: 12px;
    width: 72px; height: 72px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
    flex-shrink: 0;
  }

  .esp-icon-wrap svg {
    width: 38px; height: 38px;
  }

  .esp-title {
    font-family: 'Catamaran', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 14px;
    line-height: 1.3;
  }

  .esp-text {
    font-family: 'Catamaran', sans-serif;
    font-size: 0.92rem;
    font-weight: 400;
    color: rgba(255,255,255,0.92);
    line-height: 1.55;
    text-align: justify;
  }

  @media (max-width: 900px) {
    .cards-grid-4 { grid-template-columns: repeat(2, 1fr); }
  }
  @media (max-width: 560px) {
    .cards-grid-4, .cards-grid-2 { grid-template-columns: 1fr; }
  }

/* WhatsApp */
  #btn-whatsapp {
    position: fixed;
    bottom: 28px; right: 28px;
    z-index: 999;
    background: #25d366;
    border-radius: 50%;
    width: 56px; height: 56px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 18px rgba(37,211,102,0.45);
    transition: transform 0.2s, box-shadow 0.2s;
  }
  #btn-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(37,211,102,0.6);
  }

  /* Cookie banner */
  #cookie-banner {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 999;
    display: flex;
    justify-content: center;
    padding: 0 20px 28px;
    pointer-events: none;
  }
  #cookie-content {
    background: #fff;
    border-radius: 12px 12px 0 0;
    padding: 28px 36px;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 -4px 32px rgba(0,0,0,0.15);
    pointer-events: all;
  }

.prof-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px 32px 0;
    border-right: 2px solid #e6b800;
  }
  .prof-card:last-child { border-right: none; }

  .prof-foto {
    width: 180px; height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #f0881c;
    margin-bottom: 20px;
    background: #ddd;
  }

  .prof-nome {
    font-family: 'Catamaran', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    color: #f0881c;
    margin-bottom: 14px;
  }

  .prof-bio {
    font-family: 'Catamaran', sans-serif;
    font-size: 0.92rem;
    font-weight: 400;
    color: #333;
    line-height: 1.6;
    text-align: justify;
    flex: 1;
  }

  .btn-resumo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 22px;
    background: #663e90;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 11px 22px;
    font-family: 'Catamaran', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
  }
  .btn-resumo:hover { background: #7d4db8; transform: translateY(-2px); }

  .prof-divider {
    border: none;
    border-top: 2px solid #e6b800;
    margin: 28px 0 0;
    width: 100%;
  }

  .equipe-row {
    display: grid;
    margin-bottom: 0;
  }
  .equipe-row + .equipe-row { margin-top: 8px; }
  .equipe-row-3 { grid-template-columns: repeat(3, 1fr); }
  .equipe-row-2 { grid-template-columns: repeat(2, 1fr); max-width: 780px; margin-left:auto; margin-right:auto; }
  .equipe-row-1 { grid-template-columns: 1fr; max-width: 360px; margin-left:auto; margin-right:auto; }

  @media (max-width: 768px) {
    .equipe-row-3, .equipe-row-2 { grid-template-columns: 1fr; }
    .prof-card { border-right: none; border-bottom: 2px solid #e6b800; padding-bottom: 28px; margin-bottom: 8px; }
    .prof-card:last-child { border-bottom: none; }
  }

.galeria-thumb {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: block;
  }
  .galeria-thumb:hover {
    transform: scale(1.04);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
  }

  /* Lightbox */
  #lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.88);
    z-index: 2000;
    align-items: center;
    justify-content: center;
  }
  #lightbox.ativo { display: flex; }

  #lb-img {
    max-width: 82vw;
    max-height: 82vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 12px 48px rgba(0,0,0,0.6);
    animation: lbZoom .25s ease;
  }
  @keyframes lbZoom {
    from { transform: scale(0.88); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
  }

  #lb-fechar {
    position: fixed; top: 20px; right: 28px;
    background: none; border: none; color: #fff;
    font-size: 2.8rem; cursor: pointer; line-height: 1;
    transition: color .2s;
  }
  #lb-fechar:hover { color: #f0881c; }

  #lb-prev, #lb-next {
    position: fixed;
    top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    border: none; color: #fff;
    font-size: 3rem; cursor: pointer;
    padding: 12px 18px; border-radius: 4px;
    transition: background .2s;
    line-height: 1;
  }
  #lb-prev { left: 16px; }
  #lb-next { right: 16px; }
  #lb-prev:hover, #lb-next:hover { background: rgba(255,255,255,0.3); }

  @media (max-width: 768px) {
    #estrutura > div > div:first-child { padding: 28px 20px; }
    #estrutura > div { grid-template-columns: 1fr; }
  }

.parceiro-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0.92;
    transition: opacity 0.2s, transform 0.2s;
  }
  .parceiro-link:hover {
    opacity: 1;
    transform: scale(1.06);
  }
  .parceiro-logo {
    height: 120px;
    max-width: 260px;
    object-fit: contain;
    filter: brightness(0) invert(1);
  }

.footer-link {
    font-family: 'Catamaran', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.2s;
  }
  .footer-link:hover { color: #f0881c; }

  .footer-social {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Catamaran', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    transition: color 0.2s;
  }
  .footer-social:hover { color: #f0881c; }

  @media (max-width: 768px) {
    footer > div { grid-template-columns: 1fr; text-align: center; }
    footer > div > div:first-child { display: flex; justify-content: center; }
    .footer-social { justify-content: center; }
  }

/* ─── MODAL EQUIPE ──────────────────────────────────────── */
/* (originalmente inline no HTML) */
#modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
}

#modal-box {
  display: none;
  position: fixed;
  z-index: 1001;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(800px, 92vw);
  max-height: 85vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}

#modal-header {
  background: #4a6cf7;
  padding: 28px 36px;
  border-radius: 10px 10px 0 0;
}

#modal-nome {
  font-family: 'Philosopher', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
  line-height: 1.3;
}

#modal-corpo {
  padding: 36px 40px;
}

#modal-box .btn-fechar {
  display: block;
  margin: 0 20px 20px auto;
  background: #663e90;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 24px;
  font-family: 'Catamaran', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s;
}

#modal-box .btn-fechar:hover { background: #7d4db8; }


/* ============================================================
   RESPONSIVIDADE GERAL — revisão completa mobile
   ============================================================ */

/* ── Tablet (≤ 900px) ───────────────────────────────────── */
@media (max-width: 900px) {

  /* Hero pills: menor fonte, quebra texto */
  .service-pill {
    font-size: 1.1rem;
    padding: 9px 12px 9px 20px;
    white-space: normal;
    text-align: left;
  }

  /* Parceiros: 2 por linha */
  #parceiros > div:last-of-type {
    gap: 40px;
  }

  /* Footer: 2 colunas */
  footer > div {
    grid-template-columns: 1fr 1fr;
  }
  footer > div > div:first-child {
    grid-column: 1 / -1;
  }
}

/* ── Mobile (≤ 768px) ───────────────────────────────────── */
@media (max-width: 768px) {

  /* Navbar */
  header { padding: 0 16px; height: 60px; }
  .nav-logo img { height: 38px; }
  nav { gap: 12px; }
  nav a:not(.btn-agendar) { display: none; }
  .btn-agendar { padding: 8px 14px; font-size: 0.8rem; gap: 5px; }

  /* Hero */
  #inicio { padding-top: 60px; min-height: auto; }
  .hero-content {
    justify-content: center;
    align-items: center;
    padding: 40px 16px 60px;
  }
  .services-panel {
    align-items: center;
    width: 100%;
  }
  .services-panel h2 {
    font-size: 2rem;
    text-align: center;
  }
  .service-pill {
    font-size: 1rem;
    width: 100%;
    max-width: 340px;
    justify-content: space-between;
  }

  /* Quem somos */
  #quem-somos { padding: 48px 20px 40px; }

  /* Especialidades */
  #servicos { padding: 48px 16px 56px; }
  #servicos > h2 { font-size: 1.8rem; margin-bottom: 28px; }
  .cards-grid-4,
  .cards-grid-2 { grid-template-columns: 1fr; }

  /* Equipe */
  #equipe { padding: 48px 16px 56px; }
  .equipe-row-3,
  .equipe-row-2 { grid-template-columns: 1fr; }
  .prof-card {
    border-right: none;
    border-bottom: 2px solid #e6b800;
    padding: 16px 16px 28px;
    margin-bottom: 8px;
  }
  .prof-card:last-child { border-bottom: none; margin-bottom: 0; }

  /* Nossa Estrutura */
  #estrutura { padding: 48px 16px 56px; }
  #estrutura > div,
  .estrutura-inner { grid-template-columns: 1fr !important; }
  .estrutura-texto { padding: 28px 20px !important; }
  .galeria-grid,
  #estrutura > div > div:last-child { grid-template-columns: repeat(2, 1fr) !important; }

  /* Parceiros */
  #parceiros { padding: 40px 16px 48px; }
  #parceiros > div:last-of-type {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }
  .parceiro-logo { height: 80px; }

  /* Mapa */
  #localizacao iframe { height: 300px; }

  /* Footer */
  footer { padding: 40px 20px; }
  footer > div {
    grid-template-columns: 1fr !important;
    text-align: center;
    gap: 28px;
  }
  footer > div > div:first-child {
    display: flex;
    justify-content: center;
  }
  footer nav { align-items: center !important; }
  .footer-social { justify-content: center; }

  /* Lightbox botões */
  #lb-prev { left: 6px; padding: 10px 12px; font-size: 2rem; }
  #lb-next { right: 6px; padding: 10px 12px; font-size: 2rem; }
  #lb-img { max-width: 94vw; max-height: 70vh; }

  /* Modal */
  #modal-box { width: 96vw; }
  #modal-header { padding: 20px 20px; }
  #modal-corpo { padding: 24px 20px; }

  /* Cookie banner */
  #cookie-content { padding: 20px 20px; }
}

/* ── Pequeno mobile (≤ 480px) ───────────────────────────── */
@media (max-width: 480px) {

  h2 { font-size: 1.7rem; }

  .service-pill {
    font-size: 0.92rem;
    padding: 8px 10px 8px 16px;
    max-width: 300px;
  }

  .galeria-grid,
  #estrutura > div > div:last-child {
    grid-template-columns: 1fr !important;
  }

  .btn-agendar span { display: none; } /* esconde texto, mantém ícone */
}
