.objectives {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-block: clamp(62px, 9vw, 108px);
  background:
    linear-gradient(145deg, rgba(193, 233, 104, 0.13), transparent 34%),
    radial-gradient(circle at 90% 12%, rgba(72, 85, 43, 0.08), transparent 30%),
    #f5f1e8;
}

.objectives__inner {
  position: relative;
  z-index: 1;
}

.objectives__heading {
  width: 100%;
  max-width: none;
  margin-bottom: clamp(22px, 5vw, 36px);
  margin-inline: 0;
  text-align: left;
}

.objectives__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 clamp(9.6px, 2vw, 14.4px);
  color: var(--color-brand-olive);
  font-size: clamp(0.8208rem, 0.864vw, 0.9288rem);
  font-weight: 650;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.objectives__eyebrow::after {
  width: clamp(70px, 20vw, 190px);
  height: 1px;
  background: linear-gradient(90deg, rgba(72, 85, 43, 0.55), transparent);
  content: "";
}

.objectives__heading h2 {
  max-width: 14ch;
  margin: 0;
  color: var(--color-brand-olive-dark);
  font-size: clamp(2.15rem, 8.2vw, 3.55rem);
  letter-spacing: -0.052em;
  line-height: 0.98;
}

.objectives__heading h2 em {
  color: #79ad14;
  font-style: normal;
  font-weight: inherit;
}

.objectives__heading p:last-child {
  max-width: 36ch;
  margin: 14px 0 0;
  color: var(--color-muted);
  font-size: clamp(0.98rem, 3.8vw, 1.12rem);
  line-height: 1.48;
}

.objectives__tabs-scroll {
  position: relative;
  margin-right: calc(-1 * var(--gutter));
  margin-bottom: clamp(18px, 4vw, 26px);
  padding-right: var(--gutter);
  overflow: hidden;
}

.objectives__tabs-fade {
  position: absolute;
  z-index: 2;
  top: 0;
  right: var(--gutter);
  bottom: 0;
  width: 58px;
  border-radius: 0 12px 12px 0;
  background: linear-gradient(90deg, rgba(255, 253, 248, 0), rgba(255, 253, 248, 0.94) 88%);
  opacity: 1;
  pointer-events: none;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.objectives__tabs-scroll.is-at-end .objectives__tabs-fade {
  opacity: 0;
  visibility: hidden;
}

.objectives__tabs-fade[hidden] {
  display: none;
}

.objectives__tabs {
  display: flex;
  gap: 6px;
  box-sizing: border-box;
  padding: 5px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  border-radius: 12px;
  background: rgba(255, 253, 248, 0.72);
  box-shadow: 0 10px 34px rgba(45, 56, 28, 0.06);
  scroll-behavior: smooth;
  scroll-padding-inline: 5px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  touch-action: pan-x pan-y;
}

.objectives__tabs::-webkit-scrollbar {
  display: none;
}

.objectives__tab {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 68px;
  flex: 0 0 132px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 8px 5px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: rgba(45, 56, 28, 0.72);
  cursor: pointer;
  font: inherit;
  scroll-snap-align: start;
  text-align: center;
  transition: background-color 180ms ease, color 180ms ease;
}

.objectives__tab::after {
  position: absolute;
  right: 50%;
  bottom: 4px;
  width: 0;
  height: 3px;
  border-radius: 99px;
  background: var(--color-brand-olive-dark);
  content: "";
  transform: translateX(50%);
  transition: width 180ms ease;
}

.objectives__tab:hover {
  background: rgba(193, 233, 104, 0.13);
  color: var(--color-brand-olive-dark);
}

.objectives__tab[aria-selected="true"] {
  background: rgba(193, 233, 104, 0.27);
  color: var(--color-brand-olive-dark);
  box-shadow: inset 0 0 0 1px rgba(121, 173, 20, 0.12), 0 8px 20px rgba(72, 85, 43, 0.06);
}

.objectives__tab[aria-selected="true"]::after {
  width: 28px;
}

.objectives__tab-icon {
  position: relative;
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  transition: background-color 180ms ease, transform 180ms ease;
}

.objectives__tab-icon img {
  position: absolute;
  inset: 2px;
  width: 24px;
  height: 24px;
}

.objectives__tab-icon-filled {
  opacity: 0;
}

.objectives__tab[aria-selected="true"] .objectives__tab-icon {
  background: var(--color-brand-lime);
  transform: translateY(-1px);
}

.objectives__tab[aria-selected="true"] .objectives__tab-icon-outline {
  opacity: 0;
}

.objectives__tab[aria-selected="true"] .objectives__tab-icon-filled {
  opacity: 1;
}

.objectives__tab-label {
  max-width: none;
  white-space: pre-line;
  text-align: center;
  font-size: clamp(0.78rem, 3.25vw, 0.88rem);
  font-weight: 680;
  line-height: 1.12;
  text-wrap: balance;
}

.objectives__panel {
  display: grid;
  overflow: clip;
  border: 1px solid rgba(72, 85, 43, 0.1);
  border-radius: 14px;
  background: linear-gradient(135deg, #e8eed8, #f3f3e8 72%);
  box-shadow: 0 24px 70px rgba(45, 56, 28, 0.1), 0 2px 8px rgba(45, 56, 28, 0.04);
  touch-action: pan-y;
  cursor: grab;
  will-change: transform, opacity;
}

.objectives__panel[hidden] {
  display: none;
}

.objectives__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  margin: 0;
  background: #dce4cb;
}

.objectives__media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.objectives__media,
.objectives__media img {
  -webkit-user-drag: none;
  user-select: none;
}

.objectives__media::after {
  position: absolute;
  inset: auto 0 0;
  height: 36%;
  background: linear-gradient(0deg, rgba(7, 19, 12, 0.2), transparent);
  content: "";
  pointer-events: none;
}

.objectives__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 44%;
  transform: scale(1.002);
  transition: filter 420ms ease;
}

