/* Instituto Bruna Aguiar — páginas internas e mobile */

:root {
  --ib-green: #1f2a1c;
  --ib-gold: #9e9271;
  --ib-gold-light: #d8aa78;
  --ib-cream: #f9f6f3;
  --ib-muted: #5a6658;
  --ib-text: #414e3d;
  --ib-border: #e0e4da;
  --ib-max: 72rem;
}

/* Ícone geométrico duplicado ao lado da logo (mobile) */
.rt-top-logo,
img[src*="69afc47f53a6a841a4281a48"],
img[src*="small.svg"] {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  touch-action: manipulation;
  max-width: 100%;
}

body.ib-page {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ib-text);
  background: var(--ib-cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.ib-skip {
  position: absolute;
  left: -9999px;
  top: 0;
}

.ib-skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 9999;
  background: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
}

/* Header — fixo verde (#1f2a1c), igual à home */
.ib-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: #1f2a1c !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 24px rgba(31, 42, 28, 0.15);
  isolation: isolate;
}

body.ib-page {
  padding-top: 4.25rem;
}

.ib-header-inner {
  max-width: var(--ib-max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.ib-logo {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  max-width: calc(100% - 3.25rem);
  text-decoration: none;
}

.ib-logo img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(8.125rem, 100%);
  max-height: 2.3125rem;
  object-fit: contain;
  object-position: left center;
  mix-blend-mode: lighten;
}

.ib-nav-toggle {
  display: none;
  flex-shrink: 0;
  background: none;
  border: none;
  width: 2.75rem;
  height: 2.75rem;
  cursor: pointer;
  padding: 0;
}

.ib-nav-toggle span {
  display: block;
  width: 1.35rem;
  height: 2px;
  background: var(--ib-cream);
  margin: 0.35rem auto;
}

.ib-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

@media (max-width: 1200px) {
  .ib-nav a:not(.ib-btn) {
    font-size: 0.8125rem;
  }

  .ib-nav {
    gap: 0.65rem;
  }
}

.ib-header .ib-nav a:not(.ib-btn) {
  color: rgba(249, 246, 243, 0.88);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.ib-header .ib-nav a:not(.ib-btn):hover,
.ib-header .ib-nav a:not(.ib-btn)[aria-current="page"] {
  color: var(--ib-cream);
}

.ib-header .ib-btn-primary {
  background: var(--ib-cream);
  color: var(--ib-green);
}

.ib-header .ib-btn-primary:hover {
  background: #fff;
}

.ib-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 1.25rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.ib-btn:active {
  transform: scale(0.98);
}

.ib-btn-primary {
  background: var(--ib-green);
  color: var(--ib-cream);
}

.ib-btn-primary:hover {
  background: #2f3c2c;
}

.ib-btn-outline {
  background: transparent;
  color: var(--ib-green);
  border: 1px solid var(--ib-green);
}

/* Main layout */
.ib-main {
  max-width: var(--ib-max);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4rem;
}

.ib-breadcrumb {
  font-size: 0.8125rem;
  color: var(--ib-muted);
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.ib-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.ib-breadcrumb a:hover {
  color: var(--ib-gold);
}

.ib-hero-page {
  margin-bottom: 2.5rem;
}

.ib-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  color: var(--ib-gold);
  margin-bottom: 0.75rem;
}

.ib-h1 {
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  line-height: 1.15;
  color: var(--ib-green);
  margin: 0 0 1rem;
  font-weight: 600;
}

.ib-lead {
  font-size: 1.0625rem;
  max-width: 42rem;
  margin: 0;
  color: var(--ib-text);
}

.ib-grid-2 {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .ib-grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.ib-section {
  margin-bottom: 2.5rem;
}

.ib-section h2 {
  font-size: 1.25rem;
  color: var(--ib-green);
  margin: 0 0 0.75rem;
}

.ib-section h3 {
  font-size: 1.05rem;
  color: var(--ib-green);
  margin: 0 0 0.5rem;
}

.ib-section p {
  margin: 0 0 1rem;
}

.ib-card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .ib-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .ib-card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ib-card {
  background: #fff;
  border: 1px solid var(--ib-border);
  border-radius: 0.875rem;
  padding: 1.25rem;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ib-card:hover {
  border-color: var(--ib-gold);
  box-shadow: 0 4px 20px rgba(31, 42, 28, 0.06);
}

.ib-card-title {
  font-weight: 600;
  color: var(--ib-green);
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.ib-card-desc {
  font-size: 0.875rem;
  color: var(--ib-muted);
  margin: 0;
}

.ib-faq details {
  border-bottom: 1px solid var(--ib-border);
  padding: 1.1rem 0;
}

.ib-faq summary {
  font-weight: 600;
  color: var(--ib-green);
  cursor: pointer;
  list-style: none;
  font-size: 1rem;
}

.ib-faq summary::-webkit-details-marker {
  display: none;
}

.ib-faq p {
  margin: 0.75rem 0 0;
  font-size: 0.9375rem;
}

.ib-cta-band {
  background: var(--ib-green);
  color: var(--ib-cream);
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  text-align: center;
  margin-top: 3rem;
}

.ib-cta-band h2 {
  color: var(--ib-cream);
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
}

.ib-cta-band p {
  margin: 0 0 1.25rem;
  opacity: 0.92;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

.ib-cta-band .ib-btn-primary {
  background: var(--ib-cream);
  color: var(--ib-green);
}

.ib-related {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--ib-border);
}

.ib-related ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.ib-related a {
  color: var(--ib-gold);
  text-decoration: none;
  font-size: 0.9375rem;
}

.ib-related a:hover {
  text-decoration: underline;
}

/* Footer (shared with home) */
.ib-footer {
  background: #f4f1ec;
  color: var(--ib-green);
}

.ib-footer-inner {
  max-width: var(--ib-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.ib-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 3rem 0 2rem;
}

@media (min-width: 768px) {
  .ib-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .ib-footer-grid {
    grid-template-columns: 1.35fr 1fr 1fr 1.25fr;
  }
}

.ib-footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.ib-footer-logo {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  object-fit: cover;
}

.ib-footer-name {
  font-weight: 600;
}

.ib-footer-desc,
.ib-footer-links a,
.ib-footer-social a {
  font-size: 0.875rem;
  color: var(--ib-muted);
}

.ib-footer-links,
.ib-footer-social {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ib-footer-links li,
.ib-footer-social li {
  margin-bottom: 0.45rem;
}

.ib-footer-links a,
.ib-footer-social a {
  text-decoration: none;
}

.ib-footer-links a:hover,
.ib-footer-social a:hover {
  color: var(--ib-gold);
}

.ib-footer-heading {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.85rem;
}

.ib-footer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--ib-border);
  padding: 1.25rem 0 2rem;
  font-size: 0.8125rem;
  color: var(--ib-muted);
}

.ib-footer-whatsapp {
  display: none !important;
}

/* Newsletter — fonte ≥16px evita zoom no iOS ao focar */
.ib-footer-input-wrap {
  display: flex;
  width: 100%;
  max-width: 20rem;
}

.ib-footer-input,
.ib-footer-submit {
  font-size: 16px;
}

.ib-footer-input {
  flex: 1;
  min-width: 0;
  height: 2.75rem;
  border: 1px solid var(--ib-border);
  border-radius: 0.375rem 0 0 0.375rem;
  padding: 0 0.75rem;
  background: #fff;
  color: var(--ib-green);
  outline: none;
}

.ib-footer-input:focus {
  border-color: var(--ib-gold);
  box-shadow: 0 0 0 2px rgba(158, 146, 113, 0.25);
}

.ib-footer-submit {
  height: 2.75rem;
  border: none;
  border-radius: 0 0.375rem 0.375rem 0;
  padding: 0 1rem;
  background: var(--ib-green);
  color: var(--ib-cream);
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}

/* Sticky mobile CTA */
.ib-mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  background: rgba(249, 246, 243, 0.96);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--ib-border);
}

.ib-mobile-cta .ib-btn {
  width: 100%;
}

@media (max-width: 767px) {
  .ib-nav-toggle {
    display: block;
  }

  .ib-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--ib-green);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 1.25rem 1.25rem;
    gap: 0;
  }

  .ib-nav.is-open {
    display: flex;
  }

  .ib-header .ib-nav a:not(.ib-btn) {
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 1rem;
    text-transform: none;
    letter-spacing: normal;
  }

  .ib-nav .ib-btn {
    margin-top: 1rem;
    width: 100%;
  }

  .ib-header-inner {
    position: relative;
    flex-wrap: nowrap;
  }

  .ib-logo {
    max-width: calc(100% - 3.5rem);
  }

  .ib-logo img {
    max-width: min(7.75rem, calc(100vw - 4.5rem));
    max-height: 2.125rem;
  }

  .ib-mobile-cta {
    display: block;
  }

  body.ib-page {
    padding-bottom: 4.5rem;
  }

  .ib-footer-input-wrap {
    flex-direction: column;
    max-width: 100%;
    gap: 0.5rem;
  }

  .ib-footer-input,
  .ib-footer-submit {
    width: 100%;
    border-radius: 0.375rem;
  }

  .ib-footer-inner,
  .ib-footer-grid,
  .ib-main {
    max-width: 100%;
    overflow-x: hidden;
  }
}

/* Home-specific mobile enhancements */
.ib-home-categories .ib-card {
  min-height: 8rem;
}

.ib-home-trust {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  text-align: center;
}

@media (min-width: 768px) {
  .ib-home-trust {
    grid-template-columns: repeat(4, 1fr);
  }
}

.ib-home-trust-item strong {
  display: block;
  font-size: 1.75rem;
  color: var(--ib-green);
  line-height: 1.1;
}

.ib-home-trust-item span {
  font-size: 0.8125rem;
  color: var(--ib-muted);
}

.ib-treatments-compact .ib-card-grid {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .ib-treatments-compact .ib-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .ib-treatments-compact .ib-card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Profissionais — cards com foto + nome sempre visíveis */
.ib-profissionais {
  padding: 5rem 0 8rem;
  background: #f9f6f3;
  overflow: visible;
}

.ib-profissionais-header {
  text-align: center;
  margin-bottom: 3rem;
}

.ib-profissionais-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  color: #9e9271;
  margin: 0 0 1rem;
}

.ib-profissionais-title {
  margin: 0;
  color: #1f2a1c;
}

.ib-profissionais-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1040px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .ib-profissionais-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem;
  }
}

