/* ==========================================================================
   Thera Ananindeua — Clínica de Reabilitação Multidisciplinar
   Design system baseado na identidade visual do logo
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;600;700;800&family=Nunito:wght@400;600;700&display=swap');

:root{
  /* paleta extraída do logo */
  --blue: #29ABE2;
  --blue-dark: #1C8FC2;
  --blue-light: #EAF7FE;
  --ink: #17202A;
  --white: #FFFFFF;

  --red: #E63946;
  --green: #5DB075;
  --orange: #F4A100;
  --purple: #C2185B;
  --indigo: #1E6FD9;
  --yellow: #F9C74F;
  --brown: #6F4518;

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(23, 32, 42, 0.08);
  --shadow-hover: 0 16px 36px rgba(23, 32, 42, 0.14);

  --font-display: 'Baloo 2', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, sans-serif;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4{ font-family: var(--font-display); margin: 0 0 .5em; line-height: 1.2; }
.container{ width: min(1140px, 92%); margin-inline: auto; }
section{ padding: clamp(48px, 7vw, 96px) 0; }

.eyebrow{
  display: inline-block;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: .8rem;
  color: var(--blue-dark);
  background: var(--blue-light);
  padding: .35em 1em;
  border-radius: 999px;
  margin-bottom: .8em;
}

