/*
Theme Name: MovimentaFit Simples
Theme URI: https://movimentafit.com/
Author: MovimentaFit
Description: Tema leve no formato de blog-vitrine para produtos afiliados, com busca, categorias e cards responsivos.
Version: 1.0.5
Text Domain: movimentafit-simples
*/

:root {
  --mf-bg: #f7f6f0;
  --mf-surface: #ffffff;
  --mf-ink: #113f35;
  --mf-muted: #62736e;
  --mf-line: #dfe5df;
  --mf-accent: #d6ef7e;
  --mf-accent-strong: #b9df3f;
  --mf-dark: #0d3d32;
  --mf-radius: 18px;
  --mf-shadow: 0 12px 34px rgba(17, 63, 53, 0.08);
  --mf-container: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--mf-bg);
  color: var(--mf-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

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

.mf-container {
  width: min(calc(100% - 36px), var(--mf-container));
  margin-inline: auto;
}

.mf-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(17, 63, 53, 0.1);
  background: rgba(247, 246, 240, 0.94);
  backdrop-filter: blur(16px);
}

.admin-bar .mf-site-header {
  top: 32px;
}

.mf-header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.mf-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.custom-logo-link {
  display: inline-flex;
  align-items: center;
}

.custom-logo {
  width: auto;
  max-width: 240px;
  max-height: 52px;
  object-fit: contain;
}

.mf-site-header .custom-logo {
  filter: brightness(0) saturate(100%) invert(19%) sepia(27%) saturate(1068%) hue-rotate(117deg) brightness(91%) contrast(96%);
}

.mf-brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--mf-accent);
  color: var(--mf-dark);
  font-weight: 900;
}

.mf-brand small {
  display: block;
  color: var(--mf-muted);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.mf-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.94rem;
  font-weight: 700;
}

.mf-nav a:hover,
.mf-nav a:focus-visible {
  color: #2f7a63;
}

.mf-nav-cta,
.mf-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: var(--mf-dark);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}

.mf-nav-cta:hover,
.mf-button:hover {
  background: #17614f;
  color: #fff;
  transform: translateY(-1px);
}

.mf-mobile-menu {
  display: none;
}

.mf-hero {
  padding: 62px 0 42px;
}

.mf-hero-box {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 42px;
  align-items: center;
  padding: clamp(32px, 5vw, 64px);
  overflow: hidden;
  border-radius: 28px;
  background:
    radial-gradient(circle at 92% 18%, rgba(214, 239, 126, 0.9), transparent 32%),
    linear-gradient(135deg, #123f35 0%, #0b3028 100%);
  color: #fff;
  box-shadow: var(--mf-shadow);
}

.mf-eyebrow {
  margin: 0 0 12px;
  color: var(--mf-accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mf-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.25rem, 5.6vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.mf-hero-copy {
  max-width: 680px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(1rem, 2vw, 1.15rem);
}

.mf-search {
  display: flex;
  gap: 10px;
  margin-top: 28px;
  padding: 7px;
  border-radius: 999px;
  background: #fff;
}

.mf-search label {
  flex: 1;
}

.mf-search input[type="search"] {
  width: 100%;
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--mf-ink);
}

.mf-search .mf-button {
  min-height: 48px;
  background: var(--mf-accent);
  color: var(--mf-dark);
}

.mf-search .mf-button:hover {
  background: var(--mf-accent-strong);
}

.mf-hero-note {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 260px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
}

.mf-hero-note strong {
  font-size: 1.4rem;
  line-height: 1.15;
}

.mf-hero-note span {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.7);
}

.mf-categories {
  padding: 18px 0 32px;
}

.mf-category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mf-chip {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 17px;
  border: 1px solid var(--mf-line);
  border-radius: 999px;
  background: var(--mf-surface);
  color: var(--mf-ink);
  font-size: 0.92rem;
  font-weight: 750;
}

.mf-chip:hover {
  border-color: var(--mf-accent-strong);
  background: #f1f8dc;
}

.mf-section {
  padding: 44px 0 78px;
}

.mf-section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.mf-section-header h2,
.mf-page-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.mf-section-header p {
  max-width: 480px;
  margin: 0;
  color: var(--mf-muted);
}

.mf-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.mf-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--mf-line);
  border-radius: var(--mf-radius);
  background: var(--mf-surface);
  box-shadow: 0 4px 16px rgba(17, 63, 53, 0.04);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.mf-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--mf-shadow);
}

