/* ==========================================================
   MSV — Responsive refresh 2026
   Camada final de responsividade e tipografia.
   Mantém a identidade visual do projeto e sobrescreve apenas
   regras antigas que prejudicavam leitura/adaptação no mobile.
   ========================================================== */

:root {
  --msv-green: #17472f;
  --msv-green-dark: #103523;
  --msv-gold: #b9852f;
  --msv-cream: #fbf6e9;
  --msv-ink: #132033;
  --msv-copy: #425064;
  --msv-soft: #f5f7f6;
  --msv-border: rgba(23, 71, 47, .13);
  --msv-shadow: 0 14px 38px rgba(25, 38, 32, .08);
  --msv-content: 1500px;
}

html {
  scroll-padding-top: 104px;
}

body {
  min-width: 0;
  font-family: "Inter", Arial, Helvetica, sans-serif;
  color: var(--msv-ink);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea,
select {
  font: inherit;
}

p,
li,
address,
a,
button {
  letter-spacing: -.006em;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.poster {
  overflow: clip;
}

/* ---------- Hero: desktop + mobile-specific artwork ---------- */
.hero-picture {
  display: block;
  width: 100%;
  line-height: 0;
}

.hero-picture img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
}

.hero-mobile-copy {
  display: none;
}

/* ---------- Conditions: clearer hierarchy and readable cards ---------- */
.conditions-html {
  padding: clamp(44px, 4.5vw, 72px) clamp(18px, 4vw, 64px) clamp(50px, 5vw, 82px);
  background: linear-gradient(180deg, #ffffff 0%, #f7f9f7 100%);
}

.conditions-heading {
  width: min(100%, 880px);
  margin: 0 auto clamp(28px, 3vw, 44px);
  text-align: center;
}

.conditions-kicker {
  margin: 0 0 9px;
  color: var(--msv-gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.conditions-heading h2 {
  margin: 0;
  color: #0d2e20;
  font-size: clamp(30px, 2.5vw, 46px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -.04em;
}

.conditions-heading > p:last-child {
  margin: 14px auto 0;
  max-width: 760px;
  color: #5a6672;
  font-size: clamp(15px, 1.05vw, 18px);
  line-height: 1.65;
}

.conditions-columns {
  width: min(100%, var(--msv-content));
  max-width: var(--msv-content);
  gap: clamp(14px, 1.4vw, 24px);
}

.condition-column {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 0;
}

.condition-column + .condition-column {
  border-left: 0;
}

.condition-card {
  min-height: 0;
  grid-template-columns: clamp(52px, 3.7vw, 68px) minmax(0, 1fr);
  gap: 14px;
  padding: clamp(16px, 1.35vw, 22px);
  background: rgba(255,255,255,.98);
  border: 1px solid var(--msv-border);
  border-radius: 18px;
  box-shadow: 0 7px 22px rgba(30, 52, 40, .055);
  cursor: default;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.condition-card:hover {
  background: #fff;
  transform: translateY(-2px);
  border-color: rgba(23, 71, 47, .23);
  box-shadow: 0 12px 30px rgba(30, 52, 40, .09);
}

.condition-card img {
  width: clamp(50px, 3.4vw, 64px);
  max-height: none;
  margin-top: 2px;
}

.condition-card h2 {
  margin: 0 0 8px;
  font-size: clamp(17px, 1.05vw, 20px);
  line-height: 1.24;
  letter-spacing: -.025em;
}

.condition-card p {
  margin: 0;
  color: #3f4b58;
  font-size: clamp(13px, .78vw, 15px);
  line-height: 1.52;
}

.condition-card p strong {
  color: #26313b;
}

.conditions-mobile-actions {
  display: none;
}

/* ---------- Editorial text ---------- */
.msv-problem-card h2,
.msv-knowledge .msv-heading-title h2,
.msv-footer-location h3,
.msv-footer-channels h3,
.simple-page h1 {
  letter-spacing: -.035em;
}

.msv-problem-card > p:not(.msv-mission),
.msv-knowledge .msv-copy p,
.msv-knowledge .msv-why-intro,
.msv-integrative-note p,
.msv-footer-location p,
.msv-footer-location address,
.msv-footer-channels a,
.msv-footer-channels p,
.simple-page p {
  line-height: 1.68;
}

.msv-knowledge .msv-copy p,
.msv-knowledge .msv-why-intro {
  color: #405066;
}

.msv-knowledge .msv-content-card {
  box-shadow: var(--msv-shadow);
}

.msv-tags li,
.msv-benefits li {
  line-height: 1.35;
}

/* ---------- Blog/simple page ---------- */
.simple-page,
.simple-page-inner {
  font-family: "Inter", Arial, Helvetica, sans-serif;
}

.simple-page-inner {
  box-shadow: var(--msv-shadow);
}

/* ---------- Mobile ---------- */
@media (max-width: 700px) {
  html {
    scroll-padding-top: 78px;
  }

  .site-navbar {
    box-shadow: 0 5px 18px rgba(42, 36, 20, .08);
  }

  .poster-top {
    overflow: visible;
    background: var(--msv-cream);
  }

  .hero-picture {
    overflow: hidden;
    background: #e8d3a6;
  }

  .hero-picture .desktop-hero {
    width: 100%;
    height: auto;
    margin: 0 !important;
    object-fit: cover;
  }

  .hero-cta {
    display: none !important;
  }

  .hero-mobile-copy {
    display: block;
    position: relative;
    z-index: 9;
    padding: 25px max(18px, env(safe-area-inset-left)) 28px;
    background: linear-gradient(180deg, #fffaf0 0%, #f7edda 100%);
    line-height: normal;
    text-align: left;
    border-bottom: 1px solid rgba(151, 112, 48, .16);
  }

  .hero-mobile-kicker {
    margin: 0 0 8px;
    color: #97661c;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
  }

  .hero-mobile-copy h1 {
    margin: 0;
    max-width: 560px;
    color: #153f2c;
    font-size: clamp(30px, 8.2vw, 42px);
    line-height: 1.03;
    font-weight: 800;
    letter-spacing: -.045em;
  }

  .hero-mobile-copy > p:not(.hero-mobile-kicker) {
    margin: 14px 0 0;
    max-width: 600px;
    color: #4a5660;
    font-size: 15px;
    line-height: 1.55;
  }

  .hero-mobile-button {
    width: 100%;
    min-height: 50px;
    margin-top: 20px;
    border: 0;
    border-radius: 14px;
    padding: 13px 18px;
    background: var(--msv-green);
    color: #fff;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(23, 71, 47, .2);
    cursor: pointer;
  }

  .hero-mobile-button:focus-visible,
  .conditions-toggle:focus-visible {
    outline: 3px solid #d5a23a;
    outline-offset: 3px;
  }

  /* Remove o antigo recorte negativo e transforma a faixa verde em bloco de leitura. */
  .hero-intro-html {
    position: relative !important;
    left: auto !important;
    bottom: auto !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 19px 18px 21px !important;
    background: linear-gradient(135deg, #123d28 0%, #1d5a39 100%) !important;
    line-height: normal !important;
  }

  .hero-intro-html p {
    max-width: 680px;
    margin: 0 auto;
    color: #fff;
    font-size: 14px !important;
    line-height: 1.55 !important;
    font-weight: 500;
    letter-spacing: 0;
  }

  .hero-intro-html strong {
    color: #edf38a;
  }

  .msv-problem {
    padding: 26px 14px 22px;
  }

  .msv-problem-card {
    min-height: 0;
    padding: 27px 19px 23px;
    border-radius: 18px;
  }

  .msv-problem-card h2 {
    margin-bottom: 12px;
    font-size: clamp(25px, 7.2vw, 33px);
    line-height: 1.08;
  }

  .msv-problem-card > p:not(.msv-mission) {
    font-size: 15px;
    line-height: 1.58;
  }

  .msv-problem-card > p br {
    display: none;
  }

  .conditions-html {
    padding: 36px 14px 42px;
  }

  .conditions-heading {
    margin-bottom: 22px;
    text-align: left;
  }

  .conditions-kicker {
    margin-bottom: 7px;
    font-size: 11px;
  }

  .conditions-heading h2 {
    font-size: clamp(28px, 8vw, 38px);
  }

  .conditions-heading > p:last-child {
    margin-top: 11px;
    font-size: 14px;
    line-height: 1.55;
  }

  .conditions-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .condition-column {
    gap: 12px;
  }

  .conditions-html.is-expanded .condition-column + .condition-column {
    margin-top: 12px;
  }

  .conditions-html:not(.is-expanded) .condition-card.mobile-extra {
    display: none !important;
  }

  .condition-card {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    padding: 16px 14px;
    border: 1px solid rgba(23, 71, 47, .12);
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(31, 50, 40, .055);
  }

  .condition-card:hover {
    transform: none;
  }

  .condition-card img {
    width: 46px;
    max-height: 50px;
    margin-top: 1px;
  }

  .condition-card h2 {
    margin-bottom: 6px;
    font-size: clamp(17px, 4.65vw, 19px);
    line-height: 1.22;
  }

  .condition-card p {
    color: #45515c;
    font-size: 14px;
    line-height: 1.52;
  }

  .conditions-mobile-actions {
    display: block;
    margin-top: 18px;
  }

  .conditions-toggle {
    width: 100%;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid rgba(23, 71, 47, .2);
    border-radius: 14px;
    padding: 12px 16px;
    background: #fff;
    color: var(--msv-green);
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 7px 20px rgba(23, 71, 47, .06);
  }

  .conditions-toggle-count {
    min-width: 35px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #edf4ef;
    color: #2e6d4c;
    font-size: 12px;
    line-height: 1.35;
  }

  .conditions-html.is-expanded .conditions-toggle-count {
    display: none;
  }

  .msv-knowledge {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .msv-knowledge .msv-content-card {
    border-radius: 18px;
  }

  .msv-knowledge .msv-copy p,
  .msv-knowledge .msv-why-intro,
  .msv-integrative-note p {
    font-size: 15px;
    line-height: 1.68;
  }

  .msv-tags {
    gap: 8px;
  }

  .msv-tags li {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
  }

  .msv-benefits li {
    min-height: 62px;
  }

  .msv-site-footer {
    font-family: "Inter", Arial, Helvetica, sans-serif;
  }

  .msv-footer-contact {
    padding-left: 18px;
    padding-right: 18px;
  }

  .msv-footer-location address,
  .msv-footer-channels a,
  .msv-footer-channels p {
    overflow-wrap: anywhere;
  }

  .simple-page {
    padding: 30px 14px;
  }

  .simple-page-inner {
    padding: 30px 20px;
    border-radius: 20px;
  }

  .simple-page h1 {
    font-size: clamp(34px, 10vw, 48px);
  }
}

@media (max-width: 420px) {
  .hero-mobile-copy {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-intro-html {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .condition-card {
    grid-template-columns: 44px minmax(0, 1fr);
    padding: 14px 12px;
  }

  .condition-card img {
    width: 42px;
  }

  .condition-card p {
    font-size: 13.5px;
  }
}

@media (hover: none) and (pointer: coarse) {
  .condition-card:hover {
    border-color: var(--msv-border);
    box-shadow: 0 6px 18px rgba(31, 50, 40, .055);
  }
}

@media (prefers-reduced-motion: reduce) {
  .condition-card,
  .hero-mobile-button,
  .conditions-toggle {
    transition: none !important;
  }
}

.modal-open { overflow: hidden; }

/* ==========================================================
   MSV — Desktop editorial refinement
   Pedido: novo layout dos cards, nova seção de apresentação
   acima de "Medicina Integrativa: uma visão ampliada" e
   tipografia mais limpa, sem alterar o conteúdo existente.
   ========================================================== */

:root {
  --msv-font-ui: "Segoe UI Variable", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --msv-font-display: "Segoe UI Variable Display", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

body,
button,
input,
textarea,
select,
.navbar-brand-copy,
.conditions-html,
.msv-showcase,
.msv-site-footer,
.simple-page {
  font-family: var(--msv-font-ui) !important;
}

h1,
h2,
h3,
.conditions-heading h2,
.msv-problem-card h2,
.msv-heading-title h2,
.msv-footer-mission strong,
.msv-footer-location h3,
.msv-footer-channels h3 {
  font-family: var(--msv-font-display) !important;
  letter-spacing: -.025em;
}

/* Leitura mais confortável no conteúdo editorial. */
.msv-knowledge .msv-copy,
.msv-knowledge .msv-why-copy,
.msv-integrative-note,
.msv-footer-inner {
  text-align: left;
}

.msv-knowledge .msv-copy p,
.msv-knowledge .msv-why-intro,
.msv-integrative-note p {
  max-width: 92ch;
  font-size: clamp(15px, .98vw, 17px);
  line-height: 1.78;
  letter-spacing: 0;
}

/* ---------- Condições: layout novo, mesmo texto e mesmas imagens ---------- */
@media (min-width: 901px) {
  .conditions-html {
    padding: 72px clamp(28px, 4.2vw, 72px) 82px;
    background:
      radial-gradient(circle at 12% 8%, rgba(185,133,47,.08), transparent 28%),
      linear-gradient(180deg, #fff 0%, #f5f8f5 100%);
  }

  .conditions-heading {
    margin-bottom: 38px;
  }

  .conditions-heading > p:last-child {
    max-width: 800px;
    font-size: 17px;
    line-height: 1.7;
  }

  .conditions-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
    width: min(100%, 1540px);
    margin-inline: auto;
  }

  .condition-column {
    display: contents;
  }

  .condition-card {
    --condition-accent: #2d7b4e;
    position: relative;
    display: grid;
    grid-template-columns: 66px minmax(0,1fr);
    align-items: start;
    gap: 16px;
    min-height: 100%;
    padding: 22px 20px 22px;
    overflow: hidden;
    background: rgba(255,255,255,.98);
    border: 1px solid rgba(18,70,46,.12);
    border-radius: 22px;
    box-shadow: 0 11px 34px rgba(25,51,39,.07);
  }

  .condition-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--condition-accent);
    opacity: .85;
  }

  .condition-card::after {
    content: "";
    position: absolute;
    right: -34px;
    top: -34px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--condition-accent) 8%, transparent);
    pointer-events: none;
  }

  .condition-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--condition-accent) 30%, #dce5df);
    box-shadow: 0 18px 42px rgba(25,51,39,.11);
  }

  .condition-card img {
    width: 58px;
    height: 58px;
    object-fit: contain;
    padding: 7px;
    border-radius: 17px;
    background: color-mix(in srgb, var(--condition-accent) 8%, #fff);
  }

  .condition-copy {
    min-width: 0;
    padding-right: 4px;
  }

  .condition-card h2 {
    margin: 0 0 10px;
    color: var(--condition-accent) !important;
    font-size: clamp(17px, 1.05vw, 20px);
    line-height: 1.25;
    font-weight: 760;
  }

  .condition-card p {
    margin: 0;
    color: #46535e;
    font-size: clamp(13.5px, .78vw, 14.8px);
    line-height: 1.56;
    letter-spacing: 0;
  }

  .condition-card p strong {
    color: #26362f;
    font-weight: 700;
  }

  .condition-card[data-id="1"],
  .condition-card[data-id="8"] { --condition-accent: #d8393d; }
  .condition-card[data-id="2"],
  .condition-card[data-id="6"],
  .condition-card[data-id="10"],
  .condition-card[data-id="12"],
  .condition-card[data-id="14"] { --condition-accent: #247ec8; }
  .condition-card[data-id="3"],
  .condition-card[data-id="13"] { --condition-accent: #d89008; }
  .condition-card[data-id="4"],
  .condition-card[data-id="17"] { --condition-accent: #e83f7f; }
  .condition-card[data-id="5"],
  .condition-card[data-id="9"],
  .condition-card[data-id="15"],
  .condition-card[data-id="18"] { --condition-accent: #2b7c35; }
  .condition-card[data-id="7"],
  .condition-card[data-id="11"],
  .condition-card[data-id="16"] { --condition-accent: #8b35a8; }
}

/* ---------- Nova seção visual solicitada ---------- */
.msv-profile-showcase {
  position: relative;
  padding: clamp(54px, 5.5vw, 92px) clamp(18px, 4vw, 68px);
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 24%, rgba(197,151,74,.15), transparent 34%),
    linear-gradient(180deg, #f9f5eb 0%, #fff 100%);
  border-top: 1px solid rgba(23,71,47,.08);
  border-bottom: 1px solid rgba(23,71,47,.08);
}

.msv-profile-showcase::before,
.msv-profile-showcase::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  border: 1px solid rgba(185,133,47,.17);
  border-radius: 50%;
  pointer-events: none;
}

.msv-profile-showcase::before { left: -120px; top: -130px; }
.msv-profile-showcase::after { right: -110px; bottom: -145px; }

.msv-profile-showcase-inner {
  position: relative;
  z-index: 1;
  width: min(100%, 1500px);
  min-height: 520px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .74fr) minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(18px, 2vw, 34px);
}

.msv-profile-visual {
  min-height: 500px;
  overflow: hidden;
  border-radius: 30px;
  background: #e9ddbd;
  box-shadow: 0 20px 52px rgba(34,48,39,.11);
}

.msv-profile-visual img {
  width: 100%;
  height: 100%;
  min-height: 500px;
  display: block;
  object-fit: cover;
  transform: scale(1.18);
  filter: saturate(.9) contrast(.96);
}

.msv-profile-visual-left img { object-position: 2% center; }
.msv-profile-visual-right img { object-position: 98% center; }

.msv-profile-center {
  position: relative;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 22px 10px 0;
}

.msv-profile-center::before,
.msv-profile-center::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 58%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(185,133,47,.46), transparent);
  z-index: -1;
}
.msv-profile-center::before { left: -35%; }
.msv-profile-center::after { right: -35%; }

.msv-profile-logo {
  width: clamp(104px, 8vw, 142px);
  height: auto;
  margin: 0 0 -15px;
  position: relative;
  z-index: 3;
  filter: drop-shadow(0 8px 14px rgba(73,54,18,.13));
}

.msv-profile-photo-frame {
  position: relative;
  width: min(100%, 330px);
  aspect-ratio: .76;
  overflow: hidden;
  border-radius: 48% 48% 26px 26px / 32% 32% 26px 26px;
  border: 1px solid rgba(185,133,47,.38);
  background: #0c2435;
  box-shadow:
    0 26px 55px rgba(27,43,35,.18),
    0 0 0 10px rgba(255,255,255,.65);
}

.msv-profile-photo-frame::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 35%;
  background: linear-gradient(180deg, transparent, rgba(9,43,32,.18));
  pointer-events: none;
}

.msv-profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
  display: block;
}

@media (max-width: 1000px) {
  .msv-profile-showcase-inner {
    min-height: 440px;
    grid-template-columns: 1fr minmax(250px, .82fr) 1fr;
    gap: 14px;
  }
  .msv-profile-visual,
  .msv-profile-visual img,
  .msv-profile-center { min-height: 420px; }
  .msv-profile-photo-frame { width: min(100%, 270px); }
}

@media (max-width: 700px) {
  .msv-profile-showcase {
    padding: 42px 16px 50px;
  }
  .msv-profile-showcase-inner {
    min-height: 0;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "center center"
      "left right";
    gap: 12px;
  }
  .msv-profile-center {
    grid-area: center;
    min-height: 390px;
    padding-top: 0;
  }
  .msv-profile-logo {
    width: 105px;
    margin-bottom: -12px;
  }
  .msv-profile-photo-frame {
    width: min(76vw, 285px);
  }
  .msv-profile-visual {
    min-height: 190px;
    border-radius: 20px;
  }
  .msv-profile-visual-left { grid-area: left; }
  .msv-profile-visual-right { grid-area: right; }
  .msv-profile-visual img {
    min-height: 190px;
    transform: scale(1.2);
  }
  .msv-profile-center::before,
  .msv-profile-center::after { display: none; }
}
