/* =============================================================
   Marketing Solutions — page-marketing-solutions.php
   Prefixo .ms- em todas as classes de página.
   NÃO duplica .hero__topbar, .hero__media, .hero__fallback-image
   (definidos no style.css principal).
   ============================================================= */

/* -----------------------------------------------------------
   Variáveis locais (herdam do tema quando disponíveis)
   ----------------------------------------------------------- */
:root {
  --ms-green:  #51e02e;
  --ms-dark:   #0d0d0d;
  --ms-white:  #fff;
  --ms-gray:   #8a8a8a;
  --ms-gray-2: #b5b5b5;
  --ms-light:  #f7f7f5;
  --ms-line:   rgba(255, 255, 255, .14);
  --ms-line-d: rgba(0, 0, 0, .12);
  --ms-font:   var(--font-primary, "Montserrat", sans-serif);
}

/* -----------------------------------------------------------
   Wrapper de página
   ----------------------------------------------------------- */
.ms-page {
  font-family: var(--ms-font);
  -webkit-font-smoothing: antialiased;
}

/* -----------------------------------------------------------
   HERO
   ----------------------------------------------------------- */
.ms-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 560px;
  background: var(--ms-dark);
  overflow: hidden;
  color: var(--ms-white);
}

.ms-hero__body {
  position: relative;
  z-index: 2;
  padding-top: clamp(140px, 18vw, 200px);
  padding-bottom: clamp(60px, 8vw, 96px);
}

.ms-hero__crumb {
  font-size: 10px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .62);
  margin-bottom: 26px;
  font-weight: 600;
}

.ms-hero__title {
  font-size: clamp(32px, 4.4vw, 60px);
  font-weight: 300;
  letter-spacing: -.02em;
  line-height: 1.06;
  max-width: 16ch;
  color: var(--ms-white);
  margin: 0;
}

.ms-hero__title em {
  font-style: italic;
  font-weight: 800;
}

.ms-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 48px;
  align-items: end;
  margin-top: 56px;
}

.ms-hero__btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.ms-hero__lead {
  margin: 0;
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.7;
  color: rgba(255, 255, 255, .75);
}

/* -----------------------------------------------------------
   Botões
   ----------------------------------------------------------- */
.ms-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  font-family: var(--ms-font);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: background .2s, border-color .2s, color .2s;
  cursor: pointer;
}

.ms-btn--primary {
  background: var(--ms-green);
  color: #000;
  border: none;
}

.ms-btn--primary:hover {
  background: #6efa45;
}

.ms-btn--outline {
  border: 1px solid rgba(255, 255, 255, .55);
  color: var(--ms-white);
  background: transparent;
}

.ms-btn--outline:hover {
  background: rgba(255, 255, 255, .12);
}

.ms-btn--dark {
  background: var(--ms-dark);
  color: var(--ms-white);
  border: none;
}

.ms-btn--dark:hover {
  background: #262626;
}

/* -----------------------------------------------------------
   FAIXA VERDE
   ----------------------------------------------------------- */
.ms-bar {
  background: var(--ms-green);
  color: #000;
}

.ms-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 16px;
  padding-bottom: 16px;
  flex-wrap: wrap;
}

.ms-bar__link {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #000;
}

/* -----------------------------------------------------------
   PILARES + ESTATÍSTICAS
   ----------------------------------------------------------- */
.ms-pillars {
  background: var(--ms-dark);
  color: var(--ms-white);
  padding: clamp(48px, 6vw, 78px) 0;
  text-align: center;
}

.ms-pillars__row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  font-size: clamp(14px, 1.2vw, 18px);
  font-weight: 300;
  color: #ededed;
}

.ms-pillars__dot {
  color: var(--ms-green);
  font-size: 10px;
}

.ms-stats {
  display: flex;
  justify-content: center;
  gap: clamp(30px, 7vw, 110px);
  margin-top: 46px;
  flex-wrap: wrap;
}

.ms-stat {
  text-align: center;
}

.ms-stat__num {
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 800;
  color: var(--ms-green);
  letter-spacing: -.03em;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.ms-stat__num::before {
  content: "〈";
  font-weight: 300;
  opacity: .85;
}

.ms-stat__num::after {
  content: "〉";
  font-weight: 300;
  opacity: .85;
}

.ms-stat__cap {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 300;
  color: #e4e4e4;
  max-width: 24ch;
  margin-inline: auto;
}

/* -----------------------------------------------------------
   EYEBROW
   ----------------------------------------------------------- */
.ms-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ms-gray);
}