@media (hover: hover) {
  .objectives__panel:hover .objectives__image {
    filter: saturate(1.05) contrast(1.015);
  }
}

.objectives__panel--emagrecimento .objectives__image {
  object-position: 52% 44%;
}

.objectives__panel--corrida .objectives__image {
  object-position: 47% 42%;
  transform: scale(-1, 1);
}

.objectives__panel--massa-muscular .objectives__image {
  object-position: 68% 44%;
}

.objectives__panel--crossfit .objectives__image {
  object-position: 50% 58%;
  transform: scale(1.08);
}

.objectives__content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(24px, 6vw, 34px);
}

.objectives__panel-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
  color: var(--color-brand-olive);
  font-size: 0.75rem;
  font-weight: 780;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.objectives__panel-kicker::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-brand-lime);
  box-shadow: 0 0 0 4px rgba(193, 233, 104, 0.24);
  content: "";
}

.objectives__content h3 {
  max-width: 22ch;
  margin: 0;
  color: var(--color-brand-olive-dark);
  font-size: clamp(1.7rem, 6.4vw, 2.45rem);
  letter-spacing: -0.042em;
  line-height: 1.03;
}

.objectives__description {
  max-width: 58ch;
  margin: 16px 0 0;
  color: #4d574b;
  font-size: 0.96rem;
  line-height: 1.55;
}

.objectives__description--desktop {
  display: none;
}

.objectives__benefits {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 19px 0 22px;
  list-style: none;
}

.objectives__benefits li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  color: var(--color-brand-olive-dark);
  font-size: 0.93rem;
  font-weight: 560;
  line-height: 1.4;
}

.objectives__benefits li::before {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: var(--color-brand-lime);
  color: var(--color-brand-olive-dark);
  content: "✓";
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
}

.objectives__cta {
  width: 100%;
  min-height: 50px;
  justify-content: space-between;
  margin-top: 0;
  padding-inline: 22px;
  border-color: transparent;
  box-shadow: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  color: var(--color-brand-lime);
}

.objectives__cta:hover,
.objectives__cta:focus,
.objectives__cta:focus-visible,
.objectives__cta:active {
  border-color: transparent;
  background: var(--color-action-hover);
  color: var(--color-brand-olive-dark);
  box-shadow: none;
  outline: none;
}

.objectives__cta-arrow {
  flex: 0 0 auto;
  display: inline-flex;
  width: 1.2rem;
  height: 1.2rem;
  transition: transform 180ms ease;
}

.objectives__cta-arrow svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.objectives__cta:hover .objectives__cta-arrow {
  transform: translate(2px, -2px);
}

.objectives__panel.is-dragging {
  cursor: grabbing;
  transform: translateX(var(--objectives-drag-x, 0));
  transition: none;
}

.objectives__panel.is-snapping {
  transform: translateX(0);
  transition: transform 180ms ease;
}

@media (min-width: 640px) {
  .objectives__tabs-scroll {
    margin-right: 0;
    padding-right: 0;
    overflow: visible;
  }

  .objectives__tabs-fade {
    display: none;
  }

  .objectives__tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    padding: 5px;
    overflow: visible;
    scroll-snap-type: none;
  }

  .objectives__tab,
  .objectives__tab:nth-child(n + 4) {
    min-height: 62px;
    grid-column: auto;
  }

  .objectives__tab-label {
    font-size: 0.88rem;
  }

  .objectives__panel {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }

  .objectives__media {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .objectives__content {
    justify-content: flex-start;
  }

  .objectives__description--desktop {
    display: block;
  }

  .objectives__description--mobile {
    display: none;
  }
}

