/* Overrides for SEO, a11y, CFO captions, WhatsApp CTA and mobile layout.
   Loads after criadordesites.css. */

:root {
  --hof-ink: #3d3d3f;
  --hof-muted: #4a4a4a;
  --hof-rose: #6b3a48;
  --hof-rose-soft: #c68198;
  --hof-whatsapp: #0b6e34;
  --hof-whatsapp-hover: #085827;
  --hof-white: #ffffff;
  --hof-caption: rgba(32, 24, 27, 0.72);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 10001;
  padding: 10px 14px;
  background: #111;
  color: #fff;
  font-weight: 700;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

.cs-text-widget .text-editor h1,
.cs-text-widget .text-editor h2,
.cs-text-widget .text-editor h3,
.cs-text-widget .text-editor p,
.section-title,
.hero-title {
  word-break: normal;
  overflow-wrap: break-word;
}

.hero-title {
  font-family: Oswald, "Open Sans", sans-serif;
  font-size: clamp(1.85rem, 5.4vw, 2.85rem) !important;
  font-weight: 400;
  line-height: 1.15 !important;
  color: var(--hof-white) !important;
  text-align: center;
  margin: 0 12px 8px;
}

.hero-identity,
.hero-lead {
  color: var(--hof-white) !important;
  text-align: center;
  font-family: "Open Sans", sans-serif;
  margin: 0 16px 6px;
  word-break: normal !important;
}

.hero-identity {
  font-size: 1.05rem !important;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.hero-lead {
  font-size: 0.98rem !important;
  line-height: 1.45 !important;
  max-width: 34rem;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 0 16px 12px;
}

.hero-actions .cs-button-widget {
  display: flex !important;
  justify-content: center;
  width: auto !important;
  flex: 0 0 auto;
  max-width: 100%;
}

.cs-button,
a.cs-button,
.cs-button-widget .cs-button,
.btn-whatsapp,
a.btn-whatsapp,
.btn-secondary,
a.btn-secondary {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  min-height: 48px;
  padding: 12px 22px;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  vertical-align: middle;
}

.cs-button span,
.btn-whatsapp span,
.btn-secondary span,
.footer-whatsapp span {
  display: inline-block;
  text-align: center;
  line-height: 1.25;
}

.icon-whatsapp {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: block;
}

.btn-whatsapp,
a.btn-whatsapp {
  min-width: 48px;
  background: var(--hof-whatsapp);
  color: var(--hof-white) !important;
  border-radius: 28px;
  font-family: "Open Sans", sans-serif;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

.btn-whatsapp:hover,
.btn-whatsapp:focus,
a.btn-whatsapp:hover,
a.btn-whatsapp:focus {
  background: var(--hof-whatsapp-hover);
  color: var(--hof-white) !important;
  opacity: 1;
}

.btn-secondary,
a.btn-secondary {
  background: var(--hof-rose);
  color: var(--hof-white) !important;
  border-radius: 28px;
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.btn-secondary:hover,
.btn-secondary:focus,
a.btn-secondary:hover,
a.btn-secondary:focus {
  opacity: 0.92;
  color: var(--hof-white) !important;
}

/* Darken original theme-5 pink so white text meets contrast on the hero/contato. */
.cs-widget[id="cd05384e-410e-43e2-9fb8-0c58010c916e"] .cs-button,
.cs-widget[id="hero-conheca"] .cs-button,
.cs-widget[id="contato-whatsapp"] .cs-button,
.cs-widget[id="49727b3d-e377-4b45-9fb4-bad9851b17fc"] .cs-button {
  background: var(--hof-rose);
  color: var(--hof-white);
  min-height: 48px;
}

.section-title,
#contato h2 {
  font-size: clamp(1.55rem, 4.4vw, 2.55rem) !important;
  line-height: 1.2 !important;
  word-break: normal !important;
}

.section-title {
  color: #3f3f41 !important;
}

/* Keep master's Sobre photo (background-size/position unchanged).
   Text stays in the clear left column so it never runs over the doctor. */
.cs-section[id="1ef13ef3-bdd5-4b5e-8edd-8761cfabbfa1"] .section-title {
  max-width: min(22rem, calc(52% - 16px));
  font-size: clamp(1.35rem, 2.2vw + 0.7rem, 2.15rem) !important;
}

.cs-section[id="1ef13ef3-bdd5-4b5e-8edd-8761cfabbfa1"] .sobre-copy {
  max-width: min(34rem, calc(52% - 16px));
}

.cs-section[id="1ef13ef3-bdd5-4b5e-8edd-8761cfabbfa1"] .sobre-copy p {
  max-width: none;
}

.sobre-copy p,
.resultados-copy p,
.instagram-copy p {
  color: var(--hof-ink) !important;
  font-size: 15px !important;
  line-height: 1.65 !important;
  word-break: normal !important;
  max-width: 36rem;
}

.resultado-credit {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 4;
  max-width: 11.5rem;
  padding: 3px 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.62);
  color: #3d3d3f;
  font-family: "Open Sans", sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.25;
  pointer-events: none;
}

.consent-note {
  margin: 10px 4px 0;
  font-size: 12px !important;
  line-height: 1.45 !important;
  color: var(--hof-muted) !important;
  text-align: left;
  max-width: none;
}

.footer-identity,
.footer-address,
.footer-legal {
  color: var(--hof-muted) !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  margin: 8px 0 12px;
}

.footer-contact a {
  color: #1d4f8a;
  font-weight: 700;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  line-height: 1.25;
  padding: 8px 10px;
}

.footer-whatsapp .icon-whatsapp {
  color: #0b6e34;
}

.maps-embed {
  display: block;
  width: 100%;
  max-width: 720px;
  height: 280px;
  margin: 12px auto 0;
  border: 0;
  border-radius: 8px;
}

.como-chegar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 10px auto 0;
  color: #1d4f8a;
  font-weight: 700;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.whatsapp-float {
  display: none;
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 10000;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--hof-whatsapp);
  color: #fff;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
  text-decoration: none;
}

.whatsapp-float:hover,
.whatsapp-float:focus {
  background: var(--hof-whatsapp-hover);
  color: #fff;
}

.cs-social-widget a {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
}

.cs-social-widget svg {
  width: 40px;
  height: 40px;
  display: block;
}

.instagram-embed-host {
  min-height: 120px;
}

#avaliacoes .cs-section-inner {
  background-color: #ffffff;
}

