/*
Theme Name: Marvelle
Description: Tema filho do Hello Elementor com o design system Marvelle — camada de apresentação em código para as páginas de clínicas, procedimentos e institucionais.
Template: hello-elementor
Version: 1.1.0
Author: Marvelle
Text Domain: marvelle
*/

/* ============ TOKENS ============ */
:root {
  --mv-forest-950: #062d22;
  --mv-forest-900: #0a3d2d;
  --mv-forest-800: #0f513d;
  --mv-forest-700: #17664e;
  --mv-mint-100: #dff3e8;
  --mv-mint-50: #edf8f1;
  --mv-cream: #fbfaf5;
  --mv-sand: #f8f2ed;
  --mv-wine: #773c38;
  --mv-ink: #17372d;
  --mv-muted: #64766f;
  --mv-line: rgba(15, 81, 61, 0.13);
  --mv-white: #ffffff;
  --mv-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --mv-sans: "Jost", "Segoe UI", Arial, sans-serif;
  --mv-r-lg: 18px;
  --mv-r-md: 14px;
  --mv-r-sm: 10px;
  --mv-shadow: 0 13px 34px rgba(11, 62, 46, 0.08);
  --mv-shadow-lift: 0 17px 38px rgba(11, 62, 46, 0.12);
  --mv-max: 1080px;
  --mv-narrow: 720px;
}

body.mv-body { background: var(--mv-cream); }
.mv-page {
  background:
    radial-gradient(circle at 88% 0%, rgba(190, 225, 207, 0.5), transparent 30%),
    linear-gradient(160deg, var(--mv-mint-50) 0%, var(--mv-cream) 34%, var(--mv-sand) 100%);
  color: var(--mv-ink);
  font-family: var(--mv-sans);
  font-size: 1.05rem;
  line-height: 1.72;
  overflow-x: hidden;
}
.mv-page * { box-sizing: border-box; }
.mv-page a { -webkit-tap-highlight-color: transparent; }
.mv-wrap { width: min(100% - 40px, var(--mv-max)); margin: 0 auto; }
.mv-wrap--narrow { width: min(100%, var(--mv-narrow)); margin-inline: auto; }

.mv-hero { padding: clamp(136px, 6vw + 110px, 176px) 0 clamp(26px, 4vw, 44px); text-align: center; }
.mv-crumb { margin: 0 0 18px; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; }
.mv-crumb a { color: var(--mv-muted); text-decoration: none; border-bottom: 1px solid transparent; }
.mv-crumb a:hover { color: var(--mv-forest-700); border-color: currentColor; }
.mv-kicker {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 16px;
  color: var(--mv-forest-700); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
}
.mv-kicker::before, .mv-kicker::after { width: 26px; height: 1px; content: ""; background: currentColor; opacity: 0.7; }
.mv-page h1.mv-title {
  margin: 0 auto; max-width: 22ch;
  color: var(--mv-forest-950);
  font-family: var(--mv-serif);
  font-size: clamp(2.5rem, 5.6vw, 3.9rem);
  font-weight: 600; letter-spacing: -0.02em; line-height: 1.04;
  text-wrap: balance;
}
.mv-sub { margin: 18px auto 0; max-width: 58ch; color: var(--mv-muted); font-size: clamp(1rem, 1.6vw, 1.12rem); line-height: 1.65; }
.mv-sub strong { color: var(--mv-ink); font-weight: 500; }

.mv-cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 26px 0 0; }
.mv-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px; border-radius: 12px; border: 1px solid transparent;
  background: var(--mv-forest-900); color: var(--mv-white);
  font-family: var(--mv-sans); font-size: 1rem; font-weight: 500; letter-spacing: 0.01em;
  text-decoration: none; line-height: 1;
  box-shadow: 0 14px 30px rgba(10, 61, 45, 0.18);
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.mv-btn:hover { background: var(--mv-forest-700); transform: translateY(-2px); box-shadow: 0 18px 36px rgba(10, 61, 45, 0.22); color: var(--mv-white); }
.mv-btn svg { width: 18px; height: 18px; flex: 0 0 auto; }
.mv-btn--ghost { background: rgba(255, 255, 255, 0.72); color: var(--mv-forest-800); border-color: var(--mv-line); box-shadow: none; backdrop-filter: blur(8px); }
.mv-btn--ghost:hover { background: var(--mv-white); color: var(--mv-forest-700); border-color: rgba(23, 102, 78, 0.42); box-shadow: var(--mv-shadow); }
.mv-btn--wa { background: var(--mv-forest-700); }
.mv-btn--wa:hover { background: var(--mv-forest-800); }

