/* ═══════════════════════════════════════════════════════════
   Instituto Portella de Saúde
   Inter · Teal #68ccd1 · Green #6bbe4f
   --header-bg: #68ccd1  --primary: #6bbe4f  --secondary: #374587
═══════════════════════════════════════════════════════════ */

@import url('fonts.css');

:root {
  --primary:      #6bbe4f;
  --primary-dark: #4e9438;
  --primary-light:#f0f8eb;
  --header-bg:    #68ccd1;
  --header-dark:  #4aa8ad;
  --secondary:    #374587;
  --dark:         #21252b;
  --text:         #21252b;
  --text-soft:    #6B7280;
  --text-lighter: #9CA3AF;
  --bg:           #FFFFFF;
  --bg-alt:       #F9FAFB;
  --border:       #E5E7EB;
  --header-h:     72px;
  --radius:       14px;
  --radius-sm:    8px;
  --shadow-sm:    0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md:    0 4px 20px rgba(0,0,0,.08);
  --shadow-lg:    0 20px 60px rgba(0,0,0,.12);
  --t:            all .28s ease;
  --max-w:        1200px;
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { font-size: 16px; scroll-behavior: smooth; }
body  { font-family: 'Inter', 'Work Sans', sans-serif; color: var(--text); background: var(--bg); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img   { display: block; max-width: 100%; height: auto; }
a     { text-decoration: none; color: inherit; }
ul    { list-style: none; }
button{ cursor: pointer; font-family: inherit; border: none; background: none; }
details summary { cursor: pointer; list-style: none; }
details summary::-webkit-details-marker { display: none; }

/* ── Container / Layout ─────────────────────────────────── */
.container { width: 100%; max-width: var(--max-w); margin-inline: auto; padding-inline: 28px; }

.section       { padding-block: 96px; background: var(--bg); }
.section-alt   { background: var(--bg-alt); }

section[id]    { scroll-margin-top: calc(var(--header-h) + 8px); }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.section-header { text-align: center; margin-bottom: 56px; }

.section-label {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 14px;
}

.section-subtitle { font-size: .98rem; color: var(--text-soft); max-width: 580px; margin-inline: auto; line-height: 1.75; }

/* ── Scroll animation ───────────────────────────────────── */
.animate-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .55s ease, transform .55s ease;
}
.animate-in.visible { opacity: 1; transform: none; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: inherit;
  font-size: .9rem;
  font-weight: 700;
  transition: var(--t);
  white-space: nowrap;
}
.btn i { width: 17px; height: 17px; }

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(107,190,79,.3);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(107,190,79,.4); }

.btn-hero-ghost {
  background: rgba(255,255,255,.15);
  color: #fff;
  border: 2px solid rgba(255,255,255,.5);
  backdrop-filter: blur(4px);
}
.btn-hero-ghost:hover { background: rgba(255,255,255,.25); border-color: #fff; }

.btn-header {
  background: #fff;
  color: var(--header-bg);
  padding: 10px 20px;
  font-size: .82rem;
  font-weight: 700;
  border-radius: 50px;
  box-shadow: 0 2px 12px rgba(0,0,0,.12);
  transition: var(--t);
}
.btn-header i { width: 15px; height: 15px; }
.btn-header:hover { background: rgba(255,255,255,.9); transform: translateY(-1px); }

.btn-sm { padding: 11px 22px; font-size: .84rem; }

.btn-plan-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  border-radius: 50px;
  font-family: inherit;
  font-size: .9rem;
  font-weight: 700;
  background: var(--primary);
  color: #fff;
  margin-top: auto;
  transition: var(--t);
  box-shadow: 0 4px 16px rgba(107,190,79,.25);
}
.btn-plan-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }

.btn-plan-destaque {
  background: var(--secondary);
  box-shadow: 0 4px 16px rgba(55,69,135,.3);
}
.btn-plan-destaque:hover { background: #2a3678; }

.btn-plan-outline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  border-radius: 50px;
  font-family: inherit;
  font-size: .9rem;
  font-weight: 700;
  border: 2px solid var(--border);
  color: var(--text-lighter);
  margin-top: auto;
  transition: var(--t);
  cursor: not-allowed;
  opacity: .6;
}