.ms-eyebrow::before {
  content: "〈";
  color: var(--ms-gray);
}

.ms-eyebrow::after {
  content: "〉";
  color: var(--ms-gray);
}

.ms-eyebrow--light {
  color: rgba(255, 255, 255, .55);
}

.ms-eyebrow--light::before,
.ms-eyebrow--light::after {
  color: rgba(255, 255, 255, .55);
}

.ms-eyebrow--cta {
  color: #0b3d00;
}

.ms-eyebrow--cta::before,
.ms-eyebrow--cta::after {
  color: #0b3d00;
  content: "";
}

/* -----------------------------------------------------------
   SEÇÕES GENÉRICAS
   ----------------------------------------------------------- */
.ms-section {
  padding: clamp(64px, 8vw, 110px) 0;
}

.ms-section--light {
  background: var(--ms-white);
  color: var(--ms-dark);
}

.ms-section--dark {
  background: var(--ms-dark);
  color: var(--ms-white);
}

.ms-section__heading {
  font-size: clamp(28px, 3.6vw, 52px);
  font-weight: 300;
  letter-spacing: -.02em;
  line-height: 1.06;
  margin: 18px 0 0;
}

.ms-section__heading em {
  font-style: italic;
  font-weight: 800;
}

.ms-section__heading--light {
  color: var(--ms-white);
}

/* -----------------------------------------------------------
   SPLIT (abertura)
   ----------------------------------------------------------- */
.ms-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(32px, 6vw, 90px);
  align-items: start;
  margin-top: 26px;
}

.ms-split__heading {
  font-size: clamp(28px, 3.6vw, 52px);
  font-weight: 300;
  letter-spacing: -.02em;
  line-height: 1.06;
  margin: 0;
}

.ms-split__heading em {
  font-style: italic;
  font-weight: 800;
}

.ms-split__content p {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.75;
  color: #3a3a3a;
  max-width: 52ch;
}

/* -----------------------------------------------------------
   CHIPS
   ----------------------------------------------------------- */
.ms-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.ms-chip {
  border: 1px solid rgba(81, 224, 46, .55);
  color: var(--ms-green);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .02em;
  white-space: nowrap;
}

/* -----------------------------------------------------------
   GRID DE SERVIÇOS (7 cards)
   ----------------------------------------------------------- */
.ms-grid7 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 52px;
}

/* Card base */
.ms-card {
  background: #0b0b0b;
  border: 1px solid var(--ms-line);
  border-radius: 10px;
  padding: 30px 28px 32px;
  display: flex;
  flex-direction: column;
  min-height: 290px;
  transition: border-color .25s, background .25s, transform .25s;
}

.ms-card:hover {
  border-color: rgba(81, 224, 46, .55);
  background: #0f1409;
  transform: translateY(-3px);
}

.ms-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}

.ms-card__bullet {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ms-green);
  box-shadow: 0 0 12px rgba(81, 224, 46, .8);
}

.ms-card__idx {
  font-size: 11px;
  color: var(--ms-gray);
  letter-spacing: .1em;
  font-weight: 500;
}

.ms-card__title {
  font-size: 22px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -.01em;
  margin: 0 0 18px;
  color: var(--ms-white);
}

.ms-card p {
  margin: auto 0 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: #bdbdbd;
}

/* Card wide (card 04) */
.ms-card--wide {
  grid-column: span 2;
  flex-direction: row;
  gap: 0;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
}

.ms-card--wide .ms-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 30px 28px 32px;
  min-width: 0;
}

.ms-card--wide .ms-card__body p {
  margin: auto 0 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: #bdbdbd;
}

.ms-card__shot {
  width: 36%;
  min-width: 190px;
  flex: none;
  background: #111;
  position: relative;
  overflow: hidden;
}

.ms-card__shot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.ms-card__shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #0b0b0b 0%, rgba(11, 11, 11, 0) 22%);
  pointer-events: none;
}

/* -----------------------------------------------------------
   DIFERENCIAIS (4 cards)
   ----------------------------------------------------------- */
.ms-grid4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 52px;
}

.ms-dcard {
  background: var(--ms-light);
  border-radius: 8px;
  padding: 30px 26px 32px;
  display: flex;
  flex-direction: column;
}

.ms-dcard__rule {
  width: 26px;
  height: 3px;
  background: var(--ms-green);
  margin-bottom: 26px;
}

.ms-dcard__title {
  font-size: 16px;
  font-style: italic;
  font-weight: 700;
  color: #5e5e5e;
  letter-spacing: .01em;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ms-line-d);
  margin: 0 0 18px;
}

