/* ==========================================================================
   Mastercred - layout das páginas de crédito (lp/*.php)
   Esquema de cores da logo: verde escuro #00574f e verde claro #58a040.
   Independente de libraries.css / style.css (tema antigo).
   ========================================================================== */

:root {
  --mc-dark: #00574f;
  --mc-deep: #002b27;
  --mc-accent: #58a040;
  --mc-tint: #a6dd8b;
  --mc-link: #3b7a29;
  --mc-ink: #10231f;
  --mc-body: #47584f;
  --mc-muted: #566a5f;
  --mc-bg: #f3f7f1;
  --mc-line: #dfe8da;
  --mc-field: #f8faf6;
  --mc-field-line: #cfdccb;
  --mc-on-dark: #d5e6dc;
  --mc-on-dark-2: #b9d2c4;
  --mc-display: 'Bricolage Grotesque', 'DM Sans', system-ui, sans-serif;
  --mc-font: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mc-radius-xl: 36px;
  --mc-radius-lg: 28px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body.mc {
  margin: 0;
  background: var(--mc-bg);
  color: var(--mc-ink);
  font-family: var(--mc-font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
/* resets com :where() => especificidade zero, para as classes mc-* sempre vencerem */
:where(.mc) a { color: inherit; text-decoration: none; }
:where(.mc) img { max-width: 100%; display: block; }
:where(.mc) h1, :where(.mc) h2, :where(.mc) h3, :where(.mc) h4, :where(.mc) p, :where(.mc) figure { margin: 0; }
:where(.mc) button, :where(.mc) input, :where(.mc) select, :where(.mc) textarea { font-family: inherit; }

.mc-shell { padding: 24px 24px 0; }
.mc-container { width: min(1280px, calc(100% - 48px)); margin: 0 auto; }
.mc-section { padding: 96px 0 0; }

.mc-eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--mc-link);
}
.mc-eyebrow--light { color: var(--mc-tint); }
.mc-h2 {
  font-family: var(--mc-display); font-weight: 700; letter-spacing: -.025em;
  font-size: clamp(32px, 4vw, 54px); line-height: 1.05; color: var(--mc-dark);
}
.mc-h2--light { color: #fff; }
.mc-prose { font-size: 18px; line-height: 1.65; color: var(--mc-body); }
.mc-prose p + p { margin-top: 1em; }

/* ---- botões ------------------------------------------------------------ */
.mc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 56px; padding: 0 26px; border-radius: 999px; border: 0; cursor: pointer;
  font-size: 15px; font-weight: 700; letter-spacing: .02em;
  transition: filter .2s, transform .2s;
}
.mc-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.mc-btn--accent { background: var(--mc-accent); color: var(--mc-deep); }
.mc-btn--dark { background: var(--mc-dark); color: #fff; }
.mc-btn--ghost { border: 1px solid rgba(255, 255, 255, .38); color: #fff; background: transparent; }
.mc-btn--block { width: 100%; height: 58px; border-radius: 16px; font-size: 16px; }
.mc-btn--pill-icon { padding-right: 10px; }
.mc-btn__arrow {
  width: 36px; height: 36px; border-radius: 50%; background: var(--mc-dark); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
.mc-btn--dark .mc-btn__arrow { background: var(--mc-accent); color: var(--mc-deep); }
.mc-ico { width: 20px; height: 20px; flex-shrink: 0; }

/* ---- hero -------------------------------------------------------------- */
.mc-hero {
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  border-radius: var(--mc-radius-xl); background: var(--mc-dark);
}
.mc-hero__bg {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2;
  object-fit: cover; object-position: 75% center;
}
.mc-hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, #00574f 0%, rgba(0, 87, 79, .93) 36%, rgba(0, 87, 79, .45) 68%, rgba(0, 87, 79, .2) 100%);
}
.mc-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 28px 56px; }
.mc-logo img { width: 142px; height: auto; }
.mc-nav__cta {
  display: inline-flex; align-items: center; height: 48px; padding: 0 22px; border-radius: 999px;
  background: var(--mc-accent); color: var(--mc-deep); font-size: 15px; font-weight: 700;
  transition: filter .2s;
}
.mc-nav__cta:hover { filter: brightness(1.08); }

.mc-hero__body {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px;
  align-items: center; padding: 32px 56px 72px;
}
.mc-hero--compact .mc-hero__body { grid-template-columns: minmax(0, 780px); padding-bottom: 96px; }
.mc-hero__copy { display: flex; flex-direction: column; gap: 26px; }
.mc-pill {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 12px; border-radius: 999px; font-size: 14px; font-weight: 600;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2);
}
.mc-pill::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--mc-tint); }
.mc-hero__title {
  font-family: var(--mc-display); font-weight: 700; letter-spacing: -.03em;
  font-size: clamp(40px, 5.2vw, 72px); line-height: 1.03;
}
.mc-hero__lead { max-width: 560px; font-size: 19px; line-height: 1.55; color: var(--mc-on-dark); }
.mc-hero__lead p + p { margin-top: .8em; }
.mc-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 4px; }

