/*
Theme Name: MS Theme
Theme URI: https://midiasim.com.br
Author: Seu Nome
Author URI: https://midiasim.com.br
Description: Tema base WordPress com estrutura inicial.
Version: 1.2.1
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: ms-theme
*/

:root {
  --container-width: 1280px;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;

  --color-bg: #ffffff;
  --color-surface: #ffffff;
  --color-text: #171717;
  --color-muted: #666666;
  --color-accent: #621851;
  --color-border: #efe9ed;

  /* Paleta da marca Velloznet */
  --brand-plum: #4d123f;
  --brand-purple: #621851;
  --brand-violet: #a136eb;
  --brand-orange: #ec731c;
  --brand-orange-dark: #d9620f;
  --brand-green: #25d366;

  --radius-pill: 999px;
  --header-height: 76px;
  --font-sans: "Poppins", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--brand-orange);
}

:focus-visible {
  outline: 3px solid var(--brand-violet);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 32px);
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2000;
}

.skip-link:focus {
  left: 8px;
  top: 8px;
  width: auto;
  height: auto;
  clip: auto;
  padding: 10px 16px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(23, 20, 26, 0.2);
}

/* ===== BOTÕES GLOBAIS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  text-align: center;
  font: 700 14px/1 var(--font-sans);
  letter-spacing: 0.06em;
  border-radius: var(--radius-pill);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn--assine {
  min-height: 48px;
  padding: 14px 26px !important;
  background: var(--brand-orange);
  color: #fff;
  font-weight: 700 !important;
  box-shadow: 0 8px 20px rgba(236, 115, 28, 0.3);
}

.btn--assine:hover,
.btn--assine:focus {
  background: var(--brand-orange-dark);
  color: #fff;
  transform: translateY(-1px);
}

.btn--assine-sm {
  min-height: 44px;
  padding: 12px 18px;
  font-size: 13px;
  letter-spacing: 0.05em;
  box-shadow: none;
}

.btn--outline {
  min-height: 50px;
  padding: 15px 26px;
  background: transparent;
  color: var(--brand-orange);
  border: 2px solid var(--brand-orange);
  letter-spacing: 0.06em;
}

.btn--outline:hover,
.btn--outline:focus {
  background: var(--brand-orange);
  color: #fff;
}

.btn--purple {
  min-height: 50px;
  padding: 15px 22px;
  background: var(--brand-purple);
  color: #fff;
  letter-spacing: 0.06em;
}

.btn--purple:hover,
.btn--purple:focus {
  background: var(--brand-plum);
  color: #fff;
}

/* ===== TOPBAR ===== */
.vn-topbar {
  background: var(--brand-plum);
  color: #fff;
}

.vn-topbar__inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 clamp(20px, 2.6vw, 32px);
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.vn-topbar__phone {
  color: #fff;
  font: 600 13px/1 var(--font-sans);
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.vn-topbar__phone:hover {
  color: var(--brand-orange);
}

.vn-topbar__dot {
  width: 7px;
  height: 7px;
  border-radius: var(--radius-pill);
  background: var(--brand-orange);
  display: inline-block;
}

.vn-topbar__right {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 30px);
}

.vn-topbar__client-btn {
  background: none;
  border: 0;
  color: #fff;
  font: 600 13px/1 var(--font-sans);
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  padding: 12px 0;
}

.vn-topbar__client-ring {
  width: 16px;
  height: 16px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--brand-orange);
  display: inline-block;
}