.ib-prof-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e0e4da;
  border-radius: 14px;
  overflow: hidden;
  height: 100%;
}

.ib-prof-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: min(22rem, 52vh);
  overflow: hidden;
  background: #ebe6df;
  flex-shrink: 0;
}

.ib-prof-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

@media (min-width: 768px) {
  .ib-prof-photo {
    max-height: none;
  }
}

.ib-prof-info {
  padding: 1.25rem 1.35rem 1.5rem;
  text-align: center;
  flex: 1 1 auto;
}

.ib-prof-name {
  margin: 0 0 0.35rem;
  font-size: 1.125rem;
  line-height: 1.35;
  color: #1f2a1c;
  font-family: var(--_typography---font-family--heading-font, inherit);
}

.ib-prof-role {
  margin: 0 0 0.35rem;
  font-size: 0.875rem;
  line-height: 1.4;
  color: #9e9271;
}

.ib-prof-subrole {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: #5a6658;
}

.ib-prof-crbm {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: #5a6658;
  letter-spacing: 0.02em;
}

.ib-prof-crbm-num {
  display: inline-block;
  min-width: 3.5rem;
  min-height: 1.1em;
  border-bottom: 1px solid #d8ddd2;
  vertical-align: baseline;
}

.ib-prof-info .ib-prof-role:last-child {
  margin-bottom: 0;
}