.mc-stats { display: flex; flex-wrap: wrap; gap: 20px 36px; margin-top: 8px; }
.mc-stat { display: flex; flex-direction: column; gap: 4px; }
.mc-stat + .mc-stat { padding-left: 36px; border-left: 1px solid rgba(255, 255, 255, .22); }
.mc-stat b { font-family: var(--mc-display); font-size: 30px; line-height: 1.1; font-weight: 700; }
.mc-stat span { font-size: 14px; color: var(--mc-on-dark-2); }

/* ---- formulário -------------------------------------------------------- */
.mc-form {
  background: #fff; color: var(--mc-ink); border-radius: var(--mc-radius-lg);
  padding: 32px; display: flex; flex-direction: column; gap: 20px;
  box-shadow: 0 24px 60px rgba(0, 43, 39, .3);
}
.mc-form__title { font-family: var(--mc-display); font-size: 28px; font-weight: 700; letter-spacing: -.02em; color: var(--mc-dark); }
.mc-form__hint { font-size: 15px; color: var(--mc-body); margin-top: 4px; }
.mc-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.mc-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: var(--mc-ink); }
.mc-field--full { grid-column: 1 / -1; }
.mc-input {
  width: 100%; height: 52px; padding: 0 16px; border-radius: 14px;
  border: 1px solid var(--mc-field-line); background: var(--mc-field);
  font-size: 16px; font-weight: 400; color: var(--mc-ink);
}
.mc-input::placeholder { color: #5f7468; }
.mc-input:focus { outline: 2px solid var(--mc-accent); outline-offset: 1px; }
select.mc-input {
  appearance: none; -webkit-appearance: none; padding-right: 42px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2300574f' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.mc-form__note { font-size: 13px; line-height: 1.5; color: var(--mc-muted); }
.mc-form__note a { color: var(--mc-link); font-weight: 600; text-decoration: underline; }

/* ---- sobre ------------------------------------------------------------- */
.mc-about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: center; }
.mc-about__img { border-radius: var(--mc-radius-xl); overflow: hidden; background: #fff; border: 1px solid var(--mc-line); }
.mc-about__img img { width: 100%; height: auto; }
.mc-about__text { display: flex; flex-direction: column; gap: 24px; }

/* ---- galeria ----------------------------------------------------------- */
.mc-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.mc-gallery__item { border-radius: var(--mc-radius-lg); overflow: hidden; background: #fff; border: 1px solid var(--mc-line); }
.mc-gallery__item img { width: 100%; height: auto; }

/* ---- vídeo ------------------------------------------------------------- */
.mc-video {
  position: relative; isolation: isolate; overflow: hidden; text-align: center; color: #fff;
  min-height: 480px; border-radius: var(--mc-radius-xl); background: var(--mc-dark);
  display: flex; align-items: center; justify-content: center; padding: 64px 24px;
}
.mc-video__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.mc-video__shade { position: absolute; inset: 0; z-index: -1; background: rgba(0, 43, 39, .68); }
.mc-video__content { display: flex; flex-direction: column; align-items: center; gap: 22px; max-width: 760px; }
.mc-play {
  width: 88px; height: 88px; border-radius: 50%; border: 0; cursor: pointer; margin-top: 8px;
  background: #fff; color: var(--mc-dark); display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 10px rgba(255, 255, 255, .18); transition: transform .2s, box-shadow .2s;
}
.mc-play:hover { transform: scale(1.06); box-shadow: 0 0 0 16px rgba(255, 255, 255, .18); }
.mc-play svg { width: 30px; height: 30px; margin-left: 4px; }

/* ---- análise de perfil (etapas) --------------------------------------- */
.mc-process {
  position: relative; overflow: hidden; color: #fff; background: var(--mc-dark);
  border-radius: var(--mc-radius-xl); padding: 72px 56px;
}
.mc-process::before, .mc-process::after {
  content: ''; position: absolute; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .09); pointer-events: none;
}
.mc-process::before { width: 620px; height: 620px; right: -180px; top: -260px; }
.mc-process::after { width: 420px; height: 420px; right: -80px; top: -160px; }
.mc-process__grid { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.mc-process__media { display: flex; flex-direction: column; gap: 24px; }
.mc-process__media img { width: 100%; height: auto; border-radius: var(--mc-radius-lg); }
.mc-process__cta { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.mc-process__cta-title { font-family: var(--mc-display); font-size: 24px; line-height: 1.2; font-weight: 700; }
.mc-process__head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }
.mc-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.mc-step {
  display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: 24px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .13);
}
.mc-step__n { font-family: var(--mc-display); font-size: 20px; font-weight: 700; color: #93b5a3; }
.mc-step h4 { font-size: 20px; font-weight: 700; line-height: 1.25; }
.mc-step p { font-size: 15px; line-height: 1.55; color: var(--mc-on-dark); }

/* ---- bloco do simulador (páginas com conteúdo antes do formulário) ---- */
.mc-sim {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); overflow: hidden;
  border-radius: var(--mc-radius-xl); background: #fff; border: 1px solid var(--mc-line);
}
.mc-sim__info {
  position: relative; isolation: isolate; overflow: hidden; color: #fff; background: var(--mc-dark);
  padding: 56px 48px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
}
.mc-sim__info::before {
  content: ''; position: absolute; z-index: -1; width: 460px; height: 460px; border-radius: 50%;
  right: -160px; bottom: -180px; border: 1px solid rgba(255, 255, 255, .1);
}
.mc-sim__lead { font-family: var(--mc-display); font-size: clamp(24px, 2.6vw, 34px); line-height: 1.2; font-weight: 700; letter-spacing: -.015em; }
.mc-sim .mc-form { border-radius: 0; box-shadow: none; padding: 48px 56px; justify-content: center; }
.mc-sim__info .mc-stats { flex-direction: column; gap: 22px; margin-top: 0; }
.mc-sim__info .mc-stat + .mc-stat { padding-left: 0; border-left: 0; }

/* ---- rodapé ------------------------------------------------------------ */
.mc-footer-wrap { padding: 96px 24px 24px; }
.mc-footer {
  color: #fff; background: var(--mc-dark); border-radius: var(--mc-radius-xl); padding: 56px;
  display: flex; flex-direction: column; gap: 40px;
}
.mc-footer__top { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.mc-footer__cta { font-family: var(--mc-display); font-size: clamp(28px, 3.4vw, 44px); line-height: 1.06; font-weight: 700; letter-spacing: -.025em; max-width: 720px; }
.mc-footer__line { height: 1px; background: rgba(255, 255, 255, .16); }
.mc-footer__cols { display: grid; grid-template-columns: 4fr 2fr 3fr 3fr; gap: 40px; }
.mc-footer__logo { width: 168px; height: auto; margin-bottom: 16px; }
.mc-footer__about { font-size: 15px; line-height: 1.6; color: var(--mc-on-dark-2); max-width: 300px; }
.mc-footer h5 { margin: 0 0 16px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #a9c8b7; }
.mc-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.mc-footer li, .mc-footer li a { color: #e9f3ec; }
.mc-footer li a:hover { color: var(--mc-tint); }
.mc-contact-line { display: flex; align-items: flex-start; gap: 10px; }
.mc-contact-line svg { width: 18px; height: 18px; margin-top: 3px; stroke: var(--mc-tint); fill: none; flex-shrink: 0; }
.mc-social { display: flex; gap: 10px; margin-top: 18px; }
.mc-social a {
  width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .1); transition: background .2s;
}
.mc-social a:hover { background: rgba(255, 255, 255, .2); }
.mc-social svg { width: 18px; height: 18px; fill: #fff; }
.mc-footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; color: #a9c8b7; }
.mc-footer__bottom a { color: #b9d2c4; text-decoration: underline; }

/* ---- modal de vídeo ---------------------------------------------------- */
.mc-modal {
  position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center;
  padding: 24px; background: rgba(0, 20, 18, .84);
}
.mc-modal.is-open { display: flex; }
.mc-modal__box { position: relative; width: min(960px, 100%); aspect-ratio: 16 / 9; border-radius: 20px; background: #000; }
.mc-modal__box iframe { width: 100%; height: 100%; border: 0; border-radius: 20px; }
.mc-modal__close {
  position: absolute; top: -54px; right: 0; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: #fff; color: var(--mc-dark); display: inline-flex; align-items: center; justify-content: center;
}
.mc-modal__close svg { width: 20px; height: 20px; }

/* ---- responsivo -------------------------------------------------------- */
@media (max-width: 1080px) {
  .mc-hero__body { grid-template-columns: minmax(0, 1fr); padding-bottom: 48px; }
  .mc-hero__shade { background: linear-gradient(180deg, rgba(0, 87, 79, .82) 0%, rgba(0, 87, 79, .92) 100%); }
  .mc-about { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .mc-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mc-process__grid { grid-template-columns: minmax(0, 1fr); }
  .mc-sim { grid-template-columns: minmax(0, 1fr); }
  .mc-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .mc-shell { padding: 12px 12px 0; }
  .mc-footer-wrap { padding: 64px 12px 12px; }
  .mc-container { width: min(1280px, calc(100% - 32px)); }
  .mc-section { padding-top: 64px; }
  :root { --mc-radius-xl: 26px; --mc-radius-lg: 22px; }
  .mc-nav { padding: 20px 22px; }
  .mc-logo img { width: 118px; }
  .mc-nav__cta { height: 42px; padding: 0 16px; font-size: 14px; }
  .mc-hero__body { padding: 12px 22px 32px; gap: 32px; }
  .mc-hero__lead { font-size: 17px; }
  .mc-stat b { font-size: 24px; }
  .mc-stats { flex-direction: column; gap: 18px; }
  .mc-stat + .mc-stat { padding-left: 0; border-left: 0; }
  .mc-form { padding: 24px 20px; }
  .mc-form__grid { grid-template-columns: minmax(0, 1fr); }
  .mc-gallery { grid-template-columns: minmax(0, 1fr); }
  .mc-video { min-height: 380px; padding: 48px 20px; }
  .mc-process { padding: 40px 22px; }
  .mc-steps { grid-template-columns: minmax(0, 1fr); }
  .mc-sim__info { padding: 36px 24px; }
  .mc-sim .mc-form { padding: 28px 20px; }
  .mc-footer { padding: 36px 24px; }
  .mc-footer__cols { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .mc-modal { padding: 12px; }
  .mc-modal__close { top: -50px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mc-btn, .mc-play, .mc-nav__cta { transition: none; }
}