.vn-topbar__social {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vn-topbar__social a {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font: 700 11px/1 var(--font-sans);
}

.vn-topbar__social a:hover {
  background: var(--brand-orange);
  border-color: var(--brand-orange);
  color: #fff;
}

/* ===== Ícones das redes sociais =====
   Os SVGs são usados como máscara e coloridos com currentColor, de modo que
   o ícone herda a cor do link (branco) e permanece visível no hover laranja. */
.social-icon {
  display: block;
  width: 22px;
  height: 22px;
  background-color: currentColor;
  -webkit-mask: center / contain no-repeat;
  mask: center / contain no-repeat;
}

.social-icon--instagram {
  -webkit-mask-image: url(assets/images/instagram.svg);
  mask-image: url(assets/images/instagram.svg);
}

.social-icon--facebook {
  -webkit-mask-image: url(assets/images/facebook.svg);
  mask-image: url(assets/images/facebook.svg);
}

.social-icon--linkedin {
  -webkit-mask-image: url(assets/images/linkedin.svg);
  mask-image: url(assets/images/linkedin.svg);
}

.vn-topbar__social .social-icon {
  width: 15px;
  height: 15px;
}

/* ===== DROPDOWN (compartilhado topbar + nav) ===== */
.vn-dropdown {
  position: relative;
  display: flex;
}

.vn-dropdown__caret {
  font-size: 9px;
  color: var(--brand-orange);
}

.vn-topbar__client .vn-dropdown__caret {
  color: #fff;
  opacity: 0.8;
}

.vn-dropdown__menu {
  position: absolute;
  top: 100%;
  left: -12px;
  z-index: 60;
  background: #fff;
  border-radius: 16px;
  padding: 10px;
  min-width: 230px;
  box-shadow: 0 20px 44px rgba(77, 18, 63, 0.18);
  border: 1px solid #f0ebee;
  display: none;
  flex-direction: column;
}

.vn-dropdown__menu--right {
  left: auto;
  right: 0;
}

.vn-dropdown.is-open .vn-dropdown__menu {
  display: flex;
}

.vn-dropdown__menu a {
  padding: 12px 14px;
  border-radius: 10px;
  font: 500 14px/1.2 var(--font-sans);
  color: var(--color-text);
}

.vn-dropdown__menu a:hover {
  background: #f9f5f8;
  color: var(--brand-purple);
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 6px 22px rgba(23, 23, 23, 0.05);
}

.site-header__inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: clamp(12px, 1.4vw, 18px) clamp(20px, 2.6vw, 32px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 2vw, 32px);
}

.site-branding {
  flex: 0 0 auto;
  display: block;
}

.site-branding img {
  width: clamp(148px, 14vw, 196px);
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(6px, 1.1vw, 16px);
}

.main-nav__link {
  font: 600 15px/1 var(--font-sans);
  color: var(--color-text);
  padding: 10px 6px;
  background: none;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.main-nav__link:hover,
.main-nav__link:focus {
  color: var(--brand-orange);
}

.main-nav .vn-dropdown {
  display: block;
}

.main-nav .vn-dropdown__menu {
  min-width: 240px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.4vw, 18px);
  flex: 0 0 auto;
}

.app-download {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--brand-purple);
}

.app-download:hover {
  color: var(--brand-orange);
}

.app-download__icon {
  width: 25px;
  height: 25px;
  border-radius: 11px;
  background: #f7f1f5;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 800 14px/1 var(--font-sans);
  color: var(--brand-orange);
}

.app-download__text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.app-download__title {
  font: 700 13px/1.25 var(--font-sans);
  color: #fff;
}

.app-download__sub {
  font: 400 12px/1.25 var(--font-sans);
  color: var(--color-muted);
}

/* Ações mobile (hamburger) */
.mobile-actions {
  display: none;
  align-items: center;
  gap: 10px;
}

.mobile-menu-toggle {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid #eadfe6;
  background: #fff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.mobile-menu-toggle__bar {
  width: 20px;
  height: 2px;
  background: var(--brand-purple);
  border-radius: 2px;
  display: block;
}

/* Painel mobile */
.mobile-panel {
  border-top: 1px solid var(--color-border);
  background: #fff;
  max-height: 72vh;
  overflow-y: auto;
  padding: 14px clamp(20px, 2.6vw, 32px) 26px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-panel[hidden] {
  display: none;
}

.mobile-panel__link,
.mobile-panel__acc {
  padding: 15px 4px;
  border-bottom: 1px solid #f4eff2;
  font: 600 16px/1 var(--font-sans);
  color: var(--color-text);
  background: none;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  text-align: left;
  cursor: pointer;
}

.mobile-panel__acc {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-panel__sign {
  color: var(--brand-orange);
  font-size: 13px;
}

.mobile-panel__sub {
  display: flex;
  flex-direction: column;
  padding: 4px 0 10px 14px;
  gap: 2px;
  border-left: 2px solid #f0e6ec;
  margin-left: 4px;
}

.mobile-panel__sub[hidden] {
  display: none;
}

.mobile-panel__sub a {
  padding: 13px 8px;
  font: 500 15px/1.2 var(--font-sans);
  color: var(--brand-plum);
}

.mobile-panel__label {
  margin: 18px 0 8px;
  font: 700 12px/1 var(--font-sans);
  letter-spacing: 0.12em;
  color: var(--brand-violet);
}

.mobile-panel__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.mobile-panel__grid a {
  padding: 13px 14px;
  border-radius: 12px;
  background: #f7f7f7;
  font: 500 14px/1.2 var(--font-sans);
  color: var(--brand-plum);
}

.mobile-panel__social {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.mobile-panel__social a {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-plum);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 700 12px/1 var(--font-sans);
}

.mobile-panel__wa {
  flex: 1;
  background: var(--brand-green) !important;
  letter-spacing: 0.04em;
  font-size: 13px !important;
}

body.mobile-panel-open {
  overflow: hidden;
}

/* Alterna nav desktop / mobile no breakpoint do design (1024px) */
@media (max-width: 1023.98px) {
  .main-nav,
  .header-actions {
    display: none;
  }

  .mobile-actions {
    display: flex;
  }
}

@media (min-width: 1024px) {
  .mobile-panel {
    display: none !important;
  }
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--brand-purple);
  color: #fff;
  padding: clamp(36px, 5vw, 72px) 0 0;
}

.site-footer__inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 clamp(20px, 2.6vw, 32px);
}