.mf-card-media {
  display: block;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eef2ed;
}

.mf-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 280ms ease;
}

.mf-card:hover .mf-card-media img {
  transform: scale(1.025);
}

.mf-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(145deg, #e7f0e9, #f0f5dc);
  color: #4d7368;
}

.mf-card-placeholder svg {
  width: 48px;
  height: 48px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.mf-card-placeholder small {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mf-card-body {
  display: flex;
  flex-direction: column;
  min-height: 245px;
  padding: 22px;
}

.mf-card-category {
  margin: 0 0 9px;
  color: #3c806a;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.mf-card h3 {
  margin: 0;
  font-size: 1.28rem;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.mf-card h3 a:hover {
  color: #2f7a63;
}

.mf-card-excerpt {
  display: -webkit-box;
  margin: 13px 0 20px;
  overflow: hidden;
  color: var(--mf-muted);
  font-size: 0.94rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.mf-card-link {
  margin-top: auto;
  font-weight: 850;
}

.mf-card-link:hover {
  color: #2f7a63;
}

.mf-disclosure {
  margin-top: 32px;
  padding: 18px 20px;
  border-left: 4px solid var(--mf-accent-strong);
  border-radius: 0 12px 12px 0;
  background: #eef4e8;
  color: #50645e;
  font-size: 0.9rem;
}

.mf-empty {
  padding: 40px;
  border: 1px dashed #bfcac5;
  border-radius: var(--mf-radius);
  background: #fff;
  text-align: center;
}

.mf-page-hero {
  padding: 58px 0 28px;
}

.mf-page-hero p {
  max-width: 680px;
  color: var(--mf-muted);
}

.mf-search-intro {
  margin: 14px 0 0;
}

.mf-results-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
  padding: 16px 18px;
  border: 1px solid var(--mf-line);
  border-radius: 14px;
  background: #fff;
}

.mf-results-summary strong {
  font-size: 1rem;
}

.mf-results-summary span {
  color: var(--mf-muted);
  font-size: 0.9rem;
}

.mf-search-start {
  padding-block: 58px;
}

.mf-category-page {
  padding: 58px 0 84px;
}

.mf-category-page-header {
  max-width: 760px;
  margin-bottom: 32px;
}

.mf-category-page-header h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.mf-category-page-header p:last-child {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--mf-muted);
  font-size: 1.05rem;
}

.mf-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.mf-category-card {
  display: flex;
  min-height: 220px;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--mf-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(17, 63, 53, 0.04);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.mf-category-card:hover {
  border-color: var(--mf-accent-strong);
  box-shadow: var(--mf-shadow);
  transform: translateY(-3px);
}

.mf-category-card-icon {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 26px;
  place-items: center;
  border-radius: 14px;
  background: #edf6dc;
  color: #2f705d;
  font-size: 1.15rem;
  font-weight: 900;
}

.mf-category-card h2 {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.mf-category-card p {
  margin: 10px 0 22px;
  color: var(--mf-muted);
}

.mf-category-card-meta {
  margin-top: auto;
  color: #2f705d;
  font-size: 0.86rem;
  font-weight: 800;
}

.mf-article-wrap {
  width: min(calc(100% - 36px), 820px);
  margin: 0 auto;
  padding: 58px 0 82px;
}

.mf-article-header {
  margin-bottom: 30px;
}

.mf-article-header h1 {
  margin: 10px 0 16px;
  font-size: clamp(2.25rem, 6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.mf-article-meta {
  color: var(--mf-muted);
  font-size: 0.9rem;
}

.mf-article-featured {
  margin: 0 0 34px;
  overflow: hidden;
  border-radius: 22px;
  background: #eef2ed;
}

.mf-article-featured img {
  width: 100%;
}

.mf-content {
  color: #263f38;
  font-size: 1.05rem;
}

.mf-content > * + * {
  margin-top: 1.3em;
}

.mf-content h2,
.mf-content h3 {
  margin-top: 1.8em;
  color: var(--mf-ink);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.mf-content a:not(.wp-element-button) {
  color: #1e725c;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mf-content .wp-element-button,
.mf-content .wp-block-button__link {
  border-radius: 999px;
  background: var(--mf-dark);
  color: #fff;
  font-weight: 800;
}

.mf-pagination {
  margin-top: 34px;
}

.mf-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mf-pagination .page-numbers {
  min-width: 42px;
  min-height: 42px;
  display: inline-grid;
  place-items: center;
  padding: 0 12px;
  border: 1px solid var(--mf-line);
  border-radius: 999px;
  background: #fff;
}

.mf-pagination .current {
  border-color: var(--mf-dark);
  background: var(--mf-dark);
  color: #fff;
}

.mf-site-footer {
  padding: 40px 0;
  background: var(--mf-dark);
  color: rgba(255, 255, 255, 0.74);
}

.mf-footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 34px;
  align-items: end;
}

.mf-site-footer .mf-brand {
  color: #fff;
}

.mf-site-footer .mf-brand small {
  color: rgba(255, 255, 255, 0.58);
}

.mf-footer-copy {
  margin: 14px 0 0;
  max-width: 560px;
  font-size: 0.9rem;
}

.mf-footer-links {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.9rem;
  font-weight: 700;
}

.mf-footer-links a:hover {
  color: var(--mf-accent);
}

@media (max-width: 900px) {
  .mf-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mf-hero-box {
    grid-template-columns: 1fr;
  }

  .mf-hero-note {
    min-height: auto;
  }
}

@media (max-width: 782px) {
  .admin-bar .mf-site-header {
    top: 46px;
  }
}

@media (max-width: 720px) {
  .mf-header-inner {
    min-height: 66px;
  }

  .mf-nav {
    display: none;
  }

  .custom-logo {
    max-width: 185px;
    max-height: 42px;
  }

  .mf-mobile-menu {
    display: block;
    position: relative;
  }

  .mf-mobile-menu summary {
    list-style: none;
    padding: 9px 13px;
    border: 1px solid var(--mf-line);
    border-radius: 999px;
    background: #fff;
    font-weight: 800;
    cursor: pointer;
  }

  .mf-mobile-menu summary::-webkit-details-marker {
    display: none;
  }

  .mf-mobile-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 220px;
    padding: 10px;
    border: 1px solid var(--mf-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--mf-shadow);
  }

  .mf-mobile-panel a {
    display: block;
    padding: 10px 12px;
    border-radius: 9px;
    font-weight: 750;
  }

  .mf-mobile-panel a:hover {
    background: #f1f6e8;
  }

  .mf-hero {
    padding: 32px 0 26px;
  }

  .mf-hero-box {
    padding: 30px 24px;
    border-radius: 22px;
  }

  .mf-hero h1 {
    font-size: clamp(2.2rem, 12vw, 3.5rem);
  }

  .mf-search {
    border-radius: 16px;
    flex-direction: column;
  }

  .mf-search .mf-button {
    width: 100%;
  }

  .mf-section-header {
    display: block;
  }

  .mf-section-header p {
    margin-top: 10px;
  }

  .mf-results-summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .mf-grid {
    grid-template-columns: 1fr;
  }

  .mf-category-grid {
    grid-template-columns: 1fr;
  }

  .mf-card-body {
    min-height: 0;
  }

  .mf-footer-inner {
    grid-template-columns: 1fr;
  }

  .mf-footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 430px) {
  .mf-container,
  .mf-article-wrap {
    width: min(calc(100% - 24px), var(--mf-container));
  }

  .mf-brand small {
    display: none;
  }

  .mf-category-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .mf-chip {
    flex: 0 0 auto;
  }
}