/* ── TOPBAR ──────────────────────────────────────────────── */
.topbar {
  background: var(--header-bg);
  color: rgba(255,255,255,.9);
  font-size: .82rem;
  font-weight: 500;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,.15);
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.topbar span { display: flex; align-items: center; gap: 6px; }
.topbar span i { width: 14px; height: 14px; }
.topbar-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-weight: 700;
}
.topbar-link i { width: 14px; height: 14px; }
.topbar-link:hover { text-decoration: underline; }

/* ── HEADER ──────────────────────────────────────────────── */
.header {
  z-index: 1000;
  height: var(--header-h);
  background: var(--header-bg);
  transition: box-shadow .3s;
}
.header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.2); }

.page-home .header { position: fixed; inset: 0 0 auto; }
.hero { padding-top: var(--header-h); }

.nav { display: flex; align-items: center; height: var(--header-h); gap: 0; }
.nav-logo { flex-shrink: 0; margin-right: auto; }
.nav-logo img { height: 48px; width: auto; object-fit: contain; border-radius: 4px; }

.nav-menu { display: flex; align-items: center; gap: 4px; margin-right: 20px; }
.nav-link { font-size: .84rem; font-weight: 600; color: rgba(255,255,255,.85); padding: 6px 12px; border-radius: 7px; transition: var(--t); }
.nav-link:hover { color: #fff; background: rgba(255,255,255,.15); }

.menu-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; margin-left: 12px; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: var(--t); }
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(33,37,43,.78) 0%, rgba(55,69,135,.55) 100%); }

.hero-content { position: relative; z-index: 1; padding-block: 80px; }
.hero-text-inner { max-width: 640px; }

.hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero-title em { color: var(--primary); font-style: normal; }

.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,.88);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 540px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── SOBRE ───────────────────────────────────────────────── */
.sobre { padding-block: 96px; }

.sobre-text { display: flex; flex-direction: column; gap: 16px; }
.sobre-text p { color: var(--text-soft); line-height: 1.75; }
.sobre-text strong { color: var(--dark); }
.sobre-text .btn { margin-top: 8px; align-self: flex-start; }

.sobre-bio { display: flex; flex-direction: column; gap: 24px; }

.bio-card { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); background: var(--bg-alt); }

.bio-img { width: 100%; height: 240px; object-fit: cover; }

.bio-accordion { padding: 20px; }

.bio-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  font-weight: 700;
  text-align: left;
  transition: var(--t);
}
.bio-toggle i { width: 16px; height: 16px; flex-shrink: 0; }
.bio-toggle span { flex: 1; }
.bio-chevron { transition: transform .3s ease; }
.bio-toggle.active .bio-chevron { transform: rotate(180deg); }
.bio-toggle:hover { background: var(--primary); color: #fff; }

.bio-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, padding .3s ease;
  padding: 0 4px;
}
.bio-content.open { max-height: 1200px; padding: 16px 4px 0; }
.bio-content p { font-size: .85rem; color: var(--text-soft); margin-bottom: 10px; line-height: 1.65; }
.bio-content p strong { color: var(--dark); }

/* ── ESPECIALIDADES ─────────────────────────────────────── */
.servicos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.servico-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  transition: var(--t);
  box-shadow: var(--shadow-sm);
}
.servico-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.servico-card h3 { font-size: .95rem; font-weight: 700; color: var(--dark); margin-bottom: 10px; margin-top: 12px; }
.servico-card p { font-size: .85rem; color: var(--text-soft); line-height: 1.65; }
.servico-icon { width: 28px; height: 28px; color: var(--header-bg); }

/* ── FISIOTERAPIA PÉLVICA ────────────────────────────────── */
.pelvica { background: var(--bg); }
.pelvica-text { display: flex; flex-direction: column; gap: 14px; }
.pelvica-text p { color: var(--text-soft); line-height: 1.75; }
.pelvica-text .btn { align-self: flex-start; margin-top: 8px; }

.pelvica-list { display: flex; flex-direction: column; gap: 8px; padding: 0; list-style: none; }
.pelvica-list li { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--text); font-weight: 500; }
.pelvica-list li i { width: 16px; height: 16px; color: var(--primary); flex-shrink: 0; }

.pelvica-image img { width: 100%; height: 440px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-md); }

/* ── ONLINE ──────────────────────────────────────────────── */
.online-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.online-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  transition: var(--t);
  box-shadow: var(--shadow-sm);
}
.online-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--header-bg); }
.online-card h3 { font-size: .95rem; font-weight: 700; color: var(--dark); margin-bottom: 10px; margin-top: 12px; }
.online-card p { font-size: .85rem; color: var(--text-soft); line-height: 1.65; }