.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(24px, 3vw, 44px);
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.site-footer__brand img {
  width: 190px;
  height: auto;
}

.site-footer__brand p {
  margin: 0;
  font: 400 14px/1.7 var(--font-sans);
  color: #e7d3e1;
  max-width: 40ch;
}

.site-footer__social {
  display: flex;
  gap: 10px;
}

.site-footer__social a {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 700 12px/1 var(--font-sans);
}

.site-footer__social a:hover {
  background: var(--brand-orange);
  color: #fff;
}

.site-footer__nav,
.site-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer__nav h3,
.site-footer__contact h3 {
  margin: 0 0 6px;
  font: 700 15px/1 var(--font-sans);
  letter-spacing: 0.1em;
  color: #fff;
  text-transform: uppercase;
}

.site-footer__nav a,
.site-footer__contact a {
  font: 400 14px/1.5 var(--font-sans);
  color: #e7d3e1;
  padding: 5px 0;
}

.site-footer__nav a:hover,
.site-footer__contact a:hover {
  color: var(--brand-orange);
}

.site-footer__phone {
  font: 700 17px/1.4 var(--font-sans) !important;
  color: #fff !important;
  padding: 0 !important;
}

.site-footer__phone:hover {
  color: var(--brand-orange) !important;
}

/* Contatos com ícone do WhatsApp: alinha o SVG à linha de texto. */
.site-footer__phone,
.site-footer__wa-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.site-footer__wa-icon {
  flex: 0 0 auto;
  color: #25d366;
}

.site-footer__hours {
  margin: 6px 0 0;
  font: 400 13px/1.6 var(--font-sans);
  color: #c9a3bc;
}

.site-footer__contact .btn--assine {
  margin-top: 8px;
  align-self: flex-start;
}

/* Eventos e parcerias: faixa própria entre as colunas e o rodapé de créditos. */
.site-footer__partners {
  margin-top: clamp(24px, 3vw, 40px);
  padding-top: clamp(18px, 2.2vw, 26px);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.site-footer__partners h3 {
  margin: 0 0 6px;
  font: 700 15px/1 var(--font-sans);
  letter-spacing: 0.1em;
  color: #fff;
  text-transform: uppercase;
}

.site-footer__partners p {
  margin: 0;
  font: 400 14px/1.6 var(--font-sans);
  color: #e7d3e1;
}

.site-footer__partners a {
  color: #fff;
  font-weight: 700;
}

.site-footer__partners a:hover {
  color: var(--brand-orange);
}

.site-footer__bottom {
  margin-top: clamp(20px, 2.4vw, 32px);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding: 20px 0 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.site-footer__bottom p {
  margin: 0;
  text-align: center;
  font: 400 13px/1.6 var(--font-sans);
  color: #d9b6cc;
}

.site-footer__bottom a {
  color: #fff;
  font-weight: 700;
}

.site-footer__bottom a:hover {
  color: var(--brand-orange);
}

/* ===== BOTÃO FLUTUANTE WHATSAPP ===== */
@keyframes vpulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45);
  }
  70% {
    box-shadow: 0 0 0 18px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.vn-whatsapp-float {
  position: fixed;
  right: clamp(16px, 2vw, 28px);
  bottom: clamp(16px, 2vw, 28px);
  z-index: 70;
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: var(--radius-pill);
  background: var(--brand-green);
  color: #fff;
  font: 700 14px/1 var(--font-sans);
  box-shadow: 0 12px 28px rgba(23, 23, 23, 0.22);
  animation: vpulse 2.8s ease-out infinite;
}

.vn-whatsapp-float:hover {
  background: #1eb855;
  color: #fff;
}

@media (max-width: 640px) {
  .vn-whatsapp-float__text {
    display: none;
  }
	.vn-topbar {
		display:none;
	}
}

/* ===== TEMPLATES DE CONTEÚDO (blog / páginas internas) ===== */
.wrap {
  width: min(100% - 2rem, var(--container-width));
  margin-inline: auto;
}

.site-content {
  padding: var(--space-4) 0;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 900px) {
  .content-grid.has-sidebar {
    grid-template-columns: 2fr 1fr;
  }
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: var(--space-3);
}

.entry-title {
  margin-top: 0;
  line-height: 1.25;
}

.entry-meta {
  color: var(--color-muted);
  font-size: 0.95rem;
}

.widget-title {
  margin-top: 0;
}

.not-found {
  text-align: center;
}

/* ===== UTILITÁRIOS DE SEÇÃO (compartilhados entre páginas) ===== */
/* Promovidos de assets/css/home.css para ficarem disponíveis em todas as
   páginas do tema (home, sobre-nos, apps). */
.section {
  padding: clamp(40px, 6vw, 92px) 0;
}

.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  max-width: 720px;
  margin: 0 auto;
}