@media (min-width: 900px) {
  .objectives {
    display: grid;
    min-height: 100svh;
    align-items: center;
    padding: clamp(38px, 5.5vh, 62px) 0;
  }

  .objectives__inner {
    display: grid;
    grid-template-columns: minmax(184px, 218px) minmax(0, 1fr);
    column-gap: clamp(18px, 2vw, 28px);
  }

  .objectives__heading {
    grid-column: 1 / -1;
    max-width: min(100%, 760px);
    margin: 0 0 clamp(18px, 2.5vh, 28px);
  }

  .objectives__heading h2 {
    max-width: none;
    font-size: clamp(2.65rem, 4vw, 3.2rem);
  }

  .objectives__heading p:last-child {
    max-width: 54ch;
    margin: 9px 0 0;
    font-size: 1.05rem;
    line-height: 1.42;
  }

  .objectives__tabs-scroll {
    min-width: 0;
    grid-column: 1;
    grid-row: 2;
    margin: 0;
    overflow: visible;
  }

  .objectives__tabs {
    display: flex;
    height: 100%;
    flex-direction: column;
    justify-content: stretch;
    gap: clamp(10px, 1.5vh, 16px);
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .objectives__tab,
  .objectives__tab:nth-child(n + 4) {
    min-height: 0;
    flex: 1 1 0;
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    text-align: left;
  }

  .objectives__tab::after {
    top: 50%;
    right: auto;
    bottom: auto;
    left: 0;
    width: 3px;
    height: 0;
    transform: translateY(-50%);
    transition: height 180ms ease;
  }

  .objectives__tab[aria-selected="true"]::after {
    width: 3px;
    height: 30px;
  }

  .objectives__tab-icon {
    width: 38px;
    height: 38px;
    background: rgba(72, 85, 43, 0.07);
  }

  .objectives__tab-icon img {
    inset: 7px;
  }

  .objectives__tab-label {
    max-width: 14ch;
    font-size: clamp(0.86rem, 1vw, 0.96rem);
    white-space: normal;
  }

  .objectives__panels {
    min-width: 0;
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .objectives__panel {
    height: clamp(430px, 67vh, 520px);
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  }

  .objectives__media::after {
    inset: 0 0 0 auto;
    width: 18%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(232, 238, 216, 0.16));
  }

  .objectives__content {
    min-height: 0;
    justify-content: flex-start;
    padding: clamp(30px, 3vw, 44px);
  }

  .objectives__panel-kicker {
    margin-bottom: 13px;
  }

  .objectives__content h3 {
    max-width: 23ch;
    font-size: clamp(2rem, 2.5vw, 2.5rem);
  }

  .objectives__description {
    margin-top: 18px;
    font-size: clamp(0.94rem, 1.05vw, 1.02rem);
    line-height: 1.55;
  }

  .objectives__benefits {
    gap: 10px;
    margin: 20px 0 18px;
  }

  .objectives__benefits li {
    font-size: clamp(0.88rem, 1vw, 0.96rem);
  }

  .objectives__cta {
    width: min(100%, 400px);
  }
}

@media (min-width: 900px) and (max-height: 700px) {
  .objectives {
    padding: 28px 0;
  }

  .objectives__heading {
    margin-bottom: 16px;
  }

  .objectives__heading h2 {
    font-size: 2.55rem;
  }

  .objectives__heading p:last-child {
    margin-top: 7px;
    font-size: 0.98rem;
  }

  .objectives__panel {
    height: 430px;
  }

  .objectives__content {
    padding: 27px 34px;
  }

  .objectives__content h3 {
    max-width: 23ch;
    font-size: 2rem;
  }

  .objectives__description {
    margin-top: 13px;
    font-size: 0.9rem;
  }

  .objectives__benefits {
    gap: 7px;
    margin: 14px 0 16px;
  }

  .objectives__benefits li {
    font-size: 0.82rem;
  }

  .objectives__benefits li::before {
    width: 20px;
    height: 20px;
  }

  .objectives__cta {
    min-height: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .objectives__tab,
  .objectives__tab::after,
  .objectives__tab-icon,
  .objectives__cta-arrow,
  .objectives__tabs-fade,
  .objectives__panel.is-snapping {
    transition: none;
  }

}

/* Floating selector and stacked modality cards. */
.objectives--ready .objectives__panels {
  position: relative;
  isolation: isolate;
  display: grid;
  padding-bottom: 26px;
}

.objectives--ready .objectives__panel {
  position: relative;
  z-index: 1;
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(24px) scale(0.96);
  transform-origin: center bottom;
  transition: none;
}

.objectives--ready .objectives__panel.is-active {
  z-index: 4;
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.objectives--ready .objectives__panel.is-transition-target {
  pointer-events: auto;
}

.objectives--ready .objectives__panel.is-stack-next {
  z-index: 3;
  opacity: 1;
  transform: translateY(7px);
}

.objectives--ready .objectives__panel.is-stack-far {
  z-index: 2;
  opacity: 1;
  transform: translateY(14px);
}

.objectives--ready .objectives__panel.is-stack-hidden {
  z-index: 1;
  opacity: 1;
  pointer-events: none;
  transform: translateY(21px) scale(1);
}

.objectives--ready .objectives__panel.is-active.is-dragging {
  transform: translateX(var(--objectives-drag-x, 0)) translateY(var(--objectives-drag-y, 0)) rotate(var(--objectives-drag-rotation, 0deg));
}

/* Section-bound navigation: one surface, one selection, no competing effects. */
.objectives__tabs-scroll {
  position: relative;
  z-index: 2;
  display: block;
  width: auto;
  min-width: 0;
  margin: 0 0 clamp(18px, 2.5vw, 28px);
  padding: 0;
  overflow: hidden;
}

.objectives__tabs-scroll[hidden] { display: none; }

.objectives__tabs-fade { display: none; }

.objectives__tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  height: auto;
  gap: 4px;
  padding: 6px;
  overflow: visible;
  border: 0;
  border-radius: 18px;
  background: transparent;
  box-shadow: none;
  scroll-snap-type: none;
}

@media (min-width: 900px) {
  .objectives__tabs-scroll {
    grid-column: 1 / -1;
    grid-row: auto;
    margin: 0 0 clamp(18px, 2.5vw, 28px);
  }

  .objectives__tabs {
    width: 100%;
  }

  .objectives__panels {
    grid-column: 1 / -1;
    grid-row: auto;
  }
}

.objectives__tabs .objectives__tab {
  min-width: 0;
  min-height: 66px;
  flex: initial;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 7px 3px;
  border-radius: 12px;
  color: #48552b;
  background: transparent;
  box-shadow: none;
  text-align: center;
  transition: color 220ms ease, background-color 220ms ease, transform 220ms ease;
}

.objectives__tabs .objectives__tab::after { content: none; }

@media (hover: hover) {
  .objectives__tabs .objectives__tab:hover {
    background: rgba(72, 85, 43, 0.08);
    color: #48552b;
  }
}

.objectives__tabs .objectives__tab[aria-selected="true"] {
  background: #48552b;
  color: #c1e968;
  box-shadow: 0 2px 8px rgba(9, 24, 14, 0.14);
  transform: translateY(-1px);
}

.objectives__tabs .objectives__tab:focus-visible {
  outline: 2px solid #c1e968;
  outline-offset: 2px;
}

.objectives__tabs .objectives__tab-icon,
.objectives__tabs .objectives__tab[aria-selected="true"] .objectives__tab-icon {
  width: 24px;
  height: 24px;
  background: none;
  border-radius: 0;
  transform: none;
  place-items: center;
}

.objectives__tab-icon svg { display: block; width: 24px; height: 24px; }

/* O kettlebell original tem desenho mais compacto; ampliá-lo preserva o peso visual
 * com os demais ícones sem alterar a caixa de toque do botão. */
.objectives__tab[data-objective-tab="crossfit"] .objectives__tab-icon svg {
  transform: scale(1.3225);
  transform-origin: center;
}

.objectives__tab[data-objective-tab="corrida"] .objectives__tab-icon svg {
  transform: scale(1.15);
  transform-origin: center;
}

.objectives__tabs .objectives__tab-label {
  max-width: none;
  font-size: clamp(0.66rem, 2.65vw, 0.78rem);
  font-weight: 600;
  line-height: 1.2;
  white-space: pre-line;
  white-space: normal;
  text-wrap: balance;
}

.objectives__panel-kicker {
  white-space: nowrap;
}

.objectives__tabs .objectives__tab {
  min-height: 92px;
}

@media (min-width: 640px) {
  .objectives__tabs .objectives__tab {
    min-height: 54px;
    flex-direction: row;
    gap: 9px;
    padding: 10px 8px;
  }
  .objectives__tabs .objectives__tab-label { font-size: 0.82rem; }
}

.objectives__tabs .objectives__tab {
  aspect-ratio: 1;
  min-height: 0;
}

@media (prefers-reduced-motion: reduce) {
  .objectives__tabs .objectives__tab,
  .objectives--ready .objectives__panel { transition: none; }
}