.ms-dcard p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: #4a4a4a;
}

/* -----------------------------------------------------------
   METADOCTORS
   ----------------------------------------------------------- */
.ms-meta {
  position: relative;
  background: var(--ms-dark);
  color: var(--ms-white);
  overflow: hidden;
}

.ms-meta__image {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 50%;
  overflow: hidden;
  background: #111;
}

.ms-meta__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.ms-meta__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 60px);
  align-items: center;
}

.ms-meta__body {
  padding: clamp(54px, 6vw, 86px) 0;
  grid-column: 2;
}

.ms-meta__heading {
  font-size: clamp(28px, 3.4vw, 50px);
  font-weight: 300;
  letter-spacing: -.02em;
  line-height: 1.06;
  margin: 18px 0 24px;
}

.ms-meta__heading em {
  font-style: italic;
  font-weight: 800;
}

.ms-meta__lead {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.65;
  color: #e8e8e8;
  max-width: 46ch;
  margin: 0;
}

.ms-highlight {
  margin-top: 30px;
  border-left: 3px solid var(--ms-green);
  background: linear-gradient(90deg, rgba(81, 224, 46, .14), rgba(81, 224, 46, 0));
  padding: 22px 24px;
  border-radius: 0 8px 8px 0;
}

.ms-highlight strong {
  display: block;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ms-white);
  margin-bottom: 10px;
}

.ms-highlight p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: #c9c9c9;
  max-width: 52ch;
}

.ms-chips--highlight {
  margin: 18px 0 0;
}

.ms-meta__stats {
  display: flex;
  gap: clamp(24px, 4vw, 64px);
  margin-top: 38px;
  flex-wrap: wrap;
}

.ms-meta__stats .ms-stat__num {
  font-size: clamp(28px, 3.2vw, 42px);
}

.ms-meta__stats .ms-stat__cap {
  color: #dadada;
  font-size: 13px;
}

/* -----------------------------------------------------------
   CTA
   ----------------------------------------------------------- */
.ms-cta {
  background: var(--ms-green);
  color: #000;
  padding: clamp(56px, 7vw, 92px) 0 0;
}

.ms-cta__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(30px, 5vw, 70px);
  align-items: start;
}

.ms-cta__heading {
  font-size: clamp(26px, 3.2vw, 48px);
  font-weight: 300;
  letter-spacing: -.02em;
  line-height: 1.06;
  max-width: 17ch;
  margin: 16px 0 0;
}

.ms-cta__heading em {
  font-style: italic;
  font-weight: 800;
}

.ms-cta__text {
  font-size: 15px;
  line-height: 1.7;
  color: #123b04;
  max-width: 46ch;
  margin: 0 0 30px;
}

.ms-cta__foot {
  margin-top: clamp(44px, 6vw, 72px);
  border-top: 1px solid rgba(0, 0, 0, .22);
  padding: 26px 0 34px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.ms-cta__label {
  font-size: 10.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 700;
  color: #194a06;
  margin-bottom: 10px;
}

.ms-cta__value {
  font-size: 14px;
  font-weight: 500;
}

.ms-cta__right {
  text-align: right;
}

/* -----------------------------------------------------------
   CONTAINER (alinha com o tema)
   ----------------------------------------------------------- */
.ms-page .container {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* -----------------------------------------------------------
   RESPONSIVO — 992px
   ----------------------------------------------------------- */
@media (max-width: 992px) {
  .ms-grid7 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ms-card--wide {
    grid-column: span 2;
  }

  .ms-grid4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* -----------------------------------------------------------
   RESPONSIVO — 768px
   ----------------------------------------------------------- */
@media (max-width: 768px) {
  .ms-hero__grid,
  .ms-split,
  .ms-cta__grid,
  .ms-meta__inner {
    grid-template-columns: 1fr;
  }

  .ms-meta__image {
    position: relative;
    width: auto;
    height: 280px;
  }

  .ms-meta__body {
    grid-column: 1;
    padding-top: 40px;
  }

  .ms-cta__foot {
    grid-template-columns: 1fr;
  }

  .ms-cta__right {
    text-align: left;
  }
}

/* -----------------------------------------------------------
   RESPONSIVO — 600px
   ----------------------------------------------------------- */
@media (max-width: 600px) {
  .ms-grid7,
  .ms-grid4 {
    grid-template-columns: 1fr;
  }

  .ms-card--wide {
    grid-column: span 1;
    flex-direction: column;
  }

  .ms-card__shot {
    width: 100%;
    height: 190px;
  }

  .ms-pillars__dot {
    display: none;
  }
}