/* ---------- Botões ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: .85em 1.8em;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary{ background: var(--blue); color: var(--white); box-shadow: var(--shadow); }
.btn-primary:hover{ transform: translateY(-2px); box-shadow: var(--shadow-hover); background: var(--blue-dark); }
.btn-outline{ border-color: var(--blue); color: var(--blue-dark); background: var(--white); }
.btn-outline:hover{ background: var(--blue-light); transform: translateY(-2px); }
.btn-whats{ background: var(--green); color: var(--white); box-shadow: var(--shadow); }
.btn-whats:hover{ transform: translateY(-2px); box-shadow: var(--shadow-hover); }

/* ---------- Header ---------- */
.site-header{
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid #EDF2F7;
}
.site-header .container{
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 10px;
}
.brand{ display: flex; align-items: center; gap: .6em; }
.brand img{ height: 52px; width: auto; border-radius: 10px; }
.brand-name{ font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.brand-tag{ display:block; font-family: var(--font-body); font-weight: 600; font-size: .68rem; color: var(--blue-dark); }

.nav-links{ display: flex; gap: 2em; align-items: center; }
.nav-links a{ font-weight: 700; color: var(--ink); position: relative; padding: .3em 0; }
.nav-links a.active, .nav-links a:hover{ color: var(--blue-dark); }
.nav-links a.active::after{
  content:''; position:absolute; left:0; right:0; bottom:-4px; height:3px;
  background: var(--yellow); border-radius: 999px;
}
.nav-cta{ display: flex; align-items: center; gap: .8em; }
.nav-toggle{ display:none; background:none; border:none; font-size: 1.6rem; cursor:pointer; color: var(--blue-dark); }

@media (max-width: 860px){
  .nav-links{
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); flex-direction: column; gap: 0;
    box-shadow: var(--shadow); border-radius: 0 0 var(--radius-md) var(--radius-md);
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  .nav-links.open{ max-height: 400px; }
  .nav-links a{ padding: 1em 1.5em; display:block; width: 100%; border-top: 1px solid #F0F4F8; }
  .nav-toggle{ display: block; }
}

/* ---------- Hero ---------- */
.hero{
  background: linear-gradient(160deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.hero .container{
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center;
}
.hero h1{ font-size: clamp(2rem, 4vw, 3rem); color: var(--white); }
.hero p{ font-size: 1.1rem; opacity: .95; max-width: 46ch; }
.hero .eyebrow{ background: rgba(255,255,255,.18); color: var(--white); }
.hero-actions{ display:flex; gap: 1em; flex-wrap: wrap; margin-top: 1.6em; }
.hero-art{
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-hover);
  justify-self: center;
}
.hero-art img{ border-radius: var(--radius-md); }
@media (max-width: 860px){
  .hero .container{ grid-template-columns: 1fr; text-align: center; }
  .hero-actions{ justify-content: center; }
  .hero-art{ order: -1; max-width: 320px; }
}

/* ---------- Faixa de destaques ---------- */
.highlights{ background: var(--blue-light); }
.highlights .container{
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.highlight-card{
  background: var(--white); border-radius: var(--radius-md); padding: 1.6em 1.4em;
  text-align: center; box-shadow: var(--shadow);
}
.highlight-card .icon{ font-size: 2rem; margin-bottom: .3em; }
.highlight-card h3{ font-size: 1rem; }
.highlight-card p{ font-size: .9rem; color: #52606D; margin: 0; }
@media (max-width: 860px){ .highlights .container{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px){ .highlights .container{ grid-template-columns: 1fr; } }

/* ---------- Seções gerais ---------- */
.section-head{ max-width: 680px; margin-bottom: 2.4em; }
.section-head.center{ margin-inline: auto; text-align: center; }

/* Cards de especialidades */
.cards-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px){ .cards-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px){ .cards-grid{ grid-template-columns: 1fr; } }

.spec-card{
  background: var(--white); border: 1px solid #EEF2F6; border-radius: var(--radius-md);
  padding: 1.8em; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease;
}
.spec-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.spec-card .dot{
  width: 52px; height: 52px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: .8em; color: var(--white);
}
.spec-card p{ color: #52606D; font-size: .96rem; margin: 0; }

/* Sobre / valores */
.about-grid{ display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
@media (max-width: 860px){ .about-grid{ grid-template-columns: 1fr; } }
.value-list li{ display:flex; gap: .8em; margin-bottom: 1em; align-items:flex-start; }
.value-list .bullet{
  flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--blue-light);
  color: var(--blue-dark); display:flex; align-items:center; justify-content:center; font-weight: 800;
}

/* Equipe */
.team-grid{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 900px){ .team-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px){ .team-grid{ grid-template-columns: 1fr; } }
.team-card{
  background: var(--white); border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow); text-align:center; border: 1px solid #EEF2F6;
}
.team-photo{
  aspect-ratio: 1/1; background: var(--blue-light); display:flex; align-items:center; justify-content:center;
  font-size: 2.4rem; color: var(--blue-dark);
}
.team-card .info{ padding: 1.2em; }
.team-card h3{ font-size: 1rem; margin-bottom: .1em; }
.team-card .role{ color: var(--blue-dark); font-weight: 700; font-size: .82rem; }
.team-card .reg{ color: #8A97A3; font-size: .78rem; margin-top: .3em; }

/* Convênios */
.partners-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 760px){ .partners-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px){ .partners-grid{ grid-template-columns: 1fr; } }
.partner-chip{
  background: var(--white); border: 1px solid #EEF2F6; border-radius: var(--radius-sm);
  padding: 1.4em; text-align: center; font-weight: 700; color: #52606D; box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center; min-height: 96px;
}
.partner-chip.is-text{ border: 1px dashed #C9D6E3; box-shadow: none; }
.partner-chip img{ max-height: 46px; max-width: 100%; object-fit: contain; }

/* CTA banda */
.cta-band{
  background: linear-gradient(160deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: var(--white); border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 56px); text-align: center; margin-inline: auto;
  box-shadow: var(--shadow-hover);
}
.cta-band h2{ color: var(--white); }
.cta-band p{ opacity: .85; max-width: 60ch; margin-inline: auto; }
.cta-actions{ display:flex; gap: 1em; justify-content: center; flex-wrap: wrap; margin-top: 1.4em; }

/* Contato */
.contact-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 860px){ .contact-grid{ grid-template-columns: 1fr; } }
.info-card{
  background: var(--blue-light); border-radius: var(--radius-md); padding: 1.6em;
  display:flex; gap: 1em; align-items:flex-start; margin-bottom: 1em;
}
.info-card .icon{ font-size: 1.4rem; }
.info-card h4{ margin: 0 0 .2em; font-size: 1rem; }
.info-card p{ margin: 0; color: #52606D; font-size: .92rem; }

.map-frame{
  border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow);
  border: 1px solid #EEF2F6; height: 320px;
}
.map-frame iframe{ display: block; width: 100%; height: 100%; border: 0; }

form.contact-form{
  background: var(--white); border: 1px solid #EEF2F6; border-radius: var(--radius-md);
  padding: 1.8em; box-shadow: var(--shadow); display: grid; gap: 1em;
}
.contact-form label{ font-weight: 700; font-size: .88rem; display:block; margin-bottom: .3em; }
.contact-form input, .contact-form textarea, .contact-form select{
  width: 100%; padding: .8em 1em; border-radius: var(--radius-sm); border: 1.5px solid #E1E8EF;
  font-family: var(--font-body); font-size: .95rem;
}
.contact-form input:focus, .contact-form textarea:focus{ outline: 2px solid var(--blue); border-color: transparent; }
.form-row{ display:grid; grid-template-columns: 1fr 1fr; gap: 1em; }
@media (max-width: 560px){ .form-row{ grid-template-columns: 1fr; } }

/* Footer */
.site-footer{ background: var(--blue-dark); color: var(--white); padding-block: 48px 24px; }
.footer-grid{ display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
@media (max-width: 760px){ .footer-grid{ grid-template-columns: 1fr; } }
.footer-grid h4{ color: var(--yellow); font-size: 1rem; margin-bottom: .8em; }
.footer-grid p, .footer-grid a{ color: rgba(255,255,255,.85); font-size: .92rem; }
.footer-grid li{ margin-bottom: .5em; }
.footer-grid a:hover{ text-decoration: underline; }
.footer-brand{ display:flex; align-items:center; gap: .7em; margin-bottom: .8em; }
.footer-brand img{ height: 44px; }
.footer-bottom{
  border-top: 1px solid rgba(255,255,255,.18); padding-top: 20px;
  display:flex; justify-content: space-between; flex-wrap: wrap; gap: .5em;
  font-size: .82rem; color: rgba(255,255,255,.7);
}

.social-row{ display:flex; flex-wrap: wrap; gap: .8em; margin-top: .6em; }
.social-row a{
  display:flex; align-items:center; gap:.5em; height: 38px; padding: 0 .9em;
  border-radius: 999px; background: rgba(255,255,255,.12); color: var(--white);
  font-size: .85rem; font-weight: 700;
}
.social-row a.icon-only{ width: 38px; padding: 0; justify-content: center; }
.social-row a svg{ width: 18px; height: 18px; flex: none; fill: currentColor; }
.social-row a:hover{ background: rgba(255,255,255,.24); }

/* Botão flutuante WhatsApp */
.whats-float{
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  background: var(--green); color: var(--white); width: 58px; height: 58px; border-radius: 50%;
  display:flex; align-items:center; justify-content:center; box-shadow: var(--shadow-hover);
}
.whats-float svg{ width: 28px; height: 28px; fill: currentColor; }
.whats-float:hover{ transform: scale(1.06); }

/* Placeholder helper (remover ao inserir dados reais) */
.placeholder-note{
  display:inline-block; margin-top:.6em; font-size:.78rem; color: var(--purple);
  background: #FCE8F3; padding: .3em .7em; border-radius: 999px; font-weight:700;
}