.ib-prof-bio {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #414e3d;
}

@media (max-width: 767px) {
  .ib-profissionais {
    padding-bottom: calc(7rem + env(safe-area-inset-bottom, 0px));
  }

  .ib-prof-card {
    max-width: 20rem;
    margin: 0 auto;
    width: 100%;
  }
}

/* Home — wellness abaixo do hero (texto branco precisa de fundo verde) */
.rt-home-sticly-wrap {
  background-color: var(--ib-green);
}

.rt-wellness-section {
  position: relative;
  z-index: 2;
  background-color: var(--ib-green);
  padding-top: clamp(2.5rem, 8vw, 5rem);
  padding-bottom: clamp(2rem, 5vw, 3.75rem);
}

.rt-wellness-top.rt-text-align-center {
  gap: 1.25rem;
}

.rt-wellness-logo-wrapper {
  max-width: 5rem;
  padding-bottom: 0.5rem;
}

.rt-wellness-logo-wrapper img {
  width: 4.5rem;
  height: auto;
}

.rt-therapy.rt-home-therapy {
  padding-top: 2.5rem !important;
  padding-bottom: 0 !important;
}

@media (max-width: 767px) {
  .rt-therapy.rt-home-therapy {
    padding-top: 1.75rem !important;
  }

  .rt-wellness-top-text-style .rt-text-style-h3.rt-text-white {
    font-size: clamp(1.35rem, 5vw, 1.75rem);
    line-height: 1.25;
  }

  .rt-gap-off.rt-wellness-paragraph-style {
    font-size: 0.9375rem;
    max-width: 22rem;
    margin-left: auto;
    margin-right: auto;
  }

  .rt-therapy-main {
    gap: 1.5rem 1rem;
  }

  .rt-text-style-h4.rt-text-color-white {
    font-size: 0.9375rem;
    line-height: 1.3;
  }

  .rt-gap-off.rt-text-color-white.rt-therapy-paragraph-gap {
    font-size: 0.8125rem;
    line-height: 1.45;
    opacity: 0.92;
  }
}