.mv-section { padding: clamp(26px, 4.5vw, 52px) 0; }
.mv-section--tight { padding: clamp(14px, 2.5vw, 26px) 0; }
.mv-page h2 {
  margin: 0 0 14px; color: var(--mv-forest-900);
  font-family: var(--mv-serif); font-size: clamp(1.7rem, 3vw, 2.25rem);
  font-weight: 600; letter-spacing: -0.01em; line-height: 1.12; text-wrap: balance;
}
.mv-label {
  display: block; margin: 0 0 8px; color: var(--mv-wine);
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
}
.mv-page p { margin: 0 0 1.05em; }
.mv-page .mv-lead { font-size: 1.13rem; color: #3c4f46; }
.mv-page a:not(.mv-btn):not(.mv-card) { color: var(--mv-forest-700); text-decoration: underline; text-decoration-color: rgba(23, 102, 78, 0.35); text-underline-offset: 3px; }
.mv-page a:not(.mv-btn):not(.mv-card):hover { text-decoration-color: currentColor; }

.mv-panel {
  background: rgba(255, 255, 255, 0.82); border: 1px solid var(--mv-line);
  border-radius: var(--mv-r-lg); padding: clamp(22px, 3.5vw, 40px);
  box-shadow: var(--mv-shadow); backdrop-filter: blur(10px);
}

.mv-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1px; background: var(--mv-line); border: 1px solid var(--mv-line); border-radius: var(--mv-r-lg); overflow: hidden; box-shadow: var(--mv-shadow); }
.mv-fact { background: rgba(255, 255, 255, 0.88); padding: 18px 20px; }
.mv-fact b { display: block; margin: 0 0 4px; color: var(--mv-wine); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; }
.mv-fact span { color: var(--mv-ink); font-size: 0.95rem; line-height: 1.5; display: block; }

.mv-photo { border-radius: var(--mv-r-lg); overflow: hidden; border: 1px solid var(--mv-line); box-shadow: var(--mv-shadow); }
.mv-photo img { display: block; width: 100%; height: auto; object-fit: cover; aspect-ratio: 16 / 7; }
.mv-photo--placeholder {
  aspect-ratio: 16 / 6.4; display: grid; place-items: center; text-align: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(223, 243, 232, 0.8), transparent 42%),
    linear-gradient(140deg, var(--mv-mint-50), var(--mv-sand));
}
.mv-photo--placeholder img { width: 92px; height: 92px; aspect-ratio: 1; object-fit: contain; opacity: 0.85; margin: 0 auto 10px; }
.mv-photo--placeholder small { display: block; color: var(--mv-muted); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; }

.mv-map { border-radius: var(--mv-r-lg); overflow: hidden; border: 1px solid var(--mv-line); box-shadow: var(--mv-shadow); }
.mv-map iframe { display: block; width: 100%; height: 360px; border: 0; }

.mv-chips { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 4px 0 14px; list-style: none; }
.mv-chips li a, .mv-chips li span {
  display: inline-block; padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--mv-line); background: rgba(255, 255, 255, 0.8);
  color: var(--mv-forest-800); font-size: 0.9rem; text-decoration: none;
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}
.mv-chips li a:hover { border-color: rgba(23, 102, 78, 0.45); background: var(--mv-white); transform: translateY(-1px); color: var(--mv-forest-700); }

.mv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(285px, 1fr)); gap: 14px; }
.mv-card {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 20px 20px 22px; min-height: 96px;
  border: 1px solid var(--mv-line); border-radius: var(--mv-r-lg);
  background: rgba(255, 255, 255, 0.86); box-shadow: var(--mv-shadow);
  text-decoration: none; color: var(--mv-ink);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
  backdrop-filter: blur(12px);
}
.mv-card:hover { transform: translateY(-2px); border-color: rgba(23, 102, 78, 0.42); box-shadow: var(--mv-shadow-lift); }
.mv-card-copy { display: grid; gap: 3px; }
.mv-card-copy .mv-card-kicker { color: var(--mv-wine); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; }
.mv-card-copy strong { font-family: var(--mv-serif); font-size: 1.32rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.12; color: var(--mv-forest-950); }
.mv-card-copy small { color: var(--mv-muted); font-size: 0.8rem; line-height: 1.4; }
.mv-card-arrow {
  flex: 0 0 auto; width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid rgba(15, 81, 61, 0.15); border-radius: 50%;
  color: var(--mv-forest-700); background: rgba(223, 243, 232, 0.62); font-size: 1rem;
}
.mv-region { margin: 34px 0 14px; display: flex; align-items: baseline; gap: 14px; }
.mv-region h2 { margin: 0; }
.mv-region::after { content: ""; flex: 1; height: 1px; background: var(--mv-line); }

