
#metodo.method-section {
  --method-ink: #f4f1eb;
  --method-muted: #b8b5af;
  --method-accent: #c65a48;

  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(76px, 9vw, 128px) 0;
  color: var(--method-ink);
  background: #0b0b0b;
}

#metodo .method-header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 32px;
  width: min(1320px, calc(100% - 100px));
  margin: 0 auto 48px;
}

#metodo .method-header h2 {
  margin: 0;
  color: var(--method-ink);
  font-family: "Oswald", sans-serif;
  font-size: clamp(58px, 8vw, 112px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.94;
  text-transform: uppercase;
}

#metodo .method-header h2::after {
  display: block;
  width: 54px;
  height: 2px;
  margin-top: 24px;
  background: var(--method-accent);
  content: "";
}

#metodo .method-header p {
  margin: 0 0 4px;
  color: var(--method-muted);
  font-family: "Inter", sans-serif;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: 0.12em;
  text-align: right;
}

/* Área principal */

#metodo .method-content {
  position: relative;
  width: min(1320px, calc(100% - 100px));
  margin: 0 auto;
}

#metodo .method-slider {
  position: relative;
  display: block;
  width: 100%;
  height: clamp(440px, 53vw, 680px);
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background: #171717;
}

/* Slides: todos ocupam a mesma área */

#metodo .method-slide {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.025);
  pointer-events: none;
  transition:
    opacity 0.65s ease,
    transform 1s cubic-bezier(0.2, 0.65, 0.3, 1),
    visibility 0.65s;
}

#metodo .method-slide.active {
  position: absolute;
  inset: 0;
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  pointer-events: auto;
}

#metodo .method-slide img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.84) saturate(0.78);
  transition:
    transform 1.2s ease,
    filter 0.8s ease;
}

#metodo .method-slide.active:hover img {
  transform: scale(1.025);
  filter: brightness(0.9) saturate(0.9);
}

/* Degradê para garantir legibilidade */

#metodo .method-slide::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.16) 0%,
      transparent 28%,
      rgba(0, 0, 0, 0.12) 48%,
      rgba(0, 0, 0, 0.78) 100%
    );
  content: "";
  pointer-events: none;
}

/* Texto sobre a imagem */

#metodo .method-overlay {
  position: absolute;
  z-index: 2;
  right: clamp(24px, 5vw, 64px);
  bottom: clamp(30px, 5vw, 60px);
  left: clamp(24px, 5vw, 64px);
  max-width: 660px;
  margin: 0;
  padding: 0;
  color: #fff;
  background: transparent;
}

#metodo .method-overlay h3 {
  margin: 0 0 14px;
  color: #fff;
  font-family: "Oswald", sans-serif;
  font-size: clamp(38px, 5.5vw, 76px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.04;
  overflow-wrap: break-word;
  text-transform: uppercase;
}

#metodo .method-overlay p {
  max-width: 410px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.8;
}

/* Identificação discreta */

#metodo .method-slider::after {
  position: absolute;
  z-index: 3;
  top: 24px;
  right: 26px;
  color: rgba(255, 255, 255, 0.85);
  font-family: "Inter", sans-serif;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.16em;
  content: "FUKUIFILM";
  pointer-events: none;
}

/* Navegação */

#metodo .method-controls {
  position: absolute;
  z-index: 5;
  inset: 0;
  display: block;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

#metodo .method-arrow {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, 0.2);
  font-size: 12px;
  cursor: pointer;
  transform: translateY(-50%);
  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
  pointer-events: auto;
}

#metodo .method-arrow.prev {
  left: 20px;
}

#metodo .method-arrow.next {
  right: 20px;
}

#metodo .method-arrow:hover:not(:disabled) {
  border-color: #fff;
  color: #0b0b0b;
  background: #fff;
}

#metodo .method-arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

#metodo .method-arrow:focus-visible {
  outline: 2px solid var(--method-accent);
  outline-offset: 4px;
}

/* Tablet */

@media (max-width: 900px) {
  #metodo .method-header,
  #metodo .method-content {
    width: calc(100% - 56px);
  }

  #metodo .method-header {
    gap: 24px;
    margin-bottom: 36px;
  }

  #metodo .method-header h2 {
    font-size: clamp(56px, 9vw, 82px);
  }

  #metodo .method-header p {
    font-size: 9px;
  }

  #metodo .method-slider {
    height: 560px;
  }

  #metodo .method-overlay h3 {
    font-size: clamp(42px, 7vw, 64px);
  }
}

/* Celular */

@media (max-width: 560px) {
  #metodo.method-section {
    padding: 72px 0 76px;
  }

  #metodo .method-header,
  #metodo .method-content {
    width: calc(100% - 36px);
  }

  #metodo .method-header {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-bottom: 28px;
  }

  #metodo .method-header h2 {
    font-size: clamp(58px, 15vw, 78px);
    line-height: 0.96;
  }

  #metodo .method-header h2::after {
    width: 42px;
    margin-top: 20px;
  }

  #metodo .method-header p {
    justify-self: start;
    font-size: 9px;
    line-height: 1.8;
    text-align: left;
  }

  #metodo .method-slider {
    height: 520px;
  }

  #metodo .method-slide img {
    object-position: center;
  }

  #metodo .method-overlay {
    right: 22px;
    bottom: 30px;
    left: 22px;
  }

  #metodo .method-overlay h3 {
    margin-bottom: 12px;
    font-size: clamp(36px, 10vw, 48px);
    line-height: 1.06;
  }

  #metodo .method-overlay p {
    max-width: 290px;
    font-size: 12px;
    line-height: 1.7;
  }

  #metodo .method-slider::after {
    top: 20px;
    right: 16px;
    font-size: 8px;
    letter-spacing: 0.1em;
  }

  #metodo .method-arrow {
    top: 22px;
    width: 36px;
    height: 36px;
    transform: none;
  }

  #metodo .method-arrow.prev {
    right: auto;
    left: 16px;
  }

  #metodo .method-arrow.next {
    right: 16px;
  }
}

/* Acessibilidade */

@media (prefers-reduced-motion: reduce) {
  #metodo *,
  #metodo *::before,
  #metodo *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* Subtítulo abaixo do título */
#metodo .method-header {
  grid-template-columns: 1fr;
  justify-items: start;
}

#metodo .method-header p {
  justify-self: start;
  text-align: left;
}