.internacional {
  background: linear-gradient(135deg, var(--header-bg) 0%, var(--secondary) 100%);
  border-radius: var(--radius);
  padding: 40px;
  color: #fff;
}
.internacional-inner {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}
.internacional-inner > i { width: 36px; height: 36px; flex-shrink: 0; opacity: .9; margin-top: 4px; }
.internacional h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 10px; }
.internacional p { opacity: .9; line-height: 1.7; font-size: .95rem; margin-bottom: 14px; }

.em-breve-tag {
  display: inline-block;
  background: rgba(255,255,255,.2);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.3);
}

/* ── DEPOIMENTOS ─────────────────────────────────────────── */
.depoimentos-inner {
  display: flex;
  align-items: center;
  gap: 56px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 48px;
  box-shadow: var(--shadow-sm);
}
.depoimento-thumb {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
}
.depoimento-cta { display: flex; flex-direction: column; gap: 16px; }
.depoimento-cta p { font-size: 1.05rem; color: var(--text-soft); }
.depoimento-cta .btn i { width: 18px; height: 18px; }

/* ── PLANOS ──────────────────────────────────────────────── */
.planos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: start;
}

.plano-card {
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--t);
}
.plano-card:hover { box-shadow: var(--shadow-md); border-color: var(--primary); }

.plano-destaque {
  border-color: var(--secondary);
  background: linear-gradient(180deg, #f0f3ff 0%, var(--bg) 100%);
}
.plano-destaque:hover { border-color: var(--secondary); }

.plano-indisponivel { opacity: .7; }

.plano-header { border-bottom: 1px solid var(--border); padding-bottom: 20px; }
.plano-nome { font-size: 1rem; font-weight: 800; color: var(--dark); letter-spacing: .05em; text-transform: uppercase; margin-bottom: 12px; }

.plano-preco { display: flex; align-items: baseline; gap: 2px; }
.plano-cifrao { font-size: .9rem; font-weight: 700; color: var(--text-soft); }
.plano-valor { font-size: 2.8rem; font-weight: 900; color: var(--dark); line-height: 1; }
.plano-centavos { font-size: .9rem; font-weight: 700; color: var(--text-soft); align-self: flex-end; margin-bottom: 4px; }
.plano-periodo { font-size: .82rem; color: var(--text-lighter); align-self: flex-end; margin-bottom: 4px; margin-left: 4px; }

.plano-billing { font-size: .78rem; color: var(--text-lighter); margin-top: 4px; }

.badge-indisponivel {
  display: inline-block;
  background: #fee2e2;
  color: #dc2626;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  padding: 3px 10px;
  border-radius: 12px;
  margin-top: 8px;
}

.plano-body { display: flex; flex-direction: column; gap: 16px; flex: 1; }

.plano-feature-group { display: flex; flex-direction: column; gap: 6px; }
.plano-feature-group h4 { font-size: .82rem; font-weight: 700; color: var(--dark); display: flex; align-items: center; gap: 6px; }
.plano-feature-group h4 i { width: 14px; height: 14px; color: var(--primary); flex-shrink: 0; }
.plano-feature-group ul { padding-left: 4px; }
.plano-feature-group ul li { font-size: .8rem; color: var(--text-soft); padding: 3px 0; border-bottom: 1px dotted var(--border); line-height: 1.5; }
.plano-feature-group ul li:last-child { border-bottom: none; }

.feature-tag { font-size: .8rem; color: var(--text-soft); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.feature-tag i { width: 13px; height: 13px; color: var(--primary); flex-shrink: 0; }
.feature-tag strong { color: var(--dark); }
.feature-link { color: var(--header-bg); font-style: italic; font-size: .78rem; }
.feature-link:hover { text-decoration: underline; }

.plano-obs { font-size: .75rem; color: var(--text-lighter); font-style: italic; padding: 6px 0; }

/* ── CLÍNICA ─────────────────────────────────────────────── */
.clinica-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.clinica-text { display: flex; flex-direction: column; gap: 16px; }
.clinica-sub { font-size: 1.15rem; font-weight: 600; color: var(--primary-dark); }
.clinica-text p { color: var(--text-soft); line-height: 1.75; }
.clinica-text .btn { align-self: flex-start; margin-top: 8px; }
.clinica-image img { width: 100%; height: 400px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-md); }

/* ── FAQ ─────────────────────────────────────────────────── */
.faq-list { max-width: 780px; margin-inline: auto; display: flex; flex-direction: column; gap: 12px; }

.faq-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0;
  overflow: hidden;
  transition: var(--t);
}
.faq-item[open] { border-color: var(--primary); }

.faq-item summary {
  padding: 18px 24px;
  font-weight: 700;
  font-size: .92rem;
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--primary);
  flex-shrink: 0;
  line-height: 1;
  transition: transform .25s ease;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item summary:hover { background: var(--bg-alt); }

.faq-item p {
  padding: 4px 24px 20px;
  font-size: .88rem;
  color: var(--text-soft);
  line-height: 1.75;
}

/* ── PERÍCIA ─────────────────────────────────────────────── */
.pericia { background: var(--bg); }
.pericia-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  align-items: center;
}
.pericia-text { display: flex; flex-direction: column; gap: 16px; }
.pericia-text .section-title { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
.pericia-text p { color: var(--text-soft); line-height: 1.75; }
.pericia-text .btn { align-self: flex-start; margin-top: 8px; }
.pericia-image img { width: 100%; max-width: 280px; margin-inline: auto; border-radius: var(--radius); box-shadow: var(--shadow-md); }

/* ── FOOTER ──────────────────────────────────────────────── */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,.75);
  padding-block: 64px 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-logo { height: 52px; width: auto; object-fit: contain; border-radius: 4px; margin-bottom: 16px; }
.footer-desc { font-size: .88rem; line-height: 1.7; margin-bottom: 8px; }
.footer-disclaimer { font-size: .75rem; color: rgba(255,255,255,.4); }

.footer-nav h4,
.footer-contact h4 { color: #fff; font-weight: 700; font-size: .88rem; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 16px; }

.footer-nav ul li,
.footer-contact ul li {
  margin-bottom: 10px;
  font-size: .85rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-nav ul li i,
.footer-contact ul li i { width: 14px; height: 14px; opacity: .6; flex-shrink: 0; }
.footer-nav a:hover,
.footer-contact a:hover { color: #fff; text-decoration: underline; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  font-size: .8rem;
  color: rgba(255,255,255,.4);
  text-align: center;
}
.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: #fff; }

/* ── WHATSAPP FLOAT ──────────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
}
.whatsapp-float a {
  display: block;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
  transition: transform .25s ease;
}
.whatsapp-float a:hover { transform: scale(1.08); }
.whatsapp-float img { width: 100%; height: 100%; object-fit: cover; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .servicos-grid { grid-template-columns: repeat(2, 1fr); }
  .planos-grid   { grid-template-columns: repeat(2, 1fr); }
  .online-grid   { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .grid-2        { grid-template-columns: 1fr; gap: 40px; }
  .clinica-inner { grid-template-columns: 1fr; gap: 32px; }
  .pericia-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid   { grid-template-columns: 1fr; gap: 32px; }
  .depoimentos-inner { flex-direction: column; gap: 28px; text-align: center; padding: 32px; }
  .depoimento-thumb { width: 140px; height: 140px; }
  .internacional-inner { flex-direction: column; }
}

@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .container { padding-inline: 18px; }
  .section { padding-block: 64px; }

  .topbar .container { flex-direction: column; gap: 4px; text-align: center; }

  .nav-menu { display: none; }
  .nav-menu.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--header-bg);
    padding: 16px 0;
    box-shadow: 0 8px 24px rgba(0,0,0,.2);
    z-index: 999;
  }
  .nav-menu.open li { width: 100%; }
  .nav-link { width: 100%; padding: 12px 24px; border-radius: 0; color: rgba(255,255,255,.9); }
  .nav-link:hover { background: rgba(255,255,255,.12); }

  .menu-toggle { display: flex; }
  .btn-header { display: none; }

  .hero-title { font-size: 1.75rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; }

  .servicos-grid { grid-template-columns: 1fr; }
  .online-grid   { grid-template-columns: 1fr; }
  .planos-grid   { grid-template-columns: 1fr; }

  .faq-item summary { font-size: .88rem; padding: 15px 18px; }
  .faq-item p { padding: 0 18px 16px; }

  .clinica-image img { height: 260px; }
  .pelvica-image img { height: 280px; }
}