.mv-faq { border-top: 1px solid var(--mv-line); }
.mv-faq details { border-bottom: 1px solid var(--mv-line); }
.mv-faq summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 17px 2px; color: var(--mv-forest-950);
  font-family: var(--mv-serif); font-size: 1.18rem; font-weight: 600; line-height: 1.3;
}
.mv-faq summary::-webkit-details-marker { display: none; }
.mv-faq summary::after { content: "+"; flex: 0 0 auto; width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--mv-line); border-radius: 50%; color: var(--mv-forest-700); font-family: var(--mv-sans); font-size: 1rem; font-weight: 400; transition: transform 160ms ease; }
.mv-faq details[open] summary::after { content: "–"; transform: rotate(180deg); }
.mv-faq details p { margin: 0 0 18px; color: #45564e; max-width: 65ch; }

.mv-note {
  border-left: 3px solid var(--mv-wine); border-radius: 0 var(--mv-r-md) var(--mv-r-md) 0;
  background: rgba(119, 60, 56, 0.05); padding: 16px 20px; margin: 26px 0;
  color: #5d4340; font-size: 0.92rem; line-height: 1.6;
}
.mv-note b { color: var(--mv-wine); }

.mv-endcta { text-align: center; padding: clamp(30px, 5vw, 56px) 0 clamp(44px, 6vw, 72px); }
.mv-endcta .mv-panel { padding: clamp(30px, 5vw, 52px); }
.mv-endcta h2 { margin-bottom: 8px; }
.mv-endcta p { max-width: 52ch; margin: 0 auto 6px; color: var(--mv-muted); }

.mv-mobilebar { display: none; }
@media (max-width: 782px) {
  .mv-mobilebar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990;
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(251, 250, 245, 0.92); backdrop-filter: blur(14px);
    border-top: 1px solid var(--mv-line);
  }
  .mv-mobilebar .mv-btn { justify-content: center; padding: 13px 10px; font-size: 0.93rem; box-shadow: none; }
  .mv-page { padding-bottom: 76px; }
}

@media (max-width: 600px) {
  .mv-wrap { width: min(100% - 32px, var(--mv-max)); }
  .mv-page { font-size: 1rem; }
  .mv-cta-row .mv-btn { width: 100%; justify-content: center; }
  .mv-map iframe { height: 300px; }
  .mv-photo img { aspect-ratio: 16 / 10; }
  .mv-photo--placeholder { aspect-ratio: 16 / 9; }
  .mv-facts { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .mv-page * { transition-duration: 0.01ms !important; }
}

/* ============ HEADER FIXO — alinhamento mobile ============ */
@media (max-width: 782px) {
  div[data-elementor-id="331"] > .e-con,
  div[data-elementor-id="331"] .e-con-inner {
    position: relative;
  }
  div[data-elementor-id="331"] .elementor-element-9ba71a1 {
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center;
  }
  div[data-elementor-id="331"] .elementor-element-9ba71a1 img {
    max-width: 138px;
    height: auto;
  }
}

/* ============ SEÇÕES VIA SHORTCODE (home) ============ */
.mv-sec-head { text-align: center; margin: 0 0 26px; }
.mv-sec-label {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 12px;
  color: var(--mv-forest-700); font-family: var(--mv-sans); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
}
.mv-sec-label::before, .mv-sec-label::after { width: 26px; height: 1px; content: ""; background: currentColor; opacity: 0.7; }
.mv-sec-title {
  margin: 0; color: var(--mv-forest-950);
  font-family: var(--mv-serif); font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  font-weight: 600; letter-spacing: -0.015em; line-height: 1.1; text-wrap: balance;
}
.mv-sec-sub { margin: 10px auto 0; max-width: 56ch; color: var(--mv-muted); font-family: var(--mv-sans); font-size: 1rem; line-height: 1.6; }

/* ============ CARROSSEL DE PROCEDIMENTOS ============ */
.mv-carousel-wrap { position: relative; }
.mv-carousel {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 300px);
  gap: 14px; overflow-x: auto; padding: 6px 4px 18px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; scrollbar-color: rgba(15, 81, 61, 0.35) transparent;
}
.mv-carousel::-webkit-scrollbar { height: 6px; }
.mv-carousel::-webkit-scrollbar-thumb { background: rgba(15, 81, 61, 0.28); border-radius: 3px; }
.mv-carousel .mv-card { scroll-snap-align: start; min-height: 128px; align-items: flex-start; flex-direction: column; }
.mv-carousel .mv-card .mv-card-arrow { align-self: flex-end; margin-top: auto; }
.mv-carousel-more { text-align: center; margin: 8px 0 0; }
.mv-carousel-more a { color: var(--mv-forest-700); font-family: var(--mv-sans); font-weight: 500; text-decoration: underline; text-decoration-color: rgba(23, 102, 78, 0.35); text-underline-offset: 3px; }