#avaliacoes .section-title {
  text-align: center;
}

.avaliacoes-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 16px 36px;
  text-align: center;
}

.avaliacoes-copy {
  color: var(--hof-ink) !important;
  font-size: 15px !important;
  line-height: 1.55 !important;
  max-width: 36rem;
  margin: 8px auto 0;
}

.avaliacoes-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

@media only screen and (max-width: 767px) {
  /* Stack copy above the unchanged bottom-right photo. */
  .cs-section[id="1ef13ef3-bdd5-4b5e-8edd-8761cfabbfa1"] .cs-section-inner {
    padding-bottom: 540px;
  }

  .cs-section[id="1ef13ef3-bdd5-4b5e-8edd-8761cfabbfa1"] .section-title,
  .cs-section[id="1ef13ef3-bdd5-4b5e-8edd-8761cfabbfa1"] .sobre-copy,
  .cs-section[id="1ef13ef3-bdd5-4b5e-8edd-8761cfabbfa1"] .sobre-copy p {
    max-width: 100%;
  }

  .cs-section[id="1ef13ef3-bdd5-4b5e-8edd-8761cfabbfa1"] .section-title {
    font-size: clamp(1.4rem, 6.4vw, 1.85rem) !important;
  }

  .resultados-copy p {
    text-align: left;
    margin-left: 0;
    max-width: none;
  }

  .whatsapp-float {
    display: inline-flex;
  }
}

@media only screen and (min-width: 768px) {
  .hero-actions {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* Procedimentos nav dropdown */
header.cs-section {
  overflow: visible;
  z-index: 40;
}

header.cs-section .cs-section-inner {
  overflow: visible;
}

.cs-menu-items .has-submenu {
  position: relative;
}

.cs-menu-items .submenu li {
  display: block;
  width: 100%;
}

.cs-menu-items .has-submenu > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cs-menu-items .submenu {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  background: #fff;
  min-width: 260px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  z-index: 30;
}

.cs-menu-items .submenu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  color: #3d3d3f;
  text-decoration: none;
  font-size: 13px;
  line-height: 1.3;
  white-space: normal;
}

.cs-menu-items .submenu a:hover,
.cs-menu-items .submenu a:focus {
  background: #f7f2f3;
  color: var(--hof-rose);
}

@media only screen and (min-width: 768px) {
  .cs-menu-items .submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    text-align: left;
  }

  .cs-menu-items .has-submenu:hover > .submenu,
  .cs-menu-items .has-submenu:focus-within > .submenu {
    display: block;
  }
}

@media only screen and (max-width: 767px) {
  .cs-menu-items .has-submenu > .submenu {
    display: block;
    position: static;
    box-shadow: none;
    background: transparent;
    padding: 0 0 8px 12px;
    min-width: 0;
  }

  .cs-menu-items .submenu a {
    color: inherit;
  }
}

/* Home procedures grid */
.procedimentos-home .cs-section-inner,
.procedimentos-home {
  background: #ffffff;
}

.procedimentos-home-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 36px 16px 48px;
}

.procedimentos-home .section-title {
  text-align: center;
  margin-bottom: 8px;
}

.procedimentos-lead {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 24px;
  color: var(--hof-ink);
  font-size: 15px;
  line-height: 1.6;
}

.procedimentos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.procedimento-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 88px;
  padding: 16px 18px;
  border: 1px solid #eadfe3;
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
  color: var(--hof-ink);
  box-shadow: 0 1px 4px rgba(61, 61, 63, 0.06);
}