.post-type-archive-planos .section--planos .section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: center;
  gap: 12px;
  max-width: 100%;
  margin: 0 auto;
}

.eyebrow {
  font: 700 12px/1 var(--font-sans);
  letter-spacing: 0.18em;
}

.eyebrow--orange {
  color: var(--brand-orange);
}

.eyebrow--peach {
  color: #f7c9a2;
}

.section-title {
  margin: 0;
  font: 800 clamp(26px, 3.5vw, 44px) / 1.1 var(--font-sans);
  color: var(--color-text);
  text-wrap: pretty;
}

.section-title--light {
  color: #fff;
}

.section-sub {
  margin: 0;
  font: 400 clamp(15px, 1.4vw, 18px) / 1.55 var(--font-sans);
  color: var(--color-muted);
  text-wrap: pretty;
}

.section-sub--left {
  text-align: left;
}

/* ===== LOJAS / UNIDADES (componente compartilhado) ===== */
/* ===== LOJAS ===== */
.section--lojas {
  background: #fff;
}

.section--lojas .section-head {
  max-width: 620px;
}

.lojas-tabs {
  margin: clamp(22px, 3vw, 36px) 0 clamp(18px, 2.2vw, 26px);
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 8px;
  flex-wrap: wrap;
}

.loja-tab {
  flex: 0 0 auto;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font: 600 14px/1 var(--font-sans);
  border: 1px solid #e7dce3;
  background: #fff;
  color: var(--brand-plum);
  transition: all 0.2s ease;
}

.loja-tab.is-active {
  background: var(--brand-purple);
  color: #fff;
  border-color: var(--brand-purple);
}

.lojas-select {
  display: none;
  flex-direction: column;
  gap: 8px;
  margin: 24px 0 18px;
}

.lojas-select span {
  font: 600 12px/1 var(--font-sans);
  letter-spacing: 0.08em;
  color: var(--color-muted);
}

.lojas-select select {
  min-height: 52px;
  border-radius: 14px;
  border: 1px solid #e7dce3;
  background: #fff;
  padding: 0 14px;
  font: 600 15px/1 var(--font-sans);
  color: var(--color-text);
}

.lojas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(18px, 2.4vw, 32px);
  align-items: stretch;
}

.loja-card {
  background: #f7f7f7;
  border: 1px solid var(--color-border);
  border-radius: 22px;
  padding: clamp(22px, 2.6vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.loja-card__name {
  margin: 0;
  font: 700 clamp(19px, 2vw, 24px) / 1.3 var(--font-sans);
  color: var(--brand-plum);
}

.loja-card__address {
  margin: 0;
  font: 400 15px/1.7 var(--font-sans);
  color: #444;
}

.loja-card__phone {
  margin: 0;
  font: 500 14px/1.6 var(--font-sans);
  color: var(--color-muted);
}

.loja-card__hours {
  margin: 0;
  font: 400 13px/1.6 var(--font-sans);
  color: #999;
}

.loja-card__actions {
  margin-top: auto;
  padding-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.loja-card__actions .btn {
  min-height: 50px;
  font-size: 13px;
}

.loja-map {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: #f7f7f7;
  min-height: 320px;
}

.loja-map iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
  display: block;
}

/* Lojas: abas no desktop, seletor no mobile (breakpoint do design) */
@media (max-width: 1023.98px) {
  .lojas-tabs {
    display: none;
  }

  .lojas-select {
    display: flex;
  }
}