/* ============ FINDER DE UNIDADES ============ */
.mv-finder { font-family: var(--mv-sans); }
.mv-finder-search { position: relative; max-width: 560px; margin: 0 auto 20px; }
.mv-finder-search input {
  width: 100%; padding: 16px 20px 16px 48px;
  border: 1px solid var(--mv-line); border-radius: 14px;
  background: rgba(255, 255, 255, 0.92); color: var(--mv-ink);
  font-family: var(--mv-sans); font-size: 1rem;
  box-shadow: var(--mv-shadow); outline: none;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
.mv-finder-search input:focus { border-color: rgba(23, 102, 78, 0.5); box-shadow: var(--mv-shadow-lift); }
.mv-finder-search svg { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--mv-forest-700); }
.mv-finder-layout { display: grid; grid-template-columns: minmax(300px, 5fr) 7fr; gap: 16px; align-items: start; }
.mv-finder-list { display: grid; gap: 10px; max-height: 430px; overflow-y: auto; padding: 2px 6px 2px 2px; scrollbar-width: thin; }
.mv-finder-list .mv-card { min-height: 84px; padding: 14px 16px 14px 18px; }
.mv-finder-list .mv-card strong { font-size: 1.18rem; }
.mv-finder-empty { color: var(--mv-muted); font-size: 0.92rem; padding: 14px 6px; display: none; }
.mv-finder-map {
  border-radius: var(--mv-r-lg); overflow: hidden;
  border: 1px solid var(--mv-line); box-shadow: var(--mv-shadow);
  height: 430px; background: var(--mv-mint-50);
}
.mv-finder-map .leaflet-container { height: 100%; width: 100%; font-family: var(--mv-sans); }
.mv-pin {
  width: 34px; height: 34px; display: grid; place-items: center;
  background: var(--mv-forest-900); color: #fff; border: 2px solid #fff;
  border-radius: 50% 50% 50% 4px; transform: rotate(-45deg);
  box-shadow: 0 6px 14px rgba(6, 45, 34, 0.35);
}
.mv-pin span { transform: rotate(45deg); font-family: var(--mv-serif); font-size: 1rem; font-weight: 700; line-height: 1; }
.leaflet-popup-content-wrapper { border-radius: 12px; box-shadow: var(--mv-shadow-lift); }
.leaflet-popup-content { font-family: var(--mv-sans); margin: 12px 16px; }
.leaflet-popup-content b { font-family: var(--mv-serif); font-size: 1.05rem; color: var(--mv-forest-950); }
.leaflet-popup-content a { color: var(--mv-forest-700); }
@media (max-width: 900px) {
  .mv-finder-layout { grid-template-columns: 1fr; }
  .mv-finder-map { height: 340px; order: -1; }
  .mv-finder-list { max-height: none; overflow: visible; }
}

/* ============ FIXES home v2 ============ */
div[data-elementor-id="309"] div[data-id="51dc70b"] { --flex-direction: column; --align-items: center; }
div[data-id="51dc70b"] .elementor-widget-heading, div[data-id="51dc70b"] .elementor-widget-shortcode { width: 100%; }
div[data-id="51dc70b"] .elementor-widget-heading .elementor-heading-title { text-align: center; }
.mv-card, .mv-card span, .mv-card strong, .mv-card small { text-decoration: none !important; }
.mv-carousel .mv-card, .mv-finder .mv-card { text-decoration: none !important; }

