/* Inner pages of the Instituto (/tratamentos/, /tratamentos/<slug>/, 404). Loaded after instituto.css: the sections
   reuse its components (.home-hero, .trust-strip, .intro-section, .care-section, .contact-section, .service-card),
   so this file only adds what they lack. */

/* Page title in a centered section heading (/tratamentos/ and 404): the H1 takes the section h2 scale */
.page-heading h1{font-size:clamp(2.45rem,4.7vw,4.15rem);line-height:1.02}
.page-heading h1 span{color:var(--teal)}
.page-actions{display:flex;align-items:center;justify-content:center;gap:22px;flex-wrap:wrap;margin-top:32px}

/* Hero: the treatment name is the H1, followed by a contextual headline */
.treatment-hero h1{font-size:clamp(2.9rem,5vw,4.2rem);line-height:.95;margin-bottom:16px}
.treatment-hero .treatment-headline{font-family:'Baloo 2',sans-serif;font-size:clamp(1.45rem,2.2vw,1.9rem);font-weight:600;line-height:1.15;letter-spacing:-.02em;color:var(--teal-deep);max-width:540px;margin-bottom:18px}
/* The treatment art is square, with logo and title near its edges: the frame follows it so nothing is cropped */
.treatment-hero .hero-photo{aspect-ratio:1}

/* Needs: situations in which the treatment may help */
.needs-section{background:var(--paper)}
.needs-grid{list-style:none;display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.need-item{display:flex;align-items:flex-start;gap:16px;padding:26px 24px;background:#fff;border:1px solid var(--line);border-radius:24px}
.need-check{flex:none;display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:rgba(10,166,161,.1);color:var(--teal);transition:background-color .3s var(--ease),color .3s var(--ease)}
.need-check svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.need-item p{padding-top:5px;font-size:.95rem;line-height:1.6;font-weight:550;color:var(--navy)}
.needs-note{max-width:700px;margin:30px auto 0;text-align:center;font-size:.86rem;line-height:1.7;text-wrap:balance}

/* Other treatments */
.related-section{background:var(--paper)}
.related-grid{list-style:none;display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.related-link{display:flex;align-items:center;justify-content:space-between;gap:14px;height:100%;padding:20px 18px 20px 22px;background:#fff;border:1px solid var(--line);border-radius:20px;transition:transform .3s var(--ease),box-shadow .3s var(--ease),border-color .3s var(--ease)}
.related-link .mono{display:block;font-size:.58rem;color:var(--teal-deep);margin-bottom:6px}
.related-link strong{display:block;font-family:'Baloo 2',sans-serif;font-size:1.25rem;line-height:1.1;letter-spacing:-.02em}
.related-arrow{flex:none;display:grid;place-items:center;width:38px;height:38px;border-radius:50%;border:1px solid var(--line);transition:background-color .3s var(--ease),border-color .3s var(--ease),color .3s var(--ease)}
.related-arrow svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.related-all{background:var(--navy);border-color:var(--navy);color:#fff}
.related-all .mono{color:var(--teal-bright)}
.related-all .related-arrow{border-color:rgba(255,255,255,.3)}

@media(hover:hover){
  .need-item:hover,.related-link:hover{transform:translateY(-4px);box-shadow:var(--shadow-lift);border-color:rgba(10,166,161,.4)}
  .need-item:hover .need-check{background:var(--teal);color:#fff}
  .related-link:hover .related-arrow{background:var(--teal);border-color:var(--teal);color:#fff}
}

@media(max-width:980px){
  .needs-grid,.related-grid{grid-template-columns:1fr 1fr}
}

@media(max-width:720px){
  .page-heading h1{font-size:clamp(2.35rem,11vw,3.2rem)}
  .page-actions{flex-direction:column;gap:8px}
  .treatment-hero h1{font-size:clamp(2.2rem,10.5vw,3.4rem)}
  .treatment-hero .treatment-headline{font-size:1.4rem}
  .needs-grid{grid-template-columns:1fr;gap:12px}
  .need-item{padding:20px 18px;border-radius:20px}
  .need-item p{font-size:.92rem}
  .related-grid{grid-template-columns:1fr;gap:10px}
  .related-link{padding:16px 16px 16px 20px;border-radius:18px}
  .related-link strong{font-size:1.15rem}
}