.procedimento-card:hover,
.procedimento-card:focus {
  border-color: var(--hof-rose-soft);
  color: var(--hof-rose);
}

.procedimento-card h3,
.procedimento-card .card-title {
  font-family: Oswald, "Open Sans", sans-serif;
  font-size: 1.15rem;
  font-weight: 400;
  margin: 0 0 4px;
  color: inherit;
}

.procedimento-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--hof-muted);
}

@media only screen and (min-width: 768px) {
  .procedimentos-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media only screen and (min-width: 1100px) {
  .procedimentos-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Landing pages (hub + procedimentos) */
body.page-landing {
  background-image: none;
  background-color: #f7f2f3;
}

body.page-landing,
body.page-landing p,
body.page-landing h1,
body.page-landing h2,
body.page-landing h3,
body.page-landing li,
body.page-landing a,
body.page-landing summary {
  word-break: normal !important;
  overflow-wrap: anywhere;
  hyphens: none;
}

body.page-landing header.cs-section,
body.page-landing header.cs-section .cs-section-inner {
  background: var(--hof-rose);
}

body.page-landing header .cs-boxes {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

body.page-landing header .cs-box {
  flex: 1 1 auto;
}

body.page-landing header .cs-image-widget img.cs-chosen-image {
  width: min(280px, 72vw);
  height: auto;
  aspect-ratio: 731 / 132;
}

@media only screen and (max-width: 767px) {
  body.page-landing header .cs-boxes {
    flex-wrap: wrap;
  }
}

body.page-landing .cs-menu-button svg {
  fill: #fff;
}

@media only screen and (min-width: 768px) {
  header.cs-section .cs-section-inner {
    max-width: 1100px;
  }

  .cs-menu.cs-menu-horizontal .cs-menu-items {
    display: flex !important;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: center;
  }

  .cs-menu.cs-menu-horizontal .cs-menu-items > li > a {
    padding-left: 8px !important;
    padding-right: 8px !important;
    font-size: 12px;
    letter-spacing: 0.03em;
    white-space: nowrap;
  }

  header .cs-image-widget img.cs-chosen-image {
    max-width: 280px;
    width: min(280px, 72vw);
    height: auto;
    aspect-ratio: 731 / 132;
  }
}

body.page-landing .cs-page {
  background: #fff;
}

.page-hero {
  background: var(--hof-rose);
  color: #fff;
  padding: 28px 16px 36px;
}

.page-hero-inner,
.page-main,
.page-cta,
.page-related,
.page-faq,
.page-avaliacoes {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  font-size: 13px;
  line-height: 1.4;
}

.breadcrumbs a {
  color: #f3d6df;
  text-decoration: underline;
}

.breadcrumbs span,
.breadcrumbs [aria-current="page"] {
  color: #fff;
}

.page-hero .hero-title,
.page-hero h1 {
  color: #fff !important;
  text-align: left;
  margin: 0 0 10px;
}

.page-identity {
  margin: 0 0 8px;
  font-weight: 600;
  font-size: 1rem;
}

.page-lead {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.5;
  max-width: 40rem;
}

.page-main {
  padding: 28px 16px 8px;
}

.page-main h2 {
  font-family: Oswald, "Open Sans", sans-serif;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  font-weight: 400;
  color: #3f3f41;
  margin: 28px 0 10px;
}

.page-main h3 {
  font-family: Oswald, "Open Sans", sans-serif;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--hof-rose);
  margin: 22px 0 8px;
}

.page-main p,
.page-note,
.compliance-note {
  color: var(--hof-ink);
  font-size: 15px;
  line-height: 1.65;
  margin: 0 0 12px;
}

.page-main ul {
  margin: 0 0 14px;
  padding-left: 1.2rem;
  color: var(--hof-ink);
  font-size: 15px;
  line-height: 1.6;
}

.compliance-note {
  margin-top: 20px;
  padding: 12px 14px;
  background: #f7f2f3;
  border-radius: 8px;
  font-size: 14px;
}

.page-cta {
  padding: 8px 16px 28px;
}

.page-cta .btn-whatsapp {
  width: 100%;
  max-width: 420px;
}

.page-related,
.page-faq,
.page-avaliacoes {
  padding: 8px 16px 32px;
}

.related-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.related-list a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid #eadfe3;
  border-radius: 10px;
  text-decoration: none;
  color: var(--hof-ink);
}

.related-list a:hover,
.related-list a:focus {
  color: var(--hof-rose);
  border-color: var(--hof-rose-soft);
}

.faq-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.faq-list details {
  border-bottom: 1px solid #eadfe3;
  padding: 4px 0;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  min-height: 48px;
  display: flex;
  align-items: center;
  color: #3f3f41;
}

.faq-list details p {
  margin: 0 0 14px;
  color: var(--hof-ink);
  font-size: 15px;
  line-height: 1.6;
}

@media only screen and (min-width: 768px) {
  .related-list {
    grid-template-columns: 1fr 1fr;
  }

  .page-cta .btn-whatsapp {
    width: auto;
  }
}