div[data-id="51dc70b"].e-con { flex-direction: column !important; align-items: center !important; }
div[data-id="51dc70b"] > .elementor-widget-heading, div[data-id="51dc70b"] > .elementor-widget-shortcode { width: 100% !important; max-width: 100% !important; }

div[data-id="51dc70b"] > .e-con-inner { flex-direction: column !important; align-items: center !important; }

/* ============ TIMELINE (sobre) ============ */
.mv-timeline { list-style: none; margin: 10px 0 0; padding: 0 0 0 26px; border-left: 2px solid rgba(15, 81, 61, 0.18); display: grid; gap: 22px; }
.mv-timeline li { position: relative; }
.mv-timeline li::before { content: ""; position: absolute; left: -33px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--mv-forest-700); border: 2px solid var(--mv-cream); box-shadow: 0 0 0 2px rgba(15, 81, 61, 0.25); }
.mv-timeline b { display: block; font-family: var(--mv-serif); font-size: 1.22rem; color: var(--mv-forest-950); margin-bottom: 2px; }
.mv-timeline p { margin: 0; color: #45564e; }
.mv-pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin: 6px 0 0; }
.mv-pillar { background: rgba(255,255,255,0.85); border: 1px solid var(--mv-line); border-radius: var(--mv-r-lg); padding: 22px; box-shadow: var(--mv-shadow); }
.mv-pillar b { display: block; font-family: var(--mv-serif); font-size: 1.3rem; color: var(--mv-forest-900); margin-bottom: 6px; }
.mv-pillar p { margin: 0; font-size: 0.95rem; color: #45564e; }
.mv-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; text-align: center; margin: 8px 0 0; }
.mv-stat b { display: block; font-family: var(--mv-serif); font-size: 2.4rem; font-weight: 700; color: var(--mv-forest-800); line-height: 1; }
.mv-stat span { color: var(--mv-muted); font-size: 0.86rem; letter-spacing: 0.06em; text-transform: uppercase; }

/* Header mobile v4: libelula central, hamburguer a direita, menu full-width */
@media (max-width: 782px) {
  .elementor-331 .elementor-element.elementor-element-541fca2 { min-height: 89px; gap: 0 !important; justify-content: center !important; align-items: center !important; }
  .elementor-331 .elementor-element.elementor-element-04ac76d { position: static !important; }
  .elementor-331 .elementor-element.elementor-element-541fca2 > .elementor-element.elementor-element-9ba71a1 { position: static !important; margin: 0 !important; }
  .elementor-331 .elementor-element.elementor-element-9ba71a1 .elementor-widget-container { margin: 0 auto !important; }
  .elementor-331 .elementor-element.elementor-element-541fca2 .wpr-mobile-toggle-wrap { position: absolute !important; left: auto !important; right: 14px !important; top: 50% !important; transform: translateY(-50%) !important; margin: 0 !important; }
  .elementor-331 .wpr-mobile-nav-menu { width: 100% !important; max-width: 100% !important; left: 0 !important; right: 0 !important; box-sizing: border-box !important; }
  .elementor-331 .wpr-mobile-nav-menu ul, .elementor-331 .wpr-mobile-nav-menu li, .elementor-331 .wpr-mobile-nav-menu a { max-width: 100% !important; width: 100% !important; box-sizing: border-box !important; white-space: normal !important; }
}

/* Finder v2: lista so aparece quando o visitante busca */
.mv-finder-empty { display: none; }
.mv-finder--idle .mv-finder-list { display: none !important; }
.mv-finder--idle .mv-finder-layout { grid-template-columns: 1fr; }
.mv-body :target { scroll-margin-top: 130px; }

/* Ajustes finos: counters centrados opticamente e respiro do finder */
.elementor-element-77eea1b .elementor-widget-counter { margin-left: auto !important; margin-right: auto !important; }
.elementor-element-77eea1b .elementor-counter-number-wrapper { justify-content: center !important; }
.elementor-element-77eea1b .elementor-counter-number-prefix,
.elementor-element-77eea1b .elementor-counter-number-suffix { flex-grow: 0 !important; }
.mv-finder { margin-top: 18px; padding-bottom: 44px; }
.mv-finder-search { margin-bottom: 26px; }
