/* Clínica Phorma — normalização responsiva global, 2026-07-14 */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

img,
video,
iframe,
svg {
  max-width: 100%;
}

.phorma-context-image--brand-art {
  width: min(calc(100% - 3rem), 1120px);
  border-radius: 22px;
}

.phorma-context-image--brand-art img {
  display: block;
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  object-fit: contain !important;
  border-radius: inherit;
}

@media (max-width: 880px) {
  html body,
  html body .wp-site-blocks {
    font-size: 16px !important;
    line-height: 1.6 !important;
  }

  html body .entry-content.wp-block-post-content p,
  html body .entry-content.wp-block-post-content li,
  html body .entry-content.wp-block-post-content blockquote,
  html body .entry-content.wp-block-post-content figcaption,
  html body .entry-content.wp-block-post-content td,
  html body .entry-content.wp-block-post-content th,
  html body .entry-content.wp-block-post-content label,
  html body .entry-content.wp-block-post-content input,
  html body .entry-content.wp-block-post-content textarea,
  html body .entry-content.wp-block-post-content select {
    font-size: 1rem !important;
    line-height: 1.65 !important;
  }

  html body .entry-content.wp-block-post-content h1,
  html body .phorma-hero__content h1 {
    font-size: clamp(1.85rem, 7vw, 2.35rem) !important;
    line-height: 1.1 !important;
    overflow-wrap: anywhere;
  }

  html body .entry-content.wp-block-post-content h2 {
    font-size: clamp(1.55rem, 6vw, 2.05rem) !important;
    line-height: 1.18 !important;
    overflow-wrap: anywhere;
  }

  html body .entry-content.wp-block-post-content h3 {
    font-size: clamp(1.22rem, 4.8vw, 1.55rem) !important;
    line-height: 1.25 !important;
    overflow-wrap: anywhere;
  }

  html body .phorma-hero__content p {
    font-size: 1.05rem !important;
    line-height: 1.6 !important;
  }

  html body .wp-block-button__link,
  html body .phorma-btn,
  html body button,
  html body input[type="submit"] {
    min-height: 44px;
    font-size: 1rem !important;
    line-height: 1.25 !important;
  }

  .entry-content.wp-block-post-content {
    width: 100%;
    max-width: 100%;
    padding-right: 1rem !important;
    padding-left: 1rem !important;
  }

  .entry-content.wp-block-post-content > * {
    max-width: 100%;
  }

  .entry-content.wp-block-post-content table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .entry-content.wp-block-post-content pre,
  .entry-content.wp-block-post-content code {
    max-width: 100%;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
  }

  .phorma-context-image,
  .wp-block-post-featured-image {
    width: 100%;
    max-width: 100%;
    margin: 1.5rem auto 2rem;
    border-radius: 16px;
  }

  .phorma-context-image:not(.phorma-context-image--brand-art) img,
  .wp-block-post-featured-image img {
    width: 100%;
    height: clamp(230px, 62vw, 380px);
    min-height: 0;
    object-fit: cover;
    border-radius: inherit;
  }

  .phorma-context-image--brand-art {
    width: 100%;
    margin: 1.35rem auto 2rem;
    border-radius: 16px;
  }

  .phorma-proof-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
    padding: 1rem;
  }

  .phorma-proof-strip .phorma-proof-item strong {
    font-size: 1.25rem !important;
    line-height: 1.15 !important;
  }

  .phorma-proof-strip .phorma-proof-item span {
    font-size: 0.78rem !important;
    line-height: 1.35 !important;
  }

  html body .phorma-exam-card__name {
    font-size: 1rem !important;
    line-height: 1.35 !important;
  }

  html body .phorma-exam-card__meta {
    font-size: 0.82rem !important;
    line-height: 1.4 !important;
  }

  html body .phorma-exam-card__price {
    font-size: 1.3rem !important;
  }

  html body .phorma-credential__name {
    font-size: 1rem !important;
    line-height: 1.3 !important;
  }

  html body .phorma-credential__reg,
  html body .phorma-trust-badge {
    font-size: 0.82rem !important;
    line-height: 1.4 !important;
  }

  html body .phorma-faq summary {
    padding: 1rem 0;
    font-size: 1rem !important;
    line-height: 1.4 !important;
  }

  html body .phorma-review-card__name {
    font-size: 1rem !important;
  }

  html body .phorma-review-card__text {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
  }

  html body .phorma-review-card__source {
    font-size: 0.78rem !important;
  }

  .phorma-site-header {
    --phorma-header-height: 72px !important;
  }

  .phorma-header-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr) 48px !important;
    gap: 0.3rem !important;
    padding: 0.35rem 0.55rem !important;
  }

  .phorma-header-calc,
  .phorma-nav-cta {
    height: 62px !important;
    gap: 0.35rem !important;
  }

  .phorma-header-calc .phorma-icon,
  .phorma-nav-cta .phorma-icon {
    flex: 0 0 42px !important;
    width: 42px !important;
    height: 42px !important;
    padding: 10px !important;
  }

  .phorma-header-calc span::after {
    content: "Calculadoras" !important;
    font-size: 0.72rem !important;
    white-space: normal !important;
  }

  .phorma-nav-cta-label::after {
    content: "WhatsApp" !important;
    font-size: 0.76rem !important;
    white-space: normal !important;
  }

  .phorma-nav-toggle {
    width: 48px !important;
    height: 48px !important;
    gap: 6px !important;
  }

  .phorma-nav-toggle span {
    width: 30px !important;
    height: 3px !important;
  }

  html body .phorma-nav > ul {
    gap: 0.3rem !important;
    padding: 0.55rem !important;
  }

  html body .phorma-nav > ul > li > a,
  html body .phorma-nav > ul > li > .phorma-submenu-heading,
  html body .phorma-nav > ul > li > .phorma-submenu-heading > a {
    min-height: 48px !important;
    margin: 0 !important;
    padding: 0.72rem 0.9rem !important;
    font-family: "Fraunces", Georgia, serif !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
  }

  html body .phorma-nav > ul > li > .phorma-submenu-heading {
    display: flex !important;
    align-items: center !important;
    padding: 0 0.25rem 0 0 !important;
  }

  html body .phorma-nav > ul > li > .phorma-submenu-heading > a {
    display: flex !important;
    align-items: center !important;
    flex: 1 1 auto !important;
  }

  html body .phorma-submenu-toggle {
    flex: 0 0 44px !important;
    width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
  }

  html body .phorma-nav li.has-submenu > ul a {
    font-size: 0.95rem !important;
    line-height: 1.35 !important;
  }

  html body .phorma-site-footer h3 {
    font-size: 1.05rem !important;
  }

  html body .phorma-site-footer a,
  html body .phorma-footer-legal,
  html body .phorma-footer-bottom {
    font-size: 0.88rem !important;
    line-height: 1.55 !important;
  }

  .phorma-footer-inner {
    gap: 1.5rem !important;
    padding: 2rem 1rem !important;
  }
}

@media (max-width: 420px) {
  html body .entry-content.wp-block-post-content h1,
  html body .phorma-hero__content h1 {
    font-size: clamp(1.75rem, 7.4vw, 2.1rem) !important;
  }

  html body .entry-content.wp-block-post-content h2 {
    font-size: clamp(1.45rem, 6.8vw, 1.85rem) !important;
  }

  .phorma-proof-strip {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  html body .phorma-hero__video {
    aspect-ratio: 4 / 3 !important;
    max-height: 72vw !important;
    object-position: center 24% !important;
  }

  html body .phorma-hero__content {
    padding-top: 1.5rem !important;
  }
}
