/* ==========================================================================
   MCS MED · Núcleo global
   Vai para: Elementor > Configurações do site > Código personalizado (head)
   Tudo prefixado com .mcs- para não conflitar com o tema e o Elementor.
   ========================================================================== */

/* ---------- Fontes (no WordPress, troque o caminho pela URL de Mídia) ---------- */
@font-face {
  font-family: 'Anton';
  src: url('../fonts/anton-latin-400-normal.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Anton';
  src: url('../fonts/anton-latin-ext-400-normal.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/montserrat-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/montserrat-latin-ext-wght-normal.woff2') format('woff2-variations');
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  /* Paleta da marca */
  --mcs-verde: #006E6D;
  --mcs-profundo: #003B39;
  --mcs-medio: #377F7E;
  --mcs-petroleo: #008D98;
  --mcs-ciano: #5AC7CD;
  /* Neutros */
  --mcs-gelo: #F2F6F6;
  --mcs-branco: #FFFFFF;
  --mcs-tinta: #0F2B2A;
  --mcs-tinta-suave: #4A6463;
  --mcs-linha: rgba(15, 43, 42, 0.14);
  --mcs-linha-clara: rgba(255, 255, 255, 0.18);

  /* Tipografia */
  --mcs-fonte-titulo: 'Anton', 'Impact', 'Arial Narrow', sans-serif;
  --mcs-fonte-texto: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mcs-h1: clamp(3.5rem, 2.2rem + 6.2vw, 8rem);
  --mcs-h2: clamp(2.75rem, 1.9rem + 3.6vw, 5rem);
  --mcs-h3: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  --mcs-corpo: clamp(1rem, 0.95rem + 0.2vw, 1.125rem);
  --mcs-pequeno: 0.875rem;

  /* Espaço e layout */
  --mcs-largura: 1360px;
  --mcs-margem: clamp(20px, 4vw, 56px);
  --mcs-secao: clamp(88px, 7vw + 48px, 168px);
  --mcs-header-altura: 88px;

  /* Movimento */
  --mcs-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --mcs-ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --mcs-rapido: 220ms;
  --mcs-medio-t: 480ms;

  /* Textura de grão (noise), usada sobre os gradientes */
  --mcs-noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Base (escopada) ---------- */
.mcs-page,
.mcs-section,
.mcs-header,
.mcs-footer {
  font-family: var(--mcs-fonte-texto);
  font-size: var(--mcs-corpo);
  line-height: 1.6;
  color: var(--mcs-tinta);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
.mcs-section *,
.mcs-header *,
.mcs-footer *,
.mcs-section *::before,
.mcs-section *::after,
.mcs-header *::before,
.mcs-header *::after,
.mcs-footer *::before,
.mcs-footer *::after { box-sizing: border-box; }

.mcs-section :where(h1, h2, h3, h4, p, ul, ol, figure, blockquote),
.mcs-header :where(h1, h2, h3, h4, p, ul, ol, figure),
.mcs-footer :where(h1, h2, h3, h4, p, ul, ol, figure) { margin: 0; padding: 0; }
.mcs-section :where(ul, ol), .mcs-header :where(ul, ol), .mcs-footer :where(ul, ol) { list-style: none; }
.mcs-section :where(a), .mcs-header :where(a), .mcs-footer :where(a) { color: inherit; text-decoration: none; }
.mcs-section :where(img, svg, video, canvas), .mcs-header :where(img, svg), .mcs-footer :where(img, svg) { display: block; max-width: 100%; }
.mcs-section :where(button), .mcs-header :where(button), .mcs-footer :where(button) {
  font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer;
}

.mcs-section {
  position: relative;
  padding-block: var(--mcs-secao);
  overflow: clip;
}
.mcs-container {
  width: 100%;
  max-width: calc(var(--mcs-largura) + var(--mcs-margem) * 2);
  margin-inline: auto;
  padding-inline: var(--mcs-margem);
}

/* Fundos */
.mcs-fundo-gelo { background: var(--mcs-gelo); }
.mcs-fundo-branco { background: var(--mcs-branco); }
.mcs-fundo-verde { background: var(--mcs-verde); color: var(--mcs-branco); }
.mcs-fundo-profundo { background: var(--mcs-profundo); color: var(--mcs-branco); }

/* Mesh gradient estático (fallback e seções secundárias) */
.mcs-mesh {
  background-color: var(--mcs-profundo);
  background-image:
    radial-gradient(60% 70% at 12% 18%, rgba(0, 141, 152, 0.85) 0%, transparent 60%),
    radial-gradient(55% 60% at 88% 12%, rgba(0, 110, 109, 0.9) 0%, transparent 62%),
    radial-gradient(50% 55% at 78% 92%, rgba(90, 199, 205, 0.45) 0%, transparent 60%),
    radial-gradient(70% 70% at 20% 100%, rgba(55, 127, 126, 0.8) 0%, transparent 60%);
  color: var(--mcs-branco);
}
.mcs-grao::after {
  content: '';
  position: absolute; inset: 0;
  background-image: var(--mcs-noise);
  background-size: 220px 220px;
  opacity: 0.09;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 1;
}

/* ---------- Tipografia ---------- */
.mcs-titulo,
.mcs-h1, .mcs-h2, .mcs-h3 {
  font-family: var(--mcs-fonte-titulo);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.98;
  letter-spacing: 0.005em;
  font-kerning: normal;
  text-wrap: balance;
}
.mcs-h1 { font-size: var(--mcs-h1); line-height: 1; }
.mcs-h2 { font-size: var(--mcs-h2); line-height: 1.04; }
.mcs-h3 { font-size: var(--mcs-h3); line-height: 1.05; letter-spacing: 0.01em; }

.mcs-lead {
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.55;
  max-width: 38em;
  text-wrap: pretty;
}
.mcs-texto { max-width: 36em; text-wrap: pretty; }
.mcs-suave { color: var(--mcs-tinta-suave); }
.mcs-fundo-verde .mcs-suave,
.mcs-fundo-profundo .mcs-suave,
.mcs-mesh .mcs-suave { color: rgba(255, 255, 255, 0.78); }

/* Kicker: texto curto acima do título, em caixa normal, com o triângulo da marca */
.mcs-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: var(--mcs-pequeno);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--mcs-verde);
  margin-bottom: 1.25rem;
}
.mcs-kicker::before {
  content: '';
  width: 0.7em; height: 0.7em;
  background: currentColor;
  clip-path: polygon(0 0, 100% 0, 0 100%);
  flex: none;
}
.mcs-fundo-verde .mcs-kicker,
.mcs-fundo-profundo .mcs-kicker,
.mcs-mesh .mcs-kicker { color: var(--mcs-ciano); }

/* Cabeçalho padrão de seção */
.mcs-cabecalho {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2rem 4rem;
  align-items: end;
  margin-bottom: clamp(48px, 5vw, 88px);
}
.mcs-cabecalho .mcs-lead { justify-self: start; }
@media (max-width: 900px) {
  .mcs-cabecalho { grid-template-columns: 1fr; }
}

/* ---------- Ícones (sprite Hugeicons) ---------- */
.mcs-icone {
  width: 1.25em; height: 1.25em;
  flex: none;
  display: inline-block;
  vertical-align: middle;
  color: currentColor;
}
.mcs-icone--16 { width: 16px; height: 16px; }
.mcs-icone--20 { width: 20px; height: 20px; }
.mcs-icone--24 { width: 24px; height: 24px; }
.mcs-icone--32 { width: 32px; height: 32px; }

/* ---------- Botões ---------- */
.mcs-btn {
  --btn-bg: var(--mcs-verde);
  --btn-cor: var(--mcs-branco);
  --btn-canto: var(--mcs-verde);   /* cor das cantoneiras (sobre fundo claro) */
  --btn-afasta: 7px;               /* distância das cantoneiras até o botão, no hover */
  --btn-tri: 9px;                  /* tamanho de cada triângulo */
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 52px;
  padding: 0 1.6em;
  /* metade da altura: arredondado em repouso, e a transição até 0 fica contínua */
  border-radius: 28px;
  font-family: var(--mcs-fonte-texto);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  line-height: 1;
  color: var(--btn-cor);
  background-color: var(--btn-bg);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: border-radius var(--mcs-medio-t) var(--mcs-ease),
              background-color var(--mcs-rapido) ease,
              color var(--mcs-rapido) ease,
              border-color var(--mcs-rapido) ease;
  will-change: transform;
}
/* Cantoneiras: os quatro triângulos do símbolo, do lado de fora do botão.
   Em repouso ficam encostados e invisíveis; no hover se afastam e enquadram o botão. */
.mcs-btn::before {
  content: '';
  position: absolute;
  inset: -1px;
  pointer-events: none;
  background:
    linear-gradient(135deg, var(--btn-canto) 50%, transparent 50%) 0 0 / var(--btn-tri) var(--btn-tri) no-repeat,
    linear-gradient(225deg, var(--btn-canto) 50%, transparent 50%) 100% 0 / var(--btn-tri) var(--btn-tri) no-repeat,
    linear-gradient(45deg, var(--btn-canto) 50%, transparent 50%) 0 100% / var(--btn-tri) var(--btn-tri) no-repeat,
    linear-gradient(315deg, var(--btn-canto) 50%, transparent 50%) 100% 100% / var(--btn-tri) var(--btn-tri) no-repeat;
  opacity: 0;
  transition: inset var(--mcs-medio-t) var(--mcs-ease), opacity 250ms ease;
}
.mcs-btn:hover { border-radius: 0; }
.mcs-btn:hover::before { inset: calc(var(--btn-afasta) * -1); opacity: 1; }
.mcs-btn:active { transform: scale(0.98); }
.mcs-btn .mcs-icone { width: 18px; height: 18px; transition: transform var(--mcs-medio-t) var(--mcs-ease); }
.mcs-btn:hover .mcs-icone { transform: translate(2px, -2px); }

.mcs-btn--claro { --btn-bg: var(--mcs-branco); --btn-cor: var(--mcs-profundo); }
.mcs-btn--escuro { --btn-bg: var(--mcs-profundo); --btn-cor: var(--mcs-branco); }
.mcs-btn--contorno {
  --btn-bg: transparent;
  --btn-cor: currentColor;
  border-color: currentColor;
}
/* sobre fundos escuros as cantoneiras ficam em ciano */
.mcs-fundo-verde .mcs-btn,
.mcs-fundo-profundo .mcs-btn,
.mcs-mesh .mcs-btn,
.mcs-header .mcs-btn { --btn-canto: var(--mcs-ciano); }
.mcs-fundo-verde .mcs-btn--contorno,
.mcs-fundo-profundo .mcs-btn--contorno,
.mcs-mesh .mcs-btn--contorno { --btn-cor: var(--mcs-branco); border-color: rgba(255,255,255,0.45); }
.mcs-btn--contorno:hover { border-color: var(--btn-canto); }
/* o formulário é um cartão branco dentro de uma seção escura */
.mcs-form .mcs-btn { --btn-canto: var(--mcs-verde); }

/* Link com seta */
.mcs-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--mcs-verde);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  padding-bottom: 4px;
  transition: background-size var(--mcs-medio-t) var(--mcs-ease);
}
.mcs-link:hover { background-size: 100% 1px; }
.mcs-link .mcs-icone { width: 18px; height: 18px; transition: transform var(--mcs-medio-t) var(--mcs-ease); }
.mcs-link:hover .mcs-icone { transform: translate(2px, -2px); }
.mcs-fundo-verde .mcs-link,
.mcs-fundo-profundo .mcs-link,
.mcs-mesh .mcs-link { color: var(--mcs-branco); }

/* ---------- Acessibilidade ---------- */
.mcs-section :focus-visible,
.mcs-header :focus-visible,
.mcs-footer :focus-visible {
  outline: 2px solid var(--mcs-ciano);
  outline-offset: 3px;
  border-radius: 4px;
}
.mcs-fundo-branco :focus-visible,
.mcs-fundo-gelo :focus-visible { outline-color: var(--mcs-verde); }
.mcs-sr {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* Linhas e palavras para animação de texto */
.mcs-linha-mask { display: block; overflow: clip; padding: 0.26em 0 0.12em; margin: -0.26em 0 -0.12em; }
.mcs-linha-mask > span { display: block; }

/* Estado antes da animação: só esconde quando o JS confirmou que vai animar */
html.mcs-anima [data-mcs-revelar] { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .mcs-section *, .mcs-header *, .mcs-footer * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  html.mcs-anima [data-mcs-revelar] { opacity: 1; }
}

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }
